export type AesResult = { encrypted: Uint8Array; iv: Uint8Array; }; export type KeyPair = { publicKey: Uint8Array; secretKey: Uint8Array; }; export type Uint8ArrayOutputFormat = 'uint8array'; export type StringOutputFormat = 'text' | 'hex' | 'base64'; export type OutputFormat = | StringOutputFormat | Uint8ArrayOutputFormat | null | undefined; export interface UintKeyPair { keyType: KeyType; privateKey: Uint8Array; publicKey: Uint8Array; } export interface StringKeyPair { keyType: KeyType; privateKey: string; publicKey: string; } // licensed under MIT, see LICENSE_Libsodiumjs export enum base64_variants { ORIGINAL = 1, ORIGINAL_NO_PADDING = 3, URLSAFE = 5, URLSAFE_NO_PADDING = 7, }