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