import { AlgorithmPfx } from "./types.js"; import Certificate from "./src/certificate.js"; import Credential from "./src/credential.js"; import PfxExporter from "./src/pfx/pfx_exporter.js"; import PrivateKey from "./src/private_key.js"; import PublicKey from "./src/public_key.js"; import { localFileOpen } from "./src/node/local_file_open.js"; /** * Create a Certificate object by opening a local file. * The content file can be a certificate format X.509 PEM, X.509 DER or X.509 DER base64. * * This function only works in Node.js. */ export declare function openCertificateFile(filename: string): Certificate; /** * Create a PrivateKey object by opening a local file. * The content file can be a PKCS#8 DER, PKCS#8 PEM or PKCS#5 PEM. * * This function only works in Node.js. */ export declare function openPrivateKeyFile(filename: string, passPhrase: string): PrivateKey; /** * Create a PublicKey object by opening a local file. * * This function only works in Node.js. */ export declare function openPublicKeyFile(filename: string): PublicKey; /** * Create a Credential object based on local files. * * File paths must be local, can have no schema or file:// schema. * The certificate file content can be X.509 PEM, X.509 DER or X.509 DER base64. * The private key content can be PKCS#8 DER, PKCS#8 PEM or PKCS#5 PEM. * * This function only works in Node.js. */ export declare function openCredentialFiles(certificateFile: string, privateKeyFile: string, passPhrase: string): Credential; /** * Create a Credential object by opening a local PFX (PKCS#12) file. * * This function only works in Node.js. */ export declare function readPfxFile(filename: string, passPhrase: string): Credential; /** * Export a Credential (or PfxExporter) to a local PFX (PKCS#12) file. * * This function only works in Node.js. */ export declare function exportPfxToFile(credentialOrExporter: Credential | PfxExporter, pfxFile: string, passPhrase: string, algorithm?: AlgorithmPfx): void; export { localFileOpen };