export declare function useStateWithCallback(initialValue: T, callback?: (value: T) => void): [T, (nextValue: T | ((prevValue: T) => T)) => void];