import type { Locator } from '@playwright/test'; import type { Bounds, WebViewSession } from '@mobilewright/protocol'; import type { StepFn } from './locator.js'; import { type FrameExpectParams, type ExpectResult, type ExpectedTextValue } from './web-expect-matcher.js'; interface PlaywrightExpectOptions { isNot?: boolean; timeout?: number; expectedText?: ExpectedTextValue[]; expectedNumber?: number; expectedValue?: unknown; expressionArg?: unknown; } interface PlaywrightExpectResult { matches: boolean; received?: unknown; timedOut: boolean; } export declare class MobileWebViewLocator { protected readonly session: WebViewSession; protected readonly selector: string; _apiName: string; _stepFn: StepFn | null; constructor(session: WebViewSession, selector: string); private derive; private child; private _step; private firstEl; private firstElExpr; private evalEngine; private evalOnFirst; private actOnFirst; private pollBoolean; private readElementState; private readFromFirst; private readStringProp; locator(selector: string): MobileWebViewLocator; getByRole(role: string, opts?: { name?: string | RegExp; exact?: boolean; }): MobileWebViewLocator; getByText(text: string | RegExp, opts?: { exact?: boolean; }): MobileWebViewLocator; getByLabel(label: string | RegExp, opts?: { exact?: boolean; }): MobileWebViewLocator; getByPlaceholder(text: string | RegExp, opts?: { exact?: boolean; }): MobileWebViewLocator; getByTestId(testId: string): MobileWebViewLocator; getByAltText(text: string | RegExp): MobileWebViewLocator; getByTitle(text: string | RegExp): MobileWebViewLocator; first(): MobileWebViewLocator; last(): MobileWebViewLocator; nth(index: number): MobileWebViewLocator; count(): Promise; getText(opts?: { timeout?: number; }): Promise; getValue(opts?: { timeout?: number; }): Promise; all(): Promise; isVisible(opts?: { timeout?: number; }): Promise; isHidden(opts?: { timeout?: number; }): Promise; isEnabled(opts?: { timeout?: number; }): Promise; isDisabled(opts?: { timeout?: number; }): Promise; isChecked(opts?: { timeout?: number; }): Promise; textContent(opts?: { timeout?: number; }): Promise; innerText(opts?: { timeout?: number; }): Promise; innerHTML(opts?: { timeout?: number; }): Promise; inputValue(opts?: { timeout?: number; }): Promise; getAttribute(name: string, opts?: { timeout?: number; }): Promise; boundingBox(opts?: { timeout?: number; }): Promise; waitFor(opts?: { state?: 'visible' | 'hidden' | 'attached' | 'detached'; timeout?: number; }): Promise; click(opts?: { timeout?: number; }): Promise; fill(text: string, opts?: { timeout?: number; }): Promise; type(text: string): Promise; press(key: string): Promise; focus(): Promise; hover(): Promise; scrollIntoViewIfNeeded(): Promise; private pollActionable; private pollUntilVisible; _runInjectedExpect(params: FrameExpectParams): Promise; _expect(expression: string, options: PlaywrightExpectOptions): Promise; get expectTimeout(): number | undefined; } export interface MobileWebViewLocator extends Locator { } export { MobileWebViewLocator as WebLocator }; //# sourceMappingURL=web-locator.d.ts.map