import { SchemaBuilder } from './use-form-schema/form-schema-builder'; import { ProviderProps, UseFormProps, UseFormSlotProps, ValidateFnConfig } from './use-form.type'; import { ObjectType } from '../../common/type'; declare const useForm: (props: UseFormProps) => { getFormProps: (externalProps?: TOther) => UseFormSlotProps; Provider: (props: ProviderProps) => import("react/jsx-runtime").JSX.Element; ProviderProps: { formValue: import("./use-form.type").FormContextValueType; formConfig: import("./use-form.type").FormCommonConfig; formFunc: { setValue: (vals: { [key: string]: any; }, option?: { validate?: boolean; forceUpdate?: boolean; }) => void; getValue: (name?: string) => unknown; submit: (withValidate?: boolean, callback?: () => void) => void; reset: () => void; setError: (name: string, e: Error | undefined) => void; getErrors: () => ObjectType; clearValidate: (names?: string[]) => void; validateFields: (fields?: string | string[], config?: ValidateFnConfig) => Promise; validateFieldset: (name: string, config?: ValidateFnConfig) => void; insertError: (name: string, index: number, error?: Error) => void; spliceError: (name: string, index: number) => void; scrollToField: (name: string, scrollIntoViewOptions?: ScrollIntoViewOptions) => void; getFormSchema: () => import("./use-form-schema/form-schema-builder").SchemaProperty | undefined; }; formSchema: SchemaBuilder | null; }; formFunc: { setValue: (vals: { [key: string]: any; }, option?: { validate?: boolean; forceUpdate?: boolean; }) => void; getValue: (name?: string) => unknown; submit: (withValidate?: boolean, callback?: () => void) => void; reset: () => void; setError: (name: string, e: Error | undefined) => void; getErrors: () => ObjectType; clearValidate: (names?: string[]) => void; validateFields: (fields?: string | string[], config?: ValidateFnConfig) => Promise; validateFieldset: (name: string, config?: ValidateFnConfig) => void; insertError: (name: string, index: number, error?: Error) => void; spliceError: (name: string, index: number) => void; scrollToField: (name: string, scrollIntoViewOptions?: ScrollIntoViewOptions) => void; getFormSchema: () => import("./use-form-schema/form-schema-builder").SchemaProperty | undefined; }; }; export default useForm; //# sourceMappingURL=use-form.d.ts.map