import type { RumConfiguration } from '@openobserve/browser-rum-core'; import type { BrowserIncrementalSnapshotRecord } from '../../../types'; import type { SerializationScope, SerializationStats } from '../serialization'; import type { ShadowRootsController } from '../shadowRootsController'; import type { Tracker } from './tracker.types'; export type MutationCallBack = (incrementalSnapshotRecord: BrowserIncrementalSnapshotRecord, stats?: SerializationStats) => void; export type MutationTracker = Tracker & { flush: () => void; }; /** * Buffers and aggregate mutations generated by a MutationObserver into MutationPayload */ export declare function trackMutation(mutationCallback: MutationCallBack, configuration: RumConfiguration, scope: SerializationScope, shadowRootsController: ShadowRootsController, target: Node): MutationTracker; export declare function sortAddedAndMovedNodes(nodes: Node[]): void;