import type { RefTable } from "./refs.js"; import type { CdpSend } from "./types.js"; export type ExtractFormat = "text" | "markdown" | "links"; export interface ExtractOptions { format?: ExtractFormat; selector?: string; maxChars?: number; } export interface ExtractResult { format: ExtractFormat; text: string; truncated: boolean; } export interface ScreenshotOptions { ref?: string; fullPage?: boolean; quality?: number; skipIfUnchanged?: boolean; } export interface ScreenshotResult { base64?: string; bytes: number; format: "jpeg"; unchanged: boolean; } /** Page content as plain text, markdown or a link list. Reading never needs refs. */ export declare function extractContent(send: CdpSend, sessionId: string, opts?: ExtractOptions): Promise; /** JPEG screenshot of the viewport, the full page, or one element. */ export declare function captureScreenshot(send: CdpSend, sessionId: string, refs: RefTable, opts?: ScreenshotOptions, previousHash?: string): Promise<{ result: ScreenshotResult; hash: string; }>; //# sourceMappingURL=read.d.ts.map