import type { MergedPermission } from './types'; /** * 将权限规则的 glob 模式编译为正则。 * 支持 * 通配符;非法模式(未闭合括号等)返回 null,调用方跳过该条并告警。 */ export declare function compilePermissionPattern(pattern: string): RegExp | null; export declare function checkPermission(perm: MergedPermission, file: string, operation: string): { allowed: boolean; matchedRule?: string; reason?: string; }; //# sourceMappingURL=checker.d.ts.map