/** * Built-in provider stream dispatch with shared error, cancellation, and timeout handling. */ import type { Context, Model, OptionsForApi } from "../types.js"; import { AssistantMessageEventStream as EventStreamImpl } from "../utils/event-stream.js"; import * as BedrockProvider from "./amazon-bedrock.js"; import * 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 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 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;