import type { PluginItem, PluginOptions, TransformOptions } from '@babel/core'; import type { RegisterOptions } from '@babel/register'; import type { Flags as WebFlags } from './web.js'; export interface RegisterHookOptions { /** * Be careful: plugins are a nested array e.g. [[plug1, x, x], [plug2, y, y]]. * These are in addition to the default RW plugins */ plugins?: PluginItem[]; overrides?: TransformOptions['overrides']; options?: WebFlags; } /** @deprecated Please use `RegisterOptions` from `@babel/register` */ export interface BabelRegisterOptions extends TransformOptions { extensions?: string[]; cache?: boolean; } export declare const registerBabel: (options: RegisterOptions) => void; export declare const getCommonPlugins: () => [string, PluginOptions][]; export declare const getRouteHookBabelPlugins: () => (TransformOptions | (string | { alias: { 'api/src': string; }; root: string[]; cwd: string; loglevel: string; })[])[]; /** * Finds, reads and parses the [ts|js]config.json file * @returns The config object */ export declare const parseTypeScriptConfigFiles: () => { api: any; web: any; }; type CompilerOptionsForPaths = { compilerOptions: { baseUrl: string; paths: Record; }; }; /** * Extracts and formats the paths from the [ts|js]config.json file * @param config The config object * @param rootDir {string} Where the jsconfig/tsconfig is loaded from * @returns {Record} The paths object */ export declare const getPathsFromTypeScriptConfig: (config: CompilerOptionsForPaths, rootDir: string) => Record; export {}; //# sourceMappingURL=common.d.ts.map