/**
 * 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 { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
import type { ViewRuleSelect, ViewRuleWithRelations, ViewRulePatch } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { ViewRuleSelect, ViewRuleWithRelations, ViewRulePatch } from '../../orm/input-types';
/**
 * DO INSTEAD rules for views (e.g., read-only enforcement)
 *
 * @example
 * ```tsx
 * const { mutate, isPending } = useUpdateViewRuleMutation({
 *   selection: { fields: { id: true, name: true } },
 * });
 *
 * mutate({ id: 'value-here', viewRulePatch: { name: 'Updated' } });
 * ```
 */
export declare function useUpdateViewRuleMutation<S extends ViewRuleSelect>(params: {
    selection: {
        fields: S & ViewRuleSelect;
    } & HookStrictSelect<NoInfer<S>, ViewRuleSelect>;
} & Omit<UseMutationOptions<{
    updateViewRule: {
        viewRule: InferSelectResult<ViewRuleWithRelations, S>;
    };
}, Error, {
    id: string;
    viewRulePatch: ViewRulePatch;
}>, 'mutationFn'>): UseMutationResult<{
    updateViewRule: {
        viewRule: InferSelectResult<ViewRuleWithRelations, S>;
    };
}, Error, {
    id: string;
    viewRulePatch: ViewRulePatch;
}>;
