import { CryptoKey } from '../types.d.cjs';
import { KeyImportOptions } from '../key/import.cjs';

declare const toSPKI: (key: unknown) => Promise<string>;
declare const toPKCS8: (key: unknown) => Promise<string>;
type PEMImportFunction = (pem: string, alg: string, options?: KeyImportOptions) => Promise<CryptoKey>;
declare const fromPKCS8: PEMImportFunction;
declare const fromSPKI: PEMImportFunction;
declare const fromX509: PEMImportFunction;

export { fromPKCS8, fromSPKI, fromX509, toPKCS8, toSPKI };
