/**
 * @license
 * Copyright 2022-2025 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
import { Status } from "#globals/Status.js";
import { MatterError } from "@matter/general";
/**
 * Base class for errors that should produce protocol-facing status codes.
 */
export declare class StatusResponseError extends MatterError {
    readonly code: Status;
    readonly clusterCode?: number | undefined;
    constructor(message: string, code: Status, clusterCode?: number | undefined);
    get bareMessage(): string;
    static is(error: unknown, ...codes: Status[]): error is StatusResponseError;
    get id(): string;
    static create(code: Status, message?: string, clusterCode?: number): StatusResponseError;
}
/**
 * Thrown for errors that have an unknown {@link Status} code.
 */
export declare class UnknownStatusResponseError extends StatusResponseError {
}
/**
 * A specialized {@link StatusResponseError} class for each standard {@link Status} code.
 */
export declare const StatusResponse: Record<`${keyof typeof Status}Error`, new (message?: string, clusterCode?: number) => StatusResponseError>;
/** Error class for Status response errors that were received from the other node. */
export declare class ReceivedStatusResponseError extends StatusResponseError {
}
//# sourceMappingURL=StatusResponseError.d.ts.map