7 lines
356 B
TypeScript
7 lines
356 B
TypeScript
export type SupportedEncoding = "utf-8" | "utf8" | "utf-16le" | "us-ascii" | "ascii" | "latin1" | "iso-8859-1" | "windows-1252";
|
|
/**
|
|
* Decode text from binary data
|
|
*/
|
|
export declare function textDecode(bytes: Uint8Array, encoding?: SupportedEncoding): string;
|
|
export declare function textEncode(input?: string, encoding?: SupportedEncoding): Uint8Array;
|