/** * @license * @preserve * * KeeeX SAS Public code * https://keeex.me * Copyright 2013-2023 KeeeX All Rights Reserved. * * These computer program listings and specifications, herein, * are and remain the property of KeeeX SAS. The intellectual * and technical concepts herein are proprietary to KeeeX SAS * and may be covered by EU and foreign patents, * patents in process, trade secrets and copyright law. * * These listings are published as a way to provide third party * with the ability to process KeeeX data. * As such, support for public inquiries is limited. * They are provided "as-is", without warrany of any kind. * * They shall not be reproduced or copied or used in whole or * in part as the basis for manufacture or sale of items unless * prior written permission is obtained from KeeeX SAS. * * For a license agreement, please contact: * * */ import * as ioTypes from "../shared/iotypes.js"; import * as crypto from "../utils/crypto.js"; import * as recovery from "../utils/recovery.js"; /** Exported data as JSON */ export interface JSONExport { version: 1; type: "ethereum"; privateKey?: string; publicKey?: string; address: string; } export declare const isJSONExport: import("@keeex/utils/types/types.js").TypePredicate; /** Exported data as encrypted private key */ export interface JSONSeal { version: 1; type: "ethereum"; address: string; encryptedPrivateKey: crypto.EncryptedData; publicKey?: string; } export declare const isJSONSeal: import("@keeex/utils/types/types.js").TypePredicate; interface ImportFromPrivateKeyOld { /** @deprecated Use `value` instead */ privateKeyHex: string; type: "privateKey"; } interface ImportFromPrivateKeyNew { type: "privateKey"; value: string; } export declare const isImportFromPrivateKeyNew: import("@keeex/utils/types/types.js").TypePredicate; /** Data type for import() */ export type ImportFromPrivateKey = ImportFromPrivateKeyOld | ImportFromPrivateKeyNew; interface ImportFromPublicKeyOld { /** @deprecated Use `value` instead */ publicKeyHex: string; type: "publicKey"; } interface ImportFromPublicKeyNew { value: string; type: "publicKey"; } export declare const isImportFromPublicKeyNew: import("@keeex/utils/types/types.js").TypePredicate; export type ImportFromPublicKey = ImportFromPublicKeyOld | ImportFromPublicKeyNew; /** Data type for import() */ export interface ImportFromJSON { password?: string; type: "json" | "seal"; value: string | JSONExport; } interface ImportFromRecoveryOld { /** @deprecated Use `value` instead */ recovery: recovery.RecoveryData; type: "recovery"; } interface ImportFromRecoveryNew { type: "recovery"; value: recovery.RecoveryData; } export declare const isImportFromRecoveryNew: import("@keeex/utils/types/types.js").TypePredicate; export type ImportFromRecovery = ImportFromRecoveryOld | ImportFromRecoveryNew; /** Data type for import() */ export type ImportData = ImportFromPrivateKey | ImportFromPublicKey | ioTypes.ImportFromAddress | ImportFromJSON | ImportFromRecovery; export declare const isEthereumImportData: import("@keeex/utils/types/types.js").TypePredicate; /** Data type for exportKey() */ export interface ExportJSONOptions { publicKey?: boolean; } /** Data type for exportKey() */ export interface ExportJSON { options?: ExportJSONOptions; password?: string; salt?: Uint8Array; type: "json"; } /** Data type for exportKey() */ export interface ExportSeal { password: string; salt?: Uint8Array; type: "seal"; } /** Data type for exportKey() */ export type ExportOptions = ExportJSON | ExportSeal; export {};