/** * Cycle forwards/backwards through a list of items * * @example * const elements = ['pen', 'pencil', 'chalk'] * * cycle(elements, 'pencil', 1) * //=> 'chalk' * * cycle(elements, 'chalk', -1) * //=> 'pencil' * * cycle(elements, 'chalk', 1) * //=> 'pen' */ export declare function cycle(items: T[], item: T, index: 1 | -1): T; //# sourceMappingURL=array.d.ts.map