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