import { MutableRefObject } from "react"; interface ValueReset { valueRef: MutableRefObject; setValue: (nextValue: T) => void; resetValue: () => void; } /** * Creates a temporary value that gets reset every `x`ms back to the * provided default value. This is useful when doing keyboard searching * or other interactions. * * * @param defaultValue The default value to use. Each time the reset timeout * is triggered, this value will be set again. * @param resetTime The amount of time before the value is reset back to the * default value */ export default function useValueReset(defaultValue: T, resetTime?: number): ValueReset; export {};