import type { Command } from "commander"; import { WhoopClient } from "../../medical/whoop/whoop-client.js"; import { parseLabPdf } from "../../medical/lab-pdf-parser.js"; /** Injectable dependencies for runWhoopSync — production callers pass undefined. */ export interface WhoopSyncDeps { /** Override the WhoopClient (e.g. fixture client in tests). */ client?: WhoopClient; /** Override the current time ISO string (default: new Date().toISOString()). */ nowIso?: string; } /** * Core logic for `bober medical whoop sync`. * Extracted so tests can inject fixture deps without module-level mocking. * The CLI .action() calls this with no deps (production). */ export declare function runWhoopSync(projectRoot: string, opts: { since?: string; }, deps?: WhoopSyncDeps): Promise; /** Injectable dependencies for runImportLabs — production callers pass undefined. */ export interface ImportLabsDeps { /** Override the PDF parser (e.g. fixture parser in tests). */ parse?: typeof parseLabPdf; /** Override the current time ISO string (default: new Date().toISOString()). */ nowIso?: string; } /** * Core logic for `bober medical import-labs `. * Extracted so tests can inject fixture deps without module-level mocking. * The CLI .action() calls this with no deps (production). * * LOAD-BEARING ORDER (ADR-6 / sc-3-3): * 1. loadConfig + EgressGuard.fromConfig * 2. cloud-inference axis check — exits 1 BEFORE any readFile or client build * 3. buildMedicalInferenceClient * 4. readFile(pdfPath) + parse(pdfBytes) * 5. writeLabNote per marker + reindexLabNotes into HealthDataStore (dedup) * 6. AuditLog.append (IDs/enums only — PHI rule) * 7. finally: store?.close() */ export declare function runImportLabs(projectRoot: string, pdfPath: string, deps?: ImportLabsDeps, opts?: { vault?: string; }): Promise; /** * Register the `bober medical` command tree. * Provides `medical import ` and `medical whoop sync [--since ]`. * Mirrors registerFactsCommand (src/cli/commands/facts.ts). */ export declare function registerMedicalCommand(program: Command): void; //# sourceMappingURL=medical.d.ts.map