UNPKG

@gameye/sdk

Version:
9 lines (8 loc) 523 B
/// <reference types="node" /> import { finished, Readable, Writable } from "stream"; export declare const whenFinished: typeof finished.__promisify__; export declare function writeAll(stream: Writable, data?: string): Promise<void>; export declare function readAll(stream: Readable): Promise<string>; export declare function streamify(streamPromise: Promise<Readable>): Readable; export declare const timeoutToken: unique symbol; export declare function withTimeout(promise: Promise<any>, timeout?: number): Promise<any>;