import { OnApplicationBootstrap } from '@nestjs/common'; export interface RunContainerOptions { name: string; image: string; networkName: string; networkAliases?: string[]; env?: Record; binds?: string[]; dns?: string[]; networkMode?: string; labels?: Record; cmd?: string[]; entrypoint?: string[]; exposedPorts?: number[]; logConfig?: { Type: string; Config: Record; }; tmpfs?: Record; } export interface ContainerInfo { id: string; name: string; ip: string; state: string; } export declare class DockerClientService implements OnApplicationBootstrap { private readonly logger; private readonly docker; constructor(); onApplicationBootstrap(): Promise; createNetwork(instanceId: string): Promise; removeNetwork(instanceId: string): Promise; networkExists(instanceId: string): Promise; runContainer(opts: RunContainerOptions): Promise; removeContainer(nameOrId: string): Promise; inspectContainer(nameOrId: string): Promise; streamLogs(nameOrId: string, onData: (data: Buffer) => void): Promise<{ destroy: () => void; }>; pullImage(image: string, auth?: { username: string; password: string; serveraddress?: string; }): Promise; removeAllContainers(instanceId: string): Promise; cleanupOrphanedResources(): Promise; getExitedContainers(instanceId: string): Promise>; getDockerDnsIP(): string; private findNetwork; private is404; }