/** * The floor the free-tier gate enforces: `OpenCode 1.18.0 or newer is required * to use the free tier`. Anything older answers HTTP 426 `UpgradeRequired`. * This pin is only a fallback for a host with no installed OpenCode — the * version actually advertised is resolved from the installed CLI when one can * be found, so this constant is never the reason a request is refused. */ export declare const FALLBACK_OPENCODE_VERSION = "1.18.35"; /** * The four tool names the free-tier gate requires in every anonymous request * body. A request missing any one of them — or carrying an empty or absent * `tools` — is refused with HTTP 403 `FreeTierError`. The names are the ones * OpenCode itself always registers, so a host that already offers tools under * these names needs nothing injected. */ export declare const ZEN_FREE_TIER_TOOL_NAMES: readonly ["bash", "glob", "grep", "read"]; /** `OpenCode (…)` as the installed CLI reports it. */ export declare function parseOpenCodeVersion(stdout: string): string | undefined; /** * The User-Agent an anonymous Zen request advertises. * * Resolution order: `OPENCODE_UA` verbatim, then the installed OpenCode CLI's * version, then {@link FALLBACK_OPENCODE_VERSION}. The free-tier gate reads the * version out of this header and refuses anything below 1.18, so a host that * has OpenCode installed stands in for the version it actually has. */ export declare function experimentalOpenCodeUserAgent(): string; /** Test seam: forget the memoized User-Agent so the next call re-resolves it. */ export declare function resetExperimentalOpenCodeUserAgent(): void; /** * A session id in the exact descending shape OpenCode emits, which is the * shape the free-tier gate parses: `ses_`, 12 lowercase hex digits carrying * the inverted timestamp with its low 12 bits as `0xfff − counter`, then 14 * base62 characters. The counter is 1, well inside the gate's 0–63 window. */ export declare function experimentalOpenCodeSessionId(namzuSessionId: string): string; /** One OpenCode-shaped message id per outbound model request. */ export declare function experimentalOpenCodeRequestId(): string; //# sourceMappingURL=experimental-identity.d.ts.map