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