import { PluginItem } from '@babel/core'; import { Plugin, WebpackChain } from '@kokojs/shared'; export declare type BabelPluginOptions = { presets?: PluginItem[]; plugins?: PluginItem[]; checkType?: boolean; compilePackages?: string[]; scriptTranspile?: 'dev' | 'build' | 'all' | 'none'; threadLoaderOption?: Record; nodeModulesTransform?: 'prod-only' | 'none'; }; export declare function getCacheIdentifier(): string; export declare function getBabelExcludeRegExp(compilePackages?: string[]): RegExp; export declare function applyBabelLoader(config: WebpackChain, options: BabelPluginOptions): void; export declare function applyTsChecker(config: WebpackChain): void; declare const KokoPluginBabel: Plugin; export default KokoPluginBabel;