import { AbstractStartedContainer, GenericContainer, type StartedTestContainer } from "testcontainers"; import * as TPClient from "toxiproxy-node-client"; export interface CreatedProxy { host: string; port: number; instance: TPClient.Proxy; setEnabled: (enabled: boolean) => Promise; } export { TPClient }; export declare class ToxiProxyContainer extends GenericContainer { constructor(image: string); start(): Promise; } export declare class StartedToxiProxyContainer extends AbstractStartedContainer { /** * */ readonly client: TPClient.Toxiproxy; /** * * @param startedTestContainer */ constructor(startedTestContainer: StartedTestContainer); createProxy(createProxyBody: Omit): Promise; }