import * as esbuild from "esbuild"; import type { BundlerCTXMap } from "../../types"; type Params = { post_build_fn?: (params: { artifacts: BundlerCTXMap[]; changed_pages?: string[]; }) => Promise | void; build_only?: boolean; start?: boolean; /** * Re-fetch server props for every HMR client after the build, even if * only client code changed. Only applies when the context is recreated. */ refresh_props?: boolean; }; /** * True when `local_path` is a hydration entry of the current esbuild context. */ export declare function isHydrationEntryPage(local_path: string): boolean; export default function allPagesESBuildContextBundler(params?: Params): Promise; /** * CommonJS `require("react")` (e.g. `use-sync-external-store/shim`, pulled * in by MUI) for a module that is external in ESM output becomes esbuild's * `__require`, which throws "Dynamic require of "react" is not supported" in * the browser. Give those requires a small bundled ESM module that imports * the external instead; esbuild wires `require()` to it. */ export declare function externalRequireShim(specifier: string): string; export declare function forceExternalReact(): esbuild.Plugin; export {};