/**
 * @license
 * Copyright 2022-2026 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
import { Container } from "./container.js";
import { Docker } from "./docker.js";
/**
 * Builder for a group of containers.
 */
export declare class Composition {
    #private;
    constructor(docker: Docker, name: string, defaultConfig?: Partial<Container.Configuration>);
    get closed(): Promise<void>;
    get(name: string): Container;
    close(): Promise<void>;
    add(config: Partial<Container.Configuration> & {
        name: string;
        recreate?: boolean;
        autoKill?: boolean;
        waitForStartup?: (ct: Container) => Promise<void>;
        onExit?: () => void | Promise<void>;
        onError?: (cause: Error) => void | Promise<void>;
    }): Promise<Container>;
}
//# sourceMappingURL=composition.d.ts.map