import type { SessionState } from './state.js'; /** True when the session has staged field edits or pending deletions. */ export declare function isSessionDirty(session: SessionState): boolean; export interface DirtyOpenErrorPayload { code: 'SESSION_DIRTY'; unsavedChanges: number; pendingDeletions: number; rootEntryId: string; rootEntryType: string; actions: string[]; } export interface DirtyOpenError { message: string; payload: DirtyOpenErrorPayload; } /** * Agent-facing hard-fail when `open` would replace a session that still has local work. */ export declare function formatDirtyOpenError(session: SessionState): DirtyOpenError; //# sourceMappingURL=dirty.d.ts.map