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