securityos/node_modules/next/dist/build/webpack/loaders/next-middleware-loader.d.ts

13 lines
530 B
TypeScript
Raw Permalink Normal View History

2024-09-06 15:32:35 +00:00
import type { MiddlewareMatcher } from '../../analysis/get-page-static-info';
export type MiddlewareLoaderOptions = {
absolutePagePath: string;
page: string;
rootDir: string;
matchers?: string;
preferredRegion: string | string[] | undefined;
middlewareConfig: string;
};
export declare function encodeMatchers(matchers: MiddlewareMatcher[]): string;
export declare function decodeMatchers(encodedMatchers: string): MiddlewareMatcher[];
export default function middlewareLoader(this: any): Promise<string>;