export declare function normalizeAuditText(value: string): string; export declare function isWellFormedUnicode(value: string): boolean; export type AuditRedactor = (value: string) => string; /** * Splits a field into atomic Markdown-escaped units (one code point, plus its backslash when * escaped), so a later cut can never land inside an escape sequence. Redaction runs on the raw * text first: escaping inserts backslashes that would otherwise break secret and token matching. * normalizeAuditText trims and escaping adds no whitespace, so the result has none at its edges. */ export declare function markdownAuditUnits(value: string, redact?: AuditRedactor): string[]; /** * Joins escaped units whole, or, when over `maxBytes`, keeps only complete whitespace-separated * tokens (so URLs and SHAs are never split) and marks the cut. Never ends in whitespace. */ export declare function fitUnits(units: string[], maxBytes: number): string;