import type { CryptoContext } from '../c-crypto.js'; /** * Exports a runtime-specific public key representation ({@link !KeyObject} or {@link !CryptoKey}) to * a PEM-encoded SPKI string format. * * This function is exported (as a named export) from the main `'jose'` module entry point as well * as from its subpath export `'jose/key/export'`. * * @example * * ```js * const spkiPem = await jose.exportSPKI(publicKey) * * console.log(spkiPem) * ``` * * @param key Key representation to transform to a PEM-encoded SPKI string format. */ export declare function exportSPKI(input: { key: CryptoKey; }, ctx?: CryptoContext): Promise; /** * Exports a runtime-specific private key representation ({@link !KeyObject} or {@link !CryptoKey}) to * a PEM-encoded PKCS8 string format. * * This function is exported (as a named export) from the main `'jose'` module entry point as well * as from its subpath export `'jose/key/export'`. * * @example * * ```js * const pkcs8Pem = await jose.exportPKCS8(privateKey) * * console.log(pkcs8Pem) * ``` * * @param key Key representation to transform to a PEM-encoded PKCS8 string format. */ export declare function exportPKCS8(input: { key: CryptoKey; }, _ctx?: CryptoContext): Promise; /** * Exports a runtime-specific key representation (KeyLike) to a JWK. * * This function is exported (as a named export) from the main `'jose'` module entry point as well * as from its subpath export `'jose/key/export'`. * * @example * * ```js * const privateJwk = await jose.exportJWK(privateKey) * const publicJwk = await jose.exportJWK(publicKey) * * console.log(privateJwk) * console.log(publicJwk) * ``` * * @param key Key representation to export as JWK. */ export declare const exportJwk: (input: { key: CryptoKey; }, _ctx?: CryptoContext) => Promise; export declare const exportRaw: (input: { key: CryptoKey; }, _ctx?: CryptoContext) => Promise; //# sourceMappingURL=export.d.ts.map