import { type CellSnapshot } from '@bilig/protocol';
import type { EngineOp } from '@bilig/workbook';
import { type WorkbookStore } from '../../workbook-store.js';
import type { PreparedCellAddress, TransactionRecord } from '../runtime-state.js';
export interface FastMutationHistoryResult {
    forward: TransactionRecord;
    inverse: TransactionRecord;
    undoOps: EngineOp[] | null;
}
interface FastMutationHistoryArgs {
    readonly workbook: WorkbookStore;
    readonly getCellByIndex: (cellIndex: number) => CellSnapshot;
    readonly ops: readonly EngineOp[];
    readonly potentialNewCells?: number;
    readonly includeUndoOps?: boolean;
    readonly cloneForwardOps?: boolean;
    readonly preparedCellAddressesByOpIndex?: readonly (PreparedCellAddress | null)[];
}
export declare function tryBuildFastMutationHistory(args: FastMutationHistoryArgs): FastMutationHistoryResult | null;
export {};
