import { EventBus } from './EventBus'; /** * State Store - A simple state management system * Allows components to subscribe to state changes */ export declare class Store> { private state; private initialState; private eventBus; private readonly stateChangedEvent; constructor(initialState: T, eventBus?: EventBus); /** * Get the current state */ getState(): Readonly; /** * Update the state * @param partialState - Partial state to merge with current state */ setState(partialState: Partial): void; /** * Reset the state to initial values */ resetState(): void; /** * Subscribe to state changes * @param callback - Function to call when state changes * @returns Unsubscribe function */ subscribe(callback: (state: Readonly) => void): () => void; /** * Get a specific value from the state * @param key - The key to get the value for * @returns The value for the key */ getValue(key: K): T[K]; } /** * Create a store factory to simplify store creation */ export declare function createStore>(initialState: T): Store; //# sourceMappingURL=Store.d.ts.map