export declare const CLA = 85;
export declare const CHUNK_SIZE = 250;
export declare const APP_KEY = "CSM";
export declare const INS: {
    GET_VERSION: number;
    SIGN_SECP256K1: number;
    GET_ADDR_SECP256K1: number;
};
export declare const PAYLOAD_TYPE: {
    INIT: number;
    ADD: number;
    LAST: number;
};
export declare const P1_VALUES: {
    ONLY_RETRIEVE: number;
    SHOW_ADDRESS_IN_DEVICE: number;
};
export declare class LedgerError extends Error {
    type: LedgerErrorType;
    constructor(type: LedgerErrorType, message?: string);
    toString(): string;
}
export declare enum LedgerErrorType {
    U2FUnknown = 1,
    U2FBadRequest = 2,
    U2FConfigurationUnsupported = 3,
    U2FDeviceIneligible = 4,
    U2FTimeout = 5,
    HPRInvalid = 10,
    PKInvalidBytes = 20,
    Timeout = 30,
    NoErrors = 36864,
    DeviceIsBusy = 36865,
    ErrorDerivingKeys = 26626,
    ExecutionError = 25600,
    WrongLength = 26368,
    EmptyBuffer = 27010,
    OutputBufferTooSmall = 27011,
    DataIsInvalid = 27012,
    ConditionsNotSatisfied = 27013,
    TransactionRejected = 27014,
    BadKeyHandle = 27264,
    InvalidP1P2 = 27392,
    InstructionNotSupported = 27904,
    AppDoesNotSeemToBeOpen = 28160,
    UnknownError = 28416,
    SignVerifyError = 28417,
    UnknownResponse = 65535
}
export declare const LedgerErrorDescription: Record<LedgerErrorType, string>;
export declare function errorCodeToString(statusCode: LedgerErrorType): string;
export declare function ledgerErrorFromResponse(response?: unknown): LedgerError;
//# sourceMappingURL=common.d.ts.map