import { t } from '../common';
export declare class TypeBuilder implements t.ITypeBuilder {
    static create: () => t.ITypeBuilder;
    private constructor();
    private builders;
    toObject(): t.ITypeBuilderDefs;
    toTypeDefs(): t.INsTypeDef[];
    ns(uri?: string | t.INsUri): t.ITypeBuilderNs;
    type(typename: string, options?: t.ITypeBuilderNsTypeOptions): t.ITypeBuilderType;
    formatType(value: string): string;
    write(http: t.IHttpClient): Promise<{
        ok: boolean;
        saved: {
            typename: string;
            ns: string;
        }[];
        exists: {
            typename: string;
            ns: string;
        }[];
        errors: {
            typename: string;
            ns: string;
            error: t.IHttpError;
        }[];
    }>;
    typescript(options?: t.ITypeClientTypescriptOptions): t.ITypeClientTypescript;
    private toDef;
    private toTypeDef;
}
