/**
 * Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
import type { ApiModuleSelect, ApiModuleWithRelations, CreateApiModuleInput } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { ApiModuleSelect, ApiModuleWithRelations, CreateApiModuleInput, } from '../../orm/input-types';
/**
 * Server-side module configuration for an API endpoint; stores module name and JSON settings used by the application server
 *
 * @example
 * ```tsx
 * const { mutate, isPending } = useCreateApiModuleMutation({
 *   selection: { fields: { id: true, name: true } },
 * });
 *
 * mutate({ name: 'New item' });
 * ```
 */
export declare function useCreateApiModuleMutation<S extends ApiModuleSelect>(params: {
    selection: {
        fields: S & ApiModuleSelect;
    } & HookStrictSelect<NoInfer<S>, ApiModuleSelect>;
} & Omit<UseMutationOptions<{
    createApiModule: {
        apiModule: InferSelectResult<ApiModuleWithRelations, S>;
    };
}, Error, CreateApiModuleInput['apiModule']>, 'mutationFn'>): UseMutationResult<{
    createApiModule: {
        apiModule: InferSelectResult<ApiModuleWithRelations, S>;
    };
}, Error, CreateApiModuleInput['apiModule']>;
