import type { StoragePlugin, TokenEconomics, SessionChain } from './types.js'; import type { EventTracker } from './events.js'; export declare class SessionManager { private storage; private events?; constructor(storage: StoragePlugin, events?: EventTracker | undefined); saveSnapshot(sessionId: string, _stats: TokenEconomics): void; restoreSnapshot(sessionId: string): { snapshot: Record; condensed: boolean; } | null; getSnapshotMaxBytes(): number; createChainEntry(sessionId: string, projectPath: string, parentSession: string | null, reason: SessionChain['handoff_reason']): SessionChain; getLatestChainEntry(projectPath: string): SessionChain | null; getChainHistory(sessionId: string, limit?: number): SessionChain[]; updateChainEntry(sessionId: string, update: { summary?: string; token_estimate?: number; }): void; generateContinuationPrompt(sessionId: string): string; private rowToChain; private extractCategories; private trimToFit; private dropByPriority; private truncateP1; private buildRecord; } //# sourceMappingURL=session.d.ts.map