import type { Readable } from "node:stream"; import type Dockerode from "dockerode"; import type { ContainerInspectInfo } from "dockerode"; import type { RestartOptions, StartedTestContainer, StopOptions, StoppedTestContainer } from "../test-container"; import type { CommitOptions, ContentToCopy, CopyToContainerOptions, DirectoryToCopy, ExecOptions, ExecResult, FileToCopy, Labels } from "../types"; import { BoundPorts } from "../utils/bound-ports"; import type { WaitStrategy } from "../wait-strategies/wait-strategy"; export declare class StartedGenericContainer implements StartedTestContainer { private readonly container; private readonly host; private inspectResult; private boundPorts; private readonly name; private readonly waitStrategy; private readonly autoRemove; private stoppedContainer?; private readonly stopContainerLock; constructor(container: Dockerode.Container, host: string, inspectResult: ContainerInspectInfo, boundPorts: BoundPorts, name: string, waitStrategy: WaitStrategy, autoRemove: boolean); protected containerIsStopping?(): Promise; stop(options?: Partial): Promise; /** * Construct the command(s) to apply changes to the container before committing it to an image. */ private getContainerCommitChangeCommands; commit(options: CommitOptions): Promise; protected containerIsStopped?(): Promise; restart(options?: Partial): Promise; private stopContainer; getHost(): string; getHostname(): string; getFirstMappedPort(): number; getMappedPort(port: string | number, protocol?: string): number; getId(): string; getName(): string; getLabels(): Labels; getNetworkNames(): string[]; getNetworkId(networkName: string): string; getIpAddress(networkName: string): string; private getNetworkSettings; copyFilesToContainer(filesToCopy: FileToCopy[]): Promise; copyDirectoriesToContainer(directoriesToCopy: DirectoryToCopy[]): Promise; copyContentToContainer(contentsToCopy: ContentToCopy[]): Promise; copyArchiveToContainer(tar: Readable, target?: string, options?: CopyToContainerOptions): Promise; copyArchiveFromContainer(path: string): Promise; exec(command: string | string[], opts?: Partial): Promise; logs(opts?: { since?: number; tail?: number; }): Promise; [Symbol.asyncDispose](): Promise; }