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;
}
