/**
 * DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
import type { DomainSelect, DomainWithRelations, CreateDomainInput } from '../../orm/input-types';
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
export type { DomainSelect, DomainWithRelations, CreateDomainInput } from '../../orm/input-types';
/**
 * DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site
 *
 * @example
 * ```tsx
 * const { mutate, isPending } = useCreateDomainMutation({
 *   selection: { fields: { id: true, name: true } },
 * });
 *
 * mutate({ name: 'New item' });
 * ```
 */
export declare function useCreateDomainMutation<S extends DomainSelect>(params: {
    selection: {
        fields: S & DomainSelect;
    } & HookStrictSelect<NoInfer<S>, DomainSelect>;
} & Omit<UseMutationOptions<{
    createDomain: {
        domain: InferSelectResult<DomainWithRelations, S>;
    };
}, Error, CreateDomainInput['domain']>, 'mutationFn'>): UseMutationResult<{
    createDomain: {
        domain: InferSelectResult<DomainWithRelations, S>;
    };
}, Error, CreateDomainInput['domain']>;
