/** * @packageDocumentation * Implements the core consent management store using Zustand. * This module provides the main store creation and management functionality. */ import type { PrivacyConsentState } from './store.type'; /** * Creates a new consent manager store instance. * * @remarks * This function initializes a new consent management store with: * - Persistence through localStorage * - Initial state handling * - Consent management methods * - Privacy settings * - Compliance configuration * * The store is typically used through React hooks but can also be * accessed directly for non-React applications. * * @param namespace - Optional namespace for the store instance * @returns A Zustand store instance with consent management functionality * * @example * Basic usage: * ```typescript * const store = createConsentManagerStore(); * * // Subscribe to state changes * const unsubscribe = store.subscribe( * state => console.log('Consent updated:', state.consents) * ); * * // Update consent * store.getState().setConsent('analytics', true); * ``` * * @example * Custom namespace: * ```typescript * const store = createConsentManagerStore('MyApp'); * * // Access from window * const state = window.MyApp.getState(); * ``` * * @public */ export declare const createConsentManagerStore: (namespace?: string | undefined) => import("zustand/vanilla").StoreApi; export default createConsentManagerStore; //# sourceMappingURL=store.d.ts.map