import { Page } from "@playwright/test";
import { ApiHelpers } from "./ApiHelpers";
export declare class WebhookApiHelper {
    api: ApiHelpers;
    page: Page;
    webhookSiteUrl: string;
    constructor(api: ApiHelpers, page: Page);
    get(id: string): Promise<any>;
    doesExist(id: string): Promise<boolean>;
    create(webhookData: any): Promise<string | undefined>;
    delete(id: string): Promise<import("playwright-core").APIResponse>;
    update(webhook: object): Promise<import("playwright-core").APIResponse>;
    getAll(): Promise<import("playwright-core").APIResponse>;
    doesNameExist(name: string): Promise<any>;
    getByName(name: string): Promise<any>;
    ensureNameNotExists(name: string): Promise<import("playwright-core").APIResponse | null>;
    generateWebhookSiteToken(): Promise<any>;
    getWebhookSiteRequestResponse(webhookSiteToken: string, timeoutMs?: number, pollInterval?: number): Promise<any>;
    doesWebhookHaveEvent(webhookName: string, eventName: string): Promise<any>;
    doesWebhookHaveContentTypeId(webhookName: string, contentTypeId: string): Promise<any>;
    doesWebhookHaveHeader(webhookName: string, headerName: string, headerValue: string): Promise<boolean>;
    doesWebhookHaveUrl(webhookName: string, url: string): Promise<boolean>;
    isWebhookEnabled(webhookName: string, isEnabled?: boolean): Promise<void>;
    getEventTypeValue(eventName: string): Promise<string>;
    getEventAliasValue(eventName: string): Promise<string>;
    createDefaultWebhook(webhookName: string, webhookSiteToken: string, eventName?: string, isEnabled?: boolean): Promise<string | undefined>;
    createWebhookForSpecificContentType(webhookName: string, webhookSiteToken: string, eventName: string, contentTypeName: string): Promise<string | undefined>;
    createWebhookWithHeader(webhookName: string, webhookSiteToken: string, eventName: string, headerName: string, headerValue: string): Promise<string | undefined>;
}
