import RopeSequence from 'rope-sequence'; import type { EditorState, SelectionBookmark, Transaction } from '@atlaskit/editor-prosemirror/state'; import { Mapping } from '@atlaskit/editor-prosemirror/transform'; import type { StepMap, Transform } from '@atlaskit/editor-prosemirror/transform'; import type { Step } from '@atlaskit/editor-prosemirror/transform-override'; import type { HistoryOptions } from './types'; export declare class Branch { readonly items: RopeSequence; readonly eventCount: number; constructor(items: RopeSequence, eventCount: number); popEvent(state: EditorState, preserveItems: boolean): { remaining: Branch; selection: SelectionBookmark; transform: Transaction; } | null; addTransform(transform: Transform, selection: SelectionBookmark | undefined, histOptions: Required, preserveItems: boolean): Branch; remapping(from: number, to: number): Mapping; addMaps(array: readonly StepMap[]): Branch; rebased(rebasedTransform: Transform, rebasedCount: number): Branch; emptyItemCount(): number; compress(upto?: number): Branch; static empty: Branch; } declare class Item { readonly map: StepMap; readonly step?: Step | undefined; readonly selection?: SelectionBookmark | undefined; readonly mirrorOffset?: number | undefined; constructor(map: StepMap, step?: Step | undefined, selection?: SelectionBookmark | undefined, mirrorOffset?: number | undefined); merge(other: Item): Item | undefined; } export {};