/** * First-match rule evaluation over collected evidence. Rules are ANDed across * dimensions and ORed inside each; a rule with no evidence dimension never * matches. Load or evaluation failures produce a fail-closed decision instead * of throwing at tool-call time. * @module dsh-sensitive-guard/policy/evaluator */ import type { GuardConfig } from '../config.js'; import type { PolicyEngine } from '../contracts.js'; import { type PolicyEvidence } from './evidence.js'; import type { CompiledRule } from './types.js'; /** * True when one compiled rule matches the evidence. `match.when.platform` is a * precondition, not evidence: a rule that only restricts platforms still never * matches on its own. */ export declare function ruleMatches(rule: CompiledRule, evidence: PolicyEvidence): boolean; export interface PolicyEngineOptions { config: GuardConfig; platform?: NodeJS.Platform; } /** * Build the policy engine. Rules load lazily per `input.cwd`; a load failure is * reported as the configured fail-closed decision and never allows the call. */ export declare function createPolicyEngine(options: PolicyEngineOptions): PolicyEngine; //# sourceMappingURL=evaluator.d.ts.map