import type { RefTable } from "./refs.js"; import type { CdpSend } from "./types.js"; export type ActionType = "click" | "fill" | "type" | "press" | "hover" | "check" | "uncheck" | "select" | "scroll" | "wait"; export interface ActionStep { type: ActionType; ref?: string; text?: string; key?: string; direction?: "up" | "down"; amount?: number; ms?: number; } export interface ActionOptions { actionabilityTimeoutMs?: number; commandTimeoutMs?: number; } export declare class StaleRefError extends Error { readonly ref: string; readonly hint: string; constructor(ref: string, hint: string); } export declare class NotActionableError extends Error { readonly ref: string; constructor(ref: string, reason: string); } /** Performs one agent action with real input events. Resolves the element, its * geometry and its actionability in a single page call, then dispatches input. * Throws {@link StaleRefError} when the ref no longer resolves and * {@link NotActionableError} when it never settles. */ export declare function performAction(send: CdpSend, sessionId: string, refs: RefTable, step: ActionStep, opts?: ActionOptions): Promise; //# sourceMappingURL=actions.d.ts.map