import type { AccessibilityRole, Role } from 'react-native'; import type { ReactTestInstance } from 'react-test-renderer'; import type { AccessibilityStateMatcher } from '../helpers/matchers/match-accessibility-state'; import type { AccessibilityValueMatcher } from '../helpers/matchers/match-accessibility-value'; import type { TextMatch } from '../matches'; import type { StringWithAutocomplete } from '../types'; import type { FindAllByQuery, FindByQuery, GetAllByQuery, GetByQuery, QueryAllByQuery, QueryByQuery } from './make-queries'; import type { CommonQueryOptions } from './options'; export type ByRoleMatcher = StringWithAutocomplete | RegExp; export type ByRoleOptions = CommonQueryOptions & AccessibilityStateMatcher & { name?: TextMatch; value?: AccessibilityValueMatcher; }; export type ByRoleQueries = { getByRole: GetByQuery; getAllByRole: GetAllByQuery; queryByRole: QueryByQuery; queryAllByRole: QueryAllByQuery; findByRole: FindByQuery; findAllByRole: FindAllByQuery; }; export declare const bindByRoleQueries: (instance: ReactTestInstance) => ByRoleQueries;