import { type ValidationRule } from './useValidation'; export interface FormChildProps { modelValue: any; /** Label of the control */ label?: string; /** Label mark that will be put on the right of label */ labelMark?: 'required' | 'optional' | 'none'; /** If specified, will add an info icon beside the label */ labelInfo?: string; /** Specify if control is disabled */ disabled?: boolean; /** Specify if control is focused */ focused?: boolean; /** * Specify the validation rules of the control * @example * // Value is required * :rules="[(val) => !!val || 'This field is required']" * */ rules?: ValidationRule[]; /** Specify the helper text of the control */ helperText?: string; /** Specify the helper state of the control */ helperState?: 'success' | 'warning' | 'error' | 'none'; } export declare function useFormChild(props: FormChildProps, defaultValue?: any, resetCallback?: (() => any) | null, /** respond to FmForm's request to respond on a specific form child's error state * might be useful to scroll to the form child when it's invalid */ blameHandler?: (() => void) | null): { validate: () => string[]; resetValidation: () => void; errorMessages: import("vue").Ref; resetValue: (cb?: (() => any) | null) => void; isPristine: import("vue").Ref; };