/** * The reader side of the Plane-2 grammar (ggui#880): `: ` for a * REGISTERED code. The emitter side, the `DomainError` base that composes the * text, is `./domain-error`. This module imports only the code names * (`../types/domain-error-code-names`), so a browser that parses a domain * error through `@ggui-ai/protocol/wire` carries the names and not the * registry's prose. */ import { type DomainErrorCode } from '../types/domain-error-code-names.js'; /** A parsed Plane-2 wire text. */ export interface ParsedDomainErrorText { readonly code: DomainErrorCode; readonly detail: string; } /** * The reader side of the grammar: `: ` for a REGISTERED code, * else `null` — a Plane-1 text (`MCP error -32602: …`), a tool-name prefix * (`ggui_render: …`) or an unregistered slug is not a domain error. */ export declare function parseDomainErrorText(text: string): ParsedDomainErrorText | null; //# sourceMappingURL=domain-error-text.d.ts.map