/// export = streamToString; declare function streamToString( stream: NodeJS.ReadableStream, cb?: streamToString.Callback ): Promise; declare function streamToString( stream: NodeJS.ReadableStream, enc: string, cb?: streamToString.Callback ): Promise; declare namespace streamToString { type Callback = (error: Error | undefined, str: string) => void; }