import type { GateContext, GateMatcher, GateVerdict } from './gate-types.js'; export declare const FREEZE_CHECK_EVENT = "freeze-check"; /** The known gate event types — for error messages and host discovery. */ export declare function knownGateEvents(): string[]; /** Every known gate with the matcher it installs under, in registry order. */ export declare function knownGates(): ReadonlyArray<{ event: string; matcher: GateMatcher; }>; /** * The PreToolUse matcher a gate installs under. Throws (fail-loud) on an * unknown event — never a default matcher. */ export declare function gateMatcher(event: string): GateMatcher; /** * Evaluate a gate. Pure with respect to state: reads deterministic sources, * never mutates. Throws (fail-loud) on an unknown event or an unparseable * source — it never default-allows. * * `context` (mmnto-ai/totem#2800) carries the per-evaluation seams a gate may * read: the enforcement tier for ITS OWN unevaluable class, the injected `gh` * runner, the environment, and the stderr sink. A gate that reads none of them * — `freeze-check`, `transport-shield` — is unaffected by what it carries, so * a tier can never soften them. */ export declare function evaluateGate(event: string, payload: unknown, totemDir: string, context?: GateContext): GateVerdict; //# sourceMappingURL=gate-engine.d.ts.map