/**
 * Waits for the DOM to be ready. Same as <script defer></script> or jQuery.ready().
 * Executes instantly if ready.
 *
 * @param {Function} callback - The function to execute when ready.
 */
export declare function defer(callback: () => void): void;
export declare const autofocusRef: (r: Element | undefined) => void;
export declare function whenParentsDefined(element: Element, prefix?: string): Promise<void>;
export declare const observeConnected: (target: Element, callback: (isConnected: boolean, target: Element) => void) => ResizeObserver;
export declare function whenVisible(): Promise<void>;
export declare function isInShadowDom(node: Node): boolean;
//# sourceMappingURL=dom.d.ts.map