/** * Copyright 2023 Kapeta Inc. * SPDX-License-Identifier: BUSL-1.1 */ import { EnvironmentType } from './types'; export declare const HTTP_PORT_TYPE = "http"; export declare const DEFAULT_PORT_TYPE = "http"; export declare const HTTP_PORTS: string[]; declare class ServiceManager { private _systems; constructor(); _forLocal(port: string | number, path?: string, environmentType?: EnvironmentType): string; _ensureSystem(systemId: string): any; _ensureService(systemId: string, serviceId: string): any; ensureServicePort(systemId: string, blockInstanceId: string, portType?: string): Promise; _save(): void; /** * Gets the consumable address of a service block resource * * This returns a local proxy path to allow traffic inspection and control. * */ getConsumerAddress(systemId: string, consumerInstanceId: string, consumerResourceName: string, portType: string, environmentType?: EnvironmentType): string; /** * Gets the direct address of a service block * * This returns the actual endpoint address of a service that we're talking to. * For local services this address will be on localhost - for remote services it will * be their remotely available address. * */ getProviderAddress(systemId: string, providerInstanceId: string, portType: string): Promise; getServices(): any; } export declare const serviceManager: ServiceManager; export {};