import { type CodexSpend, type SpendSummary, type UsageAccount, type UsageLedger, type UsagePeriod } from "./ledger-schema.ts"; import type { CodexUsageSnapshot } from "./payload.ts"; export declare const WEEK_MS: number; export declare function usageAccount(ledger: UsageLedger, key: string, at: number): UsageAccount; export declare function addSpend(summary: SpendSummary, spend: CodexSpend, sign?: number): void; export declare function addSummary(target: SpendSummary, value: SpendSummary): void; export declare function recordSpend(account: UsageAccount, spend: CodexSpend): void; export declare function estimatedQuota(period: UsagePeriod): number | undefined; export declare function observeWeeklyUsage(account: UsageAccount, snapshot: CodexUsageSnapshot, at: number): void;