Files
SnowLuma/.pnpm-store/v11/files/09/76d200124c99b01757ec5adb33e58a6af69ceae0d3fc47a807719531bbd46375f86804effa9d4c5d31c68060ce5cc5d967de55a04c4fa470c8aa0df2839604
T
TanTan 2a69b23b47
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08:00

19 lines
823 B
Plaintext

import { ParamIndexMap, Router } from "../../router.js";
import { MatcherMap, match } from "./matcher.js";
//#region src/router/reg-exp-router/prepared-router.d.ts
type RelocateMap = Record<string, ([(number | string)[], ParamIndexMap] | [(number | string)[]])[]>;
export declare class PreparedRegExpRouter<T> implements Router<T> {
name: string;
constructor(matchers: MatcherMap<T>, relocateMap: RelocateMap);
add(method: string, path: string, handler: T): void;
protected buildAllMatchers(): MatcherMap<T>;
match: typeof match<Router<T>, T>;
}
export declare const buildInitParams: (params: {
paths: string[];
}) => ConstructorParameters<typeof PreparedRegExpRouter>;
export declare const serializeInitParams: (params: ConstructorParameters<typeof PreparedRegExpRouter>) => string;
//#endregion
export {};