declare module "elliptic" { type CurvePreset = "secp256k1" | "p192" | "p224" | "p256" | "p384" | "p521" | "curve25519" | "ed25519" ; class EllipticCurve { constructor ( preset ) ; public genKeyPair ( ) ; public keyFromPublic ( publicKey , type ) ; public keyFromPrivate ( privateKey ) ; public getPublic ( privateKey ) ; } export { EllipticCurve as ec } ; }