import { UseMutationOptions } from '@tanstack/react-query'; import type { CreateGitXWebhookResponseResponse } from '../responses/CreateGitXWebhookResponseResponse'; import type { CreateGitXWebhookRequestRequestBody } from '../requestBodies/CreateGitXWebhookRequestRequestBody'; import type { GetPathParamsType, ResponseWithPagination } from '../helpers'; import { FetcherOptions } from '../../../../fetcher/index.js'; export interface CreateGitxWebhookRefAccountPathParams { } export interface CreateGitxWebhookRefAccountHeaderParams { 'Harness-Account'?: string; } export type CreateGitxWebhookRefAccountRequestBody = CreateGitXWebhookRequestRequestBody; export type CreateGitxWebhookRefAccountOKResponse = CreateGitXWebhookResponseResponse; export type CreateGitxWebhookRefAccountErrorResponse = unknown; export interface CreateGitxWebhookRefOrgPathParams { org: string; } export interface CreateGitxWebhookRefOrgHeaderParams { 'Harness-Account'?: string; } export type CreateGitxWebhookRefOrgRequestBody = CreateGitXWebhookRequestRequestBody; export type CreateGitxWebhookRefOrgOKResponse = CreateGitXWebhookResponseResponse; export type CreateGitxWebhookRefOrgErrorResponse = unknown; export interface CreateGitxWebhookRefProjectPathParams { org: string; project: string; } export interface CreateGitxWebhookRefProjectHeaderParams { 'Harness-Account'?: string; } export type CreateGitxWebhookRefProjectRequestBody = CreateGitXWebhookRequestRequestBody; export type CreateGitxWebhookRefProjectOKResponse = CreateGitXWebhookResponseResponse; export type CreateGitxWebhookRefProjectErrorResponse = unknown; export type CreateGitxWebhookRefOKResponse = T extends CreateGitxWebhookRefProjectPathParams ? ResponseWithPagination : T extends CreateGitxWebhookRefOrgPathParams ? ResponseWithPagination : ResponseWithPagination; export type CreateGitxWebhookRefErrorResponse = T extends CreateGitxWebhookRefProjectPathParams ? CreateGitxWebhookRefProjectErrorResponse : T extends CreateGitxWebhookRefOrgPathParams ? CreateGitxWebhookRefOrgErrorResponse : CreateGitxWebhookRefAccountErrorResponse; export interface CreateGitxWebhookRefProps extends Omit, 'url'> { pathParams: CreateGitxWebhookRefAccountPathParams | CreateGitxWebhookRefOrgPathParams | CreateGitxWebhookRefProjectPathParams; } export declare function createGitxWebhookRef(props: T): Promise>>; export declare function useCreateGitxWebhookRefMutation(options?: Omit, CreateGitxWebhookRefErrorResponse, CreateGitxWebhookRefProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult, unknown, CreateGitxWebhookRefProps, unknown>;