import { ValidationErrors } from '../../util/validationUtil'; interface StateProps { value: T; isPristine: boolean; validationErrors: ValidationErrors; } type Validator = (val: T) => ValidationErrors; /** * @return an initialized state with the specified value and isPristine set to true. */ export declare function initialState(value: T, validator?: Validator): StateProps; /** * @return a state useful once a user has adjusted the value of a form select: one with the specified value and * isPristine set to false. */ export declare function userInput(newValue: T, validator?: Validator): StateProps; /** * A react hook for managing NxFormSelect state. * @param initialValue The initial `value` desired for the NxFormSelect * @return a tuple containing: * A StateProps object containing the current value and isPristine flag, which can be passed as props to an * NxFormSelect. * A updater function that takes a new value and initiates a new render with that value, similarly to the * second return value of React's `useState` hook */ export declare function useNxFormSelectState(initialValue: T, validator?: Validator): [StateProps, (v: T) => void]; export {}; //# sourceMappingURL=stateHelpers.d.ts.map