import { type IDOMElementDescriptor } from 'dom-element-descriptors'; export interface Options { timeout?: number; count?: number | null; timeoutMessage?: string; } /** Used to wait for a particular selector to receive focus. Useful for verifying keyboard navigation handling and default focus behaviour, without having to think about timing issues. @param {string|IDOMElementDescriptor} target the selector or DOM element descriptor to wait receiving focus @param {Object} [options] the options to be used @param {number} [options.timeout=1000] the time to wait (in ms) for a match @param {string} [options.timeoutMessage='waitForFocus timed out waiting for selector'] the message to use in the reject on timeout @return {Promise} resolves when the element received focus @example Waiting until a selector receive focus: await waitForFocus('.my-selector', { timeout: 2000 }) */ export default function waitForFocus(target: string | IDOMElementDescriptor, options?: Options): Promise; //# sourceMappingURL=wait-for-focus.d.ts.map