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