UNPKG

@brainfish-ai/web-tracker

Version:

Brainfish Tracker for Web

18 lines (17 loc) 699 B
/** * Options for checking render stability */ interface RenderStabilityOptions { /** Maximum time to wait for stability in milliseconds */ maxWaitTime?: number; /** Number of stable frames required before considering the render complete */ minStableFrames?: number; /** CSS selectors for elements that must be present and visible */ requiredSelectors?: string[]; } /** * Waits for the page render to stabilize by monitoring visual changes * Uses requestAnimationFrame for better performance and cross-browser compatibility */ declare function waitForStableRender(options?: RenderStabilityOptions): Promise<void>; export { waitForStableRender, RenderStabilityOptions };