import { PartialMessage, Plugin } from 'esbuild'; declare const escapeRegex: (str: string) => string; declare const commonJsTemplate: ({ importPath }: { importPath: string; }) => string; declare const normalizeNodeBuiltinPath: (path: string) => string; interface NodePolyfillsOptions { fallback?: 'empty' | 'error' | 'none'; formatError?: (this: void, args: { importer: string; moduleName: string; polyfillExists: boolean; }) => PartialMessage | Promise; globals?: { Buffer?: boolean; process?: boolean; }; modules?: Record | string[]; name?: string; namespace?: string; overrides?: Record; } declare const nodeModulesPolyfillPlugin: (options?: NodePolyfillsOptions) => Plugin; export { type NodePolyfillsOptions, commonJsTemplate, escapeRegex, nodeModulesPolyfillPlugin, normalizeNodeBuiltinPath };