import { P as PublicKey, K as KeyPairString, C as CurveType } from './public_key-2MzNRk5k.js'; interface Signature { signature: Uint8Array; publicKey: PublicKey; } declare abstract class KeyPairBase { abstract sign(message: Uint8Array): Signature; abstract verify(message: Uint8Array, signature: Uint8Array): boolean; abstract toString(): KeyPairString; abstract getPublicKey(): PublicKey; } declare abstract class KeyPair extends KeyPairBase { /** * @param curve Name of elliptical curve, case-insensitive * @returns Random KeyPair based on the curve */ static fromRandom(curve: CurveType): KeyPair; /** * Creates a key pair from an encoded key string. * @param encodedKey The encoded key string. * @returns {KeyPair} The key pair created from the encoded key string. */ static fromString(encodedKey: KeyPairString): KeyPair; } export { KeyPairBase as K, type Signature as S, KeyPair as a };