import type { CmsSiteContextLike } from './render'; /** * The CMS catch-all for both stx servers' `onRequest`, called AFTER * file-routed stx views have had their chance (coded pages win over CMS * pages). Returns a Response to serve, or null to fall through to the * server's normal 404. * * Order: published page -> recorded redirect -> null. Only GET/HEAD; only * with a resolved site - the platform's own hosts have no CMS tree. */ export declare function cmsPageFallback(req: Request, site: CmsSiteContextLike | null | undefined): Promise; /** * The one-call version both stx servers use from their `onResponse` hooks * when stx-serve produced a 404: coded views win by construction (they never * 404), and only then does the CMS tree get a say. Cheap exits first - the * asset-extension guard keeps missing .css/.png lookups off the database. */ export declare function cmsNotFoundFallback(req: Request): Promise;