/** * Hook I/O leaf — the pieces of the hook runtime that BOTH entries share: * * - `dist/hookSlim.js` (the slim hook entry installed into IDE hook configs) * - `dist/index.js hook` (the full CLI's hook command, and the daemon's * in-process evaluator) * * COLD-START CONTRACT: this module is on the slim entry's module graph, which * is loaded on EVERY IDE hook event. It may import Node built-ins ONLY — * every additional module here is bytes the customer's EDR re-scans per * docker command. `scripts/test-slim-hook.js` enforces the graph budget. */ export declare const HOOK_DEBUG_LOG: string; /** * Verbose diagnostics (FCD_HOOK_DEBUG=1) additionally log content previews * (raw payload + prompt text snippets). Default logging keeps operational * metadata only — user prompt content must never sit in a plaintext file on * a customer laptop unless support explicitly opts in. */ export declare const HOOK_DEBUG_VERBOSE: boolean; /** Append a diagnostic line so we can see exactly what the IDE invoked + the verdict. */ export declare function dbg(obj: Record): void; export declare function readStdin(): Promise; /** * kebab-case CLI flags -> the camelCase HookArgs shape. ONE mapping shared by * the full CLI entry (`index.ts` case 'hook') and the slim entry, so the * daemon's IPC evaluator always receives identical argument shapes no matter * which entry the IDE invoked. */ export declare function mapHookFlags(flags: Record): Record; /** * Minimal `--flag value` / `--flag=value` parser with the same semantics as * the full CLI's parseArgs, restricted to what a hook command line carries. * Positionals (the literal `hook` subcommand kept in installed commands for * the managed-entry repair marker) are ignored. */ export declare function parseHookFlags(argv: string[]): Record; /** * Absolute path of the slim hook entry that sits next to a given CLI script * (`dist/index.js` -> `dist/hookSlim.js`). Installers prefer the slim entry * when it exists; older installs (pre-slim dist) keep pointing at index.js. */ export declare function slimHookEntryPath(cliScriptPath: string): string | undefined;