/** * Store Integration Utilities (Frontend Only) * * Re-exports all store integration utilities: * - Generic service accessors (work with any service) * - Feature flag specific utilities (pull pattern for polling/refresh) * * ## Integration Patterns * * ### Automatic Store Sync (Primary/Read Pattern) * Services automatically sync to their primary store via ServiceRegistry injection. * Stores are injected based on `primaryStoreKey` and `readStoreKeys` properties. * * ```typescript * // Service automatically has stores injected * const service = await ServiceRegistry.getAsync('featureFlags'); * await service.fetchAll(); // Automatically syncs to primary store * ``` * * ### Pull Pattern (Fetcher for Hooks) * Store hooks can pull data from service via callbacks for polling/manual refresh. * Use `createFeatureFlagFetcher()` for custom fetch logic. * * ```typescript * useFeatureFlagInitializer({ * fetchFn: createFeatureFlagFetcher({ context: { userId } }), * polling: { enabled: true, interval: 30000 }, * }); * ``` * * See docs/guides/10-STORE-PATTERN.md for complete store pattern guide. */ export { createServiceAccessor, createServiceAccessors, withServices } from './service-accessors'; export { createFeatureFlagFetcher, createFeatureFlagStoreConfig } from './feature-flags'; export type { CoreFeatureFlagFetcherOptions, CoreFeatureFlagServiceLike, CoreFeatureFlagStoreInitConfig, } from './feature-flags'; //# sourceMappingURL=integrations.d.ts.map