/**
 * Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server
 * @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 { ApiModuleSelect, ApiModuleWithRelations, ApiModuleFilter, ApiModuleOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { ApiModuleSelect, ApiModuleWithRelations, ApiModuleFilter, ApiModuleOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const apiModulesQueryKey: (variables?: object) => readonly ["apimodule", "list", object];
/**
 * Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useApiModulesQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useApiModulesQuery<S extends ApiModuleSelect, TData = {
    apiModules: ConnectionResult<InferSelectResult<ApiModuleWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, ApiModuleFilter, ApiModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, ApiModuleSelect>;
} & Omit<UseQueryOptions<{
    apiModules: ConnectionResult<InferSelectResult<ApiModuleWithRelations, S>>;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server
 *
 * @example
 * ```ts
 * const data = await fetchApiModulesQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchApiModulesQuery<S extends ApiModuleSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, ApiModuleFilter, ApiModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, ApiModuleSelect>;
}): Promise<{
    apiModules: ConnectionResult<InferSelectResult<ApiModuleWithRelations, S>>;
}>;
/**
 * Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server
 *
 * @example
 * ```ts
 * await prefetchApiModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchApiModulesQuery<S extends ApiModuleSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, ApiModuleFilter, ApiModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, ApiModuleSelect>;
}): Promise<void>;
