import { type ChangeEvent, type FocusEvent } from "react"; import { type Control } from "react-hook-form"; import type { FieldPath, FieldValues, UseFormReturn, UseFormProps } from "react-hook-form"; import type { FormInstance } from "./Form"; type FormEvent = ChangeEvent | FocusEvent; type EventHandler = (event: FormEvent) => void; export interface CustomUseFormProps extends UseFormProps { registerAsGlobal?: boolean; globalKey?: string; } export declare function createFormInstance(formReturn: UseFormReturn): FormInstance; export declare function useForm(options?: CustomUseFormProps): FormInstance; export declare const useFieldUpdate: (name: string) => { isInvalid: () => boolean; handle: (handler: EventHandler) => (event: FormEvent) => void; clear: () => void; }; export declare function useWatch(name: FieldPath, control?: Control): any; export declare function useWatch(name: FieldPath[], control?: Control): any[]; export declare function useFieldValue(name: FieldPath, control?: Control): any; export declare function useFieldsWatcher(names: FieldPath[], control?: Control): { values: any[]; allFilled: boolean; anyFilled: boolean; }; export {}; //# sourceMappingURL=hook.d.ts.map