1 | // Type definitions for whatwg-encoding 1.0
|
2 | // Project: https://github.com/jsdom/whatwg-encoding
|
3 | // Definitions by: fengkx <https://github.com/fengkx>
|
4 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
5 |
|
6 | /// <reference types="node" />
|
7 | export function decode(buffer: Buffer, fallbackEncodingName: string): string;
|
8 | export function labelToName(label: string): string | null;
|
9 | export function isSupported(name: string): boolean;
|
10 | export function getBOMEncoding(buffer: Buffer): string | null;
|