import { type NextRequest, NextResponse } from "next/server.js"; type Middleware = (request: NextRequest) => Promise> | NextResponse; /** * Create a Next.JS middleware, which enhances the current middleware with an * automatic rewrite from the "old" CMS Preview URLs to the "new" CMS Preview * URLs. This will make "side-by-side" previews work, as well as can help with * supporting CMS 12 * * @param middleware Your middleware, which should be wrapped by * this middleware * @param adminSlug The slug used by Optimizely CMS for the admin * routes (defaults to "ui", a common alternative * is "episerver") * @param previewRoute The preview route within the frontend (defaults * to "/preview") * @returns The new middleware */ export declare function withEditFallback(middleware?: Middleware, adminSlug?: string, previewRoute?: string): Middleware; export {};