/** * User webhook handler for v2 coins and tokens * * @prettier */ import * as Bluebird from 'bluebird'; import { BitGo } from '../bitgo'; import { BaseCoin } from './baseCoin'; import { NodeCallback } from './types'; export interface AddOptions { url: string; type: string; } export interface RemoveOptions { url: string; type: string; } export interface ListNotificationsOptions { prevId?: string; limit?: number; } export interface SimulateOptions { webhookId: string; blockId: string; } export declare class Webhooks { private bitgo; private baseCoin; constructor(bitgo: BitGo, baseCoin: BaseCoin); /** * Fetch list of user webhooks * * @param callback * @returns {*} */ list(callback: NodeCallback): Bluebird; /** * Add new user webhook * * @param params * @param callback * @returns {*} */ add(params: AddOptions, callback: NodeCallback): Bluebird; /** * Remove user webhook * * @param params * @param callback * @returns {*} */ remove(params: RemoveOptions, callback: NodeCallback): Bluebird; /** * Fetch list of webhook notifications for the user * * @param params * @param callback * @returns {*} */ listNotifications(params: ListNotificationsOptions | undefined, callback: NodeCallback): Bluebird; /** * Simulate a user webhook * * @param params * @param callback * @returns {*} */ simulate(params: SimulateOptions, callback: NodeCallback): Bluebird; } //# sourceMappingURL=webhooks.d.ts.map