export declare const HOOK_CONDITION_EVENTS: readonly ["PreToolUse", "PostToolUse", "PostToolUseFailure", "PermissionRequest", "PermissionDenied"];
export declare const HOOK_CONDITION_UNTESTED_REASONS: readonly ["not_a_tool_event", "condition_unreadable", "name_unjudged", "content_unjudged", "invalid_input"];
export interface HookConditionInput {
    readonly condition: string;
    readonly event: string;
    readonly toolName?: string;
    readonly toolInput?: Readonly<Record<string, unknown>>;
    /** The caller's statement that the call's tool is the engine's own catalog tool of that name — not a host tool mounted under the same name. Only `true` or absent; without it a condition with content is not judged. */
    readonly engineOwned?: true;
}
/**
 * Frozen verdict returned by {@link judgeHookCondition}:
 * - `"matched"` — the condition definitely matches this local hook call;
 * - `"not_matched"` — reserved; this version does not mint it;
 * - `"untested"` — the judge withholds a definite verdict, with a closed `reason` word and a fixed `detail` sentence.
 */
export type HookConditionVerdict = {
    readonly verdict: "matched";
} | {
    readonly verdict: "not_matched";
} | {
    readonly verdict: "untested";
    readonly reason: (typeof HOOK_CONDITION_UNTESTED_REASONS)[number];
    readonly detail: string;
};
/**
 * Judge whether a hook entry's `if` condition matches a local tool call.
 *
 * Both promises (a definite answer only where the reference would give the same, and no host code run for plain data) hold in a realm whose built-in objects are as loaded; the base-prototype check (R-J) catches a key added to, removed from, or reordered on `Object.prototype` or `Array.prototype` relative to load and returns `untested` with reason `invalid_input` before any other read (empty-condition and bare-name inputs included).
 * All structural validation — the outer record and, when `toolInput` is present for a named tool, its tool-specific shape — runs before any answer (empty-condition and bare-name matches included).
 * Definite `matched` verdicts are returned only for three classes: (1) empty condition `""`, (2) canonicalized equal engine-catalog non-`Monitor` tool names without content, and (3) a `Bash` condition with content (at most 1 000 characters) when the caller states `engineOwned: true`, `toolInput` is valid, and the plain-character command matches; every other case returns `untested` with a closed reason word (`not_matched` is reserved and not minted in this version).
 * For a `Bash` condition with content, an own `run_in_background` or `dangerouslyDisableSandbox` key on `toolInput` whose value passes the shape check (a boolean, or `undefined`) returns `untested` with reason `content_unjudged` — because whether the reference's input schema carries these keys depends on its configuration and with the key absent from the schema the call does not parse and the hook is skipped — whereas a value of another type (`null` included) returns `untested` with reason `invalid_input` during structural validation before that, and an absent key changes nothing.
 * On other optional members (`toolName`, `toolInput`, `engineOwned`, and optional `Bash` input fields other than `run_in_background` and `dangerouslyDisableSandbox` under a content condition), an own property whose value is `undefined` is treated as absent, whereas `command: undefined`, `null`, or any wrong-typed value returns `untested` with reason `invalid_input`.
 *
 * Never throws and runs no `RegExp` against input strings; every returned verdict is a pre-frozen object. Other built-in modifications (descriptor flags/enumerability, replaced values, changed prototype links, other built-in prototypes) and pre-load pollution are outside the contract (`docs/KNOWN-LIMITS.md` KL-4994-b).
 */
export declare function judgeHookCondition(input: unknown): HookConditionVerdict;
