import type { SSRManifest } from '../core/app/types.js';
import type { MiddlewareHandler } from '../types/public/common.js';
/**
 * Builds a `MiddlewareHandler` that post-processes the rendered response
 * against the given i18n configuration. This is a thin wrapper around
 * `core/i18n/handler.ts#finalizeI18n` that preserves the middleware-shaped
 * API exposed to users via `astro:i18n.middleware(...)` for the manual
 * routing strategy.
 *
 * Only user middleware goes through this wrapper — `handleRequest`
 * invokes `finalizeI18n` directly as an explicit post-processing step.
 */
export declare function createI18nMiddleware(i18n: SSRManifest['i18n'], base: SSRManifest['base'], trailingSlash: SSRManifest['trailingSlash'], format: SSRManifest['buildFormat']): MiddlewareHandler;
