import { IterationMap } from './Iteration'; /** * Transform a number into an [[Iteration]] * (to use [[Prev]], [[Next]], & [[Pos]]) * @param N to transform * @returns [[Iteration]] * @example * ```ts * import {I} from 'ts-toolbelt' * * type i = I.IterationOf<0> // ["-1", "1", "0", 0, "0"] * * type next = I.Next // ["0", "2", "1", 1, "+"] * type prev = I.Prev // ["-2", "0", "-1", -1, "-"] * * type nnext = I.Pos // +1 * type nprev = I.Pos // -1 * ``` */ export declare type IterationOf = `${N}` extends keyof IterationMap ? IterationMap[`${N}`] : IterationMap['__'];