import * as babel from '@babel/core'; export declare const BABEL_CONFIG: string; declare type SupportedEnvironments = 'commonjs' | 'module'; export interface SuccessState { /** Whether the transpilation was successful. */ success: boolean; } /** Transpiled the file to all of the supported formats. */ export declare function getJSOutputFiles(inFile: string, inDir: string, outDir: string): { cjsFile: string; mjsFile: string; }; /** Load @design-systems/cli's default babel.config.js */ export declare function getBabelConfig(filename: string, envName?: SupportedEnvironments, configFile?: string): babel.PartialConfig; /** Load the options (cli's + user) for babel. */ export declare function getBabelOptions(filename: string, envName?: SupportedEnvironments, configFile?: string): babel.TransformOptions; /** * Transpile a JS file using babel. * Write the CJS and ESM versions to disk. */ export default function transpile(inFile: string, inDir: string, outDir: string, configFile: string): Promise; export {}; //# sourceMappingURL=babel.d.ts.map