export declare function mergeHeaders(input: RequestInfo | URL, init?: RequestInit): Headers; /** * API-key mode: we keep x-api-key untouched (SDK already populated it from * the `apiKey` option) and only *add* the identity headers Claude Code CLI * normally sends. */ export declare function setApiKeyHeaders(headers: Headers): Headers; export declare function resolveBaseUrl(): URL | null; export declare function isInsecure(): boolean; export declare function rewriteUrl(input: RequestInfo | URL): { input: RequestInfo | URL; url: URL | null; }; type AnyRecord = Record; export declare function isRecord(value: unknown): value is AnyRecord; export declare function prefixToolNamesInPlace(parsed: AnyRecord): void; /** * The Anthropic streaming response echoes tool names in SSE events. If we * prefixed outgoing names we must strip the prefix back out so opencode's * tool dispatcher can find the original tool definition. */ export declare function stripToolPrefix(text: string): string; export declare function rewriteRequestBody(body: string, sessionID: string): string; export declare function createStrippedStream(response: Response): Response; export {};