import type { LocatorByRoleOptions, LocatorFilterOptions, LocatorOptions, LocatorScreenshotOptions, MarkOptions, SelectorOptions, UserEventClearOptions, UserEventClickOptions, UserEventDragAndDropOptions, UserEventFillOptions, UserEventHoverOptions, UserEventSelectOptions, UserEventUploadOptions, UserEventWheelOptions } from "vitest/browser"; import { Ivya } from "ivya"; export { ensureAwaited } from "../utils.js"; export { processTimeoutOptions } from "./action.js"; export { convertElementToCssSelector, getIframeScale } from "./tester-utils.js"; export { getByAltTextSelector, getByLabelSelector, getByPlaceholderSelector, getByRoleSelector, getByTestIdSelector, getByTextSelector, getByTitleSelector } from "ivya"; export declare const selectorEngine: Ivya; export declare abstract class Locator { abstract selector: string; private _parsedSelector; protected _container?: Element | undefined; protected _pwSelector?: string | undefined; protected _pwLocator?: string | undefined; protected _errorSource?: Error; constructor(); click(options?: UserEventClickOptions): Promise; dblClick(options?: UserEventClickOptions): Promise; tripleClick(options?: UserEventClickOptions): Promise; wheel(options: UserEventWheelOptions): Promise; clear(options?: UserEventClearOptions): Promise; hover(options?: UserEventHoverOptions): Promise; unhover(options?: UserEventHoverOptions): Promise; fill(text: string, options?: UserEventFillOptions): Promise; upload(files: string | string[] | File | File[], options?: UserEventUploadOptions): Promise; dropTo(target: Locator, options?: UserEventDragAndDropOptions): Promise; selectOptions(value: HTMLElement | HTMLElement[] | Locator | Locator[] | string | string[], options?: UserEventSelectOptions): Promise; screenshot(options: Omit & { base64: true; }): Promise<{ path: string; base64: string; }>; screenshot(options?: LocatorScreenshotOptions): Promise; mark(name: string, options?: MarkOptions): Promise; protected abstract locator(selector: string): Locator; protected abstract elementLocator(element: Element): Locator; getByRole(role: string, options?: LocatorByRoleOptions): Locator; getByAltText(text: string | RegExp, options?: LocatorOptions): Locator; getByLabelText(text: string | RegExp, options?: LocatorOptions): Locator; getByPlaceholder(text: string | RegExp, options?: LocatorOptions): Locator; getByTestId(testId: string | RegExp): Locator; getByText(text: string | RegExp, options?: LocatorOptions): Locator; getByTitle(title: string | RegExp, options?: LocatorOptions): Locator; filter(filter: LocatorFilterOptions): Locator; and(locator: Locator): Locator; or(locator: Locator): Locator; query(): HTMLElement | SVGElement | null; element(): HTMLElement | SVGElement; elements(): (HTMLElement | SVGElement)[]; get length(): number; all(): Locator[]; nth(index: number): Locator; first(): Locator; last(): Locator; toString(): string; serialize(): SerializedLocator; asLocator(): string; toJSON(): SerializedLocator; findElement(options_?: SelectorOptions): Promise; private action; } /** * @deprecated */ export declare function triggerCommandWithTrace(options: { name: string; arguments: unknown[]; errorSource?: Error | undefined; }): Promise; export interface SerializedLocator { selector: string; locator: string; }