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