import { t as PreviewDOConfig } from "../do-types-BJix_n_E.mjs"; import { t as EmDashPreviewDB } from "../do-class-iZ1os53l.mjs"; import { Dialect } from "kysely"; //#region src/db/do-playground-routes.d.ts /** * Playground mode route gating. * * Unlike preview mode (which blocks everything except read-only API routes), * playground mode allows most routes including the admin UI and write APIs. * Only auth, setup, and abuse-prone routes are blocked. * * Pure function -- no Worker or Cloudflare dependencies. */ /** * Check whether a request should be blocked in playground mode. * * Playground allows most CMS functionality: content CRUD, schema editing, * taxonomies, menus, widgets, search, settings, and the full admin UI. * Only auth, setup, user management, media uploads, and plugin * installation are blocked. */ declare function isBlockedInPlayground(pathname: string): boolean; //#endregion //#region src/db/playground.d.ts /** * Create a playground DO dialect from config. * * Returns a dialect that throws if any query is executed outside of * the playground middleware's ALS context. In normal operation, the * middleware overrides this DB via runWithContext() on every request. * * This factory exists to satisfy the virtual module system's * createDialect() contract. The EmDash runtime creates a singleton * DB from it, but all actual queries go through the ALS-scoped DB. */ declare function createDialect(_config: PreviewDOConfig): Dialect; //#endregion export { EmDashPreviewDB, createDialect, isBlockedInPlayground };