import type { Page as PlaywrightPage } from "playwright"; import type { CheckLayoutOptions } from "../api/galen.js"; import { LayoutReport } from "../reports/layout-report.js"; export interface PageActionResult { action: string; layoutReport?: LayoutReport; error?: string; } export declare abstract class PageAction { readonly originalCommand: string; constructor(originalCommand: string); abstract execute(page: PlaywrightPage): Promise; } export declare class PageActionOpen extends PageAction { readonly url: string; constructor(url: string); execute(page: PlaywrightPage): Promise; } export declare class PageActionResize extends PageAction { readonly width: number; readonly height: number; constructor(width: number, height: number); execute(page: PlaywrightPage): Promise; } export declare class PageActionCheck extends PageAction { readonly specPath: string; readonly options: CheckLayoutOptions; constructor(specPath: string, options?: CheckLayoutOptions); execute(page: PlaywrightPage): Promise; } export declare class PageActionRunJavascript extends PageAction { readonly script: string; readonly args: Record; constructor(script: string, args?: Record); execute(page: PlaywrightPage): Promise; } export declare class PageActionWait extends PageAction { readonly milliseconds: number; constructor(milliseconds: number); execute(page: PlaywrightPage): Promise; } export declare class PageActionInjectJavascript extends PageAction { readonly scriptPath: string; constructor(scriptPath: string); execute(page: PlaywrightPage): Promise; } //# sourceMappingURL=page-action.d.ts.map