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