import { icon, register, control, rich_text, flag, class_name } from '../types';
import { WithAny, WithDefaultValues, WithLabel, WithOptions, WithTranslatable } from '../withs';
export declare function useField({ name, className, required, half, threeOf5, twoOf5, prepend, prependIcon, append, appendIcon, kind, disabled, helper, type, placeholder, errors, defaultValue, defaultValues, options, label, labelFormat, labelClassName, helperClassName, errorClassName, center, rounded, register, control, field, variant, classes, valueAs, convertValue, deps, inputProps, fieldsetProps, subName, maxLength, minLength, max, min, nohelper, nolabel, noplaceholder, pattern, validators, translatable, ...extra }: field_def_params, defaults?: {
    name?: string;
    kind?: string;
}): {
    control: any;
    className?: string | undefined;
    name: string;
    label?: any;
    labelFormat?: any;
    labelClassName?: string | undefined;
    errorClassName?: string | undefined;
    helperClassName?: string | undefined;
    placeholder?: any;
    error: any;
    required?: boolean | undefined;
    helper?: any;
    options?: any;
    disabled?: boolean | undefined;
    defaultValue?: any;
    kind?: string | undefined;
    register: Function;
    variant?: any;
    extra?: any;
    type?: any;
    getUploadParams?: Function | undefined;
    prepend?: any;
    append?: any;
    classes?: any;
    inputProps?: Function | undefined;
    fieldsetProps?: Function | undefined;
    center?: boolean | undefined;
    rounded?: boolean | undefined;
    translatable?: string | boolean | undefined;
};
export interface field_def_params extends WithLabel, WithAny, WithOptions, WithDefaultValues, WithTranslatable {
    center?: flag;
    rounded?: flag;
    nolabel?: flag;
    nohelper?: flag;
    noplaceholder?: flag;
    name?: string;
    subName?: string;
    type?: string;
    prepend?: rich_text;
    prependIcon?: icon;
    append?: rich_text;
    appendIcon?: icon;
    required?: boolean;
    disabled?: boolean;
    helper?: rich_text;
    defaultValue?: any;
    errors?: {
        [key: string]: any;
    };
    placeholder?: rich_text;
    register?: register;
    control?: control;
    field?: boolean;
    classes?: any;
    labelClassName?: class_name;
    errorClassName?: class_name;
    helperClassName?: class_name;
    labelFormat?: any;
    valueAs?: 'string' | 'number' | 'date' | 'boolean' | ((value: any) => any);
    convertValue?: Function;
    deps?: string | string[];
    inputProps?: Function;
    fieldsetProps?: Function;
    maxLength?: number | {
        value: number;
        message: string;
    };
    minLength?: number | {
        value: number;
        message: string;
    };
    max?: number | {
        value: number;
        message: string;
    };
    min?: number | {
        value: number;
        message: string;
    };
    pattern?: string | RegExp | {
        value: string | RegExp;
        message: string;
    };
}
export default useField;
//# sourceMappingURL=useField.d.ts.map