1 | import * as babel from '@babel/core';
|
2 | export declare const BABEL_CONFIG: string;
|
3 | declare type SupportedEnvironments = 'commonjs' | 'module';
|
4 | export interface SuccessState {
|
5 |
|
6 | success: boolean;
|
7 | }
|
8 |
|
9 | export declare function getJSOutputFiles(inFile: string, inDir: string, outDir: string): {
|
10 | cjsFile: string;
|
11 | mjsFile: string;
|
12 | };
|
13 |
|
14 | export declare function getBabelConfig(filename: string, envName?: SupportedEnvironments, configFile?: string): babel.PartialConfig;
|
15 |
|
16 | export declare function getBabelOptions(filename: string, envName?: SupportedEnvironments, configFile?: string): babel.TransformOptions;
|
17 |
|
18 |
|
19 |
|
20 |
|
21 | export default function transpile(inFile: string, inDir: string, outDir: string, configFile: string): Promise<SuccessState>;
|
22 | export {};
|
23 |
|
\ | No newline at end of file |