/**
 * Single item 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 { DevicesModuleSelect, DevicesModuleWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { DevicesModuleSelect, DevicesModuleWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const devicesModuleQueryKey: (id: string | number) => readonly ["devicesmodule", "detail", string | number];
/**
 * Query hook for fetching a single DevicesModule
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useDevicesModuleQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useDevicesModuleQuery<S extends DevicesModuleSelect, TData = {
    devicesModule: InferSelectResult<DevicesModuleWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, DevicesModuleSelect>;
} & Omit<UseQueryOptions<{
    devicesModule: InferSelectResult<DevicesModuleWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Fetch a single DevicesModule without React hooks
 *
 * @example
 * ```ts
 * const data = await fetchDevicesModuleQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchDevicesModuleQuery<S extends DevicesModuleSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, DevicesModuleSelect>;
}): Promise<{
    devicesModule: InferSelectResult<DevicesModuleWithRelations, S> | null;
}>;
/**
 * Prefetch a single DevicesModule for SSR or cache warming
 *
 * @example
 * ```ts
 * await prefetchDevicesModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchDevicesModuleQuery<S extends DevicesModuleSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, DevicesModuleSelect>;
}): Promise<void>;
