export declare const SESSION_STATE_PREFIX = "SESSION STATE / WORKING MEMORY"; export interface SessionStateSnapshot { goal?: string | undefined; projectRoot?: string | undefined; packageManager?: string | undefined; planStatus?: string | undefined; planKind?: string | undefined; openTask?: string | undefined; pendingTasks?: string[] | undefined; doneTasks?: string[] | undefined; featureAppRequired?: boolean | undefined; featureSeen?: boolean | undefined; scaffoldOk?: boolean | undefined; serverStarted?: boolean | undefined; serverProbedOk?: boolean | undefined; lastProbeFailed?: boolean | undefined; lastOkTool?: string | undefined; nextHint?: string | undefined; engagementNote?: string | undefined; backgroundJobs?: string | undefined; } export declare function buildSessionStateBlock(s: SessionStateSnapshot): string; export declare function inferNextHint(s: SessionStateSnapshot): string | undefined; export declare function isSessionStateMessage(content: string): boolean; export declare function upsertSessionStateMessage(messages: Array<{ role: string; content: string; }>, block: string): void;