/** * @param tar anything * @return { boolean } whether the target is a Route instance. * * @see {@link Route} */ export declare const isRoute: (tar: any) => tar is Route; /** * @param tar anything * @return { boolean } whether the target is a RouteRecord. * * @see {@link RouteRecord} */ export declare const isRouteRecord: (tar: any) => tar is RouteRecord; export interface RouteOptions { baseRoute?: Record; } export interface RouteRecord { partialUrl: string; path: string; search: string; query: string; hash: string; pathStr: string; pathArr: string[]; queryStr: string; queryObj: Record; hashStr: string; hashObj: Record; } export declare const DEFAULT_ROUTE_OPTIONS: Required; /************************************************************************************************ * * Main Route * ************************************************************************************************/ /** * */ export declare class Route { _partialUrl: string; _options: RouteOptions; _route: RouteRecord; /** * @param partialUrl same as pathname in Url, e.g. '' or '/' or '/path/to/page' or '/path/to/page?question=answer'. */ constructor(partialUrl: string, options?: RouteOptions); get isRoute(): true; static of(target: Route | RouteRecord | string, options?: RouteOptions): Route; static empty(options?: RouteOptions): Route; setUrl(url: URL): this; private correctPartialUrl; get partialUrl(): string; get value(): RouteRecord; get route(): RouteRecord; get record(): RouteRecord; resetQuery(): this; resetSearch(): this; resetHash(): this; /** * When path is changed, the query and hash will be reset. */ path(options: { path: string; }): this; search(options: { search: string; }): this; query(options: { query: string; }): this; hash(options: { hash: string; }): this; } //# sourceMappingURL=app-route__route.model.d.ts.map