import type { ModelCatalogEntry } from "../../agents/model-catalog.js";
import type { SessionEntry } from "../../config/sessions/types.js";
import type { OpenClawConfig } from "../../config/types.openclaw.js";
import type { ThinkLevel } from "./directives.js";
export { resolveModelDirectiveSelection, type ModelDirectiveSelection, } from "./model-selection-directive.js";
type ModelCatalog = ModelCatalogEntry[];
type ModelSelectionState = {
    provider: string;
    model: string;
    allowedModelKeys: Set<string>;
    allowedModelCatalog: ModelCatalog;
    resetModelOverride: boolean;
    resetModelOverrideRef?: string;
    resolveThinkingCatalog: () => Promise<ModelCatalog | undefined>;
    resolveDefaultThinkingLevel: () => Promise<ThinkLevel>;
    /** Default reasoning level from model capability: "stream" if model has reasoning, else "off". */
    resolveDefaultReasoningLevel: () => Promise<"stream" | "off">;
    needsModelCatalog: boolean;
};
export declare function createFastTestModelSelectionState(params: {
    agentCfg: NonNullable<NonNullable<OpenClawConfig["agents"]>["defaults"]> | undefined;
    provider: string;
    model: string;
}): ModelSelectionState;
export declare function createModelSelectionState(params: {
    cfg: OpenClawConfig;
    agentId?: string;
    agentCfg: NonNullable<NonNullable<OpenClawConfig["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 resolveContextTokens(params: {
    cfg: OpenClawConfig;
    agentCfg: NonNullable<NonNullable<OpenClawConfig["agents"]>["defaults"]> | undefined;
    provider: string;
    model: string;
}): number;
