/** * In-memory reference implementation of {@link LiveActivityTokenRegistry}. * * Suitable for tests, single-process servers, and as a template for a real * database-backed store. It performs no I/O and resolves immediately. * * @packageDocumentation */ import type { LiveActivityTokenRegistry, PushToStartTokenRecord, ActivityTokenRecord } from './types.js'; /** * A process-local, non-persistent {@link LiveActivityTokenRegistry}. * * @remarks * Data is lost on restart and is **not** shared across instances. For * production, implement {@link LiveActivityTokenRegistry} against your database * (the method shapes are intentionally trivial to map to upsert/delete queries). */ export declare class InMemoryTokenRegistry implements LiveActivityTokenRegistry { /** attributesType → push-to-start record. */ private readonly pushToStart; /** activityId → per-activity update token record. */ private readonly activity; storePushToStartToken(record: PushToStartTokenRecord): Promise; getPushToStartToken(attributesType: string): Promise; invalidatePushToStartToken(attributesType: string): Promise; storeActivityToken(record: ActivityTokenRecord): Promise; getActivityToken(activityId: string): Promise; rotateActivityToken(activityId: string, token: string): Promise; invalidateActivityToken(activityId: string): Promise; listActivityTokens(): Promise; } //# sourceMappingURL=registry.d.ts.map