/**
 * Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site
 * @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 { SiteModuleSelect, SiteModuleWithRelations, SiteModuleFilter, SiteModuleOrderBy } from '../../orm/input-types';
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
export type { SiteModuleSelect, SiteModuleWithRelations, SiteModuleFilter, SiteModuleOrderBy, } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const siteModulesQueryKey: (variables?: object) => readonly ["sitemodule", "list", object];
/**
 * Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useSiteModulesQuery({
 *   selection: {
 *     fields: { id: true, name: true },
 *     where: { name: { equalTo: "example" } },
 *     orderBy: ['CREATED_AT_DESC'],
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function useSiteModulesQuery<S extends SiteModuleSelect, TData = {
    siteModules: ConnectionResult<InferSelectResult<SiteModuleWithRelations, S>>;
}>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, SiteModuleFilter, SiteModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, SiteModuleSelect>;
} & Omit<UseQueryOptions<{
    siteModules: ConnectionResult<InferSelectResult<SiteModuleWithRelations, S>>;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site
 *
 * @example
 * ```ts
 * const data = await fetchSiteModulesQuery({
 *   selection: {
 *     fields: { id: true },
 *     first: 10,
 *   },
 * });
 * ```
 */
export declare function fetchSiteModulesQuery<S extends SiteModuleSelect>(params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, SiteModuleFilter, SiteModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, SiteModuleSelect>;
}): Promise<{
    siteModules: ConnectionResult<InferSelectResult<SiteModuleWithRelations, S>>;
}>;
/**
 * Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site
 *
 * @example
 * ```ts
 * await prefetchSiteModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
 * ```
 */
export declare function prefetchSiteModulesQuery<S extends SiteModuleSelect>(queryClient: QueryClient, params: {
    selection: {
        fields: S;
    } & Omit<ListSelectionConfig<S, SiteModuleFilter, SiteModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, SiteModuleSelect>;
}): Promise<void>;
