import { D as DurableBackend, E as EdgeObserver } from './types-BR3Gkbpu.js'; import { b as McpServerConfig, S as SessionEventsFactory, W as WebhookProvider, a as StreamingProvider } from './types-DWYKzKYF.js'; import { V as VaultStore } from './vault.interface-BZt4wlVo.js'; declare function mapError(error: unknown, provider: string): Error; type OpenAIDirectConfig = { apiKey: string; awsRegion?: never; awsBedrockApiKey?: never; awsCredentials?: never; }; type OpenAIBedrockApiKeyConfig = { awsRegion: string; awsBedrockApiKey: string; apiKey?: never; awsCredentials?: never; }; type OpenAIBedrockSigV4Config = { awsRegion: string; awsCredentials: { accessKeyId: string; secretAccessKey: string; sessionToken?: string; }; apiKey?: never; awsBedrockApiKey?: never; }; type OpenAIBaseConfig = { model?: string; promptId?: string; instructions?: string; mcpServers?: McpServerConfig[]; vaultStore?: VaultStore; onSessionEvents?: SessionEventsFactory; durable?: DurableBackend; }; type OpenAIProviderConfig = OpenAIBaseConfig & (OpenAIDirectConfig | OpenAIBedrockApiKeyConfig | OpenAIBedrockSigV4Config); declare function createOpenAIProvider(config: OpenAIProviderConfig & { durable: EdgeObserver; }): WebhookProvider; declare function createOpenAIProvider(config: OpenAIProviderConfig): StreamingProvider; export { type OpenAIProviderConfig as O, createOpenAIProvider as c, mapError as m };