UNPKG

@lynx-js/web-core

Version:

This is an internal experimental package, do not use

13 lines (12 loc) 628 B
import type { LynxViewInstance } from './LynxViewInstance.js'; export declare class ExposureServices { #private; constructor(lynxViewInstance: LynxViewInstance); /** * diff the current exposure enabled elements with the previous ones, and start/stop IntersectionObserver accordingly * If an element's exposure-id attribute has changed, we also need to send a new disexposure event with the old one */ updateExposureStatus(elementsToBeEnabled: HTMLElement[], elementsToBeDisabled: HTMLElement[]): void; switchExposureService(toEnable: boolean, sendEvent: boolean): void; dispose(): void; }