import { UseQueryOptions } from '@tanstack/react-query'; import type { GetWebhookResponseResponse } from '../responses/GetWebhookResponseResponse'; import type { GetPathParamsType, ResponseWithPagination } from '../helpers'; import { FetcherOptions } from '../../../../fetcher/index.js'; export interface GetWebhooksAccountPathParams { webhook: string; } export interface GetWebhooksAccountHeaderParams { 'Harness-Account'?: string; } export type GetWebhooksAccountOKResponse = GetWebhookResponseResponse; export type GetWebhooksAccountErrorResponse = unknown; export interface GetWebhooksOrgPathParams { org: string; webhook: string; } export interface GetWebhooksOrgHeaderParams { 'Harness-Account'?: string; } export type GetWebhooksOrgOKResponse = GetWebhookResponseResponse; export type GetWebhooksOrgErrorResponse = unknown; export interface GetWebhooksProjectPathParams { org: string; project: string; webhook: string; } export interface GetWebhooksProjectHeaderParams { 'Harness-Account'?: string; } export type GetWebhooksProjectOKResponse = GetWebhookResponseResponse; export type GetWebhooksProjectErrorResponse = unknown; export type GetWebhooksOKResponse = T extends GetWebhooksProjectPathParams ? ResponseWithPagination : T extends GetWebhooksOrgPathParams ? ResponseWithPagination : ResponseWithPagination; export type GetWebhooksErrorResponse = T extends GetWebhooksProjectPathParams ? GetWebhooksProjectErrorResponse : T extends GetWebhooksOrgPathParams ? GetWebhooksOrgErrorResponse : GetWebhooksAccountErrorResponse; export interface GetWebhooksProps extends Omit, 'url'> { pathParams: GetWebhooksAccountPathParams | GetWebhooksOrgPathParams | GetWebhooksProjectPathParams; } export declare function getWebhooks(props: T): Promise>>; export declare function useGetWebhooksQuery(props: T, options?: Omit>, GetWebhooksErrorResponse>>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult>, GetWebhooksErrorResponse>>;