import { waitForOptions as WaitForOptions } from './wait-for.js'; import { Variant } from './suggestions.js'; import { TestInstance } from './types.js'; import { Matcher, MatcherOptions } from './matches.js'; export type WithSuggest = { suggest?: boolean; }; export type GetErrorFunction = [string]> = (c: TestInstance | null, ...args: TArguments) => string; export interface SelectorMatcherOptions extends MatcherOptions { selector?: string; ignore?: boolean | string; } export type QueryMethod, TReturn> = (container: TestInstance, ...args: TArguments) => TReturn; declare function getInstanceError(message: string | null, instance: TestInstance): Error; declare function makeFindQuery(getter: (container: TestInstance, text: Matcher, options?: MatcherOptions) => TQueryFor): (instance: TestInstance, text: Matcher, options?: MatcherOptions, waitForOptions?: WaitForOptions) => Promise; declare const wrapSingleQueryWithSuggestion: >(query: (container: TestInstance, ...args: TArguments) => TestInstance | null, queryByName: string, variant: Variant) => (container: TestInstance, ...args: TArguments) => T; declare function buildQueries(queryBy: QueryMethod<[ matcher: Matcher, options?: MatcherOptions ], TestInstance | null>, getMissingError: GetErrorFunction<[ matcher: Matcher, options?: MatcherOptions ]>): readonly [(container: TestInstance, matcher: Matcher, options?: MatcherOptions | undefined) => T, (container: TestInstance, matcher: Matcher, options?: MatcherOptions | undefined) => T, (instance: TestInstance, text: Matcher, options?: MatcherOptions, waitForOptions?: WaitForOptions) => Promise]; export { getInstanceError, wrapSingleQueryWithSuggestion, makeFindQuery, buildQueries, };