export type TTxtContentDecodeResult = { ok: true; value: string; wasPresentation: boolean; } | { ok: false; error: string; }; /** * Decode the representation returned by DNS provider APIs for TXT records. * * Cloudflare uses RFC 1035 presentation syntax (one or more adjacent quoted * character strings). Some older API responses and dcrouter mirrors contain * the already-decoded payload, so an unquoted input is accepted as canonical. * A value that starts as presentation syntax must parse completely; malformed * quoting or escaping is never repaired by stripping quote characters. */ export declare function decodeTxtRecordContent(input: string): TTxtContentDecodeResult; /** Encode a canonical TXT payload as Cloudflare/RFC 1035 presentation text. */ export declare function encodeCloudflareTxtContent(value: string): string;