/**
 * returned when the page does not have `WDIO_A11Y_SCRIPT` yet
 */
export declare const ACCESSIBILITY_API_MISSING = "__wdio_a11y_missing__";
/**
 * Find elements by ARIA role and accessible name, for sessions where the
 * WebDriver BiDi accessibility locator is not available. Role, accessible
 * name and whether an element is in the accessibility tree come from
 * `dom-accessibility-api`, which `WDIO_A11Y_SCRIPT` puts on the page.
 * Open shadow roots are searched.
 *
 * Runs in the browser: it must not reference anything outside its body.
 *
 * @param role  role to match
 * @param name  full accessible name to match, `null` to match any name
 * @param at    `null` returns the number of matches, a number returns that
 *              match (or `null`), `-1` returns every match
 * @param root  element to search within, `null` for the document
 */
export default function findByRole(role: string, name: string | null, at: number | null, root: Element | null): number | Element | Element[] | null | string;
//# sourceMappingURL=findByRole.d.ts.map