UNPKG

1.13 kBTypeScriptView Raw
1import * as Bluebird from 'bluebird';
2import { BitGo } from '../bitgo';
3import { PendingApproval } from './pendingApproval';
4import { BaseCoin } from './baseCoin';
5import { NodeCallback } from './types';
6export interface ListPendingApprovalsOptions {
7 walletId?: string;
8 enterpriseId?: string;
9}
10export interface GetPendingApprovalOptions {
11 id?: string;
12}
13export interface ListPendingApprovalsResult {
14 pendingApprovals: PendingApproval[];
15}
16export declare class PendingApprovals {
17 private readonly bitgo;
18 private readonly baseCoin;
19 constructor(bitgo: BitGo, baseCoin: BaseCoin);
20 /**
21 * List the pending approvals available to the user
22 * @param params
23 * @param callback
24 */
25 list(params?: ListPendingApprovalsOptions, callback?: NodeCallback<ListPendingApprovalsResult>): Bluebird<ListPendingApprovalsResult>;
26 /**
27 * Fetch an existing pending approval
28 * @param params
29 * @param callback
30 */
31 get(params?: GetPendingApprovalOptions, callback?: NodeCallback<PendingApproval>): Bluebird<PendingApproval>;
32}
33//# sourceMappingURL=pendingApprovals.d.ts.map
\No newline at end of file