/** * Returns the last value of type T that passes a filter function * @param value changing value * @param filterFn function that determines whether a given value should be considered for the last value */ export default function useLast( value: T | undefined | null, filterFn?: (value: T | null | undefined) => boolean ): T | null | undefined; /** * Returns the last truthy value of type T * @param value changing value */ export declare function useLastTruthy( value: T | undefined | null ): T | null | undefined;