import { type ComputedStyleReader } from "./style-capture"; import type { Styles } from "./styles"; type StyleObserverModule = typeof import("style-observer"); export type StyleObserverLoader = () => Promise; export type StyleChangeHandler = (styles: Styles) => void; export declare class EmbedStyleObserver { private readonly element; private readonly loadModule; private readonly readComputedStyle?; private readonly throttleMs; private disconnected; private instance?; private readonly properties; constructor(element: Element, properties?: readonly (keyof Styles)[], loadModule?: StyleObserverLoader, readComputedStyle?: ComputedStyleReader | undefined, throttleMs?: number); observe(onChange: StyleChangeHandler): Promise; disconnect(): void; private capture; private observerOptions; private getCssPropertyNames; } export {};