UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

10 lines • 787 B
/** Bytes `text` takes as UTF-8; a lone surrogate counts as its 3-byte replacement character, as `Buffer.byteLength` does. */ export declare function utf8ByteLength(text: string): number; export declare function encodeUtf8(text: string): Uint8Array; /** Decodes like `Buffer#toString("utf-8")`: invalid sequences become U+FFFD and a leading BOM is kept. */ export declare function decodeUtf8(bytes: Uint8Array): string; export declare function concatBytes(chunks: readonly Uint8Array[]): Uint8Array; export declare function encodeBase64(bytes: Uint8Array): string; /** Decodes base64url text to UTF-8 like `Buffer.from(text, "base64url")`: a dangling final character is ignored. */ export declare function decodeBase64UrlUtf8(text: string): string; //# sourceMappingURL=encoding.d.ts.map