/** * Custom modulo designed to making selecting lines easier for humans * * ╔═══════════╦═════════════╦════════╦══════════════════════════════════════════════════════════════════════════╗ * ║ selection ║ total lines ║ result ║ ║ * ╠═══════════╬═════════════╬════════╬══════════════════════════════════════════════════════════════════════════╣ * ║ 2 ║ 20 ║ 2 ║ second line ║ * ╠═══════════╬═════════════╬════════╬══════════════════════════════════════════════════════════════════════════╣ * ║ 1 ║ 20 ║ 1 ║ first line ║ * ╠═══════════╬═════════════╬════════╬══════════════════════════════════════════════════════════════════════════╣ * ║ 0 ║ 20 ║ 1 ║ imaginary concept, line 0 doesnt exist in the universe of line selection ║ * ╠═══════════╬═════════════╬════════╬══════════════════════════════════════════════════════════════════════════╣ * ║ -1 ║ 20 ║ 20 ║ last line of file ║ * ╠═══════════╬═════════════╬════════╬══════════════════════════════════════════════════════════════════════════╣ * ║ -2 ║ 20 ║ 19 ║ second last line ║ * ╚═══════════╩═════════════╩════════╩══════════════════════════════════════════════════════════════════════════╝ */ export declare function weirdModulo(value?: number, total?: number): number;