/** * First-use provider loading with shared stream error, cancellation, and timeout handling. */ import type { Context, Model, OptionsForApi } from "../types.js"; import { AssistantMessageEventStream as EventStreamImpl } from "../utils/event-stream.js"; import type * as BedrockProvider from "./amazon-bedrock.js"; import type * as CursorProvider from "./cursor.js"; /** Install a host-supplied Bedrock transport in place of the built-in provider. */ export declare function setBedrockProviderModule(module: Pick): void; /** Install a host-supplied Cursor transport in place of the built-in provider. */ export declare function setCursorProviderModule(module: Pick): void; /** Stream Anthropic responses with provider-owned timeout handling. */ export declare const streamAnthropic: (model: Model<"anthropic-messages">, context: Context, options: OptionsForApi<"anthropic-messages">) => EventStreamImpl; /** Stream Azure Responses with provider-owned timeout handling. */ export declare const streamAzureOpenAIResponses: (model: Model<"azure-openai-responses">, context: Context, options: OptionsForApi<"azure-openai-responses">) => EventStreamImpl; /** Stream Google's direct API through the shared watchdog. */ export declare const streamGoogle: (model: Model<"google-generative-ai">, context: Context, options: OptionsForApi<"google-generative-ai">) => EventStreamImpl; /** Stream Cloud Code Assist while retaining its first-event watchdog. */ export declare const streamGoogleGeminiCli: (model: Model<"google-gemini-cli">, context: Context, options: OptionsForApi<"google-gemini-cli">) => EventStreamImpl; /** Stream the Vertex API through the shared watchdog. */ export declare const streamGoogleVertex: (model: Model<"google-vertex">, context: Context, options: OptionsForApi<"google-vertex">) => EventStreamImpl; /** * Stream Kiro with provider-owned timeout handling. Loaded on first use like * every other built-in provider in this table (see `createLazyProviderStream`): * a static import would pull the Kiro transport into every process's startup. */ export declare const streamKiro: (model: Model<"kiro-api">, context: Context, options: OptionsForApi<"kiro-api">) => EventStreamImpl; /** Stream Codex with provider-owned timeout handling. */ export declare const streamOpenAICodexResponses: (model: Model<"openai-codex-responses">, context: Context, options: OptionsForApi<"openai-codex-responses">) => EventStreamImpl; /** Stream Chat Completions with provider-owned timeout handling. */ export declare const streamOpenAICompletions: (model: Model<"openai-completions">, context: Context, options: OptionsForApi<"openai-completions">) => EventStreamImpl; /** Stream Responses with provider-owned timeout handling. */ export declare const streamOpenAIResponses: (model: Model<"openai-responses">, context: Context, options: OptionsForApi<"openai-responses">) => EventStreamImpl; /** Stream through the host Cursor transport when installed, otherwise the built-in transport. */ export declare const streamCursor: (model: Model<"cursor-agent">, context: Context, options: OptionsForApi<"cursor-agent">) => EventStreamImpl; /** Stream Devin through the shared watchdog. */ export declare const streamDevin: (model: Model<"devin-agent">, context: Context, options: OptionsForApi<"devin-agent">) => EventStreamImpl; /** Stream the Antigravity CLI (`agy acp`) through the shared watchdog. */ export declare const streamAntigravityCli: (model: Model<"antigravity-acp">, context: Context, options: OptionsForApi<"antigravity-acp">) => EventStreamImpl; /** Stream Apple's on-device Foundation Model through the shared watchdog. */ export declare const streamAppleFoundationModels: (model: Model<"apple-foundation-models">, context: Context, options: OptionsForApi<"apple-foundation-models">) => EventStreamImpl; /** Stream Ollama with OpenAI-compatible idle timeout precedence. */ export declare const streamOllama: (model: Model<"ollama-chat">, context: Context, options: OptionsForApi<"ollama-chat">) => EventStreamImpl; /** Stream through the host Bedrock transport when installed, otherwise the built-in transport. */ export declare const streamBedrock: (model: Model<"bedrock-converse-stream">, context: Context, options: OptionsForApi<"bedrock-converse-stream">) => EventStreamImpl;