import type * as esbuild from "esbuild"; import type { ModuleInfo } from "./module-info"; /** * Object that contains a filter and a mapping function for replacing modules * with corresponding global variables. */ export declare type GlobalsMapper = { /** * Regular expression that match module paths to be processed by this plugin. * * @see */ modulePathFilter: RegExp; /** * Function that returns either a corresponding global variable name or a * `ModuleInfo` object for the module at `modulePath`. */ getModuleInfo: (modulePath: T) => string | ModuleInfo; }; /** * Create a `Plugin` for replacing modules with corresponding global variables. * * @param globals See type declaration. */ export declare const globalExternalsWithRegExp: ( globals: GlobalsMapper ) => esbuild.Plugin; //# sourceMappingURL=with-reg-exp.d.ts.map