UNPKG

778 BTypeScriptView Raw
1import type { TransformOptions } from '@babel/core';
2import type { Handler } from './handlers/index.js';
3import type { Importer } from './importer/index.js';
4import type { Resolver } from './resolver/index.js';
5export interface Config {
6 handlers?: Handler[];
7 importer?: Importer;
8 resolver?: Resolver;
9 /**
10 * shortcut for `babelOptions.filename`
11 * Set to an absolute path (recommended) to the file currently being parsed or
12 * to an relative path that is relative to the `babelOptions.cwd`.
13 */
14 filename?: string;
15 babelOptions?: TransformOptions;
16}
17export type InternalConfig = Omit<Required<Config>, 'filename'>;
18export declare const defaultHandlers: Handler[];
19export declare function createConfig(inputConfig: Config): InternalConfig;