import { Arguments, AsyncFunction } from './builtin/hidden'
// export type FALSEY_VALUES = [, null, undefined, false, 0, NaN, '']
/**
* @name NATIVE_PRIMITIVES
* @desc Used to provide primitive values to methods.
* @type {Array}
* @frozen
*/
export type NATIVE_PRIMITIVES = [
// , //<= actual undefined with `x empty`
null,
undefined,
false,
true,
1,
typeof NaN,
' '
]
// https://github.com/Microsoft/TypeScript/blob/master/src/lib/webworker.generated.d.ts
export function isNodeJS(o: any): boolean
export type EMPTY_ARRAY = Array<void>
export type EMPTY_FROZEN_ARRAY = ReadonlyArray<void>
// export type EMPTY_FROZEN_OBJECT = (@readonly Object)
// ReadonlyObject<void, void>
interface EventSource {
CLOSED: number | 2
CONNECTING: number | 0
OPEN: number | 1
}
export type EventSourced = EventSource
export function toSpecies(x: any): JS
export type getSpecies = typeof toSpecies
export function isBrowser(): typeof window
export function isWebWorker(): typeof WorkerGlobalScope
export function isNodeJS(): typeof global
export function isSharedWorker(): typeof SharedWorker
export function isServiceWorker(): typeof ServiceWorker
export type isServer = typeof isNodeJS
export type ROOT =
| typeof window
| typeof global
| SharedWorker
| ServiceWorker
| WorkerGlobalScope
export type JS =
| typeof Map
| typeof Set
| typeof WeakMap
| typeof WeakSet
| typeof DataView
| typeof String
| typeof Number
| typeof Boolean
| typeof Symbol
| typeof Undefined
| typeof Null
| typeof Arguments
| typeof IterableIterator
| typeof Object
| typeof RegExp
| typeof Date
| typeof Error
| typeof Uint8Array
| typeof Uint8ClampedArray
| typeof Int8Array
| typeof Int16Array
| typeof Int8Array
| typeof Uint16Array
| typeof Int32Array
| typeof Uint32Array
| typeof Float32Array
| typeof Float64Array
| typeof ArrayBuffer
| typeof Array
| typeof Function
| typeof AsyncFunction
| typeof GeneratorFunction
| typeof Promise
| typeof Proxy
| typeof Reflect
| typeof Atomics
| typeof EventSource
| typeof XMLHttpRequest
| typeof JSON
export function toArgs(x: any): Arguments