import { _Negate } from './Negate'; import { _IsNegative } from './IsNegative'; import { IterationOf } from '../Iteration/IterationOf'; import { Iteration } from '../Iteration/Iteration'; /** * @hidden */ export declare type _Absolute = { 0: N; 1: _Negate; }[_IsNegative]; /** * Get the absolute value of a [[Number]] * @param N to absolute * @returns `string | number | boolean` * @example * ```ts * import {N} from 'ts-toolbelt' * * type test0 = N.Absolute<'-20'> // '20' * * type test1 = N.Absolute<'-20', 's'> // '20' * type test2 = N.Absolute<'-20', 'n'> // 20 * ``` */ export declare type Absolute = N extends unknown ? _Absolute>[0] : never;