UNPKG

@coralogix/browser

Version:

Official Coralogix SDK for browsers

18 lines (17 loc) 745 B
import type { serializedNodeWithId, adoptedStyleSheetCallback, mutationCallBack } from '../../rrweb-types'; import { StyleSheetMirror } from '../utils'; export declare class StylesheetManager { private trackedLinkElements; private mutationCb; private adoptedStyleSheetCb; styleMirror: StyleSheetMirror; constructor(options: { mutationCb: mutationCallBack; adoptedStyleSheetCb: adoptedStyleSheetCallback; }); attachLinkElement(linkEl: HTMLLinkElement, childSn: serializedNodeWithId): void; trackLinkElement(linkEl: HTMLLinkElement): void; adoptStyleSheets(sheets: CSSStyleSheet[] | readonly CSSStyleSheet[], hostId: number): void; reset(): void; private trackStylesheetInLinkElement; }