import { ComputedRef } from 'vue'; /***************************************************************** * ZENON - Minimal Zustand-like State Manager for Vue 3 * (c) 2025-present AGUMON (https://github.com/ljlm0402/zenon) * * This source code is licensed under the MIT license. * See the LICENSE file in the project root for more information. * * Made with ❤️ by AGUMON 🦖 *****************************************************************/ type ActionName = string; type SetFunction = (updater: Partial, actionName: ActionName) => void; type SetSilentFunction = (updater: Partial) => void; type GetFunction = () => T; type Listener = (state: T, prevState: T) => void; type Unsubscribe = () => void; type StoreApi = { get: GetFunction; set: SetFunction; setSilent: SetSilentFunction; useSelector: (selector: (state: T) => S) => ComputedRef; subscribe: (listener: Listener) => Unsubscribe; getListeners: () => Set>; }; type StoreInitializer = (set: SetFunction, get: GetFunction, api: Pick, "setSilent" | "subscribe">) => T; declare function createStore>(initializer: StoreInitializer): T & Pick, "useSelector" | "subscribe">; export { type ActionName, type GetFunction, type Listener, type SetFunction, type SetSilentFunction, type StoreApi, type StoreInitializer, type Unsubscribe, createStore };