import type { Config } from "./config.js"; import type { Secrets } from "./env.js"; import type { Events } from "./events.js"; import type { JobStore } from "./jobs.js"; import type { Logger } from "./logger.js"; import type { Paths } from "./paths.js"; import type { ReadinessCache } from "./readiness.js"; import type { SkillRegistry } from "./registry.js"; export interface AccountWatchDeps { config: Config; paths: Paths; events: Events; logger: Logger; readiness: ReadinessCache; registry: SkillRegistry; store: JobStore; secrets: () => Secrets; baseEnv: () => Record; /** How often the poll interval is looked at (default one minute); tests pass a short one. */ tickMs?: number; /** Stand-in for the desktop notifier in tests. */ notify?: (title: string, body: string) => void; } export declare class AccountWatch { private readonly deps; private timer?; private lastPoll; private polling; private readonly unsubscribe; constructor(deps: AccountWatchDeps); start(): void; stop(): void; private tick; /** One look at every account (with `usage`: their usage windows too); readiness changes become `account.changed`. */ check(usage: boolean): Promise; }