import { RadioValidator, CheckboxValidator, TransferListValidator, RadioSetter, CheckboxState, CheckboxInitValues, CheckboxStates, RadioStateProps, CheckboxStateProps, TransferListStateProps, CheckboxGroupHookReturnValue, TransferListHookReturnValue } from './types'; export { RadioValidator, CheckboxValidator, TransferListValidator, RadioSetter, CheckboxState, CheckboxInitValues, CheckboxStates, RadioStateProps, CheckboxStateProps, TransferListStateProps, CheckboxGroupHookReturnValue, TransferListHookReturnValue }; /** * Create a RadioStateProps representing the initial state of a group of radio buttons based on the * specified initial value, and validated according to the specified validator */ export declare function radioGroupInitialState(value?: T, validator?: RadioValidator): RadioStateProps; /** * Create a RadioStateProps representing a non-initial state of a group of radio buttons based on the * specified value, and validated according to the specified validator */ export declare function radioGroupUserInput(value: T | null, validator?: RadioValidator): RadioStateProps; /** * A react hook to aid in managing the state of a radio group. Encapsulates tracking of pristine state and * validation errors */ export declare function useRadioGroupState(initialValue?: T, validator?: RadioValidator): [RadioStateProps, RadioSetter]; /** * Create a CheckboxStateProps representing the initial state of a group of checkboxes based on the * specified initial values, and validated according to the specified validator */ export declare function checkboxGroupInitialState(values?: T[], validator?: CheckboxValidator): CheckboxStateProps; /** * Create a CheckboxStateProps representing a non-initial state of a group of checkboxes based on the * specified value, and validated according to the specified validator */ export declare function checkboxGroupUserInput({ values }: CheckboxStateProps, toggledValue: T, validator?: CheckboxValidator): CheckboxStateProps; /** * A react hook to aid in managing the state of a checkbox group. Takes an object mapping state names (i.e. checkbox * names) to the initial values for those checkboxes, along with an optional validator function, and returns * an object containing React state values and setters (as if from useState) for each checkbox along with isPristine and * validationErrors */ export declare function useCheckboxGroupState(initialValues: CheckboxInitValues, validator?: CheckboxValidator): CheckboxGroupHookReturnValue; /** * Create a TransferListStateProps representing the initial state, selectedItem value, * and validated according to the specified validator */ export declare function transferListInitialState(selectedItems: K, validator?: TransferListValidator): TransferListStateProps; /** * Create a TransferListStateProps representing a non-initial selectedItems value * and validated according to the specified validator */ export declare function transferListUserInput(newSelectedItems: K, validator?: TransferListValidator): TransferListStateProps; export declare function useTransferListState(initialValue: K, validator?: TransferListValidator): TransferListHookReturnValue; //# sourceMappingURL=stateHelpers.d.ts.map