/**
 * Webhook route authority: (host, path) -> function task_identifier invoked through the webhook channel, with provider, signing-secret reference, and replay window
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
import type { WebhookEndpointSelect, WebhookEndpointWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { WebhookEndpointSelect, WebhookEndpointWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const webhookEndpointQueryKey: (id: string | number) => readonly ["webhookendpoint", "detail", string | number];
/**
 * Webhook route authority: (host, path) -> function task_identifier invoked through the webhook channel, with provider, signing-secret reference, and replay window
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useWebhookEndpointQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useWebhookEndpointQuery<S extends WebhookEndpointSelect, TData = {
    webhookEndpoint: InferSelectResult<WebhookEndpointWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, WebhookEndpointSelect>;
} & Omit<UseQueryOptions<{
    webhookEndpoint: InferSelectResult<WebhookEndpointWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Webhook route authority: (host, path) -> function task_identifier invoked through the webhook channel, with provider, signing-secret reference, and replay window
 *
 * @example
 * ```ts
 * const data = await fetchWebhookEndpointQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchWebhookEndpointQuery<S extends WebhookEndpointSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, WebhookEndpointSelect>;
}): Promise<{
    webhookEndpoint: InferSelectResult<WebhookEndpointWithRelations, S> | null;
}>;
/**
 * Webhook route authority: (host, path) -> function task_identifier invoked through the webhook channel, with provider, signing-secret reference, and replay window
 *
 * @example
 * ```ts
 * await prefetchWebhookEndpointQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchWebhookEndpointQuery<S extends WebhookEndpointSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, WebhookEndpointSelect>;
}): Promise<void>;
