#!/usr/bin/env node /** * Parsed result from a Playwright response containing page and snapshot info. */ export interface ParsedSnapshot { url: string; title: string; snapshotYaml: string; /** The full matched text from "### Page" through end of snapshot, for replacement */ fullMatch: string; } /** * Parse a Playwright MCP response to extract page info and snapshot. * More robust than regex - handles varying content between sections. */ export declare function parsePlaywrightResponse(text: string): ParsedSnapshot | null; export declare const EVENTS_PATTERN: RegExp; /** * Collapse consecutive duplicate lines in the Events section. * Repeats are shown as the first instance followed by "[repeated N times]". */ export declare function summarizeEvents(fullText: string): string; export declare function summarizeSnapshot(fullText: string): Promise;