import { Descendant, DescendantsList } from '../../Descendants'; /** * Returns the `Descendant` object that is `delta` elements away from the `current` Descendant. * * e.g. `getRelativeDescendant(1, ...)` will return the _next_ Descendant in the list */ export declare const getRelativeDescendant: (delta: number, current: Descendant | undefined, descendants: DescendantsList, filter?: (d: Descendant) => boolean) => Descendant | undefined; /** * Returns the `index` of the element in the list that is `delta` away from the `currentIndex`, * including wrapping * * e.g. `getRelativeIndex(1, 3, 6)` will return `4`. * e.g. `getRelativeIndex(1, 3, 4)` will return `0`, since the indexes will wrap around to 0 after hitting `totalItems` */ export declare function getRelativeIndex(delta: number, currentIndex: number, totalItems: number): number; //# sourceMappingURL=getRelativeDescendant.d.ts.map