import { UnsubscribeFunc } from "./types.js"; type Listener = (state: State) => void; type Action = (state: State, ...args: any[]) => Partial | Promise> | null; type BoundAction = (...args: any[]) => void; export type Store = { state: State | undefined; action(action: Action): BoundAction; setState(update: Partial, overwrite?: boolean): void; clearState(): void; subscribe(listener: Listener): UnsubscribeFunc; }; export declare const createStore: (state?: State) => Store; export {};