/** * Copyright 2023 Kapeta Inc. * SPDX-License-Identifier: BUSL-1.1 */ import { EntityList, LocalInstance, LocalInstancePort } from '@kapeta/schemas'; import { AnyMap, EnvironmentType } from '../types'; export declare function getBlockInstanceContainerName(systemId: string, instanceId: string, blockType?: string): Promise; export declare function toPortInfo(port: LocalInstancePort): LocalInstancePort | { port: number; type: string; }; export declare function getOperatorInstancePorts(systemId: string, operatorId: string, local: LocalInstance): Promise<{ portType: string; port: number | undefined; hostPort: any; protocol: string | undefined; }[]>; /** * Gets the hostname where all services are available - including the cluster service. * * For docker this is the internal docker host - otherwise it's the local machine * Assumed to be the same address as the cluster service outside docker. */ export declare function getRemoteHostForEnvironment(environment: EnvironmentType | undefined): string; /** * Get the bind address for the given environment. * * Outside of docker we bind to 127.0.0.1 - inside we bind to everything (0.0.0.0) */ export declare function getBindAddressForEnvironment(environment: EnvironmentType | undefined, preferredHost?: string): string; /** * Get the docker host IP address for port binding. */ export declare function getDockerHostIp(preferredHost?: string): string; export declare function getRemoteUrl(id: string, defautValue: string): any; export declare function readYML(path: string): any; export declare function isWindows(): boolean; export declare function isMac(): boolean; export declare function isLinux(): boolean; export declare function getResolvedConfiguration(entities?: EntityList, config?: AnyMap, globalConfiguration?: AnyMap): AnyMap;