/** * Store the values of an iterator in an array. * * @description This code is about 9x faster than `Array.from()`. * * @param iter - The map whose keys are to be converted to an array * @return The array with the map keys */ export declare const iteratorToArray: (iter: Iterable) => S[]; /** * Parse a primitive value into a human readable string. * * @example * ```js * stringifyPrimitive('test') // => 'test' * stringifyPrimitive(42) // => '42' * stringifyPrimitive(NaN) // => 'NaN' * stringifyPrimitive(true) // => 'true' * stringifyPrimitive(null) // => 'null' * stringifyPrimitive(undefined) // => 'undefined' * ``` * * @param primitive - A primitive value * @return The stringified version */ export declare const stringifyPrimitive: (primitive: string | number | boolean | null | undefined) => string; /** * Parse a string into primitive value. * * @example * ```js * parsePrimitive('test') // => 'test' * parsePrimitive('42') // => 42 * parsePrimitive('NaN') // => NaN * parsePrimitive('true') // => true * parsePrimitive('null') // => null * parsePrimitive('undefined') // => undefined * ``` * * @param string - A stringified primitive value * @return The primitive version */ export declare const parsePrimitive: (string: string) => string | number | boolean | null | undefined;