import { type SessionEntry } from "../../config/sessions.js"; import type { OpenClawConfig } from "../../config/types.openclaw.js"; type RunResult = Awaited>; export declare function updateSessionStoreAfterAgentRun(params: { cfg: OpenClawConfig; contextTokensOverride?: number; sessionId: string; sessionKey: string; storePath: string; sessionStore: Record; defaultProvider: string; defaultModel: string; fallbackProvider?: string; fallbackModel?: string; result: RunResult; touchInteraction?: boolean; /** * When true, preserve the pre-existing runtime model fields (model, * modelProvider, contextTokens) on the session entry instead of overwriting * them with the model used by this run. Used for heartbeat turns so the * heartbeat model does not "bleed" into the main session's perceived state. */ preserveRuntimeModel?: boolean; }): Promise; export declare function clearCliSessionInStore(params: { provider: string; sessionKey: string; sessionStore: Record; storePath: string; }): Promise; export declare function recordCliCompactionInStore(params: { provider: string; sessionKey: string; sessionStore: Record; storePath: string; }): Promise; export {};