/** * Claude Code inference-fingerprint constants, kept in a leaf module so consumers * outside the provider (`registry/oauth/anthropic`, `usage/claude`) don't * import the heavy `providers/anthropic` module. * * That import edge was a live init cycle: `providers/anthropic` → `stream` → * `registry` → `registry/oauth/anthropic` → back into the still-initializing * provider module. */ /** * Pinned Claude Code CLI version: the offline fallback for {@link getClaudeCodeVersion}. * Bumped to the latest npm release by `bun run check-spoofed-versions --update`. */ export declare const DEFAULT_CLAUDE_CODE_VERSION = "2.1.280"; /** `@anthropic-ai/sdk` version bundled by the current Claude Code release. */ export declare const claudeCodeSdkVersion = "0.112.1"; /** * Claude Code CLI version represented on the Anthropic wire (User-Agent, billing * header): `PI_AI_CLAUDE_CODE_VERSION` → version adopted from a server rejection * (see {@link adoptRequiredClaudeCodeVersion}) → {@link DEFAULT_CLAUDE_CODE_VERSION}. */ export declare function getClaudeCodeVersion(): string; /** User-Agent emitted by Claude Code's CLI inference entrypoint. */ export declare function getClaudeCodeUserAgent(): string; /** * Adopts the minimum version named by an Anthropic `claude_code_version_too_old` * rejection for the rest of the process, so the pinned fallback going stale costs * one rejected request instead of a hard failure. * * Returns true only when the wire version actually increased — callers retry on * true, so a repeated rejection at the same version cannot loop. Always false * while `PI_AI_CLAUDE_CODE_VERSION` pins the version explicitly. */ export declare function adoptRequiredClaudeCodeVersion(error: unknown): boolean; /** Prefix used to isolate custom Anthropic OAuth tools from built-in tools. */ export declare const claudeToolPrefix: string; /** Identity block prepended by Claude Code's CLI runtime. */ export declare const claudeCodeSystemInstruction = "You are Claude Code, Anthropic's official CLI for Claude.";