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