/**
 * Branch heads — mutable pointers into the commit chain
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
import type { RefSelect, RefWithRelations, RefPatch } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { RefSelect, RefWithRelations, RefPatch } from '../../orm/input-types';
/**
 * Branch heads — mutable pointers into the commit chain
 *
 * @example
 * ```tsx
 * const { mutate, isPending } = useUpdateRefMutation({
 *   selection: { fields: { id: true, name: true } },
 * });
 *
 * mutate({ id: 'value-here', refPatch: { name: 'Updated' } });
 * ```
 */
export declare function useUpdateRefMutation<S extends RefSelect>(params: {
    selection: {
        fields: S & RefSelect;
    } & HookStrictSelect<NoInfer<S>, RefSelect>;
} & Omit<UseMutationOptions<{
    updateRef: {
        ref: InferSelectResult<RefWithRelations, S>;
    };
}, Error, {
    id: string;
    databaseId: string;
    refPatch: RefPatch;
}>, 'mutationFn'>): UseMutationResult<{
    updateRef: {
        ref: InferSelectResult<RefWithRelations, S>;
    };
}, Error, {
    id: string;
    databaseId: string;
    refPatch: RefPatch;
}>;
