import type { ModelReasoningCapabilities } from "@velum-labs/routekit-contracts"; import { z } from "zod"; export type SourceId = string; export type ProviderId = SourceId; export type ApiProviderId = SourceId; export type SubscriptionProviderId = SourceId; export declare const sourceIdSchema: z.ZodString; export declare const modelPolicySchema: z.ZodObject<{ allow: z.ZodOptional>; deny: z.ZodOptional>; }, z.core.$strict>; export declare const providerPolicySchema: z.ZodObject<{ strategy: z.ZodDefault>; switchThreshold: z.ZodDefault; probeIntervalMs: z.ZodOptional; fallbackCooldownSeconds: z.ZodOptional; }, z.core.$strict>; export declare const reasoningCapabilityOverrideSchema: z.ZodType>; /** Default small LM used by `model: "auto"` request classification. */ export declare const DEFAULT_CLASSIFIER_MODEL = "openai/gpt-5.6-luna"; export declare const DEFAULT_COMPOSITIONAL_ROUTING_UNKNOWN_WEIGHT = 0.25; export declare const routingObjectivePolicySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"highest-quality">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"lowest-cost">; minimumQuality: z.ZodNumber; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"lowest-latency">; minimumQuality: z.ZodNumber; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"balanced">; minimumQuality: z.ZodNumber; weights: z.ZodObject<{ quality: z.ZodNumber; cost: z.ZodNumber; latency: z.ZodNumber; }, z.core.$strict>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"pareto">; minimumQuality: z.ZodNumber; preference: z.ZodEnum<{ quality: "quality"; cost: "cost"; latency: "latency"; }>; }, z.core.$strict>], "kind">; export declare const compositionalRoutingConfigSchema: z.ZodObject<{ maximumUnknownWeight: z.ZodDefault; objective: z.ZodDefault; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"lowest-cost">; minimumQuality: z.ZodNumber; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"lowest-latency">; minimumQuality: z.ZodNumber; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"balanced">; minimumQuality: z.ZodNumber; weights: z.ZodObject<{ quality: z.ZodNumber; cost: z.ZodNumber; latency: z.ZodNumber; }, z.core.$strict>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"pareto">; minimumQuality: z.ZodNumber; preference: z.ZodEnum<{ quality: "quality"; cost: "cost"; latency: "latency"; }>; }, z.core.$strict>], "kind">>; minimumDimensionQuality: z.ZodOptional>; maximumFailureRate: z.ZodOptional; }, z.core.$strict>; export declare const DEFAULT_LEADERBOARD_LIVE_LIMIT = 1000; export declare const DEFAULT_LEADERBOARD_LIVE_TTL_HOURS = 24; export declare const DEFAULT_LEADERBOARD_DURABLE_RETENTION_DAYS = 14; export declare const leaderboardConfigSchema: z.ZodObject<{ liveLimit: z.ZodDefault; liveTtlHours: z.ZodDefault; durable: z.ZodDefault; durableRetentionDays: z.ZodDefault; }, z.core.$strict>; export declare const sourceAuthSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"env-bearer">; env: z.ZodString; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"env-header">; env: z.ZodString; header: z.ZodString; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"aws-sdk">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"adc">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"oauth-file">; path: z.ZodOptional; }, z.core.$strict>], "kind">; export declare const sourceConfigSchema: z.ZodPipe; env: z.ZodString; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"env-header">; env: z.ZodString; header: z.ZodString; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"aws-sdk">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"adc">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"oauth-file">; path: z.ZodOptional; }, z.core.$strict>], "kind">>; baseUrl: z.ZodOptional; options: z.ZodOptional>; pool: z.ZodOptional, z.ZodObject<{ strategy: z.ZodDefault>; switchThreshold: z.ZodDefault; probeIntervalMs: z.ZodOptional; fallbackCooldownSeconds: z.ZodOptional; }, z.core.$strict>]>>; strategy: z.ZodOptional>; switchThreshold: z.ZodOptional; probeIntervalMs: z.ZodOptional; fallbackCooldownSeconds: z.ZodOptional; }, z.core.$strict>, z.ZodTransform<{ pool?: "sticky" | "round_robin" | "capacity_weighted" | { strategy: "sticky" | "round_robin" | "capacity_weighted"; switchThreshold: number; probeIntervalMs?: number | undefined; fallbackCooldownSeconds?: number | undefined; } | undefined; use: string; auth?: { kind: "env-bearer"; env: string; } | { kind: "env-header"; env: string; header: string; } | { kind: "aws-sdk"; } | { kind: "adc"; } | { kind: "oauth-file"; path?: string | undefined; } | undefined; baseUrl?: string | undefined; options?: Record | undefined; }, { use: string; auth?: { kind: "env-bearer"; env: string; } | { kind: "env-header"; env: string; header: string; } | { kind: "aws-sdk"; } | { kind: "adc"; } | { kind: "oauth-file"; path?: string | undefined; } | undefined; baseUrl?: string | undefined; options?: Record | undefined; pool?: "sticky" | "round_robin" | "capacity_weighted" | { strategy: "sticky" | "round_robin" | "capacity_weighted"; switchThreshold: number; probeIntervalMs?: number | undefined; fallbackCooldownSeconds?: number | undefined; } | undefined; strategy?: "sticky" | "round_robin" | "capacity_weighted" | undefined; switchThreshold?: number | undefined; probeIntervalMs?: number | undefined; fallbackCooldownSeconds?: number | undefined; }>>; export declare const routerConfigSchema: z.ZodPipe; env: z.ZodString; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"env-header">; env: z.ZodString; header: z.ZodString; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"aws-sdk">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"adc">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"oauth-file">; path: z.ZodOptional; }, z.core.$strict>], "kind">>; baseUrl: z.ZodOptional; options: z.ZodOptional>; pool: z.ZodOptional, z.ZodObject<{ strategy: z.ZodDefault>; switchThreshold: z.ZodDefault; probeIntervalMs: z.ZodOptional; fallbackCooldownSeconds: z.ZodOptional; }, z.core.$strict>]>>; strategy: z.ZodOptional>; switchThreshold: z.ZodOptional; probeIntervalMs: z.ZodOptional; fallbackCooldownSeconds: z.ZodOptional; }, z.core.$strict>, z.ZodTransform<{ pool?: "sticky" | "round_robin" | "capacity_weighted" | { strategy: "sticky" | "round_robin" | "capacity_weighted"; switchThreshold: number; probeIntervalMs?: number | undefined; fallbackCooldownSeconds?: number | undefined; } | undefined; use: string; auth?: { kind: "env-bearer"; env: string; } | { kind: "env-header"; env: string; header: string; } | { kind: "aws-sdk"; } | { kind: "adc"; } | { kind: "oauth-file"; path?: string | undefined; } | undefined; baseUrl?: string | undefined; options?: Record | undefined; }, { use: string; auth?: { kind: "env-bearer"; env: string; } | { kind: "env-header"; env: string; header: string; } | { kind: "aws-sdk"; } | { kind: "adc"; } | { kind: "oauth-file"; path?: string | undefined; } | undefined; baseUrl?: string | undefined; options?: Record | undefined; pool?: "sticky" | "round_robin" | "capacity_weighted" | { strategy: "sticky" | "round_robin" | "capacity_weighted"; switchThreshold: number; probeIntervalMs?: number | undefined; fallbackCooldownSeconds?: number | undefined; } | undefined; strategy?: "sticky" | "round_robin" | "capacity_weighted" | undefined; switchThreshold?: number | undefined; probeIntervalMs?: number | undefined; fallbackCooldownSeconds?: number | undefined; }>>>; defaultModel: z.ZodOptional; classifierModel: z.ZodOptional; compositionalRouting: z.ZodOptional; objective: z.ZodDefault; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"lowest-cost">; minimumQuality: z.ZodNumber; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"lowest-latency">; minimumQuality: z.ZodNumber; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"balanced">; minimumQuality: z.ZodNumber; weights: z.ZodObject<{ quality: z.ZodNumber; cost: z.ZodNumber; latency: z.ZodNumber; }, z.core.$strict>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"pareto">; minimumQuality: z.ZodNumber; preference: z.ZodEnum<{ quality: "quality"; cost: "cost"; latency: "latency"; }>; }, z.core.$strict>], "kind">>; minimumDimensionQuality: z.ZodOptional>; maximumFailureRate: z.ZodOptional; }, z.core.$strict>>; modelPolicy: z.ZodOptional>; deny: z.ZodOptional>; }, z.core.$strict>>; modelAliases: z.ZodOptional>; reasoningCapabilities: z.ZodOptional, unknown, z.core.$ZodTypeInternals, unknown>>>>; leaderboard: z.ZodOptional; liveTtlHours: z.ZodDefault; durable: z.ZodDefault; durableRetentionDays: z.ZodDefault; }, z.core.$strict>>; }, z.core.$strict>>, z.ZodTransform<{ sources: Record | undefined; }>; defaultModel?: string | undefined; classifierModel?: string | undefined; compositionalRouting?: { maximumUnknownWeight: number; objective: { kind: "highest-quality"; } | { kind: "lowest-cost"; minimumQuality: number; } | { kind: "lowest-latency"; minimumQuality: number; } | { kind: "balanced"; minimumQuality: number; weights: { quality: number; cost: number; latency: number; }; } | { kind: "pareto"; minimumQuality: number; preference: "quality" | "cost" | "latency"; }; minimumDimensionQuality?: Record | undefined; maximumFailureRate?: number | undefined; } | undefined; modelPolicy?: { allow?: string[] | undefined; deny?: string[] | undefined; } | undefined; modelAliases?: Record | undefined; reasoningCapabilities?: Record> | undefined; leaderboard?: { liveLimit: number; liveTtlHours: number; durable: boolean; durableRetentionDays: number; } | undefined; } & { readonly providers: Record; }, { sources: Record | undefined; }>; defaultModel?: string | undefined; classifierModel?: string | undefined; compositionalRouting?: { maximumUnknownWeight: number; objective: { kind: "highest-quality"; } | { kind: "lowest-cost"; minimumQuality: number; } | { kind: "lowest-latency"; minimumQuality: number; } | { kind: "balanced"; minimumQuality: number; weights: { quality: number; cost: number; latency: number; }; } | { kind: "pareto"; minimumQuality: number; preference: "quality" | "cost" | "latency"; }; minimumDimensionQuality?: Record | undefined; maximumFailureRate?: number | undefined; } | undefined; modelPolicy?: { allow?: string[] | undefined; deny?: string[] | undefined; } | undefined; modelAliases?: Record | undefined; reasoningCapabilities?: Record> | undefined; leaderboard?: { liveLimit: number; liveTtlHours: number; durable: boolean; durableRetentionDays: number; } | undefined; }>>; export type ModelPolicy = z.infer; export type ProviderPolicy = z.infer; export type SourceAuth = z.infer; export type SourceConfig = z.infer; export type RouterConfig = z.infer; export type LeaderboardConfig = z.infer; export type RoutingObjectivePolicyConfig = z.infer; export type CompositionalRoutingConfig = z.infer; /** Explicit source-instance ids in declaration order. */ export declare function configuredSourceIds(config: RouterConfig): SourceId[]; export declare const configuredProviderIds: typeof configuredSourceIds; export declare function resolveLeaderboardConfig(config: Pick): LeaderboardConfig; export declare function resolveCompositionalRoutingConfig(config: Pick): CompositionalRoutingConfig; export declare function splitNamespacedModel(model: string): { provider: SourceId; model: string; }; export declare function parseRouterConfig(value: unknown): RouterConfig;