export declare class SharedState { private __value; constructor(initialValue: T); observe(cb: (value: T) => void): () => void; get value(): T; set value(newValue: T); } export declare const useSharedState: (initialValue?: T) => (T | ((value: T) => void))[];