import { ValidateTrigger } from './createValidateFactory';
import { Doc } from '../../core';
export type ValidationCommentMap = Record<string, Array<{
    field: string;
    fieldValue: any;
    message: string;
}>> | null;
export type ValidationRunMode = ValidateTrigger | 'all';
/** 移除布局中已不存在字段的批注（子表删行等场景） */
export declare function pruneStaleValidationComments(doc: Doc, map: ValidationCommentMap): ValidationCommentMap;
/** 更新校验批注面板 */
export declare function showValidationComments(doc: Doc, map: ValidationCommentMap): void;
/** 立即清理失效批注并刷新面板（子表删行等） */
export declare function pruneValidationComments(doc: Doc): void;
export declare function hasValidationComments(doc: Doc | null | undefined): boolean;
/** 按运行时 valuePath 在布局树中查找对应 widget 节点（子表每行 path 唯一） */
export declare function findLayoutNodeByValuePath(doc: Doc, runtimeValuePath: string): any;
/** 校验批注连线坐标：优先按 valuePath 存取，兼容旧版 modelId */
export declare function getValidationCommentPoints(widgetMeta: any, runtimeValuePath: string, modelId?: string): any;
export declare function listWidgetValuePaths(doc: Doc): string[];
/** 请求全量校验（编辑时按 trigger 过滤规则；按钮提交用 mode=all） */
export declare function requestFullValidation(doc: Doc, options?: {
    immediate?: boolean;
    trigger?: ValidationRunMode;
}): void;
export declare function disposeDocValidationScheduler(doc: Doc): void;
/** 提交校验：执行全部规则（含必填 manual） */
export declare const validateAllFields: (doc: Doc) => Promise<any>;
