/**
 * Create 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, CreateIndexInput } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { IndexSelect, IndexWithRelations, CreateIndexInput } from '../../orm/input-types';
/**
 * Mutation hook for creating a Index
 *
 * @example
 * ```tsx
 * const { mutate, isPending } = useCreateIndexMutation({
 *   selection: { fields: { id: true, name: true } },
 * });
 *
 * mutate({ name: 'New item' });
 * ```
 */
export declare function useCreateIndexMutation<S extends IndexSelect>(params: {
    selection: {
        fields: S & IndexSelect;
    } & HookStrictSelect<NoInfer<S>, IndexSelect>;
} & Omit<UseMutationOptions<{
    createIndex: {
        index: InferSelectResult<IndexWithRelations, S>;
    };
}, Error, CreateIndexInput['index']>, 'mutationFn'>): UseMutationResult<{
    createIndex: {
        index: InferSelectResult<IndexWithRelations, S>;
    };
}, Error, CreateIndexInput['index']>;
