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