You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

6 lines
350 B

3 months ago
  1. /// <reference types="node" />
  2. export type TDataOut = string | Buffer;
  3. export type TEncodingExtended = BufferEncoding | 'buffer';
  4. export declare const ENCODING_UTF8: BufferEncoding;
  5. export declare function assertEncoding(encoding: string | undefined): void;
  6. export declare function strToEncoding(str: string, encoding?: TEncodingExtended): TDataOut;