/** * Single-line free text: tags removed, dangerous codepoints removed, all * whitespace collapsed to single spaces, then capped. * * Collapsing whitespace is also what keeps CR/LF out of values that end up in * an email header — the notification subject interpolates the sender's name, so * a name containing a newline would otherwise be a header-injection vector. */ export declare function toPlainText(value: unknown, max: number): string; /** * Multi-line free text (the message body): line breaks are meaningful and kept, * but runs of horizontal whitespace collapse and runs of blank lines are capped * at one, so a wall of newlines cannot be used to push content out of view. */ export declare function toPlainMultiline(value: unknown, max: number): string; /** * Canonical email form for storage and for matching against customer accounts. * Addresses are compared case-insensitively everywhere in this feature, so they * are stored lowercased rather than lowercased at every read site. */ export declare function normalizeEmail(value: unknown): string; /** * `widget_uuid` arrives from an anonymous request and is compared against a * `UUID` column. PostgreSQL raises `invalid input syntax for type uuid` on a * malformed value, so passing it straight through lets anyone 500 the endpoint * with `{"widget_uuid":"x"}`. Anything that is not a well-formed UUID is * treated as "no widget supplied" instead. */ export declare function asUuidOrNull(value: unknown): string | null;