export default function createStore(key: string, initialState: T): () => T;