import { ComputedRef, InjectionKey } from 'vue';
import { ColProps } from '../grid';
import { RequiredMark } from './Form';
import { FieldExpose, ValidateStatus } from './FormItem';
import { FormLabelAlign, Rule, ValidateMessages } from './interface';
export interface FormContextProps {
    model?: ComputedRef<any>;
    vertical: ComputedRef<boolean>;
    name?: ComputedRef<string>;
    colon?: ComputedRef<boolean>;
    labelAlign?: ComputedRef<FormLabelAlign>;
    labelWrap?: ComputedRef<boolean>;
    labelCol?: ComputedRef<ColProps>;
    wrapperCol?: ComputedRef<ColProps>;
    requiredMark?: ComputedRef<RequiredMark>;
    addField: (eventKey: string, field: FieldExpose) => void;
    removeField: (eventKey: string) => void;
    validateTrigger?: ComputedRef<string | string[]>;
    rules?: ComputedRef<{
        [k: string]: Rule[] | Rule;
    }>;
    onValidate: (name: string | number | Array<string | number>, status: boolean, errors: string[] | null) => void;
    validateMessages: ComputedRef<ValidateMessages>;
}
export declare const FormContextKey: InjectionKey<FormContextProps>;
export declare const useProvideForm: (state: FormContextProps) => void;
export declare const useInjectForm: () => FormContextProps;
/** Used for ErrorList only */
export interface FormItemPrefixContextProps {
    prefixCls: ComputedRef<string>;
    status?: ComputedRef<ValidateStatus>;
}
export declare const FormItemPrefixContextKey: InjectionKey<FormItemPrefixContextProps>;
export declare const useProvideFormItemPrefix: (state: FormItemPrefixContextProps) => void;
export declare const useInjectFormItemPrefix: () => FormItemPrefixContextProps;
