///
///
import { Readable, Writable } from "stream";
declare function encodeInt(int: number, to: Writable): void;
declare function encodeString(str: string, to: Writable): void;
declare function encodeBuffer(buf: Buffer, to: Writable): void;
declare function encodeStream(from: Readable, length: number, to: Writable): Promise;
/**
*
* @param add should add the items to the stream
* @param to the stream to add the list to
*/
declare function encodeList(add: (to: Writable) => Promise, to: Writable): Promise;
/**
*
* @param add should add the key and value pairs to the stream
* @param to the stream to add the dictionary to
*/
declare function encodeDict(add: (to: Writable) => Promise, to: Writable): Promise;
declare function encodeObj(obj: unknown, to: Writable): Promise;
export declare const bencodeStreamable: {
encodeInt: typeof encodeInt;
encodeString: typeof encodeString;
encodeBuffer: typeof encodeBuffer;
encodeStream: typeof encodeStream;
encodeList: typeof encodeList;
encodeDict: typeof encodeDict;
encodeObj: typeof encodeObj;
};
export {};