import type { Api, Model } from "@earendil-works/pi-ai";
import type { CliProvider } from "../config.js";
type AgentApiKeys = {
    openaiApiKey: string | null;
    openrouterApiKey: string | null;
    anthropicApiKey: string | null;
    googleApiKey: string | null;
    xaiApiKey: string | null;
    zaiApiKey: string | null;
    nvidiaApiKey: string | null;
    minimaxApiKey: string | null;
    githubApiKey: string | null;
};
export declare function resolveApiKeyForModel({ provider, apiKeys, }: {
    provider: string;
    apiKeys: AgentApiKeys;
}): string;
export declare function resolveAgentModel({ env, pageContent, modelOverride, }: {
    env: Record<string, string | undefined>;
    pageContent: string;
    modelOverride: string | null;
}): Promise<{
    provider: string;
    model: null;
    maxOutputTokens: number;
    apiKeys: AgentApiKeys;
    transport: "cli";
    cliProvider: CliProvider;
    cliModel: string | null;
    userModelId: string;
    cliConfig: import("../config.js").CliConfig | null;
} | {
    provider: "minimax";
    model: Model<Api>;
    transport?: undefined;
    cliProvider?: undefined;
    cliModel?: undefined;
    userModelId?: undefined;
    cliConfig?: undefined;
    maxOutputTokens: number;
    apiKeys: AgentApiKeys;
} | {
    provider: "anthropic" | "github-copilot" | "google" | "nvidia" | "ollama" | "openai" | "openrouter" | "xai" | "zai";
    model: Model<Api>;
    transport?: undefined;
    cliProvider?: undefined;
    cliModel?: undefined;
    userModelId?: undefined;
    cliConfig?: undefined;
    maxOutputTokens: number;
    apiKeys: AgentApiKeys;
}>;
export {};
