/**
 * Single item 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 { RlsModuleSelect, RlsModuleWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { RlsModuleSelect, RlsModuleWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const rlsModuleQueryKey: (id: string | number) => readonly ["rlsmodule", "detail", string | number];
/**
 * Query hook for fetching a single RlsModule
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useRlsModuleQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useRlsModuleQuery<S extends RlsModuleSelect, TData = {
    rlsModule: InferSelectResult<RlsModuleWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, RlsModuleSelect>;
} & Omit<UseQueryOptions<{
    rlsModule: InferSelectResult<RlsModuleWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Fetch a single RlsModule without React hooks
 *
 * @example
 * ```ts
 * const data = await fetchRlsModuleQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchRlsModuleQuery<S extends RlsModuleSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, RlsModuleSelect>;
}): Promise<{
    rlsModule: InferSelectResult<RlsModuleWithRelations, S> | null;
}>;
/**
 * Prefetch a single RlsModule for SSR or cache warming
 *
 * @example
 * ```ts
 * await prefetchRlsModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchRlsModuleQuery<S extends RlsModuleSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, RlsModuleSelect>;
}): Promise<void>;
