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