/**
 * Per-database RLS module runtime configuration; typed replacement for api_modules rls_module JSONB entries
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
import type { RlsSettingSelect, RlsSettingWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { RlsSettingSelect, RlsSettingWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const rlsSettingQueryKey: (id: string | number) => readonly ["rlssetting", "detail", string | number];
/**
 * Per-database RLS module runtime configuration; typed replacement for api_modules rls_module JSONB entries
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useRlsSettingQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useRlsSettingQuery<S extends RlsSettingSelect, TData = {
    rlsSetting: InferSelectResult<RlsSettingWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, RlsSettingSelect>;
} & Omit<UseQueryOptions<{
    rlsSetting: InferSelectResult<RlsSettingWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * Per-database RLS module runtime configuration; typed replacement for api_modules rls_module JSONB entries
 *
 * @example
 * ```ts
 * const data = await fetchRlsSettingQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchRlsSettingQuery<S extends RlsSettingSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, RlsSettingSelect>;
}): Promise<{
    rlsSetting: InferSelectResult<RlsSettingWithRelations, S> | null;
}>;
/**
 * Per-database RLS module runtime configuration; typed replacement for api_modules rls_module JSONB entries
 *
 * @example
 * ```ts
 * await prefetchRlsSettingQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchRlsSettingQuery<S extends RlsSettingSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, RlsSettingSelect>;
}): Promise<void>;
