import { Struct } from 'superstruct'; export type FormError = { key: string; error: string; }; export declare const createFormStore: (initalValue?: Record) => { store: Record; actions: { updateFormValue: ({ key, value }: { key: string; value: any; }) => void; clearKeys: (keys: string[]) => void; registerValidator: ({ key, validator }: { key: string; validator: Struct; }) => void; unRegisterValidator: (key: string) => void; validate: (keys?: string[]) => void; hasErrors: (keys: string[]) => boolean; getErrors: (keys: string[]) => FormError[]; reset: () => void; }; };