type ElementResult = { selector: string; element: HTMLElement | null; }; type WaitForElementReturn = { promise: Promise; cancel: () => void; }; /** * Waits for any of the provided DOM selectors to appear in the document. * Provides a cancel function to stop the search before completion. Supports optional timeout. * @param selectors - An array of selector strings to wait for. * @param timeout - Optional timeout in milliseconds after which the promise will resolve with null if the element is not found. * @returns An object containing a promise and a cancel function. */ export declare const waitForElement: (selectors: string[], timeout?: number) => WaitForElementReturn; export {}; //# sourceMappingURL=waitForElement.d.ts.map