import type { AIProfileBackend, AIProfileChoice, AIProvider, ModelsCatalogJson, PreferOpenRouterInput } from "./types.js"; import { buildOpenRouterModelId } from "./modelIdentity.js"; export type AIModelRoutingMode = "openrouter" | "direct"; export type { PreferOpenRouterInput }; export declare function parsePreferOpenRouter(value: unknown): boolean | undefined; /** Reads `PREFER_OPENROUTER` from process env (loading `.env` once when unset). */ export declare function readPreferOpenRouterFromEnv(): boolean | undefined; /** * Resolves whether to route via OpenRouter. * Explicit option wins, then `PREFER_OPENROUTER` env, then default `true`. */ export declare function resolvePreferOpenRouter(explicit?: PreferOpenRouterInput): boolean; export declare function resolvePreferOpenRouterFromOptions(options?: { preferOpenRouter?: PreferOpenRouterInput; }): boolean; export declare function isRemoteProfileChoice(choice: AIProfileChoice): boolean; export { buildOpenRouterModelId }; export interface AppliedModelRouting { provider: AIProvider; modelId: string; backend: AIProfileBackend; routing: AIModelRoutingMode; } export declare function applyModelRouting(choice: AIProfileChoice, backend: AIProfileBackend, preferOpenRouter: boolean, catalog?: ModelsCatalogJson): AppliedModelRouting; //# sourceMappingURL=resolveModelRouting.d.ts.map