/// <reference types="node" />
import { RsaParameters, ECParameters } from '../publicKeyAlgorithm';
export declare function formatPem(keyBytes: Buffer, name: string): string;
export declare function parsePem(key: string): Buffer;
/**
 * Provides *minimal* PKCS#1 import/export support for Node.js keys.
 *
 * This code is redundant with some of the PKCS#1 import/export code in the separate
 * `ssh-keys` library; that is intentional, and necessary to support a consistent
 * interface for importing/exporting key parameters in the core `ssh` library.
 */
export declare class Pkcs1KeyFormatter {
    static formatRsaPublic(rsa: RsaParameters): Buffer;
    static formatRsaPrivate(rsa: RsaParameters): Buffer;
    static parseRsaPublic(keyBytes: Buffer): RsaParameters;
    static parseRsaPrivate(keyBytes: Buffer): RsaParameters;
}
/**
 * Provides *minimal* SEC1 import/export support for Node.js keys.
 *
 * This code is redundant with some of the SEC1 import/export code in the separate
 * `ssh-keys` library; that is intentional, and necessary to support a consistent
 * interface for importing/exporting key parameters in the core `ssh` library.
 */
export declare class Sec1KeyFormatter {
    private static readonly ecPublicKeyOid;
    static formatECPublic(ec: ECParameters): Buffer;
    static formatECPrivate(ec: ECParameters): Buffer;
    static parseECPublic(keyBytes: Buffer): ECParameters;
    static parseECPrivate(keyBytes: Buffer): ECParameters;
}
//# sourceMappingURL=keyFormatters.d.ts.map