/** * Copyright 2023 Kapeta Inc. * SPDX-License-Identifier: BUSL-1.1 */ declare class ClusterService { private _port; private _currentPort; private _initialized; private _reservedPorts; private _host; constructor(); reservePort(port: number | string): void; init(): Promise; _findClusterServicePort(): Promise; /** * Gets next available port */ getNextAvailablePort(startPort?: number): Promise; private resolveWithAvailablePort; /** * The port of this local cluster service itself */ getClusterServicePort(): number; getClusterServiceHost(): string; /** * Set the port to be used for this local service * @param port */ setClusterServicePort(port: number): void; setClusterServiceHost(host: string): void; /** * Gets that proxy path of a given request * * @param systemId * @param consumerInstanceId * @param consumerResourceName * @param portType * @return {string} */ getProxyPath(systemId: string, consumerInstanceId: string, consumerResourceName: string, portType: string): string; } export declare const clusterService: ClusterService; export {};