/** * Copyright (c) 2020 TypeFox GmbH. All rights reserved. * Licensed under the GNU Affero General Public License (AGPL). * See License-AGPL.txt in the project root for license information. */ export interface UrlChange { (old: URL): Partial; } export declare type UrlUpdate = UrlChange | Partial; export declare const workspaceIDRegex: RegExp; export declare class GitpodHostUrl { readonly url: URL; constructor(urlParam?: string | URL); withWorkspacePrefix(workspaceId: string, region: string): GitpodHostUrl; withDomainPrefix(prefix: string): GitpodHostUrl; withoutWorkspacePrefix(): GitpodHostUrl; withoutDomainPrefix(removeSegmentsCount: number): GitpodHostUrl; with(urlUpdate: UrlUpdate): GitpodHostUrl; withApi(urlUpdate?: UrlUpdate): GitpodHostUrl; withContext(contextUrl: string): GitpodHostUrl; asWebsocket(): GitpodHostUrl; asDashboard(): GitpodHostUrl; asLogin(): GitpodHostUrl; asUpgradeSubscription(): GitpodHostUrl; asAccessControl(): GitpodHostUrl; asSettings(): GitpodHostUrl; asGraphQLApi(): GitpodHostUrl; asWorkspaceAuth(instanceID: string, redirect?: boolean): GitpodHostUrl; toString(): string; toStringWoRootSlash(): string; readonly workspaceId: string | undefined; } //# sourceMappingURL=gitpod-host-url.d.ts.map