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