import type { RefTable } from "./refs.js"; import type { CdpSend } from "./types.js"; export type { CdpSend } from "./types.js"; export interface SnapshotOptions { scope?: "viewport" | "full"; interactiveOnly?: boolean; maxLines?: number; sinceLast?: boolean; } export interface SnapshotResult { text: string; lineCount: number; truncated: boolean; unchanged: boolean; } /** Reads the page in one round trip: a single script walks the DOM in an isolated * world and returns finished, distilled lines with their element refs. */ export declare function buildSnapshot(send: CdpSend, sessionId: string, refs: RefTable, opts?: SnapshotOptions, previous?: string): Promise; export interface SnapshotDiff { added: string[]; removed: string[]; text: string; } /** Line-level difference between two snapshots, for post-action results. */ export declare function diffSnapshots(previous: string | undefined, next: string): SnapshotDiff; //# sourceMappingURL=snapshot.d.ts.map