/** * Optional native-tok-v1 WAF admission for gsk-key requests (gen-spark#72197). * * On by default for the official Genspark HTTPS hosts only; GSK_NATIVE_WAF=0 * turns it off, and then the CLI makes zero bootstrap requests. Custom base * URLs never reach the issuer. The pass is edge admission only — origin still * verifies the key on every call — and it binds the exact `X-Api-Key` value * and host the request will carry. Any bootstrap failure (old backend 404, 503, network, * malformed answer) falls back to sending the request exactly as before. * * Each `gsk` call is a short process, so passes and failures also live in a * private 0600 file (keyed by origin, family and the key's sha256 — never the * key) and are shared by consecutive invocations within the same TTLs. */ export declare const TOKEN_PASS_HEADER = "X-Genspark-Token-Pass"; export declare function nativeWafEnabled(env?: NodeJS.ProcessEnv): boolean; /** * Headers to add to one request: `{X-Genspark-Token-Pass}` when enabled and a * pass is available, else `{}`. Only gsk keys sent to an official host on an * admitted family are eligible; per-turn `dtk-` credentials, custom base URLs * and other paths are left alone. */ export declare function tokenPassHeaders(baseUrl: string, path: string, apiKey: string, env?: NodeJS.ProcessEnv, now?: () => number): Promise>; /** Test seam: forget cached passes and failures, in memory and on disk. */ export declare function resetTokenPassCache(): void; //# sourceMappingURL=native-waf.d.ts.map