import { Command } from '@iotize/device-client.js/client/api';
export declare class TapClientError extends Error {
    cause?: Error;
    code: string;
    constructor(code: TapClientError.Code, message?: string, cause?: Error);
    static illegalArgument(msg: string): TapClientError;
    static illegalStateError(msg: string): TapClientError;
    static encodeRequestError(command: Command, cause: Error): TapClientError;
    static decodeResponseError(cause: Error, frameOrCommand: Uint8Array | Command): TapClientError;
    static notConnectedError(): TapClientError;
}
export declare namespace TapClientError {
    enum Code {
        NotConnectedError = "NotConnectedError",
        EncodeRequestError = "EncodeRequestError",
        IllegalArgumentError = "IllegalArgumentError",
        IllegalStateError = "IllegalStateError",
        DecodeResponseError = "DecodeResponseError"
    }
}
