import { planBudget, type BuiltInProfileName, type Profile, type RunConfig } from "@deepthonk/core"; import { defaultConfigPath, defaultEnvPath, loadDeepThonkEnv, type ExternalAlgorithmOverrides, type ExternalConfigFile, type ProviderConfig } from "@deepthonk/providers"; import { type ProviderReplay } from "./providerReplay.js"; export interface ResolvedCliConfig { runConfig: RunConfig; providerConfig: ProviderConfig; providerReplay: ProviderReplay; plan: ReturnType; } export interface ResolvedProviderConfig { providerConfig: ProviderConfig; models: ProviderConfig["models"]; } export interface ResolvedOneShotConfig extends ResolvedProviderConfig { profile: Profile; retry: RunConfig["retry"]; promptStyle: RunConfig["promptStyle"]; promptOverrides?: RunConfig["promptOverrides"]; concurrency: RunConfig["concurrency"]; modelOutputTokens?: RunConfig["modelOutputTokens"]; rank?: RunConfig["rank"]; providerMaxConcurrency?: number; } export interface ResolvedPlanConfig { profile: Profile | BuiltInProfileName; planOptions: { invalidJsonRetries: number; includeFinalizer: boolean; }; } export { defaultConfigPath, defaultEnvPath, loadDeepThonkEnv }; export type RawConfigFile = ExternalConfigFile; export type AlgorithmOverrides = ExternalAlgorithmOverrides; export declare function resolveRunConfig(options: Record): Promise; export declare function resolveOneShotConfig(options: Record): Promise; export declare function resolveProviderOnlyConfig(options: Record): Promise; export declare function profileFromOptions(options: Record): Profile; export declare function loadPromptOverrides(options: Record, fileConfig: RawConfigFile): Promise; export declare function mergeAlgorithmOverrides(base: Profile, fileOverrides: AlgorithmOverrides | undefined, cliOptions: Record): Profile; export declare function resolvePlanProfile(options: Record): Promise; export declare function resolvePlanConfig(options: Record): Promise; export declare function readPathOrInline(value: string): Promise; export declare function resolveCliPath(value: string): string;