/** * Text helpers for extracting structured fields from Playwright MCP tool responses. * Commoditized parsing only — no codec logic here, just regex over the MCP text protocol. */ /** Extract page URL from a Playwright MCP response text. */ export declare function extractUrlFromResponse(text: string): string | null; export interface SnapshotSplit { yamlText: string; prefix: string; suffix: string; } /** * Splits a Playwright MCP response around its ```yaml fenced code block. Returns * `null` when no YAML block is found (e.g. an error response). * * ```yaml * ...yamlText... * ``` * * `prefix` ends with ``` ```yaml\n ``` and `suffix` starts with ```` ``` ````. */ export declare function splitSnapshotYaml(text: string): SnapshotSplit | null; /** Reassemble a response text after replacing the YAML block with compressed output. */ export declare function joinSnapshotYaml(split: SnapshotSplit, replacement: string): string;