1 | import * as Bluebird from 'bluebird';
|
2 | import { BitGo } from '../bitgo';
|
3 | import { PendingApproval } from './pendingApproval';
|
4 | import { BaseCoin } from './baseCoin';
|
5 | import { NodeCallback } from './types';
|
6 | export interface ListPendingApprovalsOptions {
|
7 | walletId?: string;
|
8 | enterpriseId?: string;
|
9 | }
|
10 | export interface GetPendingApprovalOptions {
|
11 | id?: string;
|
12 | }
|
13 | export interface ListPendingApprovalsResult {
|
14 | pendingApprovals: PendingApproval[];
|
15 | }
|
16 | export 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 |