import { INodeData } from 'outerbridge-components'; import { IActiveTestWebhookPool, IComponentNodesPool, IReactFlowEdge, IReactFlowNode, WebhookMethod } from './Interface'; /** * This pool is to keep track of active test webhooks, * so we can clear the webhooks whenever user refresh or exit page */ export declare class ActiveTestWebhookPool { activeTestWebhooks: IActiveTestWebhookPool; /** * Add to the pool * @param {string} webhookEndpoint * @param {WebhookMethod} httpMethod * @param {IReactFlowNode[]} nodes * @param {IReactFlowEdge[]} edges * @param {INodeData} nodeData * @param {string} clientId * @param {boolean} isTestWorkflow * @param {string} webhookId */ add(webhookEndpoint: string, httpMethod: WebhookMethod, nodes: IReactFlowNode[], edges: IReactFlowEdge[], nodeData: INodeData, webhookNodeId: string, clientId: string, isTestWorkflow: boolean, webhookId?: string): void; /** * Remove all webhooks from the pool * @param {IComponentNodesPool} componentNodes */ removeAll(componentNodes: IComponentNodesPool): Promise; /** * Remove single webhook from the pool * @param {string} testWebhookKey * @param {IComponentNodesPool} componentNodes */ remove(testWebhookKey: string, componentNodes: IComponentNodesPool): Promise; }