import type { Snapshot, Snapshots } from 'roosterjs-editor-types'; /** * Add a new snapshot to the given snapshots data structure * @param snapshots The snapshots data structure to add new snapshot into * @param html The snapshot HTML to add * @param isAutoCompleteSnapshot Whether this is a snapshot before auto complete action */ export default function addSnapshot(snapshots: Snapshots, html: string, isAutoCompleteSnapshot: boolean): void; /** * Add a new snapshot to the given snapshots data structure * @param snapshots The snapshots data structure to add new snapshot into * @param snapshot The generic snapshot object to add * @param isAutoCompleteSnapshot Whether this is a snapshot before auto complete action * @param getLength A callback function to calculate length of the snapshot * @param isSame A callback function to check if the given snapshots are the same */ export default function addSnapshot(snapshots: Snapshots, snapshot: T, isAutoCompleteSnapshot: boolean, getLength: (snapshot: T) => number, isSame: (snapshot1: T, snapshot2: T) => boolean): void; /** * Add a new snapshot to the given snapshots data structure * @param snapshots The snapshots data structure to add new snapshot into * @param snapshot The snapshot object to add * @param isAutoCompleteSnapshot Whether this is a snapshot before auto complete action */ export declare function addSnapshotV2(snapshots: Snapshots, snapshot: Snapshot, isAutoCompleteSnapshot: boolean): void;