mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
17 lines
539 B
TypeScript
17 lines
539 B
TypeScript
// Type definitions for bencode 2.0
|
|
// Project: https://github.com/themasch/node-bencode#readme
|
|
// Definitions by: Tobenna <https://github.com/tobenna>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
/// <reference types="node" />
|
|
|
|
export function byteLength(value: any): number;
|
|
export function encodingLength(value: any): number;
|
|
export function encode(data: any, buffer?: Buffer, offset?: number): Buffer;
|
|
export function decode(
|
|
data: Buffer,
|
|
start?: number,
|
|
end?: number,
|
|
encoding?: string
|
|
): any;
|