UNPKG

346 BTypeScriptView Raw
1import type * as babel from "@babel/core";
2
3export type BabelAPI = typeof babel & babel.ConfigAPI;
4export 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;