export declare function createGlobalState(initialState?: S): () => [S, (state: S | ((preState: S) => S)) => void]; export default createGlobalState;