import { SDKError } from "./Common"; import { Curve, KeyTypes, StorableKey } from "../keyManagement"; /** * thrown when at least one Mnemonic word does not match in the wordlist */ export declare class MnemonicWordError extends SDKError { constructor(words?: string[]); } /** * thrown when the number of Mnemonic words is different to expected */ export declare class MnemonicLengthError extends SDKError { constructor(); } /** * // ?? */ export declare class CouldNotParseMessageString extends SDKError { constructor(); } /** * thrown when restoring a key from a JWK */ /** * not thrown * swift throws in X25519PublicKey.verify() */ /** * thrown when Key recovery fails during restoration attempt */ export declare class KeyRestoratonFailed extends SDKError { constructor(key?: StorableKey); } /** * thrown when given Key Curve is not supported */ export declare class InvalidKeyCurve extends SDKError { constructor(keyCurve?: string, options?: Curve[]); } /** * thrown when give Key Type is not supported */ export declare class InvalidKeyType extends SDKError { constructor(keyType?: string, options?: KeyTypes[]); } /** * thrown when expected parameter is missing for Key operation */ export declare class MissingKeyParameters extends SDKError { constructor(...missing: string[]); } /** * thrown when failing to create a key */ export declare class KeyInitializationError extends SDKError { constructor(message: string); } /** * thrown when failing to create a DerivationPath */ export declare class InvalidDerivationPath extends SDKError { constructor(message: string); } /** * thrown when Apollo library returns unexpected result */ export declare class ApolloLibError extends SDKError { constructor(message: string); }