import Route from "./route"; export interface IPointerRoute { params: string[]; originalRoute: string; resolve: (params?: Map) => string; regularExpression: RegExp; } export interface IPointerMatch { route: Route; /** * Current route parameters (i.e. /users/victor = Map { 'id' => victor }) */ params: Map; /** * Original route name (i.e. /users/{id:[a-z]+}) * @deprecated */ originalRoute: string; /** * Current route name (i.e. /users/victor) */ path: string; } declare class Pointer { private readonly routes; /** * Get raw route and replace it with params */ resolve(pathname: string, params?: Map): string | undefined; get(path: string): Route | undefined; getOrFail(path: string): Route; add(route: string | Route): this; test(path: string): boolean; match(path: string): IPointerMatch | undefined; getPathMatches(path: string): IPointerMatch[]; clear(): void; } export default Pointer; //# sourceMappingURL=pointer.d.ts.map