declare let run: (callback: () => void) => void; type Obj = Record; type Payload = Partial | ((prevState: T) => Partial); type Store = { (): T; (payload: Payload): void; }; type InitObj = (store: Store) => T; declare const create: { (initObj: InitObj): (() => T); config({ batch }: { batch: typeof run; }): void; }; export { create as default };