export interface UTF8Encoder { encode: (str: string) => Uint8Array; } export interface UTF8Decoder { decode: (bytes: Uint8Array) => string; } export interface UTF8DecodeResult { length: number; value: string; } export declare function encodeUTF8String(str: string, encoder: UTF8Encoder): number[]; export declare function decodeUTF8String(buffer: Uint8Array, startIndex: number, utf8Decoder: UTF8Decoder): UTF8DecodeResult | undefined; //# sourceMappingURL=utf8.d.mts.map