import Docker from '@cto.ai/dockerode'; import { OpCommand } from './../types'; export declare class ContainerService { log: { (...data: any[]): void; (message?: any, ...optionalParams: any[]): void; }; container: any; getPorts: (portMap: string[]) => [string[], string[]]; hasDuplicates: (allPorts: string[]) => boolean; checkLocalPorts: (localPorts: string[]) => Promise; validatePorts: (portMap: string[]) => Promise; create: (op: OpCommand, options: Docker.ContainerCreateOptions) => Promise; /** * Starts and runs the current container. * NOTE: will `process.exit` when the container wraps up! */ start: (stream: NodeJS.ReadWriteStream) => Promise; handleStream: (stream: NodeJS.ReadWriteStream) => void; handleExit: (stream: NodeJS.ReadWriteStream, isRaw: boolean, exitStatus: number) => void; resize: () => void; }