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