import type { InputOptions, OutputOptions } from 'rolldown'; import { type DevEngine } from 'rolldown/experimental'; import type { ViteDevServer } from 'vite'; import type { MiniContract } from '../mini-contract.ts'; import type { MiniHmrMode } from './hmr-mode.ts'; type BundledDevRolldownOptions = InputOptions & { experimental?: { [key: string]: unknown; devMode?: boolean | Record; }; output?: OutputOptions | OutputOptions[]; }; export type BundledDev = { _devEngine?: DevEngine; getRolldownOptions(): Promise; listen(): Promise; triggerBundleRegenerationIfStale(): Promise; }; /** * Installs physical Mini Program output and runtime conventions over Vite's browser-oriented bundled-development options. * Build completion deliberately remains outside this options adapter: DevEngine onOutput is the single lifecycle authority. */ export declare function installMiniDevOptions({ bundledDev, server, contract, hmrMode }: { bundledDev: BundledDev; server: ViteDevServer; contract: Pick; hmrMode: MiniHmrMode; }): void; /** Returns the configured output after rejecting states unsupported by the physical Mini Program engine. */ export declare function requireSingleOutput(rolldownOptions: BundledDevRolldownOptions): OutputOptions; export {};