import { HmrGraph } from '../../hmr-graph'; import { PluginHooks, PluginsExecutor } from '../../plugins-executor'; export declare function RewritePlugin({ filter }?: { filter?: RegExp | undefined; }): { name: string; setup: ({ onTransform, pluginsExecutor, ctx: { graph, config, root, isBuild }, }: PluginHooks) => void; }; export declare function rewriteImports({ source, importer, graph, pluginsExecutor, namespace, root, }: { source: string; namespace: string; importer: string; pluginsExecutor: PluginsExecutor; root: string; graph: HmrGraph; }): Promise<{ contents: string; map?: any; }>; //# sourceMappingURL=rewrite.d.ts.map