import type { WireRecord } from './types'; export declare function isWireRecord(body: unknown): body is WireRecord; /** `{ error: "CODE", ... }` — used to distinguish undeclared wire JSON from heuristic matches. */ export declare function hasExplicitCallspecErrorField(body: unknown): boolean; export declare function responseHeadersRecord(headers: Headers): Record; /** Strip HTML tags before phrase / fuzzy matching (not applied to UNKNOWN_ERROR bodies). */ export declare function stripHtmlForMatching(text: string): string; export declare function normalizeFuzzyKey(text: string): string; /** Extract plain text from a string body or `{ error | message }` object for heuristic matching. */ export declare function bodyTextForMatching(body: unknown): string | undefined;