import { CompileSchemaConfig } from '../types/SchemaTypes'; import { SchemaError } from '../types/types'; import { MessageType } from '../utils/messages'; export type RuleMethod = (value: Value, form: Final) => SchemaError[] | false; export type ValidationContext = { context: { errors: SchemaError[]; onlyOnTouch: string[]; onlyOnTouchErrors: Record; promises: Array>; }; form: T; parent: any; path: string; }; export type RuleSrcCodeConfig = Pick, 'context'>; export type BaseRuleConfig any = RuleMethod> = { method: Method; type: Type; message?: string | ((messages: MessageType) => string); }; export declare function getError(path: string, error: string): SchemaError;