import './workerPolyfills'; import type { MudletMap } from '../mapIO'; import type { Command } from './types'; export interface SaveSessionRequest { reqId: number; fileName: string; map: MudletMap; undoStack: Command[]; currentAreaId: number | null; currentZ: number; existingId?: string; } export type SaveSessionResponse = { reqId: number; id: string; } | { reqId: number; error: string; };