/**
 * Database-backed Certificate Manager for SmartACME
 *
 * Implements ICertManager interface to store SSL certificates directly in SmartDB.
 * Certificate PEM content is stored in the database, not on the filesystem.
 */
import * as plugins from '../plugins.js';
import { OneboxDatabase } from '../database/index.js';
export declare class DatabaseCertManager implements plugins.smartacme.ICertManager {
    private database;
    constructor(database: OneboxDatabase);
    /**
     * Initialize the certificate manager
     */
    init(): Promise<void>;
    /**
     * Retrieve a certificate by domain name
     */
    retrieveCertificate(domainName: string): Promise<plugins.smartacme.Cert | null>;
    /**
     * Store a certificate
     */
    storeCertificate(cert: plugins.smartacme.Cert): Promise<void>;
    /**
     * Delete a certificate
     */
    deleteCertificate(domainName: string): Promise<void>;
    /**
     * Close the certificate manager
     */
    close(): Promise<void>;
    /**
     * Wipe all certificates (for testing)
     */
    wipe(): Promise<void>;
    /**
     * Extract the first certificate from a PEM chain
     */
    private extractCertFromChain;
}
