/** * Waits for the DOM to be ready. Same as or jQuery.ready(). * Executes instantly if ready. * * @param {Function} callback - The function to execute when ready. */ export declare function defer(callback: () => void): void; /** * Creates a function that focuses the referenced element * @param options - Options to use with the focus() method. * @returns */ export declare const autoFocusRef: (options?: FocusOptions) => (r: Element | undefined) => Element | undefined; /** * References for the last used scrolling element, per scroll area. */ export declare const currentScrollMap: WeakMap; /** * Scrolls the element into view. Skips scrolling if the element is the same as last time (unless forceScroll is set). * * @param options - Options to use with the scrollIntoView() method * @param forceScroll - Ignore the last scrolled element and scroll anyway. * @returns */ export declare const autoScrollRef: (options?: ScrollIntoViewOptions, forceScroll?: boolean) => (r: Element | undefined) => Element | undefined; export declare function whenParentsDefined(element: Element, prefix?: string): Promise; export declare const observeConnected: (target: Element, callback: (isConnected: boolean, target: Element) => void) => ResizeObserver; export declare function whenConnected(target: Element, connected?: boolean): Promise; export declare function whenDocumentVisible(): Promise; export declare const defaultVisibilityCheckOptions: CheckVisibilityOptions; export declare function untilVisibility(target: HTMLElement, visibility: boolean | undefined, options: CheckVisibilityOptions | undefined, callBack: (value: unknown) => void): void; export declare function whenElementVisible(target: HTMLElement, visibility?: boolean, options?: CheckVisibilityOptions): Promise; export declare function isModifiedClick(e: MouseEvent): boolean; export declare function isInShadowDom(node: Node): boolean; export declare function supportsPopover(): boolean; export declare function isPopoverPolyfilled(): boolean; export declare function isDomAvailable(): boolean; export declare function throwOnDomNotAvailable(): void; export declare function getParent(element: Element | undefined, matches: (element: Element) => boolean): Element | undefined; export declare function inOverlay(element?: Element): Element | undefined; //# sourceMappingURL=dom.d.ts.map