import { ED25519Keypair, ED25519RawPublicKey, ED25519RawSecretKey, ED25519RawSignature } from "./types"; export declare const IV_LENGTH = 12; export declare const SEED_LENGTH = 32; export declare const PUBLIC_KEY_LENGTH = 32; export declare const SECRET_KEY_LENGTH = 64; export declare const SIGNATURE_LENGTH = 64; export declare function generateRandomBytes(len: number): Uint8Array; /** * Zeroes a byte buffer in place. Best-effort — JS strings can't be wiped, * so decoded base64 keys should be converted to bytes as early as possible * and the string reference dropped as soon as practical. */ export declare function secureWipe(buf?: Uint8Array): void; export declare function generateEd25519Keypair(): ED25519Keypair; export declare function getPublicKeyFromSecretKey(secret: ED25519RawSecretKey): ED25519RawPublicKey; export declare function sign(secret: ED25519RawSecretKey, message: Uint8Array): Uint8Array; export declare function verify(publicKey: ED25519RawPublicKey, payload: Uint8Array, signature: ED25519RawSignature): boolean;