import type { InspectApplyPayload, InspectSession } from './inspect.js'; import type { EditorStore } from './store.js'; export interface PendingSourceChanges { /** The store journal's revision, acknowledged with `ackPendingSourceChanges`. */ journalRevision: number; /** The inspect session's revision, cleared with `clearApplied`. */ inspectRevision: number; /** Both revisions in one comparable token. */ revision: string; payload: InspectApplyPayload; } /** * Folds two payloads into one. Style patches to the same file, class, and * media query merge their declarations, the later one winning; texts and * operations keep their order, first payload first. */ export declare function mergeSourcePayloads(first: InspectApplyPayload, second: InspectApplyPayload): InspectApplyPayload; /** Everything staged in this editor that the host has not written yet. */ export declare function collectPendingSourceChanges(store: Pick, inspect: Pick): PendingSourceChanges;