UNPKG

@mdfriday/foundry

Version:

The core engine of MDFriday. Convert Markdown and shortcodes into fully themed static sites – Hugo-style, powered by TypeScript.

25 lines (24 loc) 699 B
export declare class BaseURL { private url; readonly withPath: string; readonly withPathNoTrailingSlash: string; readonly withoutPath: string; readonly basePath: string; readonly basePathNoTrailingSlash: string; readonly isRelative: boolean; private constructor(); static fromString(baseUrl: string): BaseURL; getRoot(path: string): string; toString(): string; path(): string; port(): number; hostURL(): string; protocol(): string; host(): string; hostname(): string; getURL(): URL; withProtocol(protocol: string): BaseURL; withPort(port: number): BaseURL; isRelativeURL(): boolean; isAbsoluteURL(): boolean; }