/** * An `encode` implementation for {@link ExternalBundleWebpackPlugin} that emits * a **web binary bundle** (the `.web.bundle` format decoded by * `@lynx-js/web-core`) via `@lynx-js/web-core/encode`, instead of the native * TASM format produced by `@lynx-js/tasm`. * * Differences from the native encoder, all required by the web platform: * - Sections are routed to the bundle slot whose chunk format they match, * instead of all going into custom sections, keyed by the `encoding` tag * `ExternalBundleWebpackPlugin` sets from each chunk's layer: the main-thread * chunk (`JsBytecode`) goes into `lepusCode`, every other JS chunk into * `manifest`, and `CSS` chunks into the StyleInfo section. The web runtime * then loads each through the same path the card uses for its own * lepus/manifest chunks. * - JS is kept as **raw source** — the `JsBytecode` tag only selects the slot; * the chunk is not bytecode-compiled. The web runtime wraps each section when * `lynx.loadScript` evaluates it, so the build must not wrap it here. * * @public */ export declare function getWebEncodeMode(): (opts: unknown) => Promise<{ buffer: Buffer; }>;