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