export default interface Store { middleware(...args: any[]): void; setState(f: ((state: S) => Partial) | Partial): void; subscribe(f: Function): () => void; getState(): S; reset(): void; }