export default function usePrevious(state: T): T | undefined;