/** * Truncate without splitting UTF-8 sequences or UTF-16 surrogate pairs. * The input is streamed by code point so a very large string is never copied * in full before its security budget is applied. */ export declare function truncateUtf8(value: string, maxBytes: number, suffix?: string): string; export declare function boundedRemoteText(value: unknown, maxBytes: number): string; export declare function boundedRemoteTextPreservingWhitespace(value: unknown, maxBytes: number): string; /** * Remove unsafe code points (C0/C1 controls, bidi controls, zero-width/BOM, * unpaired surrogates) without truncation or whitespace changes. Transcript * lines must be sanitized without the byte truncation boundedRemoteText * applies, so legitimate long subtitle data is preserved. */ export declare function sanitizeRemoteText(value: unknown): string; export declare function boundedFiniteInteger(value: unknown, fallback?: number): number; //# sourceMappingURL=bounded-text.d.ts.map