/** * OpenCode usage is OPTIONAL, and its single-key route answers 503 while * `OPENCODE_GO_API_KEY` is unconfigured — which makes the browser print * "Failed to load resource: 503 (Service Unavailable)" on every refetch, a * console full of red for a feature the user never set up (reported 2026-09-30). * * The single-key route is therefore NOT called any more. The pool route is always * 200 and already carries every key it resolved, each with its upstream payload * under `data` — byte-identical to what the single-key route proxies. So the * shared single-key figures are derived from the pool answer, keyed by * `ref === 'OPENCODE_GO_API_KEY'`. * * Note the trap that made a "does any key exist?" check wrong: the pool can hold * ONLY spare keys (`OPENCODE_GO_POOL_2`…), in which case the pool answer is * non-empty while the primary the other route reads is still absent — and the 503 * came right back. Match on the ref, not on length. */ export declare const usageSource: import("../../data/source-contract").SourceAdapter; /** * The AUTHORITATIVE machine-wide per-day token totals, served from * dsh-usage-center's log fold by the host route. Two scopes exist (`usageDaily` * machine-wide here, `commandCodeDaily` in the cc family); this one feeds the * heatmap cards and 「额度管理」's token side. * * `refresh=1` asks the host to fold the logs NOW instead of waiting for * usage-center's next ~30 s pass, so the day's figure moves with the turn that * just finished. Mount and settle ask for it; the 60 s poll does not (re-folding * on a timer would burn seconds of CPU every minute for a figure that can only * move when a turn finishes here). */ export declare const usageDailySource: import("../../data/source-contract").SourceAdapter; export default usageSource;