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