@xysfe/memento-snapshot
Version:
rrweb's component to take a snapshot of DOM, aka DOM serializer
6 lines (5 loc) • 463 B
TypeScript
import { serializedNodeWithId, idNodeMap, INode } from './types';
export declare function addHoverClass(cssText: string): string;
export declare function buildNodeWithSN(n: serializedNodeWithId, doc: Document, map: idNodeMap, skipChild?: boolean, HACK_CSS?: boolean, cdnHttps?: boolean): INode | null;
declare function rebuild(n: serializedNodeWithId, doc: Document, HACK_CSS?: boolean, cdnHttps?: boolean): [Node | null, idNodeMap];
export default rebuild;