import type { ExtensionAPI } from './pi-ext-types.js'; /** * Report what the provider says about its own quota. Codex publishes utilization on every response * header set — including error responses — so the probe reads each one and forwards a reading over * `ctx.ui.notify`, the only fire-and-forget message PI's RPC mode gives an extension. * * Everything here is best-effort: a throw would surface as an `extension_error` and pollute the * turn, so a broken or absent UI channel simply costs one reading. The next response carries a * fresh snapshot, and a missing reading is never read as "quota is fine". */ export default function quotaProbe(pi: ExtensionAPI): void;