hatch-surf/node_modules/next/dist/server/route-matcher-managers/default-route-matcher-manager.d.ts
Riley Zhang df378d33ef
Some checks failed
CI / go (push) Waiting to run
CI / docker (push) Waiting to run
CI / lint-go (push) Waiting to run
CI / lint-docs (push) Waiting to run
CI / check-paperclip (push) Waiting to run
Deploy static site / Deploy to GitHub Pages (push) Has been cancelled
Deploy static site / Deploy via Docker to hatch.surf (push) Has been cancelled
Merge GitHub main into Gitea repo (allow unrelated histories)
Resolved conflicts by taking GitHub versions for:
- .dockerignore, .gitignore, Dockerfile, README.md, docker-compose.yml

Kept deploy.sh updated to:
- Pull from GitHub (primary source)
- Push to Gitea (push-mirror)
- Build from site/ directory (GitHub structure)

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-06-25 05:20:46 +02:00

40 lines
1.8 KiB
TypeScript

import type { RouteKind } from '../route-kind';
import type { RouteMatch } from '../route-matches/route-match';
import type { RouteDefinition } from '../route-definitions/route-definition';
import type { RouteMatcherProvider } from '../route-matcher-providers/route-matcher-provider';
import type { RouteMatcher } from '../route-matchers/route-matcher';
import type { MatchOptions, RouteMatcherManager } from './route-matcher-manager';
interface RouteMatchers {
static: ReadonlyArray<RouteMatcher>;
dynamic: ReadonlyArray<RouteMatcher>;
duplicates: Record<string, ReadonlyArray<RouteMatcher>>;
}
export declare class DefaultRouteMatcherManager implements RouteMatcherManager {
private readonly providers;
protected readonly matchers: RouteMatchers;
private lastCompilationID;
/**
* When this value changes, it indicates that a change has been introduced
* that requires recompilation.
*/
private get compilationID();
private waitTillReadyPromise?;
waitTillReady(): Promise<void>;
private previousMatchers;
reload(): Promise<void>;
push(provider: RouteMatcherProvider): void;
test(pathname: string, options: MatchOptions): Promise<boolean>;
match(pathname: string, options: MatchOptions): Promise<RouteMatch<RouteDefinition<RouteKind>> | null>;
/**
* This is a point for other managers to override to inject other checking
* behavior like duplicate route checking on a per-request basis.
*
* @param pathname the pathname to validate against
* @param matcher the matcher to validate/test with
* @returns the match if found
*/
protected validate(pathname: string, matcher: RouteMatcher, options: MatchOptions): RouteMatch | null;
matchAll(pathname: string, options: MatchOptions): AsyncGenerator<RouteMatch<RouteDefinition<RouteKind>>, null, undefined>;
}
export {};