type StoreListener = (arg: { state: TState; updatedProperties: Partial; }) => void; declare function createStore(initialState: TState): { subscribe: (listener: StoreListener) => () => void; cleanup: () => void; getState: () => TState; setState: (extraState?: Partial) => void; batch: (cb: () => void) => void; }; export { StoreListener, createStore };