import { Page } from "playwright"; import { ClickWebAction, ScrollWebAction, TypeWebAction, WebAction } from '@/web/types'; export declare class WebHarness { /** * Executes web actions on a page * Not responsible for browser lifecycle */ private page; private stability; private visualElementId; constructor(page: Page); screenshot(): Promise<{ image: string; dimensions: { width: number; height: number; }; }>; goto(url: string): Promise; click({ x, y }: ClickWebAction): Promise; type({ x, y, content }: TypeWebAction): Promise; scroll({ x, y, deltaX, deltaY }: ScrollWebAction): Promise; executeAction(action: WebAction): Promise; visualizeAction(x: number, y: number): Promise; removeActionVisuals(): Promise; }