1 | import type * as babel from "@babel/core";
|
2 |
|
3 | export type BabelAPI = typeof babel & babel.ConfigAPI;
|
4 | export function declare<
|
5 | O extends Record<string, any>,
|
6 | R extends babel.PluginObj = babel.PluginObj,
|
7 | >(
|
8 | builder: (api: BabelAPI, options: O, dirname: string) => R,
|
9 | ): (api: object, options: O | null | undefined, dirname: string) => R;
|