/**
 * Durable webhook acceptance log — one row per accepted delivery, deduplicated on (endpoint_id, external_event_id), linked to the pending function invocation it enqueued
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
import type { WebhookEventSelect, WebhookEventWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { WebhookEventSelect, WebhookEventWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const webhookEventQueryKey: (id: string | number) => readonly ["webhookevent", "detail", string | number];
/**
 * Durable webhook acceptance log — one row per accepted delivery, deduplicated on (endpoint_id, external_event_id), linked to the pending function invocation it enqueued
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useWebhookEventQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useWebhookEventQuery<S extends WebhookEventSelect, TData = {
    webhookEvent: InferSelectResult<WebhookEventWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, WebhookEventSelect>;
} & Omit<UseQueryOptions<{
    webhookEvent: InferSelectResult<WebhookEventWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Durable webhook acceptance log — one row per accepted delivery, deduplicated on (endpoint_id, external_event_id), linked to the pending function invocation it enqueued
 *
 * @example
 * ```ts
 * const data = await fetchWebhookEventQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchWebhookEventQuery<S extends WebhookEventSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, WebhookEventSelect>;
}): Promise<{
    webhookEvent: InferSelectResult<WebhookEventWithRelations, S> | null;
}>;
/**
 * Durable webhook acceptance log — one row per accepted delivery, deduplicated on (endpoint_id, external_event_id), linked to the pending function invocation it enqueued
 *
 * @example
 * ```ts
 * await prefetchWebhookEventQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchWebhookEventQuery<S extends WebhookEventSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, WebhookEventSelect>;
}): Promise<void>;
