import { Buffer } from 'buffer'; declare function sha256(input: Uint8Array): Promise; interface Keypair { publicKey: string; secretKey: string; } /** * Generate a new Ed25519 keypair * @returns A keypair with base58-encoded public and secret keys */ declare function generateKeyPair(): Keypair; /** * Create a keypair from a base58-encoded private key * @param b58PrivateKey - Base58-encoded private key * @returns A keypair with base58-encoded public and secret keys */ declare function createKeyPairFromSecret(b58PrivateKey: string): Keypair; /** * Sign data using Ed25519 with a secret key * @param secretKey - Base58-encoded secret key or raw Uint8Array * @param data - Data to sign (string, Uint8Array, or Buffer) * @returns Base64-encoded signature */ declare function signWithSecret(secretKey: string | Uint8Array, data: string | Uint8Array | Buffer): Uint8Array; export { Keypair, createKeyPairFromSecret, generateKeyPair, sha256, signWithSecret };