import type { Connector } from "../index.js"; import { type CommandFailure } from "./result.js"; import { type Point, type SnapshotRef } from "./snapshot.js"; export type RefFailureReason = "no-snapshot" | "ref-not-found" | "stale-ref" | "not-visible" | "covered" | "offscreen" | "disabled" | "not-editable"; export declare function normalizeRef(ref: string): string; export type RefValidationResult = CommandFailure | { ok: true; nodeId: number; }; /** Validate cached geometry against the live hit target before mutating the page. */ export declare function validateRef(action: string, connector: Connector, clientId: string, sessionId: number, ref: SnapshotRef, options?: { requireEditable?: boolean; }, signal?: AbortSignal): Promise; export declare function touchTap(connector: Connector, clientId: string, sessionId: number, point: Point, signal: AbortSignal): Promise; export declare function touchLongPress(connector: Connector, clientId: string, sessionId: number, point: Point, durationMs: number, signal: AbortSignal): Promise; export declare function touchSwipe(connector: Connector, clientId: string, sessionId: number, from: Point, to: Point, signal: AbortSignal, steps?: number): Promise; export declare function setValue(connector: Connector, clientId: string, sessionId: number, nodeId: number, value: string, signal: AbortSignal, currentValue?: string): Promise;