import type { ModelCatalogEntry } from "../../agents/model-catalog.js";
import { type ModelAliasIndex } from "../../agents/model-selection.js";
import type { KaijiBotConfig } from "../../config/config.js";
import type { SessionEntry } from "../../config/sessions/types.js";
import type { ThinkLevel } from "./directives.js";
export type ModelDirectiveSelection = {
    provider: string;
    model: string;
    isDefault: boolean;
    alias?: string;
};
type ModelCatalog = ModelCatalogEntry[];
type ModelSelectionState = {
    provider: string;
    model: string;
    allowedModelKeys: Set<string>;
    allowedModelCatalog: ModelCatalog;
    resetModelOverride: boolean;
    resolveDefaultThinkingLevel: () => Promise<ThinkLevel>;
    /** Default reasoning level from model capability: "on" if model has reasoning, else "off". */
    resolveDefaultReasoningLevel: () => Promise<"on" | "off">;
    needsModelCatalog: boolean;
};
export declare function createFastTestModelSelectionState(params: {
    agentCfg: NonNullable<NonNullable<KaijiBotConfig["agents"]>["defaults"]> | undefined;
    provider: string;
    model: string;
}): ModelSelectionState;
export declare function createModelSelectionState(params: {
    cfg: KaijiBotConfig;
    agentId?: string;
    agentCfg: NonNullable<NonNullable<KaijiBotConfig["agents"]>["defaults"]> | undefined;
    sessionEntry?: SessionEntry;
    sessionStore?: Record<string, SessionEntry>;
    sessionKey?: string;
    parentSessionKey?: string;
    storePath?: string;
    defaultProvider: string;
    defaultModel: string;
    provider: string;
    model: string;
    hasModelDirective: boolean;
    /** True when heartbeat.model was explicitly resolved for this run.
     *  In that case, skip session-stored overrides so the heartbeat selection wins. */
    hasResolvedHeartbeatModelOverride?: boolean;
}): Promise<ModelSelectionState>;
export declare function resolveModelDirectiveSelection(params: {
    raw: string;
    defaultProvider: string;
    defaultModel: string;
    aliasIndex: ModelAliasIndex;
    allowedModelKeys: Set<string>;
}): {
    selection?: ModelDirectiveSelection;
    error?: string;
};
export declare function resolveContextTokens(params: {
    cfg: KaijiBotConfig;
    agentCfg: NonNullable<NonNullable<KaijiBotConfig["agents"]>["defaults"]> | undefined;
    provider: string;
    model: string;
}): number;
export {};
