/**
 * Single item query hook for DbUsageModule
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
import type { DbUsageModuleSelect, DbUsageModuleWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { DbUsageModuleSelect, DbUsageModuleWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const dbUsageModuleQueryKey: (id: string | number) => readonly ["dbusagemodule", "detail", string | number];
/**
 * Query hook for fetching a single DbUsageModule
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useDbUsageModuleQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useDbUsageModuleQuery<S extends DbUsageModuleSelect, TData = {
    dbUsageModule: InferSelectResult<DbUsageModuleWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, DbUsageModuleSelect>;
} & Omit<UseQueryOptions<{
    dbUsageModule: InferSelectResult<DbUsageModuleWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Fetch a single DbUsageModule without React hooks
 *
 * @example
 * ```ts
 * const data = await fetchDbUsageModuleQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchDbUsageModuleQuery<S extends DbUsageModuleSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, DbUsageModuleSelect>;
}): Promise<{
    dbUsageModule: InferSelectResult<DbUsageModuleWithRelations, S> | null;
}>;
/**
 * Prefetch a single DbUsageModule for SSR or cache warming
 *
 * @example
 * ```ts
 * await prefetchDbUsageModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchDbUsageModuleQuery<S extends DbUsageModuleSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, DbUsageModuleSelect>;
}): Promise<void>;
