export type RuleContext = { field: string; data: Record; }; export type RuleFunction = (value: any, ctx: RuleContext, ...args: string[]) => boolean | Promise; export declare function validate(data: Record, rules: Record): Promise<{ passed: boolean; errors: Record; }>;