/** * Options for waitForConnectedDescendants. * @public */ export interface WaitForDescendantsOptions { /** * If true, only checks immediate children. If false, checks all descendants. * @defaultValue false */ shallow?: boolean; /** * Timeout in milliseconds. If the undefined descendants haven't resolved within * this duration, the callback fires anyway. Set to `0` to wait indefinitely. * @defaultValue 50 */ timeout?: number; } /** * Waits for all custom element descendants to be defined before invoking the callback. * Uses `customElements.whenDefined()` to deterministically wait for element registration, * with an optional timeout fallback. * * @param target - The parent element to check for undefined descendants. * @param callback - The callback to invoke when all descendants are defined. * @param options - Configuration options for the wait behavior. * @public * * @example * ```typescript * waitForConnectedDescendants(this, () => { * // All custom element descendants are now defined * this.processChildren(); * }); * ``` */ export declare function waitForConnectedDescendants(target: HTMLElement, callback: () => void, options?: WaitForDescendantsOptions): void; //# sourceMappingURL=descendants.d.ts.map