middleware-route-matcher.d.ts 445 B

1234567
  1. import type { BaseNextRequest } from '../../../../server/base-http';
  2. import type { MiddlewareMatcher } from '../../../../build/analysis/get-page-static-info';
  3. import type { Params } from './route-matcher';
  4. export interface MiddlewareRouteMatch {
  5. (pathname: string | null | undefined, request: BaseNextRequest, query: Params): boolean;
  6. }
  7. export declare function getMiddlewareRouteMatcher(matchers: MiddlewareMatcher[]): MiddlewareRouteMatch;