/** * Diagnostic data collection for `weft doctor`. * * Inspects storage to gather database health, workflow statistics, * and queue statistics, then generates actionable recommendations. * * @module diagnostics/doctor */ import type { Storage } from '../storage/interface.ts'; import type { DiagnosticReport } from './types.ts'; /** * Collect diagnostics from a Weft storage instance. * * Gathers database health, workflow statistics, and queue statistics, * then generates recommendations based on configurable thresholds. * * @example * ```ts * import { Engine, MemoryStorage, collectDiagnostics } from '@lostgradient/weft'; * * await using storage = new MemoryStorage(); * const report = await collectDiagnostics(storage, ':memory:'); * console.log(report.workflows.total); * console.log(report.recommendations.length); * ``` */ export declare function collectDiagnostics(storage: Storage, databasePath: string, options?: { now?: number; sizeLimitBytes?: number; }): Promise;