import FieldState from './fieldState' ; /**
 * Bindings for input component.
 * Typical React input component accepts `value` & `onChange` to bind value.
 */ export interface InputBindings < T , E = T > { value : T ; onChange ( event ) : void ; } /**
 * Helper method to bind state to your input component.
 * You can define your own bindInput by specifying `getValue`.
 */ export function bindInput < T > ( state ) ; export function bindInput < T , E > ( state , getValue ) ; export function bindInput ( state , getValue ? ) { return { value : state . _value , onChange : ( arg ) => state . onChange ( getValue ? getValue ( arg ) : arg ) } ; }