lingjing/node_modules/next/dist/shared/lib/router/utils/middleware-route-matcher.d.ts
2026-02-23 09:51:43 +00:00

8 lines
453 B
TypeScript

import type { BaseNextRequest } from '../../../../server/base-http';
import type { ProxyMatcher } from '../../../../build/analysis/get-page-static-info';
import type { Params } from '../../../../server/request/params';
export interface MiddlewareRouteMatch {
(pathname: string | null | undefined, request: BaseNextRequest, query: Params): boolean;
}
export declare function getMiddlewareRouteMatcher(matchers: ProxyMatcher[]): MiddlewareRouteMatch;