import type { OpenClawConfig } from "../../config/config.js"; import { type SessionEntry } from "../../config/sessions.js"; /** Drain queued system events, format as `System:` lines, return the block (or undefined). */ export declare function drainFormattedSystemEvents(params: { cfg: OpenClawConfig; sessionKey: string; isMainSession: boolean; isNewSession: boolean; }): Promise; export declare function ensureSessionStarted(params: { sessionEntry?: SessionEntry; sessionStore?: Record; sessionKey?: string; storePath?: string; sessionId?: string; isFirstTurnInSession: boolean; cfg: OpenClawConfig; }): Promise<{ sessionEntry?: SessionEntry; systemSent: boolean; }>; export declare function incrementCompactionCount(params: { sessionEntry?: SessionEntry; sessionStore?: Record; sessionKey?: string; storePath?: string; now?: number; /** Token count after compaction - if provided, updates session token counts */ tokensAfter?: number; }): Promise;