import { type MudletMap } from '../mapIO'; import type { Command } from './types'; export interface SessionData { id: string; fileName: string; mapBytes: ArrayBuffer; imageSrcs: Record; undoStack: Command[]; currentAreaId: number | null; currentZ: number; savedAt: number; roomCount: number; } export declare function saveSession(fileName: string, map: MudletMap, undoStack: Command[], currentAreaId: number | null, currentZ: number, existingId?: string): Promise; export declare function listSessions(): Promise; export declare function clearAllSessions(): Promise; export declare function clearSession(id: string): Promise; /** Reconstruct a MudletMap from a SessionData, re-applying editor-only fields (imageSrc). */ export declare function restoreMapFromSession(session: SessionData): MudletMap;