/**
 * Update mutation hook for View
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
import type { ViewSelect, ViewWithRelations, ViewPatch } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { ViewSelect, ViewWithRelations, ViewPatch } from '../../orm/input-types';
/**
 * Mutation hook for updating a View
 *
 * @example
 * ```tsx
 * const { mutate, isPending } = useUpdateViewMutation({
 *   selection: { fields: { id: true, name: true } },
 * });
 *
 * mutate({ id: 'value-here', viewPatch: { name: 'Updated' } });
 * ```
 */
export declare function useUpdateViewMutation<S extends ViewSelect>(params: {
    selection: {
        fields: S & ViewSelect;
    } & HookStrictSelect<NoInfer<S>, ViewSelect>;
} & Omit<UseMutationOptions<{
    updateView: {
        view: InferSelectResult<ViewWithRelations, S>;
    };
}, Error, {
    id: string;
    viewPatch: ViewPatch;
}>, 'mutationFn'>): UseMutationResult<{
    updateView: {
        view: InferSelectResult<ViewWithRelations, S>;
    };
}, Error, {
    id: string;
    viewPatch: ViewPatch;
}>;
