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