/**
 * @license
 * Copyright 2022-2026 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
/**
 * Thrown from terminal methods when process exits with an error code.
 */
export declare class NonZeroExitError extends Error {
    readonly code: number;
    constructor(code: number, message?: string);
}
/**
 * Thrown when Docker API reports an error.
 */
export declare class DockerError extends Error {
    readonly code: number;
    readonly textCode: string;
    constructor(message: string, code: number, textCode: string);
    static accept(error: any, ...codes: number[]): void;
}
export declare namespace DockerError {
    function adapt<T>(source: Promise<T>): Promise<T>;
    function translate(error: unknown): Error;
}
//# sourceMappingURL=errors.d.ts.map