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