import { UseMutationOptions } from '@tanstack/react-query'; import type { CreateWebhookResponseResponse } from '../responses/CreateWebhookResponseResponse'; import type { CreateWebhookRequestRequestBody } from '../requestBodies/CreateWebhookRequestRequestBody'; import type { GetPathParamsType, ResponseWithPagination } from '../helpers'; import { FetcherOptions } from '../../../../fetcher/index.js'; export interface CreateWebhooksAccountPathParams { } export interface CreateWebhooksAccountHeaderParams { 'Harness-Account'?: string; } export type CreateWebhooksAccountRequestBody = CreateWebhookRequestRequestBody; export type CreateWebhooksAccountOKResponse = CreateWebhookResponseResponse; export type CreateWebhooksAccountErrorResponse = unknown; export interface CreateWebhooksOrgPathParams { org: string; } export interface CreateWebhooksOrgHeaderParams { 'Harness-Account'?: string; } export type CreateWebhooksOrgRequestBody = CreateWebhookRequestRequestBody; export type CreateWebhooksOrgOKResponse = CreateWebhookResponseResponse; export type CreateWebhooksOrgErrorResponse = unknown; export interface CreateWebhooksProjectPathParams { org: string; project: string; } export interface CreateWebhooksProjectHeaderParams { 'Harness-Account'?: string; } export type CreateWebhooksProjectRequestBody = CreateWebhookRequestRequestBody; export type CreateWebhooksProjectOKResponse = CreateWebhookResponseResponse; export type CreateWebhooksProjectErrorResponse = unknown; export type CreateWebhooksOKResponse = T extends CreateWebhooksProjectPathParams ? ResponseWithPagination : T extends CreateWebhooksOrgPathParams ? ResponseWithPagination : ResponseWithPagination; export type CreateWebhooksErrorResponse = T extends CreateWebhooksProjectPathParams ? CreateWebhooksProjectErrorResponse : T extends CreateWebhooksOrgPathParams ? CreateWebhooksOrgErrorResponse : CreateWebhooksAccountErrorResponse; export interface CreateWebhooksProps extends Omit, 'url'> { pathParams: CreateWebhooksAccountPathParams | CreateWebhooksOrgPathParams | CreateWebhooksProjectPathParams; } export declare function createWebhooks(props: T): Promise>>; export declare function useCreateWebhooksMutation(options?: Omit, CreateWebhooksErrorResponse, CreateWebhooksProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult, unknown, CreateWebhooksProps, unknown>;