import type { Auth } from './auth.js'; /** * Shared atomic counters — not user-scoped. * Any authenticated user can increment; anyone can read. * Use for: vote tallies, view counts, leaderboards. */ export declare class Counters { private readonly appId; private readonly apiBase; private readonly auth; constructor(appId: string, apiBase: string, auth: Auth); /** Get all counters (or filter by prefix). Public — no auth required. */ list(opts?: { prefix?: string; }): Promise>; /** Get a single counter value. Public — no auth required. */ get(key: string): Promise; /** Increment (or decrement) a counter. Requires auth. Returns new value. */ increment(key: string, amount?: number): Promise; } //# sourceMappingURL=counters.d.ts.map