/**
 * 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 { ApiModuleSelect, ApiModuleWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { ApiModuleSelect, ApiModuleWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const apiModuleQueryKey: (id: string | number) => readonly ["apimodule", "detail", string | number];
/**
 * Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useApiModuleQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useApiModuleQuery<S extends ApiModuleSelect, TData = {
    apiModule: InferSelectResult<ApiModuleWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, ApiModuleSelect>;
} & Omit<UseQueryOptions<{
    apiModule: InferSelectResult<ApiModuleWithRelations, S> | null;
}, 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 fetchApiModuleQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchApiModuleQuery<S extends ApiModuleSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, ApiModuleSelect>;
}): Promise<{
    apiModule: InferSelectResult<ApiModuleWithRelations, S> | null;
}>;
/**
 * Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server
 *
 * @example
 * ```ts
 * await prefetchApiModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchApiModuleQuery<S extends ApiModuleSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, ApiModuleSelect>;
}): Promise<void>;
