declare function withState<U>( params: AdaptableStateChangeListener<U>, ): AdaptableStateChangeListener<U>;