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