From 8a10b3ecd8ec7c6de77b97ec4405feb147d7ce0b Mon Sep 17 00:00:00 2001 From: diegosouzapw Date: Wed, 27 May 2026 20:37:44 -0300 Subject: [PATCH] feat(quota): add QuotaStore facade and types re-export (B/F6) --- src/lib/quota/QuotaStore.ts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/lib/quota/QuotaStore.ts diff --git a/src/lib/quota/QuotaStore.ts b/src/lib/quota/QuotaStore.ts new file mode 100644 index 0000000000..7fe2a2c33b --- /dev/null +++ b/src/lib/quota/QuotaStore.ts @@ -0,0 +1,23 @@ +/** + * QuotaStore.ts — Public façade for the Quota Sharing Engine. + * + * Re-exports the interface types from types.ts and the factory from + * storeFactory.ts so consumers have a single import point. + * + * Usage: + * import { getQuotaStore } from "@/lib/quota/QuotaStore"; + * import type { QuotaStore, EnforceDecision } from "@/lib/quota/QuotaStore"; + * + * Part of: Group B — Quota Sharing Engine (plan 22, frente F6). + */ + +export type { + QuotaStore, + EnforceDecision, + ConsumeResult, + PoolUsageSnapshot, + EnforceInput, + RecordConsumptionInput, +} from "./types"; + +export { getQuotaStore, getQuotaStoreSync, resetQuotaStoreSingleton } from "./storeFactory";