1 /*---------------------------------------------------------------------------------------------
2 * Copyright (c) Microsoft Corporation. All rights reserved.
3 * Licensed under the MIT License.
4 * REQUIREMENT: This definition is dependent on the @types/node definition.
5 * Install with `npm install @types/node --save-dev`
6 *--------------------------------------------------------------------------------------------*/
8 declare module 'iconv-lite' {
9 export function decode(buffer: Buffer, encoding: string, options?: Options): string;
11 export function encode(content: string, encoding: string, options?: Options): Buffer;
13 export function encodingExists(encoding: string): boolean;
15 export function decodeStream(encoding: string, options?: Options): NodeJS.ReadWriteStream;
17 export function encodeStream(encoding: string, options?: Options): NodeJS.ReadWriteStream;
20 export interface Options {
23 defaultEncoding?: string;