import { IResult } from '../common';
export declare type BuildFormat = 'COMMON_JS' | 'ES_MODULE';
export declare type IBuildArgs = {
    silent?: boolean;
    watch?: boolean;
    dir?: string;
    outDir?: string;
    tsconfig?: string;
};
export declare function buildAs(formats: BuildFormat[], args?: IBuildArgs): Promise<IResult>;
declare type IArgs = IBuildArgs & {
    as?: BuildFormat;
};
export declare function build(args: IArgs): Promise<IResult & {
    errorLog?: string;
}>;
export declare function processArgs(args: IArgs): Promise<{
    code: number;
    error: Error;
    cwd?: undefined;
    outDir?: undefined;
    silent?: undefined;
    watch?: undefined;
    as?: undefined;
    tsconfig?: undefined;
} | {
    code: number;
    cwd: string;
    outDir: string;
    silent: boolean | undefined;
    watch: boolean | undefined;
    as: BuildFormat;
    tsconfig: string | undefined;
    error?: undefined;
}>;
export {};
