/**
 * 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, CreateViewRuleInput } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { ViewRuleSelect, ViewRuleWithRelations, CreateViewRuleInput, } from '../../orm/input-types';
/**
 * DO INSTEAD rules for views (e.g., read-only enforcement)
 *
 * @example
 * ```tsx
 * const { mutate, isPending } = useCreateViewRuleMutation({
 *   selection: { fields: { id: true, name: true } },
 * });
 *
 * mutate({ name: 'New item' });
 * ```
 */
export declare function useCreateViewRuleMutation<S extends ViewRuleSelect>(params: {
    selection: {
        fields: S & ViewRuleSelect;
    } & HookStrictSelect<NoInfer<S>, ViewRuleSelect>;
} & Omit<UseMutationOptions<{
    createViewRule: {
        viewRule: InferSelectResult<ViewRuleWithRelations, S>;
    };
}, Error, CreateViewRuleInput['viewRule']>, 'mutationFn'>): UseMutationResult<{
    createViewRule: {
        viewRule: InferSelectResult<ViewRuleWithRelations, S>;
    };
}, Error, CreateViewRuleInput['viewRule']>;
