import { CopilotClient, CopilotRequestHandler } from "@github/copilot-sdk"; import type { CopilotClientOptions, CopilotRequestContext } from "@github/copilot-sdk"; /** Only OpenAI-compatible BYOK clients need the CLI 1.0.83 workaround. */ export declare function needsByokRequestCompatibility(provider: unknown): boolean; /** * CLI 1.0.83 leaks CAPI's `snippy: { enabled: false }` into BYOK chat * completions for GPT-5.6 models. Azure rejects the request before inference. * Keep this shim at the model HTTP boundary, not in prompts or model aliases. * * Attach ONLY to a dedicated OpenAI/Azure BYOK client: requestHandler forwards * all model traffic through Node, including WebSockets. Never attach it to a * GitHub Copilot client (native transport/auth and CAPI parameters must remain * intact), or an Anthropic/WIF client. Remove once the provider compatibility * tests pass without it. No response buffering, retry, or parameter allowlist. */ export declare class ByokRequestCompatibility extends CopilotRequestHandler { protected sendRequest(request: Request, context: CopilotRequestContext): Promise; } /** Shared by durable sessions and the short-lived title/distillation clients. */ export declare function createCopilotClient(options: CopilotClientOptions, provider?: unknown): CopilotClient; export declare const BYOK_CLIENT_PREFIX = "byok-openai\0"; //# sourceMappingURL=copilot-client.d.ts.map