import { r as KlawConfig } from "./types.klaw-xKUw_Rz7.js"; import { r as ThinkLevel } from "./thinking.shared-B0i5nFYk.js"; import { b as ResolvedProviderAuth } from "./types-core-BH2BbD0A.js"; import { t as resolveModelAsync } from "./model-CgJ756y-.js"; import * as _$_earendil_works_pi_ai0 from "@earendil-works/pi-ai"; import { Api, Model, ThinkingLevel, completeSimple } from "@earendil-works/pi-ai"; //#region src/agents/simple-completion-runtime.d.ts type AllowedMissingApiKeyMode = ResolvedProviderAuth["mode"]; type SimpleCompletionModelOptions = { maxTokens?: number; temperature?: number; reasoning?: ThinkLevel | ThinkingLevel; signal?: AbortSignal; }; type PreparedSimpleCompletionModel = { model: Model; auth: ResolvedProviderAuth; } | { error: string; auth?: ResolvedProviderAuth; }; type AgentSimpleCompletionSelection = { provider: string; modelId: string; /** Provider used for auth/transport when runtime policy redirects the logical model ref. */ runtimeProvider?: string; profileId?: string; agentDir: string; }; type PreparedSimpleCompletionModelForAgent = { selection: AgentSimpleCompletionSelection; model: Model; auth: ResolvedProviderAuth; } | { error: string; selection?: AgentSimpleCompletionSelection; auth?: ResolvedProviderAuth; }; declare function resolveSimpleCompletionSelectionForAgent(params: { cfg: KlawConfig; agentId: string; modelRef?: string; }): AgentSimpleCompletionSelection | null; declare function prepareSimpleCompletionModel(params: { cfg: KlawConfig | undefined; provider: string; modelId: string; agentDir?: string; profileId?: string; preferredProfile?: string; allowMissingApiKeyModes?: ReadonlyArray; allowBundledStaticCatalogFallback?: boolean; skipPiDiscovery?: boolean; modelResolver?: typeof resolveModelAsync; }): Promise; declare function prepareSimpleCompletionModelForAgent(params: { cfg: KlawConfig; agentId: string; modelRef?: string; preferredProfile?: string; allowMissingApiKeyModes?: ReadonlyArray; allowBundledStaticCatalogFallback?: boolean; skipPiDiscovery?: boolean; modelResolver?: typeof resolveModelAsync; }): Promise; declare function completeWithPreparedSimpleCompletionModel(params: { model: Model; auth: ResolvedProviderAuth; context: Parameters[1]; cfg?: KlawConfig; options?: SimpleCompletionModelOptions; }): Promise<_$_earendil_works_pi_ai0.AssistantMessage>; //#endregion export { completeWithPreparedSimpleCompletionModel as a, resolveSimpleCompletionSelectionForAgent as c, SimpleCompletionModelOptions as i, PreparedSimpleCompletionModel as n, prepareSimpleCompletionModel as o, PreparedSimpleCompletionModelForAgent as r, prepareSimpleCompletionModelForAgent as s, AgentSimpleCompletionSelection as t };