import { Store } from "../utils/types"; /** * Creates a new reactive store with the given initial state. * * This store provides state subscription and update capabilities, and can optionally be extended * with custom actions using the `withActions` method. * * @template TState - The shape of the store's state. * * @param {TState} initialState - The initial state that the store will manage. * * @returns {Store} - A store object with hooks for accessing and updating state, * and a `withActions` method to enhance the store with custom actions. * * @example * const useCounterStore = create({ count: 0 }); * const [count, setCount] = useExtendedStore(); * setCount(prev => ({ count: prev.count + 1 })); * * const useExtendedStore = useExtendedStore.withActions(store => ({ * increment: () => store.set(prev => ({ count: prev.count + 1 })), * })); */ export declare const create: (initialState: TState) => Store;