import { AxiosResponse } from 'axios'; import { Config } from './config'; import Request from './request'; import { CasdoorResponse } from './util'; export interface Webhook { owner: string; name: string; createdTime?: string; organization?: string; url?: string; method?: string; contentType?: string; headers?: { name?: string; value?: string; }[]; events?: string[]; isUserExtended?: boolean; singleOrgOnly?: boolean; isEnabled?: boolean; tokenFields?: string[]; objectFields?: string[]; maxRetries?: number; retryInterval?: number; useExponentialBackoff?: boolean; } export declare class WebhookSDK { private config; private readonly request; constructor(config: Config, request: Request); getWebhooks(): Promise, any>>; getWebhook(id: string): Promise, any>>; modifyWebhook(method: string, webhook: Webhook, columns?: string[]): Promise, any>>; getPaginationWebhooks(p: number, pageSize: number, queryMap?: Record): Promise, any>>; addWebhook(webhook: Webhook): Promise, any>>; updateWebhook(webhook: Webhook): Promise, any>>; deleteWebhook(webhook: Webhook): Promise, any>>; }