UNPKG

932 BTypeScriptView Raw
1/**
2 * @prettier
3 */
4import * as superagent from 'superagent';
5import { BitGo, VerifyResponseOptions } from './bitgo';
6/**
7 * Serialize request data based on the request content type
8 * Note: Not sure this is still needed or even useful. Consider removing.
9 * @param req
10 */
11export declare function serializeRequestData(req: superagent.Request): string | undefined;
12/**
13 * Set the superagent query string correctly for browsers or node.
14 * @param req
15 */
16export declare function setRequestQueryString(req: superagent.SuperAgentRequest): void;
17/**
18 * Verify that the response received from the server is signed correctly.
19 * Right now, it is very permissive with the timestamp variance.
20 */
21export declare function verifyResponse(bitgo: BitGo, token: string | undefined, method: VerifyResponseOptions['method'], req: superagent.SuperAgentRequest, response: superagent.Response): superagent.Response;
22//# sourceMappingURL=api.d.ts.map
\No newline at end of file