/** * Utilities for UTF-8 boundary-safe truncation of text. */ export declare const MAX_OTEL_TEXT_BYTES: number; export interface TruncationResult { text: string; truncated: boolean; byteLength: number; } /** * Truncates a string so that its UTF-8 byte length does not exceed `maxBytes`, * guaranteeing that it never slices in the middle of a multi-byte UTF-8 sequence. */ export declare function truncateUtf8(str: string, maxBytes?: number): TruncationResult; //# sourceMappingURL=utf8.d.ts.map