Files
NapCatQQ/.pnpm-store/v3/files/43/8fbe4634f0e72b939ee45478b7da77449f38cdce95ed60aeeb412dab747b11ddaeccf0eeae5fd7f0793048055d0b8a72e1d5c5a4f3cbca4a1e902b25fd51f3
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

19 lines
555 B
Plaintext

/**
* Decodes a base64 string to a byte array.
*
* - ignores white-space, including line breaks and tabs
* - allows inner padding (can decode concatenated base64 strings)
* - does not require padding
* - understands base64url encoding:
* "-" instead of "+",
* "_" instead of "/",
* no padding
*/
export declare function base64decode(base64Str: string): Uint8Array;
/**
* Encodes a byte array to a base64 string.
* Adds padding at the end.
* Does not insert newlines.
*/
export declare function base64encode(bytes: Uint8Array): string;