/**
 * List 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 { ListSelectionConfig } from '../selection';
import type { TriggerSelect, TriggerWithRelations, TriggerFilter, TriggerOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { TriggerSelect, TriggerWithRelations, TriggerFilter, TriggerOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const triggersQueryKey: (variables?: object) => readonly ["trigger", "list", object];
/**
 * Query hook for fetching Trigger list
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useTriggersQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useTriggersQuery<S extends TriggerSelect, TData = {
    triggers: ConnectionResult<InferSelectResult<TriggerWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, TriggerFilter, TriggerOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, TriggerSelect>;
} & Omit<UseQueryOptions<{
    triggers: ConnectionResult<InferSelectResult<TriggerWithRelations, S>>;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Fetch Trigger list without React hooks
 *
 * @example
 * ```ts
 * const data = await fetchTriggersQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchTriggersQuery<S extends TriggerSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, TriggerFilter, TriggerOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, TriggerSelect>;
}): Promise<{
    triggers: ConnectionResult<InferSelectResult<TriggerWithRelations, S>>;
}>;
/**
 * Prefetch Trigger list for SSR or cache warming
 *
 * @example
 * ```ts
 * await prefetchTriggersQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchTriggersQuery<S extends TriggerSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, TriggerFilter, TriggerOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, TriggerSelect>;
}): Promise<void>;
