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