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