/** * @short * *Find value and index* of the *last* occurrence of a value according to * some criteria. * * @categories * static index trigger * * @description * Check each value yielded from the iterator against the provided condition. * The last value which happens to satisfy the condition is returned, along with * its index. If the iterator completes before reaching such value, `null` is * returned. * * @parameter * condition * (t: T, i: number) => boolean * The criteria used to find a value. * * @returns * { value: T, index: number } * * @example * j.FindLastWithIndex( * [a, b, c, d], * x => x == b, * ) * // => { value: b, index: 1 } * * @example * j.FindLastWithIndex( * [1, 2, 3, 4], * x => x == 6, * ) * // => null * * @example * j.FindLastWithIndex( * [-2, -1, 0, 1, 2, 3], * x => x > 0, * ) * // => { value: 3, index: 5 } */ export declare function FindLastWithIndex(iterable: Iterable, condition: (t: T, i: number) => boolean): { value: T; index: number; } | null;