/**
* Step an index forward or backward with wrap-around. Used by the image
* preview modal in both runtimes. Returns `0` for an empty list.
*/exportdeclarefunctionnavigateCyclic(currentIndex: number, direction: 'prev' | 'next', length: number): number;