/** * Reads an MCP App bundle, serving it from memory once it has been read. * * Each app ships as one inlined HTML file, so a read hands over the whole * bundle: around 0.7 MB for a map app, which loads MapLibre from a CDN. * That file only changes when `build:apps` runs, so re-reading and re-decoding * it on every render is pure overhead. * * Validated against mtime and size rather than cached outright, which keeps a * rebuild visible to an already-running server: the `pnpm ui` loop rebuilds the * apps under a server started from `dist`, and a blind cache would serve the * previous bundle until restart. A `stat` costs about a hundredth of what * reading the file costs, so the check is close to free. * * Only successful reads are cached, so a server started before `build:apps` ran * fails each app read until the apps exist, then serves them without a restart. * * @param htmlPath - Absolute path to the app's `app.html` * @returns The bundle's contents * @throws If the file cannot be stat'd or read */ export declare function readAppHtml(htmlPath: string): Promise; //# sourceMappingURL=appHtmlCache.d.ts.map