/**
 * 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, CreateCommitInput } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { CommitSelect, CommitWithRelations, CreateCommitInput } from '../../orm/input-types';
/**
 * A commit records changes to the repository.
 *
 * @example
 * ```tsx
 * const { mutate, isPending } = useCreateCommitMutation({
 *   selection: { fields: { id: true, name: true } },
 * });
 *
 * mutate({ name: 'New item' });
 * ```
 */
export declare function useCreateCommitMutation<S extends CommitSelect>(params: {
    selection: {
        fields: S & CommitSelect;
    } & HookStrictSelect<NoInfer<S>, CommitSelect>;
} & Omit<UseMutationOptions<{
    createCommit: {
        commit: InferSelectResult<CommitWithRelations, S>;
    };
}, Error, CreateCommitInput['commit']>, 'mutationFn'>): UseMutationResult<{
    createCommit: {
        commit: InferSelectResult<CommitWithRelations, S>;
    };
}, Error, CreateCommitInput['commit']>;
