import { z } from 'zod'; export declare enum AIProviderName { OPENAI = "openai", OPENROUTER = "openrouter", ANTHROPIC = "anthropic", AZURE = "azure", GOOGLE = "google", ACTIVEPIECES = "activepieces", CLOUDFLARE_GATEWAY = "cloudflare-gateway", CUSTOM = "custom", BEDROCK = "bedrock", MISTRAL = "mistral" } export declare enum AIProviderModelType { IMAGE = "image", TEXT = "text" } export declare const BaseAIProviderAuthConfig: z.ZodObject<{ apiKey: z.ZodString; }, z.core.$strip>; export type BaseAIProviderAuthConfig = z.infer; export declare const AnthropicProviderAuthConfig: z.ZodObject<{ apiKey: z.ZodString; }, z.core.$strip>; export type AnthropicProviderAuthConfig = z.infer; export declare const ActivePiecesProviderAuthConfig: z.ZodObject<{ apiKey: z.ZodString; apiKeyHash: z.ZodString; }, z.core.$strip>; export type ActivePiecesProviderAuthConfig = z.infer; export declare const OpenAICompatibleProviderAuthConfig: z.ZodObject<{ apiKey: z.ZodString; }, z.core.$strip>; export type OpenAICompatibleProviderAuthConfig = z.infer; export declare const CloudflareGatewayProviderAuthConfig: z.ZodObject<{ apiKey: z.ZodString; }, z.core.$strip>; export type CloudflareGatewayProviderAuthConfig = z.infer; export declare const AzureProviderAuthConfig: z.ZodObject<{ apiKey: z.ZodString; }, z.core.$strip>; export type AzureProviderAuthConfig = z.infer; export declare const GoogleProviderAuthConfig: z.ZodObject<{ apiKey: z.ZodString; }, z.core.$strip>; export type GoogleProviderAuthConfig = z.infer; export declare const OpenAIProviderAuthConfig: z.ZodObject<{ apiKey: z.ZodString; }, z.core.$strip>; export type OpenAIProviderAuthConfig = z.infer; export declare const OpenRouterProviderAuthConfig: z.ZodObject<{ apiKey: z.ZodString; }, z.core.$strip>; export type OpenRouterProviderAuthConfig = z.infer; export declare const BedrockProviderAuthConfig: z.ZodObject<{ accessKeyId: z.ZodString; secretAccessKey: z.ZodString; }, z.core.$strip>; export type BedrockProviderAuthConfig = z.infer; export declare const MistralProviderAuthConfig: z.ZodObject<{ apiKey: z.ZodString; }, z.core.$strip>; export type MistralProviderAuthConfig = z.infer; export declare const AnthropicProviderConfig: z.ZodObject<{}, z.core.$strip>; export type AnthropicProviderConfig = z.infer; export declare const ActivePiecesProviderConfig: z.ZodObject<{}, z.core.$strip>; export type ActivePiecesProviderConfig = z.infer; export declare const ProviderModelConfig: z.ZodObject<{ modelId: z.ZodString; modelName: z.ZodString; modelType: z.ZodEnum; }, z.core.$strip>; export type ProviderModelConfig = z.infer; export declare const OpenAICompatibleProviderConfig: z.ZodObject<{ apiKeyHeader: z.ZodString; baseUrl: z.ZodString; models: z.ZodArray; }, z.core.$strip>>; defaultHeaders: z.ZodOptional>; }, z.core.$strip>; export type OpenAICompatibleProviderConfig = z.infer; export declare const CloudflareGatewayProviderConfig: z.ZodObject<{ accountId: z.ZodString; gatewayId: z.ZodString; models: z.ZodArray; }, z.core.$strip>>; vertexProject: z.ZodOptional; vertexRegion: z.ZodOptional; }, z.core.$strip>; export type CloudflareGatewayProviderConfig = z.infer; export declare const DEFAULT_AZURE_API_VERSION = "2024-10-21"; export declare const AzureProviderConfig: z.ZodObject<{ resourceName: z.ZodString; apiVersion: z.ZodPipe, z.ZodOptional>; }, z.core.$strip>; export type AzureProviderConfig = z.infer; export declare const GoogleProviderConfig: z.ZodObject<{}, z.core.$strip>; export type GoogleProviderConfig = z.infer; export declare const OpenAIProviderConfig: z.ZodObject<{}, z.core.$strip>; export type OpenAIProviderConfig = z.infer; export declare const OpenRouterProviderConfig: z.ZodObject<{}, z.core.$strip>; export type OpenRouterProviderConfig = z.infer; export declare const BedrockProviderConfig: z.ZodObject<{ region: z.ZodString; }, z.core.$strip>; export type BedrockProviderConfig = z.infer; export declare const MistralProviderConfig: z.ZodObject<{}, z.core.$strip>; export type MistralProviderConfig = z.infer; export declare const AIProviderAuthConfig: z.ZodUnion, z.ZodObject<{ apiKey: z.ZodString; }, z.core.$strip>, z.ZodObject<{ apiKey: z.ZodString; }, z.core.$strip>, z.ZodObject<{ apiKey: z.ZodString; }, z.core.$strip>, z.ZodObject<{ apiKey: z.ZodString; }, z.core.$strip>, z.ZodObject<{ apiKey: z.ZodString; }, z.core.$strip>, z.ZodObject<{ apiKey: z.ZodString; }, z.core.$strip>, z.ZodObject<{ apiKey: z.ZodString; apiKeyHash: z.ZodString; }, z.core.$strip>, z.ZodObject<{ accessKeyId: z.ZodString; secretAccessKey: z.ZodString; }, z.core.$strip>, z.ZodObject<{ apiKey: z.ZodString; }, z.core.$strip>]>; export type AIProviderAuthConfig = z.infer; export declare const AIProviderConfig: z.ZodUnion; }, z.core.$strip>>; defaultHeaders: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ accountId: z.ZodString; gatewayId: z.ZodString; models: z.ZodArray; }, z.core.$strip>>; vertexProject: z.ZodOptional; vertexRegion: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ resourceName: z.ZodString; apiVersion: z.ZodPipe, z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ region: z.ZodString; }, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>]>; export type AIProviderConfig = z.infer; export declare const AIProvider: z.ZodIntersection, z.ZodString>; updated: z.ZodPipe, z.ZodString>; }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{ displayName: z.ZodString; provider: z.ZodLiteral; config: z.ZodObject<{}, z.core.$strip>; auth: z.ZodObject<{ apiKey: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ displayName: z.ZodString; provider: z.ZodLiteral; config: z.ZodObject<{}, z.core.$strip>; auth: z.ZodObject<{ apiKey: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ displayName: z.ZodString; provider: z.ZodLiteral; config: z.ZodObject<{}, z.core.$strip>; auth: z.ZodObject<{ apiKey: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ displayName: z.ZodString; provider: z.ZodLiteral; config: z.ZodObject<{ resourceName: z.ZodString; apiVersion: z.ZodPipe, z.ZodOptional>; }, z.core.$strip>; auth: z.ZodObject<{ apiKey: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ displayName: z.ZodString; provider: z.ZodLiteral; config: z.ZodObject<{}, z.core.$strip>; auth: z.ZodObject<{ apiKey: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ displayName: z.ZodString; provider: z.ZodLiteral; config: z.ZodObject<{ accountId: z.ZodString; gatewayId: z.ZodString; models: z.ZodArray; }, z.core.$strip>>; vertexProject: z.ZodOptional; vertexRegion: z.ZodOptional; }, z.core.$strip>; auth: z.ZodObject<{ apiKey: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ displayName: z.ZodString; provider: z.ZodLiteral; config: z.ZodObject<{ apiKeyHeader: z.ZodString; baseUrl: z.ZodString; models: z.ZodArray; }, z.core.$strip>>; defaultHeaders: z.ZodOptional>; }, z.core.$strip>; auth: z.ZodObject<{ apiKey: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ displayName: z.ZodString; provider: z.ZodLiteral; config: z.ZodObject<{}, z.core.$strip>; auth: z.ZodObject<{ apiKey: z.ZodString; apiKeyHash: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ displayName: z.ZodString; provider: z.ZodLiteral; config: z.ZodObject<{ region: z.ZodString; }, z.core.$strip>; auth: z.ZodObject<{ accessKeyId: z.ZodString; secretAccessKey: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ displayName: z.ZodString; provider: z.ZodLiteral; config: z.ZodObject<{}, z.core.$strip>; auth: z.ZodObject<{ apiKey: z.ZodString; }, z.core.$strip>; }, z.core.$strip>], "provider">>; export type AIProvider = z.infer; export declare const AIProviderWithoutSensitiveData: z.ZodObject<{ id: z.ZodString; name: z.ZodString; provider: z.ZodEnum; config: z.ZodUnion; }, z.core.$strip>>; defaultHeaders: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ accountId: z.ZodString; gatewayId: z.ZodString; models: z.ZodArray; }, z.core.$strip>>; vertexProject: z.ZodOptional; vertexRegion: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ resourceName: z.ZodString; apiVersion: z.ZodPipe, z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ region: z.ZodString; }, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>]>; enabledForChat: z.ZodBoolean; }, z.core.$strip>; export type AIProviderWithoutSensitiveData = z.infer; export declare const AIProviderModel: z.ZodObject<{ id: z.ZodString; name: z.ZodString; type: z.ZodEnum; }, z.core.$strip>; export type AIProviderModel = z.infer; export declare const CreateAIProviderRequest: z.ZodDiscriminatedUnion<[z.ZodObject<{ displayName: z.ZodString; provider: z.ZodLiteral; config: z.ZodObject<{}, z.core.$strip>; auth: z.ZodObject<{ apiKey: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ displayName: z.ZodString; provider: z.ZodLiteral; config: z.ZodObject<{}, z.core.$strip>; auth: z.ZodObject<{ apiKey: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ displayName: z.ZodString; provider: z.ZodLiteral; config: z.ZodObject<{}, z.core.$strip>; auth: z.ZodObject<{ apiKey: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ displayName: z.ZodString; provider: z.ZodLiteral; config: z.ZodObject<{ resourceName: z.ZodString; apiVersion: z.ZodPipe, z.ZodOptional>; }, z.core.$strip>; auth: z.ZodObject<{ apiKey: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ displayName: z.ZodString; provider: z.ZodLiteral; config: z.ZodObject<{}, z.core.$strip>; auth: z.ZodObject<{ apiKey: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ displayName: z.ZodString; provider: z.ZodLiteral; config: z.ZodObject<{ accountId: z.ZodString; gatewayId: z.ZodString; models: z.ZodArray; }, z.core.$strip>>; vertexProject: z.ZodOptional; vertexRegion: z.ZodOptional; }, z.core.$strip>; auth: z.ZodObject<{ apiKey: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ displayName: z.ZodString; provider: z.ZodLiteral; config: z.ZodObject<{ apiKeyHeader: z.ZodString; baseUrl: z.ZodString; models: z.ZodArray; }, z.core.$strip>>; defaultHeaders: z.ZodOptional>; }, z.core.$strip>; auth: z.ZodObject<{ apiKey: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ displayName: z.ZodString; provider: z.ZodLiteral; config: z.ZodObject<{}, z.core.$strip>; auth: z.ZodObject<{ apiKey: z.ZodString; apiKeyHash: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ displayName: z.ZodString; provider: z.ZodLiteral; config: z.ZodObject<{ region: z.ZodString; }, z.core.$strip>; auth: z.ZodObject<{ accessKeyId: z.ZodString; secretAccessKey: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ displayName: z.ZodString; provider: z.ZodLiteral; config: z.ZodObject<{}, z.core.$strip>; auth: z.ZodObject<{ apiKey: z.ZodString; }, z.core.$strip>; }, z.core.$strip>], "provider">; export type CreateAIProviderRequest = z.infer; export declare const UpdateAIProviderRequest: z.ZodObject<{ displayName: z.ZodString; config: z.ZodOptional; }, z.core.$strip>>; defaultHeaders: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ accountId: z.ZodString; gatewayId: z.ZodString; models: z.ZodArray; }, z.core.$strip>>; vertexProject: z.ZodOptional; vertexRegion: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ resourceName: z.ZodString; apiVersion: z.ZodPipe, z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ region: z.ZodString; }, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>]>>; auth: z.ZodOptional, z.ZodObject<{ apiKey: z.ZodString; }, z.core.$strip>, z.ZodObject<{ apiKey: z.ZodString; }, z.core.$strip>, z.ZodObject<{ apiKey: z.ZodString; }, z.core.$strip>, z.ZodObject<{ apiKey: z.ZodString; }, z.core.$strip>, z.ZodObject<{ apiKey: z.ZodString; }, z.core.$strip>, z.ZodObject<{ apiKey: z.ZodString; }, z.core.$strip>, z.ZodObject<{ apiKey: z.ZodString; apiKeyHash: z.ZodString; }, z.core.$strip>, z.ZodObject<{ accessKeyId: z.ZodString; secretAccessKey: z.ZodString; }, z.core.$strip>, z.ZodObject<{ apiKey: z.ZodString; }, z.core.$strip>]>>; enabledForChat: z.ZodOptional; }, z.core.$strip>; export type UpdateAIProviderRequest = z.infer; export declare const GetProviderConfigResponse: z.ZodObject<{ provider: z.ZodEnum; config: z.ZodUnion; }, z.core.$strip>>; defaultHeaders: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ accountId: z.ZodString; gatewayId: z.ZodString; models: z.ZodArray; }, z.core.$strip>>; vertexProject: z.ZodOptional; vertexRegion: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ resourceName: z.ZodString; apiVersion: z.ZodPipe, z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ region: z.ZodString; }, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>]>; auth: z.ZodUnion, z.ZodObject<{ apiKey: z.ZodString; }, z.core.$strip>, z.ZodObject<{ apiKey: z.ZodString; }, z.core.$strip>, z.ZodObject<{ apiKey: z.ZodString; }, z.core.$strip>, z.ZodObject<{ apiKey: z.ZodString; }, z.core.$strip>, z.ZodObject<{ apiKey: z.ZodString; }, z.core.$strip>, z.ZodObject<{ apiKey: z.ZodString; }, z.core.$strip>, z.ZodObject<{ apiKey: z.ZodString; apiKeyHash: z.ZodString; }, z.core.$strip>, z.ZodObject<{ accessKeyId: z.ZodString; secretAccessKey: z.ZodString; }, z.core.$strip>, z.ZodObject<{ apiKey: z.ZodString; }, z.core.$strip>]>; platformId: z.ZodString; }, z.core.$strip>; export type GetProviderConfigResponse = z.infer; export declare const AIErrorResponse: z.ZodObject<{ error: z.ZodObject<{ message: z.ZodString; type: z.ZodString; code: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; export type AIErrorResponse = z.infer; export declare const ALLOWED_CHAT_MODELS_BY_PROVIDER: Partial>; export declare function getEffectiveProviderAndModel({ provider, model, }: { provider: string | undefined; model: string | undefined; }): { provider: string | undefined; model: string | undefined; }; /** * Splits a Cloudflare Gateway model ID into provider and model, i.e. "google-vertex-ai/google/gemini-2.5-pro" -> { provider: "google-vertex-ai", model: "google/gemini-2.5-pro" }. * @param modelId - The model ID to split. * @returns An object containing the provider and model. */ export declare function splitCloudflareGatewayModelId(modelId: string): { provider: 'google-vertex-ai'; publisher: string; model: string; } | { provider: string; model: string; publisher: undefined; } | { provider: undefined; model: string; publisher: undefined; }; declare function getMaxContextTokens({ provider }: { provider: AIProviderName | undefined; }): number; export declare const ACTIVEPIECES_CHAT_TIERS: readonly [{ readonly id: "fast"; readonly label: "Fast"; readonly modelId: "anthropic/claude-haiku-4.5"; readonly thinkingBudget: 5000; }, { readonly id: "smart"; readonly label: "Expert"; readonly modelId: "anthropic/claude-sonnet-4.6"; readonly thinkingBudget: 10000; }, { readonly id: "premium"; readonly label: "Heavy"; readonly modelId: "anthropic/claude-opus-4.8"; readonly thinkingBudget: 20000; }]; export declare const DEFAULT_CHAT_TIER_ID: "smart"; export type ActivepiecesChatTier = typeof ACTIVEPIECES_CHAT_TIERS[number]; export declare const aiProviderUtils: { getMaxContextTokens: typeof getMaxContextTokens; }; export {}; //# sourceMappingURL=index.d.ts.map