import type { AgentCliReport, ModelDescriptor, ProviderDef } from '@moxxy/sdk'; import type { Logger } from './logger.js'; /** * Where each agent connection's CLI stands — missing, too old, behind the * vendor's latest — kept as one state per session and reported in its info, * so the desktop, the TUI and any attached client read the same answer. * * A long-lived host (the TUI, `moxxy serve`) calls `start()`: a check now and * one every hour. Checking only reads versions; updating is the person's * action and never happens here. */ export declare class AgentCliWatch { private readonly providers; private readonly logger; private readonly reports; private readonly offered; private readonly listeners; private timer; private running; constructor(providers: () => ReadonlyArray, logger: Logger); report(name: string): AgentCliReport | undefined; /** The models the agent last said it offers; undefined until it answered. */ models(name: string): ReadonlyArray | undefined; /** End the live sessions of one agent connection (before a sign-out); a name with no agent is a no-op. */ closeSessions(name: string): Promise; /** Called when a CLI's state or version changed; returns the unsubscribe. */ onChange(listener: () => void): () => void; /** Check every connection's CLI; `refresh` asks the vendors' registry again. Overlapping plain checks share one run. */ check(opts?: { readonly refresh?: boolean; }): Promise; start(intervalMs?: number): void; stop(): void; private checkAll; /** Ask a usable agent for its models; true when the list changed. A failed or empty answer keeps the last list. */ private listModels; } //# sourceMappingURL=agent-cli-watch.d.ts.map