import type { Ref } from 'vue';
import type { Props } from '../type';
export declare const useValidator: (props: Props, tableConfig: Ref, tableData: Ref) => {
    errorFieldList: Ref<{
        $uuidKey: any;
        fields: any;
    }[], Record<"$uuidKey" | "fields", any>[] | {
        $uuidKey: any;
        fields: any;
    }[]>;
    errorModelZIndex: Ref<number, number>;
    setRules: () => void;
    setValidator: () => void;
    validateSingleField: (row: any, rowIndex: number, prop: string, callback?: (valid: boolean) => void) => void;
    handleError: (row: any, rowIndex: number, config: any) => Record<"error" | "message", any>;
    removeErrorByRowKey: (id: string | string[] | number | number[]) => void;
    validateByRowKey: (id: string | string[] | number | number[], callback?: (result: any) => void) => void;
    validateAll: (callback?: (valid: boolean, errFiedList: any[]) => void) => void;
    deactivateAll: () => void;
    clearValidate: () => void;
    changeRules: (key: string, callback?: (rule: any, checkFn: any) => void) => void;
    removeCellError: (row: any, prop?: string) => void;
};
