import { ec as EC } from "elliptic";
interface IKeyPreferences {
    algorithm: string;
    curve: string;
}
export declare class KeyImporter {
    private keyPreferences;
    private ecKey;
    private crypto;
    constructor(keyPreferences: IKeyPreferences, ecKey: EC.KeyPair);
    static fromPrivate(hex: string, keyPreferences?: IKeyPreferences): KeyImporter;
    static fromPublic(hex: string, keyPreferences?: IKeyPreferences): KeyImporter;
    getPublicKey(): Promise<CryptoKey>;
    getRawPublicKey(): Uint8Array;
    getPrivateKey(): Promise<CryptoKey>;
    private getPkcs8FromECKey;
}
export {};
