1 | // Type definitions for @babel/helper-plugin-utils 7.10
|
2 | // Project: https://github.com/babel/babel/tree/main/packages/babel-helper-plugin-utils, https://babeljs.io/
|
3 | // Definitions by: ExE Boss <https://github.com/ExE-Boss>
|
4 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
5 | // TypeScript Version: 3.8
|
6 |
|
7 | import type * as babel from '@babel/core';
|
8 |
|
9 | export type BabelAPI = typeof babel & babel.ConfigAPI;
|
10 | export function declare<
|
11 | O extends Record<string, any>,
|
12 | R extends babel.PluginObj = babel.PluginObj
|
13 | >(
|
14 | builder: (api: BabelAPI, options: O, dirname: string) => R,
|
15 | ): (api: object, options: O | null | undefined, dirname: string) => R;
|