UNPKG

ponchojs

Version:

Poncho

19 lines (18 loc) 863 B
import { FormState, FormikHelpers } from '../providers/FormProvider'; import { CommonInputProps } from '../components/form/Form'; export declare const useFormContext: () => FormState; export declare type InputVals = string | number | File | string[] | number[] | null | boolean | Date; declare type SetFormikFN = (helpers: FormikHelpers) => void; declare type SetPreparedFN = (props: CommonInputProps<InputVals>) => void; declare type SetStepFN = (id: string) => void; declare type NextPrevStepFN = () => void; declare type UseFormActions = { setFormik: SetFormikFN; setPrepared: SetPreparedFN; setStep: SetStepFN; nextStep: NextPrevStepFN; prevStep: NextPrevStepFN; }; export declare const useFormActions: () => UseFormActions; export declare const usePreparedInput: (props: CommonInputProps<InputVals>) => void; export {};