import { ReactElement, FocusEvent } from 'react'; import { ControllerFieldState, ControllerRenderProps, UseControllerProps, UseControllerReturn, UseFormStateReturn } from 'react-hook-form'; import type { EditorEvents } from '@tiptap/react'; import { Validator } from './validation'; export declare const useInput: (props: InputProps) => UseInputValue; export type InputProps = Omit & Partial & { alwaysOn?: any; defaultValue?: any; format?: (value: ValueType) => any; id?: string; isRequired?: boolean; label?: string | ReactElement | false; helperText?: string | ReactElement | false; name?: string; onBlur?: (...event: any[]) => void; onChange?: (...event: any[]) => void; parse?: (value: any) => ValueType; type?: string; resource?: string; source: string; validate?: Validator | Validator[]; readOnly?: boolean; disabled?: boolean; }; export type UseInputValue = { id: string; isRequired: boolean; field: Omit & { onBlur: (event?: FocusEvent | EditorEvents['blur']) => void; }; formState: UseFormStateReturn>; fieldState: ControllerFieldState; }; //# sourceMappingURL=useInput.d.ts.map