import type { HmrInfo } from './hmr-protocol.ts'; export declare const hmrInfoFileName = "hmr/info.js"; /** * Renders immutable CommonJS metadata because App startup must initialize the runtime synchronously before any entry capsule. * Freezing also prevents application code from accidentally changing the running App's build identity or socket endpoint. */ export declare function renderHmrInfo(info: HmrInfo): string; /** * Renders the native App style entry for one complete development build. * * Imported global CSS can change while the entry remains byte-identical. DevTools may then reuse an older persistent compile * cache after it restarts. Tying this inert comment to the build identity invalidates that cache once per complete build, * while incremental style updates continue changing only the imported file and therefore keep the App running. */ export declare function renderDevelopmentAppStyle(globalStyleFileName: string, buildId: string): string; /** * Atomically publishes one physical development file so DevTools can observe only complete generations. * * Writing directly to the watched JavaScript path exposes truncate and partial-write states as separate filesystem events. A * sibling temporary file plus same-filesystem rename makes the destination replacement atomic while remaining reusable for * metadata and styles; the `.txt` suffix keeps DevTools from compiling the temporary source as another Mini Program module. */ export declare function writeDevelopmentFile(outDir: string, fileName: string, source: string): Promise;