import { UseMutationOptions } from '@tanstack/react-query'; import type { WebhookResponseResponse } from '../responses/WebhookResponseResponse'; import type { BadRequestResponse } from '../responses/BadRequestResponse'; import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse'; import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse'; import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse'; import type { WebhookRequestRequestBody } from '../requestBodies/WebhookRequestRequestBody'; import type { ResponseWithPagination } from '../helpers'; import { FetcherOptions } from '../../../../fetcher/index.js'; export interface CreateWebhookMutationPathParams { registry_ref: string; } export type CreateWebhookRequestBody = WebhookRequestRequestBody; export type CreateWebhookOkResponse = ResponseWithPagination; export type CreateWebhookErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | InternalServerErrorResponse; export interface CreateWebhookProps extends CreateWebhookMutationPathParams, Omit, 'url'> { body: CreateWebhookRequestBody; } export declare function createWebhook(props: CreateWebhookProps): Promise; /** * Returns Webhook Details */ export declare function useCreateWebhookMutation(options?: Omit, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult;