declare module '../src/ledger.mjs' { export const MICRO: number export function priceCall(usage: Record, rates: unknown): number export function periodKey(period: string, now?: number): string export function decide(input: Record): { action: 'allow' | 'downgrade' | 'block'; reason?: string; model?: string; spentMicros: number; limitMicros: number; fraction: number } export function report(store: unknown, opts?: { limitMicros?: number }): unknown export function resolveScope(options: unknown, config?: unknown): { scope: string; kind: string } export function limitFor(scope: string, opts?: { limitMicros?: number; perScopeLimitMicros?: Record }): number export class SpendStore { constructor(path: string | null) get(scope: string, key: string): number add(scope: string, key: string, micros: number): void entries(): Record } }