import { HealthCheck } from './health-check.js'; export declare function clearServiceAddressCache(): void; export type GetAddressForServiceParams = [ serviceName: string, exposedPort: number, options?: AddressOptions ]; export interface AddressOptions { healthCheck?: HealthCheck; tcpCheckOnly?: boolean; fiveHundedStatusIsOk?: boolean; maxRetries?: number; } type ServiceAddressKeyOptions = { projectName: string; pathToCompose: string; serviceName: string; exposedPort?: number; }; /** * removes service address from the cache, either by exact port or all known ports * @returns how many addresses were removed */ export declare function removeServiceAddressFromCache(opts: ServiceAddressKeyOptions): number; export declare function getAddressForService(projectName: string, pathToCompose: string, ...[serviceName, exposedPort, { healthCheck, tcpCheckOnly, fiveHundedStatusIsOk, maxRetries, },]: GetAddressForServiceParams): Promise; export declare function getInternalIpForService(projectName: string, pathToCompose: string, serviceName: string): Promise; export type ServiceComposeDefinition = string | [serviceName: string] | GetAddressForServiceParams; type ToServiceKey = T extends string ? T : T[0]; export type ServiceAddresses = { [K in T[number] as ToServiceKey]: string; }; export declare function getAddressesForServices(projectName: string, pathToCompose: string, defaultPort: number, ...services: ServiceDefinitions): Promise>; export {}; //# sourceMappingURL=service-compose-network.d.ts.map