/** * Diagnostics Engine Operations — business logic layer. * * Contains all diagnostics domain EngineResult wrappers migrated from * `packages/cleo/src/dispatch/engines/diagnostics-engine.ts` (ENG-MIG-13 / T1580). * * Wraps the telemetry primitives in `@cleocode/core/telemetry` with typed * EngineResult returns so the CLI dispatch layer can call them directly. * * Importable from `@cleocode/core/internal` so the CLI dispatch layer can * call them without any intermediate engine file. * * @module diagnostics/engine-ops * @task T1580 — ENG-MIG-13 * @epic T1566 */ import { type EngineResult } from '../engine-result.js'; /** * Enable telemetry collection. * * Generates a stable anonymous UUID on first call; preserves it on * subsequent calls (idempotent). * * @returns EngineResult with enabled status, anonymousId, and paths * @task T1580 — ENG-MIG-13 */ export declare function diagnosticsEnable(): Promise>; /** * Disable telemetry collection. * * Existing data in telemetry.db is preserved for historical analysis. * * @returns EngineResult with disabled status and confirmation message * @task T1580 — ENG-MIG-13 */ export declare function diagnosticsDisable(): Promise>; /** * Return current telemetry config and paths. * * @returns EngineResult with enabled flag, anonymousId, and file paths * @task T1580 — ENG-MIG-13 */ export declare function diagnosticsStatus(): Promise>; /** * Build a diagnostics report and push high-signal patterns to BRAIN. * * Requires telemetry to be enabled. Optionally suppresses BRAIN write with * `pushToBrain = false`. * * @param days - Number of days to analyze (default: 30) * @param pushToBrain - Whether to write observations to BRAIN memory (default: true) * @returns EngineResult with the diagnostics report and BRAIN observation count * @task T1580 — ENG-MIG-13 */ export declare function diagnosticsAnalyze(days?: number, pushToBrain?: boolean): Promise>>; /** * Export all telemetry events as a JSON array for external analysis. * * Requires telemetry to be enabled. Optionally limit to the last N days. * * @param days - Number of days to include (optional; defaults to all time) * @returns EngineResult with events array, count, and export timestamp * @task T1580 — ENG-MIG-13 */ export declare function diagnosticsExport(days?: number): Promise>; //# sourceMappingURL=engine-ops.d.ts.map