import type { ConsoleRead } from "./console.js"; import type { FramesOptions, RawFrames } from "./frames.js"; import type { PageState } from "./page.js"; export interface Browser { readonly open: (url?: string) => Promise; readonly snapshot: () => Promise; readonly click: (ref: string) => Promise; readonly fill: (ref: string, text: string, submit?: boolean) => Promise; readonly press: (combo: string) => Promise; readonly text: () => Promise; readonly screenshot: (selector?: string) => Promise; readonly console: () => Promise; readonly evaluate: (expression: string, timeoutMs: number) => Promise; readonly frames: (options: FramesOptions) => Promise; readonly tabs: () => Promise<{ readonly id: string; readonly title: string; readonly url: string; readonly active: boolean; }[]>; readonly selectTab: (id: string) => Promise; readonly settleAfterAction: () => Promise; readonly disconnect: () => Promise; } export interface PageShot { readonly png: Buffer; readonly width: number; readonly height: number; readonly what: string; readonly cssWidth: number; readonly cssHeight: number; readonly devicePixelRatio: number; } export declare class BrowserTimeoutError extends Error { constructor(message: string); } export declare class BrowserError extends Error { readonly hint: string | undefined; constructor(message: string, hint?: string); } //# sourceMappingURL=types.d.ts.map