export declare type Predicate = (prev: T | undefined, next: T) => boolean; export default function usePreviousDistinct(value: T, compare?: Predicate): T | undefined;