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