| 1234567891011121314151617 |
- import { Route } from 'vitepress';
- export declare const hashRE: RegExp;
- export declare const extRE: RegExp;
- export declare const endingSlashRE: RegExp;
- export declare const outboundRE: RegExp;
- export declare function withBase(path: string): string;
- export declare function isExternal(path: string): boolean;
- export declare function isActive(route: Route, path?: string): boolean;
- export declare function normalize(path: string): string;
- export declare function joinUrl(base: string, path: string): string;
- /**
- * get the path without filename (the last segment). for example, if the given
- * path is `/guide/getting-started.html`, this method will return `/guide/`.
- * Always with a trailing slash.
- */
- export declare function getPathDirName(path: string): string;
- export declare function ensureEndingSlash(path: string): string;
|