import type { ModelRuntime } from "@earendil-works/pi-coding-agent"; import type { SavedModel } from "./sessions.js"; import { UsageError } from "./usage-error.js"; /** Provider key env vars the CLI picks up from the environment. */ export declare const PROVIDER_KEYS: Array<{ provider: string; env: string; }>; export { UsageError }; /** * --model, then TESTEIYA_MODEL, then the model a resumed session was running. * CI often has no model configured, so TESTEIYA_MODEL is the channel there. The * desktop app's `~/.testeiya/config.json` is not consulted — a CI run must not * depend on a choice made in someone's GUI. Anything unresolvable throws, so a * run never falls through to a prompt. */ export declare function resolveModel(runtime: ModelRuntime, explicit?: string, saved?: SavedModel | null): import("@earendil-works/pi-ai").Model; /** * The decision model `decide` asks: --model, then TESTEIYA_DECISION_MODEL. * Never TESTEIYA_MODEL: that one is a chat model, and a chat model cannot answer. */ export declare function resolveDecisionModel(runtime: ModelRuntime, explicit?: string): import("@earendil-works/pi-ai").ClassifierModel; /** Hand the runtime whichever provider keys the environment resolved. */ export declare function applyEnvKeys(runtime: ModelRuntime): Promise;