import { ElementCore } from './element-core'; /** * 罗盘路径 token 类型 */ export type CompassToken = { type: 'parent'; levels: number; } | { type: 'child'; index: number; } | { type: 'sibling_abs'; index: number; } | { type: 'sibling_left'; offset: number; } | { type: 'sibling_right'; offset: number; }; /** * ElementNavigation - 导航方法 mixin * * 包含:compass、_parseCompassPath、_buildCompassXpath */ export declare function ElementNavigation ElementCore>(Base: T): { new (...args: any[]): { /** * 控件罗盘 —— 通过简洁的路径表达式导航 UI 元素树 */ compass(path: string, ...propNames: string[]): Promise; /** * 解析罗盘路径字符串为 token 数组 */ _parseCompassPath(path: string): CompassToken[]; _readOptionalNumber(path: string, pos: number): number | null; _readSignedNumber(path: string, pos: number): number | null; _buildCompassXpath(baseXpath: string, tokens: any[]): string; readonly windowSelector: string; readonly findSelector: string; _client: import("./client").HttpClient; _info: import("./types").ElementInfo; _autoWaitConfig: import("./types").AutoWaitConfig; _logger: import("./logger").OperationLogger; _cacheTime: any; readonly selector: string; readonly foundElementCount: number; name(): Promise; text(): Promise; isEnabled(): Promise; isVisible(): Promise; isOffscreen(): Promise; get attrs(): import("./types").ElementInfo; attr(name: string): Promise; bounds(): Promise; boundingBox(): Promise; isCheckable(): Promise; isChecked(): Promise; isClickable(): Promise; isScrollable(): Promise; isSelected(): Promise; _maybeAutoWait(phase: string): Promise; toJSON(): { selector: string; window: string; findSelector: string; info: import("./types").ElementInfo; }; }; } & T;