import { UseMutationOptions } from '@tanstack/react-query'; import type { UpdateWebhookResponseResponse } from '../responses/UpdateWebhookResponseResponse'; import type { UpdateWebhookRequestRequestBody } from '../requestBodies/UpdateWebhookRequestRequestBody'; import type { GetPathParamsType, ResponseWithPagination } from '../helpers'; import { FetcherOptions } from '../../../../fetcher/index.js'; export interface UpdateWebhooksAccountPathParams { webhook: string; } export interface UpdateWebhooksAccountHeaderParams { 'Harness-Account'?: string; } export type UpdateWebhooksAccountRequestBody = UpdateWebhookRequestRequestBody; export type UpdateWebhooksAccountOKResponse = UpdateWebhookResponseResponse; export type UpdateWebhooksAccountErrorResponse = unknown; export interface UpdateWebhooksOrgPathParams { org: string; webhook: string; } export interface UpdateWebhooksOrgHeaderParams { 'Harness-Account'?: string; } export type UpdateWebhooksOrgRequestBody = UpdateWebhookRequestRequestBody; export type UpdateWebhooksOrgOKResponse = UpdateWebhookResponseResponse; export type UpdateWebhooksOrgErrorResponse = unknown; export interface UpdateWebhooksProjectPathParams { org: string; project: string; webhook: string; } export interface UpdateWebhooksProjectHeaderParams { 'Harness-Account'?: string; } export type UpdateWebhooksProjectRequestBody = UpdateWebhookRequestRequestBody; export type UpdateWebhooksProjectOKResponse = UpdateWebhookResponseResponse; export type UpdateWebhooksProjectErrorResponse = unknown; export type UpdateWebhooksOKResponse = T extends UpdateWebhooksProjectPathParams ? ResponseWithPagination : T extends UpdateWebhooksOrgPathParams ? ResponseWithPagination : ResponseWithPagination; export type UpdateWebhooksErrorResponse = T extends UpdateWebhooksProjectPathParams ? UpdateWebhooksProjectErrorResponse : T extends UpdateWebhooksOrgPathParams ? UpdateWebhooksOrgErrorResponse : UpdateWebhooksAccountErrorResponse; export interface UpdateWebhooksProps extends Omit, 'url'> { pathParams: UpdateWebhooksAccountPathParams | UpdateWebhooksOrgPathParams | UpdateWebhooksProjectPathParams; } export declare function updateWebhooks(props: T): Promise>>; export declare function useUpdateWebhooksMutation(options?: Omit, UpdateWebhooksErrorResponse, UpdateWebhooksProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult, unknown, UpdateWebhooksProps, unknown>;