1 | /// <reference types="node" />
|
2 | import Promise = require('promise');
|
3 | import Response = require('http-response-object');
|
4 | export declare class ResponsePromise extends Promise<Response<Buffer | string>> {
|
5 | getBody(encoding: string): Promise<string>;
|
6 | getBody(): Promise<Buffer | string>;
|
7 | }
|
8 | declare function toResponsePromise(result: Promise<Response<Buffer | string>>): ResponsePromise;
|
9 | export default toResponsePromise;
|