export interface UrlRelativePath { type: 'toParent'; } export interface UrlChildPath { type: 'toChild'; value: string; } export interface UrlQuery { type: 'query'; queryParams: UrlQueryParams; } export interface UrlQueryParams { [key: string]: string | string[]; } export interface UrlHash { type: 'hash'; value: string; } export type UrlToken = UrlRelativePath | UrlChildPath | UrlQuery | UrlHash; export interface UrlTree { paths: string[]; queryParams: UrlQueryParams; hash: string | null; } export declare class UrlParser { private index; private url; private tokens; parse(url: string): UrlTree; private readHash; private readQuery; private readQueryValue; private readQueryKey; private readPath; private not; private peek; private ignore; }