interface CurveOptions { curve: "secp256k1"; curveParameters: readonly number[]; privatePEMOptions: { label: string; }; publicPEMOptions: { label: string; }; } interface PrivateKeyPKCS1 { parameters: readonly number[]; privateKey: Buffer; publicKey?: { data: Buffer; unused: number; }; version: number; } type KeyFormat = "der" | "pem" | "raw"; export declare class KeyEncoder { static ECPrivateKey8ASN: any; static ECPrivateKeyASN: any; static SubjectPublicKeyInfoASN: any; algorithmID: number[]; options: CurveOptions; constructor(options: CurveOptions | string); encodePrivate(privateKey: Buffer | string, originalFormat: KeyFormat, destinationFormat: KeyFormat, destinationFormatType?: "pkcs1" | "pkcs8"): string; encodePublic(publicKey: Buffer | string, originalFormat: KeyFormat, destinationFormat: KeyFormat): string; privateKeyObject(rawPrivateKey: string, rawPublicKey: string): PrivateKeyPKCS1; publicKeyObject(rawPublicKey: string): { algorithm: { curve: readonly number[]; id: number[]; }; pub: { data: Buffer; unused: number; }; }; private PKCS1toPKCS8; } export {}; //# sourceMappingURL=index.d.ts.map