import { NextRequest, NextResponse } from 'next/server'; /** * * @example * ```ts * // Basic usage * export { proxy } from 'nextra/locales' * * export const config = { * // Matcher ignoring `/_next/` and `/api/` * matcher: [ * '/((?!api|_next/static|_next/image|favicon.ico|icon.svg|apple-icon.png|manifest|_pagefind).*)' * ] * } * ``` */ declare function proxy(request: NextRequest): NextResponse | undefined; /** @deprecated Use `export { proxy } from 'nextra/locales'` instead. */ declare const middleware: typeof proxy; export { middleware, proxy };