import type { GatewayModelDefinition, GatewayStreamRequest } from "@cline/shared"; import { type ApiHandler, type Message, type ProviderConfig } from "./types"; export declare function toGatewayRequestMessages(messages: Message[]): GatewayStreamRequest["messages"]; declare function buildGatewayModels(providerId: string, config: ProviderConfig): Omit[] | undefined; declare function buildGatewayConfig(config: ProviderConfig): { providerId: string; apiKey: string | undefined; baseUrl: string | undefined; headers: Record | undefined; timeoutMs: number | undefined; fetch: typeof fetch | undefined; defaultModelId: string; models: Omit[] | undefined; options: { clientId?: string; clientSecret?: string; tokenUrl?: string; resourceGroup?: string; deploymentId?: string; useOrchestrationMode?: boolean; api?: "orchestration" | "foundation-models"; defaultSettings?: Record; hostname?: string; port?: number; autoStartServer?: boolean; serverTimeout?: number; modelSettings?: Record; region: string | undefined; project: string | undefined; projectId: string | undefined; location: string | undefined; accessKeyId: string | undefined; secretAccessKey: string | undefined; sessionToken: string | undefined; authentication: "iam" | "profile" | "api-key" | "apikey" | undefined; profile: string | undefined; endpoint: string | undefined; customModelBaseId: string | undefined; apiVersion: string | undefined; useIdentity: boolean | undefined; mode: "external" | "internal" | undefined; usePromptCache: boolean | undefined; }; }; export declare function createGatewayApiHandler(config: ProviderConfig): ApiHandler; export declare function createGatewayApiHandlerAsync(config: ProviderConfig): Promise; /** * Internal test hook. Not part of the public API; production callers go * through `createGatewayApiHandler(Async)`. */ export declare const _testing: { buildGatewayConfig: typeof buildGatewayConfig; buildGatewayModels: typeof buildGatewayModels; }; export {}; //# sourceMappingURL=compat.d.ts.map