import { Params } from '../../../shared/lib/router/utils/route-matcher'; import { RouteDefinition } from '../route-definitions/route-definition'; import { RouteMatch } from '../route-matches/route-match'; export declare class RouteMatcher { readonly definition: D; private readonly dynamic?; /** * When set, this is an array of all the other matchers that are duplicates of * this one. This is used by the managers to warn the users about possible * duplicate matches on routes. */ duplicated?: Array; constructor(definition: D); /** * Identity returns the identity part of the matcher. This is used to compare * a unique matcher to another. This is also used when sorting dynamic routes, * so it must contain the pathname part. */ get identity(): string; get isDynamic(): boolean; match(pathname: string): RouteMatch | null; test(pathname: string): { params?: Params; } | null; }