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