import type { Check } from '../types.js'; import { type AddonImporter } from '../../audio/addon-probe.js'; /** * Three concerns folded into one row, deliberately, checked in this order * (mirrors transcribeHandler's own ordering — the consent gate is * unconditional, checked before anything about the add-on): * * 1. ADR-017 decision 3 disclosure-acknowledgment gate (v1 enforcement * surface — see Config['audio']'s doc comment). `mode !== 'off'` and * `disclosureAcknowledged` not `true` reports `ok: false` with the exact * config key to set — this is the one row an operator hits FIRST if they * flip `mode` without ever reading the disclosure, since the transcribe * handler refuses to run at all in this state. * 2. Presence/version probe (packaging design pass decision 1 — mirrors * `checkSqliteVec`/`checkFts5`'s lazy dynamic-import-in-try/catch shape). * Only runs when `audio.mode !== 'off'` — an absent add-on with audio * off is not a misconfiguration, it's the shipped default. * 3. ADR-017 decision 3's "doctor gets a WARN row per surface when enabled" * disclosure requirement — a genuine, every-run reminder while the * surface is active, same posture `checkDevNoAuth` already established * for `auth.devNoAuth` (an ongoing, disclosed risk the operator should * see on every single `doctor` run for as long as it stays on, NOT a * one-shot wiring canary, and NOT gated on whether the feature happens * to be working correctly today). This is why a healthy, present, * version-matched, ALREADY-acknowledged add-on with `mode !== 'off'` * still reports `ok: false` here — third-party consent visibility, not * health. */ export declare function checkAudioAddon(mode: 'off' | 'dry-run' | 'enabled', disclosureAcknowledged: boolean, importer?: AddonImporter): Check;