/**
 * Single item query hook for WebhookModule
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
import type { WebhookModuleSelect, WebhookModuleWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { WebhookModuleSelect, WebhookModuleWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const webhookModuleQueryKey: (id: string | number) => readonly ["webhookmodule", "detail", string | number];
/**
 * Query hook for fetching a single WebhookModule
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useWebhookModuleQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useWebhookModuleQuery<S extends WebhookModuleSelect, TData = {
    webhookModule: InferSelectResult<WebhookModuleWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, WebhookModuleSelect>;
} & Omit<UseQueryOptions<{
    webhookModule: InferSelectResult<WebhookModuleWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Fetch a single WebhookModule without React hooks
 *
 * @example
 * ```ts
 * const data = await fetchWebhookModuleQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchWebhookModuleQuery<S extends WebhookModuleSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, WebhookModuleSelect>;
}): Promise<{
    webhookModule: InferSelectResult<WebhookModuleWithRelations, S> | null;
}>;
/**
 * Prefetch a single WebhookModule for SSR or cache warming
 *
 * @example
 * ```ts
 * await prefetchWebhookModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchWebhookModuleQuery<S extends WebhookModuleSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, WebhookModuleSelect>;
}): Promise<void>;
