export type HookIo = { readStdin: () => Promise; stdout: { write(text: string): unknown; }; stderr: { write(text: string): unknown; }; env: NodeJS.ProcessEnv; cwd: string; }; /** * `vouchington hook --harness --policy `. Pre-tool-use fails closed (exit 2) when * its policy cannot load, because the gates it enforces are a security boundary; post-tool-use is * advisory and always exits 0. Bad arguments exit 2 before anything is read. */ export declare function runHook(args: readonly string[], io: HookIo): Promise;