UNPKG

844 BTypeScriptView Raw
1import { MaybePromise } from '../common/types';
2import URI from '../common/uri';
3export interface AddressPort {
4 address: string;
5 port: number;
6}
7export declare class ExternalUriService {
8 /**
9 * Maps local to remote URLs.
10 * Should be no-op if the given URL is not a localhost URL.
11 *
12 * By default maps to an origin serving Theia.
13 *
14 * Use `parseLocalhost` to retrieve localhost address and port information.
15 */
16 resolve(uri: URI): MaybePromise<URI>;
17 parseLocalhost(uri: URI): AddressPort | undefined;
18 protected toRemoteUrl(uri: URI, address: AddressPort): URI;
19 protected toRemoteHost(address: AddressPort): string;
20 /**
21 * @returns The remote host (where the backend is running).
22 */
23 protected getRemoteHost(): string;
24}
25//# sourceMappingURL=external-uri-service.d.ts.map
\No newline at end of file