/** * Playwright-style actionability checks for the humanize layer. * * Checks: attached, visible, stable, enabled, editable, receives pointer events. * Retry loop with backoff matching Playwright internals: [100, 250, 500, 1000]ms. */ import type { Page, Frame, ElementHandle } from 'playwright-core'; export declare class ActionabilityError extends Error { selector: string; check: string; constructor(selector: string, check: string, message: string); } export declare class ElementNotAttachedError extends ActionabilityError { constructor(selector: string); } export declare class ElementNotVisibleError extends ActionabilityError { constructor(selector: string); } export declare class ElementNotStableError extends ActionabilityError { constructor(selector: string); } export declare class ElementNotEnabledError extends ActionabilityError { constructor(selector: string); } export declare class ElementNotEditableError extends ActionabilityError { constructor(selector: string); } export declare class ElementNotReceivingEventsError extends ActionabilityError { coveringTag: string; constructor(selector: string, coveringTag?: string); } export type CheckName = 'attached' | 'visible' | 'enabled' | 'editable' | 'pointer_events'; export declare const CHECKS_CLICK: ReadonlySet; export declare const CHECKS_HOVER: ReadonlySet; export declare const CHECKS_INPUT: ReadonlySet; export declare const CHECKS_FOCUS: ReadonlySet; export declare const CHECKS_CHECK: ReadonlySet; export declare function ensureActionable(pageOrFrame: Page | Frame, selector: string, checks: ReadonlySet, timeout?: number, force?: boolean): Promise; export declare function ensureStable(pageOrFrame: Page | Frame, selector: string, timeout?: number): Promise; export declare function checkPointerEvents(pageOrFrame: Page | Frame, selector: string, x: number, y: number, stealth?: { evaluate(expression: string): Promise; } | null, timeout?: number): Promise; export declare function ensureActionableHandle(el: ElementHandle, checks: ReadonlySet, timeout?: number, force?: boolean): Promise; export declare function checkPointerEventsHandle(el: ElementHandle, x: number, y: number, timeout?: number): Promise; //# sourceMappingURL=actionability.d.ts.map