import 'server-only'; import { type NextMiddleware } from "next/server.js"; import { type ChannelDefinition } from "@remkoj/optimizely-graph-client"; /** * Wrap the provided middleware with enforcement of the language code as the first * slug in the URL. * * @param next The Next.JS Middleware to wrap, will be invoked if there's no redirect needed * @param channel The Optimizely CMS Application definition * @returns The newly constructed Next.JS Middleware */ export declare function withLanguagePrefix(next: T, channel: ChannelDefinition): T;