export type LicenseTier = "free" | "pro" | "team"; export interface LicenseStatus { installationId: string; tier: LicenseTier; validatedAt: string; cacheExpiresAt: string; plan?: { name: string; expiresAt: string; }; } export interface UsageInfo { used: number; limit: number | null; monthKey: string; creditsRemaining: number | null; canUse: boolean; promotionalPeriod?: boolean; promotionalPeriodEndsAt?: string | null; resetsAt?: string; warnThreshold?: number; capActive?: boolean; enforcementStartsAt?: string | null; verdictFreshUntil?: string; blockReason?: "flagged"; } export interface PlanPricing { amount: number; currency: string; interval: "month" | "year"; } export interface PricingInfo { pro?: PlanPricing; } export declare function getUsageInfo(): UsageInfo | null; export declare function getPricingInfo(): PricingInfo | null; export declare function formatPlanPrice(p: PlanPricing): string; export declare const GRACE_WINDOW_MS: number; export declare function computeOfflineUsage(cached: UsageInfo | null, now: number): UsageInfo | null; interface LicenseResult { status: LicenseStatus; source: "cache" | "api" | "default"; durationMs: number; } export declare function ensureLicense(): Promise; export declare function refreshLicense(): Promise; export declare function getLicenseStatus(): LicenseStatus; export declare function incrementLocalUsage(): void; export declare function getDashboardUrl(): string; export declare function requestLinkToken(): Promise; export declare function resetLicense(): void; export {}; //# sourceMappingURL=license.d.ts.map