import { RootStore } from './RootStore'; import { HttpOperationResponse } from '@azure/ms-rest-js/es/lib/httpOperationResponse'; import { IObservableArray } from 'mobx'; import { ObservableGroupMap } from 'mobx-utils'; import { RundeckClient } from '@rundeck/client'; import { Plugin } from './Plugins'; export declare class WebhookStore { readonly root: RootStore; readonly client: RundeckClient; webhooks: IObservableArray; webhooksByUuid: Map; webhooksByProject: ObservableGroupMap; loaded: Map; constructor(root: RootStore, client: RundeckClient); load(project: string): Promise; refresh(project: string): Promise; remove(webhook: Webhook): void; add(webhook: Webhook): void; clone(webhook: Webhook): Webhook; webhooksForProject(project: string): Webhook[]; addFromApi(json: any): void; newFromApi(json: any): Webhook; save(webhook: Webhook): Promise; create(webhook: Webhook): Promise; delete(webhook: Webhook): Promise; } export declare class Webhook { readonly store: WebhookStore; uuid: string; id: string; authToken: string; enabled: boolean; name: string; creator: string; config: any; project: string; roles: string; user: string; eventPluginName: string; eventPlugin?: Plugin; new: boolean; constructor(store: WebhookStore); static FromApi(store: WebhookStore, json: any): Webhook; fromApi(json: any): void; toApi(): { uuid: string; id: string; authToken: string; enabled: boolean; name: string; creator: string; config: any; project: string; roles: string; user: string; eventPlugin: string | undefined; }; }