wallet-core/node_modules/iconv-lite/lib/index.d.ts

25 lines
990 B
TypeScript
Raw Normal View History

2017-05-24 15:10:37 +02:00
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
* REQUIREMENT: This definition is dependent on the @types/node definition.
* Install with `npm install @types/node --save-dev`
*--------------------------------------------------------------------------------------------*/
2017-05-03 15:35:00 +02:00
2017-05-24 15:10:37 +02:00
declare module 'iconv-lite' {
export function decode(buffer: NodeBuffer, encoding: string, options?: Options): string;
2017-05-03 15:35:00 +02:00
2017-05-24 15:10:37 +02:00
export function encode(content: string, encoding: string, options?: Options): NodeBuffer;
2017-05-03 15:35:00 +02:00
2017-05-24 15:10:37 +02:00
export function encodingExists(encoding: string): boolean;
2017-05-03 15:35:00 +02:00
2017-05-24 15:10:37 +02:00
export function decodeStream(encoding: string, options?: Options): NodeJS.ReadWriteStream;
2017-05-03 15:35:00 +02:00
2017-05-24 15:10:37 +02:00
export function encodeStream(encoding: string, options?: Options): NodeJS.ReadWriteStream;
2017-05-03 15:35:00 +02:00
}
2017-05-24 15:10:37 +02:00
export interface Options {
stripBOM?: boolean;
addBOM?: boolean;
defaultEncoding?: string;
}