import type { GestureSequence, HardwareButton, MobilewrightDriver, ScreenshotOptions, SwipeDirection, SwipeOptions, ViewNode } from '@mobilewright/protocol'; import { Locator, type LocatorOptions, type StepFn } from './locator.js'; import { WebViewLocator } from './webview-locator.js'; import type { Role } from './query-engine.js'; export interface GetByWebViewOptions { /** Match a web view whose native testId (accessibility id / resource-id) equals this. */ testId?: string; } export declare class Screen { private readonly driver; private readonly locatorDefaults; private readonly root; constructor(driver: MobilewrightDriver, locatorDefaults?: LocatorOptions); setStepFn(fn: StepFn): void; private _step; getByLabel(label: string, opts?: { exact?: boolean; }): Locator; getByTestId(testId: string): Locator; getByText(text: string | RegExp, opts?: { exact?: boolean; }): Locator; getByType(type: string): Locator; getByRole(role: Role, opts?: { name?: string | RegExp; }): Locator; getByPlaceholder(placeholder: string, opts?: { exact?: boolean; }): Locator; getByWebView(opts?: GetByWebViewOptions): WebViewLocator; screenshot(opts?: ScreenshotOptions): Promise; swipe(direction: SwipeDirection, opts?: SwipeOptions): Promise; pressButton(button: HardwareButton): Promise; tap(x: number, y: number): Promise; doubleTap(x: number, y: number): Promise; longPress(x: number, y: number, duration?: number): Promise; gesture(sequence: GestureSequence): Promise; goBack(): Promise; viewTree(): Promise; } //# sourceMappingURL=screen.d.ts.map