declare const /** Detached {@linkcode Object.assign}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign MDN Reference}. */ assign: { (target: T, source: U): T & U; (target: T, source1: U, source2: V): T & U & V; (target: T, source1: U, source2: V, source3: W): T & U & V & W; (target: object, ...sources: any[]): any; }, /** Detached {@linkcode Object.create}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/create MDN Reference}. */ create: { (o: object | null): any; (o: object | null, properties: PropertyDescriptorMap & ThisType): any; }, /** Detached {@linkcode Object.defineProperties}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperties MDN Reference}. */ defineProperties: (o: T, properties: PropertyDescriptorMap & ThisType) => T, /** Detached {@linkcode Object.defineProperty}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperty MDN Reference}. */ defineProperty: (o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType) => T, /** Detached {@linkcode Object.entries}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries MDN Reference}. */ entries: { (o: { [s: string]: T; } | ArrayLike): [string, T][]; (o: {}): [string, any][]; }, /** Detached {@linkcode Object.freeze}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze MDN Reference}. */ freeze: { (f: T): T; (o: T): Readonly; (o: T): Readonly; }, /** Detached {@linkcode Object.fromEntries}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/fromEntries MDN Reference}. */ fromEntries: { (entries: Iterable): { [k: string]: T; }; (entries: Iterable): any; }, /** Detached {@linkcode Object.getOwnPropertyDescriptor}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptor MDN Reference}. */ getOwnPropertyDescriptor: (o: any, p: PropertyKey) => PropertyDescriptor | undefined, /** Detached {@linkcode Object.getOwnPropertyDescriptors}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptors MDN Reference}. */ getOwnPropertyDescriptors: (o: T) => { [P in keyof T]: TypedPropertyDescriptor; } & { [x: string]: PropertyDescriptor; }, /** Detached {@linkcode Object.getOwnPropertyNames}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyNames MDN Reference}. */ getOwnPropertyNames: (o: any) => string[], /** Detached {@linkcode Object.getOwnPropertySymbols}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertySymbols MDN Reference}. */ getOwnPropertySymbols: (o: any) => symbol[], /** Detached {@linkcode Object.getPrototypeOf}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getPrototypeOf MDN Reference}. */ getPrototypeOf: (o: any) => any, /** Detached {@linkcode Object.hasOwnProperty}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwnProperty MDN Reference}. */ hasOwnProperty: (v: PropertyKey) => boolean, /** Detached {@linkcode Object.isFrozen}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isFrozen MDN Reference}. */ isFrozen: (o: any) => boolean, /** Detached {@linkcode Object.keys}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys MDN Reference}. */ keys: { (o: object): string[]; (o: {}): string[]; }, /** Detached {@linkcode Object.seal}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/seal MDN Reference}. */ seal: (o: T) => T, /** Detached {@linkcode Object.setPrototypeOf}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/setPrototypeOf MDN Reference}. */ setPrototypeOf: (o: any, proto: object | null) => any; declare const /** Detached {@linkcode Array.isArray}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray MDN Reference}. */ isArray: (arg: any) => arg is any[], ArrayFrom: { (arrayLike: ArrayLike): T[]; (arrayLike: ArrayLike, mapfn: (v: T, k: number) => U, thisArg?: any): U[]; (iterable: Iterable | ArrayLike): T[]; (iterable: Iterable | ArrayLike, mapfn: (v: T, k: number) => U, thisArg?: any): U[]; }; /** The most extensible array type. */ type BaseArray = readonly unknown[]; declare const ArrayConcat: { call: (thisArg: T, ...args: Parameters) => ReturnType; apply: (thisArg: T, args: Parameters) => ReturnType; }, ArrayCopyWithin: { call: (thisArg: T, ...args: Parameters) => ReturnType; apply: (thisArg: T, args: Parameters) => ReturnType; }, ArrayEvery: { call: (thisArg: T, ...args: Parameters) => ReturnType; apply: (thisArg: T, args: Parameters) => ReturnType; }, ArrayFill: { call: (thisArg: T, ...args: Parameters) => ReturnType; apply: (thisArg: T, args: Parameters) => ReturnType; }, ArrayFilter: { call: (thisArg: T, ...args: Parameters) => ReturnType; apply: (thisArg: T, args: Parameters) => ReturnType; }, ArrayFind: { call: (thisArg: T, ...args: Parameters) => ReturnType; apply: (thisArg: T, args: Parameters) => ReturnType; }, ArrayFindIndex: { call: (thisArg: T, ...args: Parameters) => ReturnType; apply: (thisArg: T, args: Parameters) => ReturnType; }, ArrayIncludes: { call: (thisArg: T, ...args: Parameters) => ReturnType; apply: (thisArg: T, args: Parameters) => ReturnType; }, ArrayIndexOf: { call: (thisArg: T, ...args: Parameters) => ReturnType; apply: (thisArg: T, args: Parameters) => ReturnType; }, ArrayJoin: { call: (thisArg: T, ...args: Parameters) => ReturnType; apply: (thisArg: T, args: Parameters) => ReturnType; }, ArrayMap: { call: (thisArg: T, ...args: Parameters) => ReturnType; apply: (thisArg: T, args: Parameters) => ReturnType; }, ArrayPop: { call: (thisArg: T, ...args: Parameters) => ReturnType; apply: (thisArg: T, args: Parameters) => ReturnType; }, ArrayPush: { call: (thisArg: T, ...args: Parameters) => ReturnType; apply: (thisArg: T, args: Parameters) => ReturnType; }, ArrayReduce: { call: (thisArg: T, ...args: Parameters) => ReturnType; apply: (thisArg: T, args: Parameters) => ReturnType; }, ArrayReverse: { call: (thisArg: T, ...args: Parameters) => ReturnType; apply: (thisArg: T, args: Parameters) => ReturnType; }, ArrayShift: { call: (thisArg: T, ...args: Parameters) => ReturnType; apply: (thisArg: T, args: Parameters) => ReturnType; }, ArraySlice: { call: (thisArg: T, ...args: Parameters) => ReturnType; apply: (thisArg: T, args: Parameters) => ReturnType; }, ArraySome: { call: (thisArg: T, ...args: Parameters) => ReturnType; apply: (thisArg: T, args: Parameters) => ReturnType; }, ArraySort: { call: (thisArg: T, ...args: Parameters) => ReturnType; apply: (thisArg: T, args: Parameters) => ReturnType; }, ArraySplice: { call: (thisArg: T, ...args: Parameters) => ReturnType; apply: (thisArg: T, args: Parameters) => ReturnType; }, ArrayUnshift: { call: (thisArg: T, ...args: Parameters) => ReturnType; apply: (thisArg: T, args: Parameters) => ReturnType; }, forEach: { call: (thisArg: T, ...args: Parameters) => ReturnType; apply: (thisArg: T, args: Parameters) => ReturnType; }; /** * Wrapper for {@linkcode Array.prototype.every} that correctly preserves the type predicate in the * return value; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/every MDN Reference}. * @param arr Array to test. * @param predicate A function to execute for each element of the array. * @returns Whether all elements in the array pass the test provided by the predicate. */ declare function arrayEvery(arr: readonly T[], predicate: (value: any, index: number, array: readonly T[]) => value is S): arr is readonly S[]; /** Detached {@linkcode String.fromCharCode}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCharCode MDN Reference}. */ declare const StringFromCharCode: (...codes: number[]) => string; declare const StringCharAt: (pos: number) => string, StringCharCodeAt: (index: number) => number, StringReplace: { (searchValue: string | RegExp, replaceValue: string): string; (searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string; (searchValue: { [Symbol.replace](string: string, replaceValue: string): string; }, replaceValue: string): string; (searchValue: { [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string; }, replacer: (substring: string, ...args: any[]) => string): string; }, StringSplit: { (separator: string | RegExp, limit?: number): string[]; (splitter: { [Symbol.split](string: string, limit?: number): string[]; }, limit?: number): string[]; }, StringSlice: (start?: number, end?: number) => string, StringToLowerCase: () => string, StringTrim: () => string; export { /** Detached {@linkcode Array.isArray}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray MDN Reference}. */ isArray, /** Detached {@linkcode Array.from}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/from MDN Reference}. */ ArrayFrom, /** Unbound {@linkcode Array.prototype.concat}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/concat MDN Reference}. */ ArrayConcat, /** Unbound {@linkcode Array.prototype.copyWithin}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/copyWithin MDN Reference}. */ ArrayCopyWithin, /** Unbound {@linkcode Array.prototype.every}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/every MDN Reference}. */ ArrayEvery, /** Unbound {@linkcode Array.prototype.fill}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/fill MDN Reference}. */ ArrayFill, /** Unbound {@linkcode Array.prototype.filter}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter MDN Reference}. */ ArrayFilter, /** Unbound {@linkcode Array.prototype.find}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find MDN Reference}. */ ArrayFind, /** Unbound {@linkcode Array.prototype.findIndex}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex MDN Reference}. */ ArrayFindIndex, /** Unbound {@linkcode Array.prototype.includes}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes MDN Reference}. */ ArrayIncludes, /** Unbound {@linkcode Array.prototype.indexOf}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf MDN Reference}. */ ArrayIndexOf, /** Unbound {@linkcode Array.prototype.join}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/join MDN Reference}. */ ArrayJoin, /** Unbound {@linkcode Array.prototype.map}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map MDN Reference}. */ ArrayMap, /** Unbound {@linkcode Array.prototype.pop}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/pop MDN Reference}. */ ArrayPop, /** Unbound {@linkcode Array.prototype.push}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/push MDN Reference}. */ ArrayPush, /** Unbound {@linkcode Array.prototype.reduce}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce MDN Reference}. */ ArrayReduce, /** Unbound {@linkcode Array.prototype.reverse}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reverse MDN Reference}. */ ArrayReverse, /** Unbound {@linkcode Array.prototype.shift}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/shift MDN Reference}. */ ArrayShift, /** Unbound {@linkcode Array.prototype.slice}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice MDN Reference}. */ ArraySlice, /** Unbound {@linkcode Array.prototype.some}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some MDN Reference}. */ ArraySome, /** Unbound {@linkcode Array.prototype.sort}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort MDN Reference}. */ ArraySort, /** Unbound {@linkcode Array.prototype.splice}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice MDN Reference}. */ ArraySplice, /** Unbound {@linkcode Array.prototype.unshift}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/unshift MDN Reference}. */ ArrayUnshift, /** Unbound {@linkcode Array.prototype.forEach}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach MDN Reference}. */ forEach, // Doesn't follow convention! arrayEvery, // Not actually Array#every! assign, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, isFrozen, keys, seal, setPrototypeOf, StringFromCharCode, /** Unbound {@linkcode String.prototype.charAt}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/charAt MDN Reference}. */ StringCharAt, /** Unbound {@linkcode String.prototype.charCodeAt}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/charCodeAt MDN Reference}. */ StringCharCodeAt, /** Unbound {@linkcode String.prototype.replace}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace MDN Reference}. */ StringReplace, /** Unbound {@linkcode String.prototype.split}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split MDN Reference}. */ StringSplit, /** Unbound {@linkcode String.prototype.slice}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/slice MDN Reference}. */ StringSlice, /** Unbound {@linkcode String.prototype.toLowerCase}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toLowerCase MDN Reference}. */ StringToLowerCase, /** Unbound {@linkcode String.prototype.trim}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/trim MDN Reference}. */ StringTrim, }; /** * Determines whether the argument is `undefined`. * @param obj Value to test * @returns `true` if the value is `undefined`. */ export declare function isUndefined(obj: unknown): obj is undefined; /** * Determines whether the argument is `null`. * @param obj Value to test * @returns `true` if the value is `null`. */ export declare function isNull(obj: unknown): obj is null; /** * Determines whether the argument is `true`. * @param obj Value to test * @returns `true` if the value is `true`. */ export declare function isTrue(obj: unknown): obj is true; /** * Determines whether the argument is `false`. * @param obj Value to test * @returns `true` if the value is `false`. */ export declare function isFalse(obj: unknown): obj is false; /** * Determines whether the argument is a boolean. * @param obj Value to test * @returns `true` if the value is a boolean. */ export declare function isBoolean(obj: unknown): obj is boolean; /** * Determines whether the argument is a function. * @param obj Value to test * @returns `true` if the value is a function. */ export declare function isFunction(obj: unknown): obj is Function; /** * Determines whether the argument is an object or null. * @param obj Value to test * @returns `true` if the value is an object or null. */ export declare function isObject(obj: unknown): obj is object | null; /** * Determines whether the argument is a string. * @param obj Value to test * @returns `true` if the value is a string. */ export declare function isString(obj: unknown): obj is string; /** * Determines whether the argument is a number. * @param obj Value to test * @returns `true` if the value is a number. */ export declare function isNumber(obj: unknown): obj is number; /** Does nothing! 🚀 */ export declare function noop(): void; /** * Converts the argument to a string, safely accounting for objects with "null" prototype. * Note that `toString(null)` returns `"[object Null]"` rather than `"null"`. * @param obj Value to convert to a string. * @returns String representation of the value. */ export declare function toString(obj: unknown): string; /** * Gets the property descriptor for the given object and property key. Similar to * {@linkcode Object.getOwnPropertyDescriptor}, but looks up the prototype chain. * @param o Value to get the property descriptor for * @param p Property key to get the descriptor for * @returns The property descriptor for the given object and property key. */ export declare function getPropertyDescriptor(o: unknown, p: PropertyKey): PropertyDescriptor | undefined; //# sourceMappingURL=language.d.ts.map