declare const LAYER_TAG = "dd-annotation-layer"; declare const TARGET_ATTRIBUTE = "data-dd-annotate-target"; export { LAYER_TAG, TARGET_ATTRIBUTE, mountAnnotations, clearLayer, layerScript, }; /** * The page-side renderer, serialized into the browser. * * Written as a single self-contained function because `driver.execute` ships * source text: it can't close over anything in this module. */ declare function layerScript(tag: string, targetAttribute: string, payload: any): void; /** * Render the given annotations into the page, replacing whatever is up. * * @param driver Browser driver. * @param placed Annotations with rects in CSS pixels. * @param svg Overlay markup from the shared generator. * @param blurRegions Blur instructions from the shared generator. * @param newIds Ids that weren't on screen before, so only they animate in. */ declare function mountAnnotations({ driver, placed, svg, blurRegions, newIds, exitTransitions, }: { driver: any; placed: any[]; svg: string; blurRegions: any[]; newIds: string[]; exitTransitions?: Record; }): Promise; /** Remove the layer entirely, stopping its tracking loop and any pending * ghost-exit timeout. Cancelling both mirrors the two timers a render can * arm, so a teardown mid-exit leaves nothing pending. (Firing against a * removed layer is a DOM no-op, so this is tidiness rather than a crash fix.) */ declare function clearLayer(driver: any): Promise; //# sourceMappingURL=domAdapter.d.ts.map