import { ApolloClient, DocumentNode, NormalizedCacheObject } from '@apollo/client'; import { WebhookConfig } from '../types'; /** * GetWebhooks options * @param fragment Allows you to override the default query to request more fields */ export interface GetWebhooksOptions { fragment?: Record; } /** * CreateWebhook options * @param fragment Allows you to override the default query to request more fields */ export interface CreateWebhookOptions { fragment?: Record; } /** * Contains various methods for Photon Webhooks */ export declare class WebhookQueryManager { private apollo; /** * @param apollo - An Apollo client instance */ constructor(apollo: ApolloClient | ApolloClient); /** * Retrieves list of webhook associated with currently authenticated organization * @param options - Query options * @returns */ getWebhooks({ fragment }?: GetWebhooksOptions): Promise>; /** * Creates a new webhook for the authenticated organization * @param options - Query options * @returns */ createWebhook({ fragment }: CreateWebhookOptions): import("../utils").MakeMutationReturn<{ createWebhookConfig: WebhookConfig; } | null | undefined>; /** * Deletes a webhook, by id, inside the currently authenticated organization * @returns */ deleteWebhook(): import("../utils").MakeMutationReturn<{ deleteWebhookConfig: boolean; } | null | undefined>; }