saltfish
Version:
An interactive video-guided tour system for web applications
23 lines • 928 B
TypeScript
/**
* DOM Snapshot Capture
*
* Captures DOM snapshots using rrweb-snapshot for debugging element finding failures.
* Loads rrweb-snapshot from Saltfish CDN to avoid adding to bundle size - only loaded when needed.
* Hosted on Saltfish domain to work with customer CSP rules that whitelist *.saltfish.ai
*/
export type DOMSnapshot = Record<string, unknown>;
/**
* Captures a snapshot of the current DOM state.
* Loads rrweb-snapshot from Saltfish CDN to keep bundle size zero.
*
* @returns Serialized DOM snapshot or null if capture fails
*/
export declare function captureDOMSnapshot(): Promise<DOMSnapshot | null>;
/**
* Captures a snapshot and serializes it to a JSON string.
* Useful for sending to API endpoints.
*
* @returns JSON string of DOM snapshot or null if capture fails
*/
export declare function captureDOMSnapshotAsString(): Promise<string | null>;
//# sourceMappingURL=domSnapshotCapture.d.ts.map