/**
 * DO INSTEAD rules for views (e.g., read-only enforcement)
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
import type { ViewRuleSelect, ViewRuleWithRelations } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { ViewRuleSelect, ViewRuleWithRelations } from '../../orm/input-types';
/** Query key factory - re-exported from query-keys.ts */
export declare const viewRuleQueryKey: (id: string | number) => readonly ["viewrule", "detail", string | number];
/**
 * DO INSTEAD rules for views (e.g., read-only enforcement)
 *
 * @example
 * ```tsx
 * const { data, isLoading } = useViewRuleQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true, name: true } },
 * });
 * ```
 */
export declare function useViewRuleQuery<S extends ViewRuleSelect, TData = {
    viewRule: InferSelectResult<ViewRuleWithRelations, S> | null;
}>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, ViewRuleSelect>;
} & Omit<UseQueryOptions<{
    viewRule: InferSelectResult<ViewRuleWithRelations, S> | null;
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
/**
 * DO INSTEAD rules for views (e.g., read-only enforcement)
 *
 * @example
 * ```ts
 * const data = await fetchViewRuleQuery({
 *   id: 'some-id',
 *   selection: { fields: { id: true } },
 * });
 * ```
 */
export declare function fetchViewRuleQuery<S extends ViewRuleSelect>(params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, ViewRuleSelect>;
}): Promise<{
    viewRule: InferSelectResult<ViewRuleWithRelations, S> | null;
}>;
/**
 * DO INSTEAD rules for views (e.g., read-only enforcement)
 *
 * @example
 * ```ts
 * await prefetchViewRuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
 * ```
 */
export declare function prefetchViewRuleQuery<S extends ViewRuleSelect>(queryClient: QueryClient, params: {
    id: string;
    selection: {
        fields: S;
    } & HookStrictSelect<NoInfer<S>, ViewRuleSelect>;
}): Promise<void>;
