/** * Aegis Doctor — health check diagnostics. * * Validates the Aegis installation by checking: * 1. Config file and configuration * 2. Database accessibility and schema * 3. Credential decryption (master key correctness) * 4. Expired / expiring-soon credentials * * Returns a structured list of check results that the CLI can render. */ import type Database from 'better-sqlite3-multiple-ciphers'; import type { AegisConfig } from './config.js'; export interface CheckResult { label: string; status: 'pass' | 'warn' | 'fail'; detail: string; } export interface DoctorReport { checks: CheckResult[]; overall: 'pass' | 'warn' | 'fail'; } export interface DoctorOptions { /** Resolved Aegis configuration */ config: AegisConfig; /** An open better-sqlite3 database, or null if no DB is available */ db: Database.Database | null; } /** * Run all Aegis health checks and return a structured report. */ export declare function runDoctor(opts: DoctorOptions): DoctorReport; /** * Render a DoctorReport to the console with coloured output. */ export declare function printDoctorReport(report: DoctorReport): void; //# sourceMappingURL=doctor.d.ts.map