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