export type ShouldUpdateFunc = (prev: T | undefined, next: T) => boolean; declare function usePrevious(state: T, shouldUpdate?: ShouldUpdateFunc): T | undefined; export default usePrevious;