export declare function getPrevIndex(currentIndex: number, length: number): number;