import { type SubscriptionUsageProvider, type SubscriptionUsageSnapshot } from "@kenkaiiii/gg-core"; import type { AuthStorage } from "../core/auth-storage.js"; export type UsageResult = (SubscriptionUsageSnapshot & { connected: true; error?: never; stale?: boolean; }) | { provider: SubscriptionUsageProvider; displayName: string; connected: boolean; windows: []; fetchedAt: number; error?: string; stale?: boolean; }; /** Daemon-level subscription-usage fetcher with caching, 429 backoff and last-good replay. */ export declare function createUsageService(auth: AuthStorage): { subscriptionUsage: (provider: SubscriptionUsageProvider) => Promise; };