import * as astro from "astro"; //#region src/db/playground-middleware.d.ts /** * Playground middleware — injected by the EmDash integration as order: "pre". * * Runs BEFORE the EmDash runtime init middleware. Creates a per-session * Durable Object database, runs migrations, applies the seed, creates an * anonymous admin user, and sets the DB in ALS via runWithContext(). * * By the time the runtime middleware runs, the ALS-scoped DB is ready. * The runtime's `db` getter checks ALS first, so all init queries * (migrations, FTS, cron, manifest) operate on the real DO database. * * This module is registered via `addMiddleware({ entrypoint: "..." })` in * the integration, NOT in the user's src/middleware.ts. */ declare const onRequest: astro.MiddlewareHandler; //#endregion export { onRequest };