/**
 * A commit records changes to the repository.
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
import type { CommitSelect, CommitWithRelations, CommitPatch } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { CommitSelect, CommitWithRelations, CommitPatch } from '../../orm/input-types';
/**
 * A commit records changes to the repository.
 *
 * @example
 * ```tsx
 * const { mutate, isPending } = useUpdateCommitMutation({
 *   selection: { fields: { id: true, name: true } },
 * });
 *
 * mutate({ id: 'value-here', commitPatch: { name: 'Updated' } });
 * ```
 */
export declare function useUpdateCommitMutation<S extends CommitSelect>(params: {
    selection: {
        fields: S & CommitSelect;
    } & HookStrictSelect<NoInfer<S>, CommitSelect>;
} & Omit<UseMutationOptions<{
    updateCommit: {
        commit: InferSelectResult<CommitWithRelations, S>;
    };
}, Error, {
    id: string;
    commitPatch: CommitPatch;
}>, 'mutationFn'>): UseMutationResult<{
    updateCommit: {
        commit: InferSelectResult<CommitWithRelations, S>;
    };
}, Error, {
    id: string;
    commitPatch: CommitPatch;
}>;
