securityos/node_modules/next/dist/server/future/route-matcher-providers/dev/dev-pages-api-route-matcher...

15 lines
878 B
TypeScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
import type { FileReader } from './helpers/file-reader/file-reader';
import { PagesAPIRouteMatcher } from '../../route-matchers/pages-api-route-matcher';
import type { LocaleRouteNormalizer } from '../../normalizers/locale-route-normalizer';
import { FileCacheRouteMatcherProvider } from './file-cache-route-matcher-provider';
export declare class DevPagesAPIRouteMatcherProvider extends FileCacheRouteMatcherProvider<PagesAPIRouteMatcher> {
private readonly pagesDir;
private readonly extensions;
private readonly localeNormalizer?;
private readonly expression;
private readonly normalizers;
constructor(pagesDir: string, extensions: ReadonlyArray<string>, reader: FileReader, localeNormalizer?: LocaleRouteNormalizer | undefined);
private test;
protected transform(files: ReadonlyArray<string>): Promise<ReadonlyArray<PagesAPIRouteMatcher>>;
}