microsoft/vscode-react-native

Public

mirrored from https://github.com/microsoft/vscode-react-nativeAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
3d1881c70be7731be046de957fef05f0fae13ef4

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

TypescriptNext/typescript/lib/lib.es7.d.ts

11447lines · modecode

1/*! *****************************************************************************
2Copyright (c) Microsoft Corporation. All rights reserved.
3Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4this file except in compliance with the License. You may obtain a copy of the
5License at http://www.apache.org/licenses/LICENSE-2.0
6
7THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10MERCHANTABLITY OR NON-INFRINGEMENT.
11
12See the Apache Version 2.0 License for specific language governing permissions
13and limitations under the License.
14***************************************************************************** */
15
16/// <reference no-default-lib="true"/>
17declare type PropertyKey = string | number | symbol;
18
19interface Symbol {
20 /** Returns a string representation of an object. */
21 toString(): string;
22
23 /** Returns the primitive value of the specified object. */
24 valueOf(): Object;
25
26 readonly [Symbol.toStringTag]: "Symbol";
27}
28
29interface SymbolConstructor {
30 /**
31 * A reference to the prototype.
32 */
33 readonly prototype: Symbol;
34
35 /**
36 * Returns a new unique Symbol value.
37 * @param description Description of the new Symbol object.
38 */
39 (description?: string|number): symbol;
40
41 /**
42 * Returns a Symbol object from the global symbol registry matching the given key if found.
43 * Otherwise, returns a new symbol with this key.
44 * @param key key to search for.
45 */
46 for(key: string): symbol;
47
48 /**
49 * Returns a key from the global symbol registry matching the given Symbol if found.
50 * Otherwise, returns a undefined.
51 * @param sym Symbol to find the key for.
52 */
53 keyFor(sym: symbol): string;
54
55 // Well-known Symbols
56
57 /**
58 * A method that determines if a constructor object recognizes an object as one of the
59 * constructor’s instances. Called by the semantics of the instanceof operator.
60 */
61 readonly hasInstance: symbol;
62
63 /**
64 * A Boolean value that if true indicates that an object should flatten to its array elements
65 * by Array.prototype.concat.
66 */
67 readonly isConcatSpreadable: symbol;
68
69 /**
70 * A method that returns the default iterator for an object. Called by the semantics of the
71 * for-of statement.
72 */
73 readonly iterator: symbol;
74
75 /**
76 * A regular expression method that matches the regular expression against a string. Called
77 * by the String.prototype.match method.
78 */
79 readonly match: symbol;
80
81 /**
82 * A regular expression method that replaces matched substrings of a string. Called by the
83 * String.prototype.replace method.
84 */
85 readonly replace: symbol;
86
87 /**
88 * A regular expression method that returns the index within a string that matches the
89 * regular expression. Called by the String.prototype.search method.
90 */
91 readonly search: symbol;
92
93 /**
94 * A function valued property that is the constructor function that is used to create
95 * derived objects.
96 */
97 readonly species: symbol;
98
99 /**
100 * A regular expression method that splits a string at the indices that match the regular
101 * expression. Called by the String.prototype.split method.
102 */
103 readonly split: symbol;
104
105 /**
106 * A method that converts an object to a corresponding primitive value.
107 * Called by the ToPrimitive abstract operation.
108 */
109 readonly toPrimitive: symbol;
110
111 /**
112 * A String value that is used in the creation of the default string description of an object.
113 * Called by the built-in method Object.prototype.toString.
114 */
115 readonly toStringTag: symbol;
116
117 /**
118 * An Object whose own property names are property names that are excluded from the 'with'
119 * environment bindings of the associated objects.
120 */
121 readonly unscopables: symbol;
122}
123declare var Symbol: SymbolConstructor;
124
125interface Object {
126 /**
127 * Determines whether an object has a property with the specified name.
128 * @param v A property name.
129 */
130 hasOwnProperty(v: PropertyKey): boolean;
131
132 /**
133 * Determines whether a specified property is enumerable.
134 * @param v A property name.
135 */
136 propertyIsEnumerable(v: PropertyKey): boolean;
137}
138
139interface ObjectConstructor {
140 /**
141 * Copy the values of all of the enumerable own properties from one or more source objects to a
142 * target object. Returns the target object.
143 * @param target The target object to copy to.
144 * @param source The source object from which to copy properties.
145 */
146 assign<T, U>(target: T, source: U): T & U;
147
148 /**
149 * Copy the values of all of the enumerable own properties from one or more source objects to a
150 * target object. Returns the target object.
151 * @param target The target object to copy to.
152 * @param source1 The first source object from which to copy properties.
153 * @param source2 The second source object from which to copy properties.
154 */
155 assign<T, U, V>(target: T, source1: U, source2: V): T & U & V;
156
157 /**
158 * Copy the values of all of the enumerable own properties from one or more source objects to a
159 * target object. Returns the target object.
160 * @param target The target object to copy to.
161 * @param source1 The first source object from which to copy properties.
162 * @param source2 The second source object from which to copy properties.
163 * @param source3 The third source object from which to copy properties.
164 */
165 assign<T, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;
166
167 /**
168 * Copy the values of all of the enumerable own properties from one or more source objects to a
169 * target object. Returns the target object.
170 * @param target The target object to copy to.
171 * @param sources One or more source objects from which to copy properties
172 */
173 assign(target: any, ...sources: any[]): any;
174
175 /**
176 * Returns an array of all symbol properties found directly on object o.
177 * @param o Object to retrieve the symbols from.
178 */
179 getOwnPropertySymbols(o: any): symbol[];
180
181 /**
182 * Returns true if the values are the same value, false otherwise.
183 * @param value1 The first value.
184 * @param value2 The second value.
185 */
186 is(value1: any, value2: any): boolean;
187
188 /**
189 * Sets the prototype of a specified object o to object proto or null. Returns the object o.
190 * @param o The object to change its prototype.
191 * @param proto The value of the new prototype or null.
192 */
193 setPrototypeOf(o: any, proto: any): any;
194
195 /**
196 * Gets the own property descriptor of the specified object.
197 * An own property descriptor is one that is defined directly on the object and is not
198 * inherited from the object's prototype.
199 * @param o Object that contains the property.
200 * @param p Name of the property.
201 */
202 getOwnPropertyDescriptor(o: any, propertyKey: PropertyKey): PropertyDescriptor;
203
204 /**
205 * Adds a property to an object, or modifies attributes of an existing property.
206 * @param o Object on which to add or modify the property. This can be a native JavaScript
207 * object (that is, a user-defined object or a built in object) or a DOM object.
208 * @param p The property name.
209 * @param attributes Descriptor for the property. It can be for a data property or an accessor
210 * property.
211 */
212 defineProperty(o: any, propertyKey: PropertyKey, attributes: PropertyDescriptor): any;
213}
214
215interface Function {
216 /**
217 * Returns the name of the function. Function names are read-only and can not be changed.
218 */
219 readonly name: string;
220
221 /**
222 * Determines whether the given value inherits from this function if this function was used
223 * as a constructor function.
224 *
225 * A constructor function can control which objects are recognized as its instances by
226 * 'instanceof' by overriding this method.
227 */
228 [Symbol.hasInstance](value: any): boolean;
229}
230
231interface NumberConstructor {
232 /**
233 * The value of Number.EPSILON is the difference between 1 and the smallest value greater than 1
234 * that is representable as a Number value, which is approximately:
235 * 2.2204460492503130808472633361816 x 10‍−‍16.
236 */
237 readonly EPSILON: number;
238
239 /**
240 * Returns true if passed value is finite.
241 * Unlike the global isFininte, Number.isFinite doesn't forcibly convert the parameter to a
242 * number. Only finite values of the type number, result in true.
243 * @param number A numeric value.
244 */
245 isFinite(number: number): boolean;
246
247 /**
248 * Returns true if the value passed is an integer, false otherwise.
249 * @param number A numeric value.
250 */
251 isInteger(number: number): boolean;
252
253 /**
254 * Returns a Boolean value that indicates whether a value is the reserved value NaN (not a
255 * number). Unlike the global isNaN(), Number.isNaN() doesn't forcefully convert the parameter
256 * to a number. Only values of the type number, that are also NaN, result in true.
257 * @param number A numeric value.
258 */
259 isNaN(number: number): boolean;
260
261 /**
262 * Returns true if the value passed is a safe integer.
263 * @param number A numeric value.
264 */
265 isSafeInteger(number: number): boolean;
266
267 /**
268 * The value of the largest integer n such that n and n + 1 are both exactly representable as
269 * a Number value.
270 * The value of Number.MIN_SAFE_INTEGER is 9007199254740991 2^53 − 1.
271 */
272 readonly MAX_SAFE_INTEGER: number;
273
274 /**
275 * The value of the smallest integer n such that n and n − 1 are both exactly representable as
276 * a Number value.
277 * The value of Number.MIN_SAFE_INTEGER is −9007199254740991 (−(2^53 − 1)).
278 */
279 readonly MIN_SAFE_INTEGER: number;
280
281 /**
282 * Converts a string to a floating-point number.
283 * @param string A string that contains a floating-point number.
284 */
285 parseFloat(string: string): number;
286
287 /**
288 * Converts A string to an integer.
289 * @param s A string to convert into a number.
290 * @param radix A value between 2 and 36 that specifies the base of the number in numString.
291 * If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.
292 * All other strings are considered decimal.
293 */
294 parseInt(string: string, radix?: number): number;
295}
296
297interface Array<T> {
298 /** Iterator */
299 [Symbol.iterator](): IterableIterator<T>;
300
301 /**
302 * Returns an object whose properties have the value 'true'
303 * when they will be absent when used in a 'with' statement.
304 */
305 [Symbol.unscopables](): {
306 copyWithin: boolean;
307 entries: boolean;
308 fill: boolean;
309 find: boolean;
310 findIndex: boolean;
311 keys: boolean;
312 values: boolean;
313 };
314
315 /**
316 * Returns an array of key, value pairs for every entry in the array
317 */
318 entries(): IterableIterator<[number, T]>;
319
320 /**
321 * Returns an list of keys in the array
322 */
323 keys(): IterableIterator<number>;
324
325 /**
326 * Returns an list of values in the array
327 */
328 values(): IterableIterator<T>;
329
330 /**
331 * Returns the value of the first element in the array where predicate is true, and undefined
332 * otherwise.
333 * @param predicate find calls predicate once for each element of the array, in ascending
334 * order, until it finds one where predicate returns true. If such an element is found, find
335 * immediately returns that element value. Otherwise, find returns undefined.
336 * @param thisArg If provided, it will be used as the this value for each invocation of
337 * predicate. If it is not provided, undefined is used instead.
338 */
339 find(predicate: (value: T, index: number, obj: Array<T>) => boolean, thisArg?: any): T;
340
341 /**
342 * Returns the index of the first element in the array where predicate is true, and undefined
343 * otherwise.
344 * @param predicate find calls predicate once for each element of the array, in ascending
345 * order, until it finds one where predicate returns true. If such an element is found, find
346 * immediately returns that element value. Otherwise, find returns undefined.
347 * @param thisArg If provided, it will be used as the this value for each invocation of
348 * predicate. If it is not provided, undefined is used instead.
349 */
350 findIndex(predicate: (value: T) => boolean, thisArg?: any): number;
351
352 /**
353 * Returns the this object after filling the section identified by start and end with value
354 * @param value value to fill array section with
355 * @param start index to start filling the array at. If start is negative, it is treated as
356 * length+start where length is the length of the array.
357 * @param end index to stop filling the array at. If end is negative, it is treated as
358 * length+end.
359 */
360 fill(value: T, start?: number, end?: number): T[];
361
362 /**
363 * Returns the this object after copying a section of the array identified by start and end
364 * to the same array starting at position target
365 * @param target If target is negative, it is treated as length+target where length is the
366 * length of the array.
367 * @param start If start is negative, it is treated as length+start. If end is negative, it
368 * is treated as length+end.
369 * @param end If not specified, length of the this object is used as its default value.
370 */
371 copyWithin(target: number, start: number, end?: number): T[];
372}
373
374interface IArguments {
375 /** Iterator */
376 [Symbol.iterator](): IterableIterator<any>;
377}
378
379interface ArrayConstructor {
380 /**
381 * Creates an array from an array-like object.
382 * @param arrayLike An array-like object to convert to an array.
383 * @param mapfn A mapping function to call on every element of the array.
384 * @param thisArg Value of 'this' used to invoke the mapfn.
385 */
386 from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): Array<U>;
387
388 /**
389 * Creates an array from an iterable object.
390 * @param iterable An iterable object to convert to an array.
391 * @param mapfn A mapping function to call on every element of the array.
392 * @param thisArg Value of 'this' used to invoke the mapfn.
393 */
394 from<T, U>(iterable: Iterable<T>, mapfn: (v: T, k: number) => U, thisArg?: any): Array<U>;
395
396 /**
397 * Creates an array from an array-like object.
398 * @param arrayLike An array-like object to convert to an array.
399 */
400 from<T>(arrayLike: ArrayLike<T>): Array<T>;
401
402 /**
403 * Creates an array from an iterable object.
404 * @param iterable An iterable object to convert to an array.
405 */
406 from<T>(iterable: Iterable<T>): Array<T>;
407
408 /**
409 * Returns a new array from a set of elements.
410 * @param items A set of elements to include in the new array object.
411 */
412 of<T>(...items: T[]): Array<T>;
413}
414
415interface String {
416 /** Iterator */
417 [Symbol.iterator](): IterableIterator<string>;
418
419 /**
420 * Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point
421 * value of the UTF-16 encoded code point starting at the string element at position pos in
422 * the String resulting from converting this object to a String.
423 * If there is no element at that position, the result is undefined.
424 * If a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.
425 */
426 codePointAt(pos: number): number;
427
428 /**
429 * Returns true if searchString appears as a substring of the result of converting this
430 * object to a String, at one or more positions that are
431 * greater than or equal to position; otherwise, returns false.
432 * @param searchString search string
433 * @param position If position is undefined, 0 is assumed, so as to search all of the String.
434 */
435 includes(searchString: string, position?: number): boolean;
436
437 /**
438 * Returns true if the sequence of elements of searchString converted to a String is the
439 * same as the corresponding elements of this object (converted to a String) starting at
440 * endPosition – length(this). Otherwise returns false.
441 */
442 endsWith(searchString: string, endPosition?: number): boolean;
443
444 /**
445 * Returns the String value result of normalizing the string into the normalization form
446 * named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
447 * @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default
448 * is "NFC"
449 */
450 normalize(form?: string): string;
451
452 /**
453 * Returns a String value that is made from count copies appended together. If count is 0,
454 * T is the empty String is returned.
455 * @param count number of copies to append
456 */
457 repeat(count: number): string;
458
459 /**
460 * Returns true if the sequence of elements of searchString converted to a String is the
461 * same as the corresponding elements of this object (converted to a String) starting at
462 * position. Otherwise returns false.
463 */
464 startsWith(searchString: string, position?: number): boolean;
465
466 // Overloads for objects with methods of well-known symbols.
467
468 /**
469 * Matches a string an object that supports being matched against, and returns an array containing the results of that search.
470 * @param matcher An object that supports being matched against.
471 */
472 match(matcher: { [Symbol.match](string: string): RegExpMatchArray; }): RegExpMatchArray;
473
474 /**
475 * Replaces text in a string, using an object that supports replacement within a string.
476 * @param searchValue A object can search for and replace matches within a string.
477 * @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.
478 */
479 replace(searchValue: { [Symbol.replace](string: string, replaceValue: string): string; }, replaceValue: string): string;
480
481 /**
482 * Replaces text in a string, using an object that supports replacement within a string.
483 * @param searchValue A object can search for and replace matches within a string.
484 * @param replacer A function that returns the replacement text.
485 */
486 replace(searchValue: { [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string; }, replacer: (substring: string, ...args: any[]) => string): string;
487
488 /**
489 * Finds the first substring match in a regular expression search.
490 * @param searcher An object which supports searching within a string.
491 */
492 search(searcher: { [Symbol.search](string: string): number; }): number;
493
494 /**
495 * Split a string into substrings using the specified separator and return them as an array.
496 * @param splitter An object that can split a string.
497 * @param limit A value used to limit the number of elements returned in the array.
498 */
499 split(splitter: { [Symbol.split](string: string, limit?: number): string[]; }, limit?: number): string[];
500
501 /**
502 * Returns an <a> HTML anchor element and sets the name attribute to the text value
503 * @param name
504 */
505 anchor(name: string): string;
506
507 /** Returns a <big> HTML element */
508 big(): string;
509
510 /** Returns a <blink> HTML element */
511 blink(): string;
512
513 /** Returns a <b> HTML element */
514 bold(): string;
515
516 /** Returns a <tt> HTML element */
517 fixed(): string
518
519 /** Returns a <font> HTML element and sets the color attribute value */
520 fontcolor(color: string): string
521
522 /** Returns a <font> HTML element and sets the size attribute value */
523 fontsize(size: number): string;
524
525 /** Returns a <font> HTML element and sets the size attribute value */
526 fontsize(size: string): string;
527
528 /** Returns an <i> HTML element */
529 italics(): string;
530
531 /** Returns an <a> HTML element and sets the href attribute value */
532 link(url: string): string;
533
534 /** Returns a <small> HTML element */
535 small(): string;
536
537 /** Returns a <strike> HTML element */
538 strike(): string;
539
540 /** Returns a <sub> HTML element */
541 sub(): string;
542
543 /** Returns a <sup> HTML element */
544 sup(): string;
545}
546
547interface StringConstructor {
548 /**
549 * Return the String value whose elements are, in order, the elements in the List elements.
550 * If length is 0, the empty string is returned.
551 */
552 fromCodePoint(...codePoints: number[]): string;
553
554 /**
555 * String.raw is intended for use as a tag function of a Tagged Template String. When called
556 * as such the first argument will be a well formed template call site object and the rest
557 * parameter will contain the substitution values.
558 * @param template A well-formed template string call site representation.
559 * @param substitutions A set of substitution values.
560 */
561 raw(template: TemplateStringsArray, ...substitutions: any[]): string;
562}
563
564interface IteratorResult<T> {
565 done: boolean;
566 value?: T;
567}
568
569interface Iterator<T> {
570 next(value?: any): IteratorResult<T>;
571 return?(value?: any): IteratorResult<T>;
572 throw?(e?: any): IteratorResult<T>;
573}
574
575interface Iterable<T> {
576 [Symbol.iterator](): Iterator<T>;
577}
578
579interface IterableIterator<T> extends Iterator<T> {
580 [Symbol.iterator](): IterableIterator<T>;
581}
582
583interface GeneratorFunction extends Function {
584 readonly [Symbol.toStringTag]: "GeneratorFunction";
585}
586
587interface GeneratorFunctionConstructor {
588 /**
589 * Creates a new Generator function.
590 * @param args A list of arguments the function accepts.
591 */
592 new (...args: string[]): GeneratorFunction;
593 (...args: string[]): GeneratorFunction;
594 readonly prototype: GeneratorFunction;
595}
596declare var GeneratorFunction: GeneratorFunctionConstructor;
597
598interface Math {
599 /**
600 * Returns the number of leading zero bits in the 32-bit binary representation of a number.
601 * @param x A numeric expression.
602 */
603 clz32(x: number): number;
604
605 /**
606 * Returns the result of 32-bit multiplication of two numbers.
607 * @param x First number
608 * @param y Second number
609 */
610 imul(x: number, y: number): number;
611
612 /**
613 * Returns the sign of the x, indicating whether x is positive, negative or zero.
614 * @param x The numeric expression to test
615 */
616 sign(x: number): number;
617
618 /**
619 * Returns the base 10 logarithm of a number.
620 * @param x A numeric expression.
621 */
622 log10(x: number): number;
623
624 /**
625 * Returns the base 2 logarithm of a number.
626 * @param x A numeric expression.
627 */
628 log2(x: number): number;
629
630 /**
631 * Returns the natural logarithm of 1 + x.
632 * @param x A numeric expression.
633 */
634 log1p(x: number): number;
635
636 /**
637 * Returns the result of (e^x - 1) of x (e raised to the power of x, where e is the base of
638 * the natural logarithms).
639 * @param x A numeric expression.
640 */
641 expm1(x: number): number;
642
643 /**
644 * Returns the hyperbolic cosine of a number.
645 * @param x A numeric expression that contains an angle measured in radians.
646 */
647 cosh(x: number): number;
648
649 /**
650 * Returns the hyperbolic sine of a number.
651 * @param x A numeric expression that contains an angle measured in radians.
652 */
653 sinh(x: number): number;
654
655 /**
656 * Returns the hyperbolic tangent of a number.
657 * @param x A numeric expression that contains an angle measured in radians.
658 */
659 tanh(x: number): number;
660
661 /**
662 * Returns the inverse hyperbolic cosine of a number.
663 * @param x A numeric expression that contains an angle measured in radians.
664 */
665 acosh(x: number): number;
666
667 /**
668 * Returns the inverse hyperbolic sine of a number.
669 * @param x A numeric expression that contains an angle measured in radians.
670 */
671 asinh(x: number): number;
672
673 /**
674 * Returns the inverse hyperbolic tangent of a number.
675 * @param x A numeric expression that contains an angle measured in radians.
676 */
677 atanh(x: number): number;
678
679 /**
680 * Returns the square root of the sum of squares of its arguments.
681 * @param values Values to compute the square root for.
682 * If no arguments are passed, the result is +0.
683 * If there is only one argument, the result is the absolute value.
684 * If any argument is +Infinity or -Infinity, the result is +Infinity.
685 * If any argument is NaN, the result is NaN.
686 * If all arguments are either +0 or −0, the result is +0.
687 */
688 hypot(...values: number[] ): number;
689
690 /**
691 * Returns the integral part of the a numeric expression, x, removing any fractional digits.
692 * If x is already an integer, the result is x.
693 * @param x A numeric expression.
694 */
695 trunc(x: number): number;
696
697 /**
698 * Returns the nearest single precision float representation of a number.
699 * @param x A numeric expression.
700 */
701 fround(x: number): number;
702
703 /**
704 * Returns an implementation-dependent approximation to the cube root of number.
705 * @param x A numeric expression.
706 */
707 cbrt(x: number): number;
708
709 readonly [Symbol.toStringTag]: "Math";
710}
711
712interface Date {
713 /**
714 * Converts a Date object to a string.
715 */
716 [Symbol.toPrimitive](hint: "default"): string;
717 /**
718 * Converts a Date object to a string.
719 */
720 [Symbol.toPrimitive](hint: "string"): string;
721 /**
722 * Converts a Date object to a number.
723 */
724 [Symbol.toPrimitive](hint: "number"): number;
725 /**
726 * Converts a Date object to a string or number.
727 *
728 * @param hint The strings "number", "string", or "default" to specify what primitive to return.
729 *
730 * @throws {TypeError} If 'hint' was given something other than "number", "string", or "default".
731 * @returns A number if 'hint' was "number", a string if 'hint' was "string" or "default".
732 */
733 [Symbol.toPrimitive](hint: string): string | number;
734}
735
736interface RegExp {
737 /**
738 * Matches a string with this regular expression, and returns an array containing the results of
739 * that search.
740 * @param string A string to search within.
741 */
742 [Symbol.match](string: string): RegExpMatchArray;
743
744 /**
745 * Replaces text in a string, using this regular expression.
746 * @param string A String object or string literal whose contents matching against
747 * this regular expression will be replaced
748 * @param replaceValue A String object or string literal containing the text to replace for every
749 * successful match of this regular expression.
750 */
751 [Symbol.replace](string: string, replaceValue: string): string;
752
753 /**
754 * Replaces text in a string, using this regular expression.
755 * @param string A String object or string literal whose contents matching against
756 * this regular expression will be replaced
757 * @param replacer A function that returns the replacement text.
758 */
759 [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
760
761 /**
762 * Finds the position beginning first substring match in a regular expression search
763 * using this regular expression.
764 *
765 * @param string The string to search within.
766 */
767 [Symbol.search](string: string): number;
768
769 /**
770 * Returns an array of substrings that were delimited by strings in the original input that
771 * match against this regular expression.
772 *
773 * If the regular expression contains capturing parentheses, then each time this
774 * regular expression matches, the results (including any undefined results) of the
775 * capturing parentheses are spliced.
776 *
777 * @param string string value to split
778 * @param limit if not undefined, the output array is truncated so that it contains no more
779 * than 'limit' elements.
780 */
781 [Symbol.split](string: string, limit?: number): string[];
782
783 /**
784 * Returns a string indicating the flags of the regular expression in question. This field is read-only.
785 * The characters in this string are sequenced and concatenated in the following order:
786 *
787 * - "g" for global
788 * - "i" for ignoreCase
789 * - "m" for multiline
790 * - "u" for unicode
791 * - "y" for sticky
792 *
793 * If no flags are set, the value is the empty string.
794 */
795 readonly flags: string;
796
797 /**
798 * Returns a Boolean value indicating the state of the sticky flag (y) used with a regular
799 * expression. Default is false. Read-only.
800 */
801 readonly sticky: boolean;
802
803 /**
804 * Returns a Boolean value indicating the state of the Unicode flag (u) used with a regular
805 * expression. Default is false. Read-only.
806 */
807 readonly unicode: boolean;
808}
809
810interface RegExpConstructor {
811 [Symbol.species](): RegExpConstructor;
812}
813
814interface Map<K, V> {
815 clear(): void;
816 delete(key: K): boolean;
817 entries(): IterableIterator<[K, V]>;
818 forEach(callbackfn: (value: V, index: K, map: Map<K, V>) => void, thisArg?: any): void;
819 get(key: K): V;
820 has(key: K): boolean;
821 keys(): IterableIterator<K>;
822 set(key: K, value?: V): Map<K, V>;
823 readonly size: number;
824 values(): IterableIterator<V>;
825 [Symbol.iterator]():IterableIterator<[K,V]>;
826 readonly [Symbol.toStringTag]: "Map";
827}
828
829interface MapConstructor {
830 new (): Map<any, any>;
831 new <K, V>(): Map<K, V>;
832 new <K, V>(iterable: Iterable<[K, V]>): Map<K, V>;
833 readonly prototype: Map<any, any>;
834}
835declare var Map: MapConstructor;
836
837interface WeakMap<K, V> {
838 clear(): void;
839 delete(key: K): boolean;
840 get(key: K): V;
841 has(key: K): boolean;
842 set(key: K, value?: V): WeakMap<K, V>;
843 readonly [Symbol.toStringTag]: "WeakMap";
844}
845
846interface WeakMapConstructor {
847 new (): WeakMap<any, any>;
848 new <K, V>(): WeakMap<K, V>;
849 new <K, V>(iterable: Iterable<[K, V]>): WeakMap<K, V>;
850 readonly prototype: WeakMap<any, any>;
851}
852declare var WeakMap: WeakMapConstructor;
853
854interface Set<T> {
855 add(value: T): Set<T>;
856 clear(): void;
857 delete(value: T): boolean;
858 entries(): IterableIterator<[T, T]>;
859 forEach(callbackfn: (value: T, index: T, set: Set<T>) => void, thisArg?: any): void;
860 has(value: T): boolean;
861 keys(): IterableIterator<T>;
862 readonly size: number;
863 values(): IterableIterator<T>;
864 [Symbol.iterator]():IterableIterator<T>;
865 readonly [Symbol.toStringTag]: "Set";
866}
867
868interface SetConstructor {
869 new (): Set<any>;
870 new <T>(): Set<T>;
871 new <T>(iterable: Iterable<T>): Set<T>;
872 readonly prototype: Set<any>;
873}
874declare var Set: SetConstructor;
875
876interface WeakSet<T> {
877 add(value: T): WeakSet<T>;
878 clear(): void;
879 delete(value: T): boolean;
880 has(value: T): boolean;
881 readonly [Symbol.toStringTag]: "WeakSet";
882}
883
884interface WeakSetConstructor {
885 new (): WeakSet<any>;
886 new <T>(): WeakSet<T>;
887 new <T>(iterable: Iterable<T>): WeakSet<T>;
888 readonly prototype: WeakSet<any>;
889}
890declare var WeakSet: WeakSetConstructor;
891
892interface JSON {
893 readonly [Symbol.toStringTag]: "JSON";
894}
895
896/**
897 * Represents a raw buffer of binary data, which is used to store data for the
898 * different typed arrays. ArrayBuffers cannot be read from or written to directly,
899 * but can be passed to a typed array or DataView Object to interpret the raw
900 * buffer as needed.
901 */
902interface ArrayBuffer {
903 readonly [Symbol.toStringTag]: "ArrayBuffer";
904}
905
906interface DataView {
907 readonly [Symbol.toStringTag]: "DataView";
908}
909
910/**
911 * A typed array of 8-bit integer values. The contents are initialized to 0. If the requested
912 * number of bytes could not be allocated an exception is raised.
913 */
914interface Int8Array {
915 /**
916 * Returns an array of key, value pairs for every entry in the array
917 */
918 entries(): IterableIterator<[number, number]>;
919 /**
920 * Returns an list of keys in the array
921 */
922 keys(): IterableIterator<number>;
923 /**
924 * Returns an list of values in the array
925 */
926 values(): IterableIterator<number>;
927 [Symbol.iterator](): IterableIterator<number>;
928 readonly [Symbol.toStringTag]: "Int8Array";
929}
930
931interface Int8ArrayConstructor {
932 new (elements: Iterable<number>): Int8Array;
933
934 /**
935 * Creates an array from an array-like or iterable object.
936 * @param arrayLike An array-like or iterable object to convert to an array.
937 * @param mapfn A mapping function to call on every element of the array.
938 * @param thisArg Value of 'this' used to invoke the mapfn.
939 */
940 from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int8Array;
941}
942
943/**
944 * A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the
945 * requested number of bytes could not be allocated an exception is raised.
946 */
947interface Uint8Array {
948 /**
949 * Returns an array of key, value pairs for every entry in the array
950 */
951 entries(): IterableIterator<[number, number]>;
952 /**
953 * Returns an list of keys in the array
954 */
955 keys(): IterableIterator<number>;
956 /**
957 * Returns an list of values in the array
958 */
959 values(): IterableIterator<number>;
960 [Symbol.iterator](): IterableIterator<number>;
961 readonly [Symbol.toStringTag]: "UInt8Array";
962}
963
964interface Uint8ArrayConstructor {
965 new (elements: Iterable<number>): Uint8Array;
966
967 /**
968 * Creates an array from an array-like or iterable object.
969 * @param arrayLike An array-like or iterable object to convert to an array.
970 * @param mapfn A mapping function to call on every element of the array.
971 * @param thisArg Value of 'this' used to invoke the mapfn.
972 */
973 from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8Array;
974}
975
976/**
977 * A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0.
978 * If the requested number of bytes could not be allocated an exception is raised.
979 */
980interface Uint8ClampedArray {
981 /**
982 * Returns an array of key, value pairs for every entry in the array
983 */
984 entries(): IterableIterator<[number, number]>;
985
986 /**
987 * Returns an list of keys in the array
988 */
989 keys(): IterableIterator<number>;
990
991 /**
992 * Returns an list of values in the array
993 */
994 values(): IterableIterator<number>;
995
996 [Symbol.iterator](): IterableIterator<number>;
997 readonly [Symbol.toStringTag]: "Uint8ClampedArray";
998}
999
1000interface Uint8ClampedArrayConstructor {
1001 new (elements: Iterable<number>): Uint8ClampedArray;
1002
1003
1004 /**
1005 * Creates an array from an array-like or iterable object.
1006 * @param arrayLike An array-like or iterable object to convert to an array.
1007 * @param mapfn A mapping function to call on every element of the array.
1008 * @param thisArg Value of 'this' used to invoke the mapfn.
1009 */
1010 from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8ClampedArray;
1011}
1012
1013/**
1014 * A typed array of 16-bit signed integer values. The contents are initialized to 0. If the
1015 * requested number of bytes could not be allocated an exception is raised.
1016 */
1017interface Int16Array {
1018 /**
1019 * Returns an array of key, value pairs for every entry in the array
1020 */
1021 entries(): IterableIterator<[number, number]>;
1022
1023 /**
1024 * Returns an list of keys in the array
1025 */
1026 keys(): IterableIterator<number>;
1027
1028 /**
1029 * Returns an list of values in the array
1030 */
1031 values(): IterableIterator<number>;
1032
1033
1034 [Symbol.iterator](): IterableIterator<number>;
1035 readonly [Symbol.toStringTag]: "Int16Array";
1036}
1037
1038interface Int16ArrayConstructor {
1039 new (elements: Iterable<number>): Int16Array;
1040
1041 /**
1042 * Creates an array from an array-like or iterable object.
1043 * @param arrayLike An array-like or iterable object to convert to an array.
1044 * @param mapfn A mapping function to call on every element of the array.
1045 * @param thisArg Value of 'this' used to invoke the mapfn.
1046 */
1047 from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int16Array;
1048}
1049
1050/**
1051 * A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the
1052 * requested number of bytes could not be allocated an exception is raised.
1053 */
1054interface Uint16Array {
1055 /**
1056 * Returns an array of key, value pairs for every entry in the array
1057 */
1058 entries(): IterableIterator<[number, number]>;
1059 /**
1060 * Returns an list of keys in the array
1061 */
1062 keys(): IterableIterator<number>;
1063 /**
1064 * Returns an list of values in the array
1065 */
1066 values(): IterableIterator<number>;
1067 [Symbol.iterator](): IterableIterator<number>;
1068 readonly [Symbol.toStringTag]: "Uint16Array";
1069}
1070
1071interface Uint16ArrayConstructor {
1072 new (elements: Iterable<number>): Uint16Array;
1073
1074 /**
1075 * Creates an array from an array-like or iterable object.
1076 * @param arrayLike An array-like or iterable object to convert to an array.
1077 * @param mapfn A mapping function to call on every element of the array.
1078 * @param thisArg Value of 'this' used to invoke the mapfn.
1079 */
1080 from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint16Array;
1081}
1082
1083/**
1084 * A typed array of 32-bit signed integer values. The contents are initialized to 0. If the
1085 * requested number of bytes could not be allocated an exception is raised.
1086 */
1087interface Int32Array {
1088 /**
1089 * Returns an array of key, value pairs for every entry in the array
1090 */
1091 entries(): IterableIterator<[number, number]>;
1092 /**
1093 * Returns an list of keys in the array
1094 */
1095 keys(): IterableIterator<number>;
1096 /**
1097 * Returns an list of values in the array
1098 */
1099 values(): IterableIterator<number>;
1100 [Symbol.iterator](): IterableIterator<number>;
1101 readonly [Symbol.toStringTag]: "Int32Array";
1102}
1103
1104interface Int32ArrayConstructor {
1105 new (elements: Iterable<number>): Int32Array;
1106
1107 /**
1108 * Creates an array from an array-like or iterable object.
1109 * @param arrayLike An array-like or iterable object to convert to an array.
1110 * @param mapfn A mapping function to call on every element of the array.
1111 * @param thisArg Value of 'this' used to invoke the mapfn.
1112 */
1113 from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int32Array;
1114}
1115
1116/**
1117 * A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the
1118 * requested number of bytes could not be allocated an exception is raised.
1119 */
1120interface Uint32Array {
1121 /**
1122 * Returns an array of key, value pairs for every entry in the array
1123 */
1124 entries(): IterableIterator<[number, number]>;
1125 /**
1126 * Returns an list of keys in the array
1127 */
1128 keys(): IterableIterator<number>;
1129 /**
1130 * Returns an list of values in the array
1131 */
1132 values(): IterableIterator<number>;
1133 [Symbol.iterator](): IterableIterator<number>;
1134 readonly [Symbol.toStringTag]: "Uint32Array";
1135}
1136
1137interface Uint32ArrayConstructor {
1138 new (elements: Iterable<number>): Uint32Array;
1139
1140 /**
1141 * Creates an array from an array-like or iterable object.
1142 * @param arrayLike An array-like or iterable object to convert to an array.
1143 * @param mapfn A mapping function to call on every element of the array.
1144 * @param thisArg Value of 'this' used to invoke the mapfn.
1145 */
1146 from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint32Array;
1147}
1148
1149/**
1150 * A typed array of 32-bit float values. The contents are initialized to 0. If the requested number
1151 * of bytes could not be allocated an exception is raised.
1152 */
1153interface Float32Array {
1154 /**
1155 * Returns an array of key, value pairs for every entry in the array
1156 */
1157 entries(): IterableIterator<[number, number]>;
1158 /**
1159 * Returns an list of keys in the array
1160 */
1161 keys(): IterableIterator<number>;
1162 /**
1163 * Returns an list of values in the array
1164 */
1165 values(): IterableIterator<number>;
1166 [Symbol.iterator](): IterableIterator<number>;
1167 readonly [Symbol.toStringTag]: "Float32Array";
1168}
1169
1170interface Float32ArrayConstructor {
1171 new (elements: Iterable<number>): Float32Array;
1172
1173 /**
1174 * Creates an array from an array-like or iterable object.
1175 * @param arrayLike An array-like or iterable object to convert to an array.
1176 * @param mapfn A mapping function to call on every element of the array.
1177 * @param thisArg Value of 'this' used to invoke the mapfn.
1178 */
1179 from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float32Array;
1180}
1181
1182/**
1183 * A typed array of 64-bit float values. The contents are initialized to 0. If the requested
1184 * number of bytes could not be allocated an exception is raised.
1185 */
1186interface Float64Array {
1187 /**
1188 * Returns an array of key, value pairs for every entry in the array
1189 */
1190 entries(): IterableIterator<[number, number]>;
1191 /**
1192 * Returns an list of keys in the array
1193 */
1194 keys(): IterableIterator<number>;
1195 /**
1196 * Returns an list of values in the array
1197 */
1198 values(): IterableIterator<number>;
1199 [Symbol.iterator](): IterableIterator<number>;
1200 readonly [Symbol.toStringTag]: "Float64Array";
1201}
1202
1203interface Float64ArrayConstructor {
1204 new (elements: Iterable<number>): Float64Array;
1205
1206 /**
1207 * Creates an array from an array-like or iterable object.
1208 * @param arrayLike An array-like or iterable object to convert to an array.
1209 * @param mapfn A mapping function to call on every element of the array.
1210 * @param thisArg Value of 'this' used to invoke the mapfn.
1211 */
1212 from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float64Array;
1213}
1214
1215interface ProxyHandler<T> {
1216 getPrototypeOf? (target: T): any;
1217 setPrototypeOf? (target: T, v: any): boolean;
1218 isExtensible? (target: T): boolean;
1219 preventExtensions? (target: T): boolean;
1220 getOwnPropertyDescriptor? (target: T, p: PropertyKey): PropertyDescriptor;
1221 has? (target: T, p: PropertyKey): boolean;
1222 get? (target: T, p: PropertyKey, receiver: any): any;
1223 set? (target: T, p: PropertyKey, value: any, receiver: any): boolean;
1224 deleteProperty? (target: T, p: PropertyKey): boolean;
1225 defineProperty? (target: T, p: PropertyKey, attributes: PropertyDescriptor): boolean;
1226 enumerate? (target: T): PropertyKey[];
1227 ownKeys? (target: T): PropertyKey[];
1228 apply? (target: T, thisArg: any, argArray?: any): any;
1229 construct? (target: T, thisArg: any, argArray?: any): any;
1230}
1231
1232interface ProxyConstructor {
1233 revocable<T>(target: T, handler: ProxyHandler<T>): { proxy: T; revoke: () => void; };
1234 new <T>(target: T, handler: ProxyHandler<T>): T
1235}
1236declare var Proxy: ProxyConstructor;
1237
1238declare namespace Reflect {
1239 function apply(target: Function, thisArgument: any, argumentsList: ArrayLike<any>): any;
1240 function construct(target: Function, argumentsList: ArrayLike<any>, newTarget?: any): any;
1241 function defineProperty(target: any, propertyKey: PropertyKey, attributes: PropertyDescriptor): boolean;
1242 function deleteProperty(target: any, propertyKey: PropertyKey): boolean;
1243 function enumerate(target: any): IterableIterator<any>;
1244 function get(target: any, propertyKey: PropertyKey, receiver?: any): any;
1245 function getOwnPropertyDescriptor(target: any, propertyKey: PropertyKey): PropertyDescriptor;
1246 function getPrototypeOf(target: any): any;
1247 function has(target: any, propertyKey: string): boolean;
1248 function has(target: any, propertyKey: symbol): boolean;
1249 function isExtensible(target: any): boolean;
1250 function ownKeys(target: any): Array<PropertyKey>;
1251 function preventExtensions(target: any): boolean;
1252 function set(target: any, propertyKey: PropertyKey, value: any, receiver?: any): boolean;
1253 function setPrototypeOf(target: any, proto: any): boolean;
1254}
1255
1256/**
1257 * Represents the completion of an asynchronous operation
1258 */
1259interface Promise<T> {
1260 /**
1261 * Attaches callbacks for the resolution and/or rejection of the Promise.
1262 * @param onfulfilled The callback to execute when the Promise is resolved.
1263 * @param onrejected The callback to execute when the Promise is rejected.
1264 * @returns A Promise for the completion of which ever callback is executed.
1265 */
1266 then<TResult>(onfulfilled?: (value: T) => TResult | PromiseLike<TResult>, onrejected?: (reason: any) => TResult | PromiseLike<TResult>): Promise<TResult>;
1267 then<TResult>(onfulfilled?: (value: T) => TResult | PromiseLike<TResult>, onrejected?: (reason: any) => void): Promise<TResult>;
1268
1269 /**
1270 * Attaches a callback for only the rejection of the Promise.
1271 * @param onrejected The callback to execute when the Promise is rejected.
1272 * @returns A Promise for the completion of the callback.
1273 */
1274 catch(onrejected?: (reason: any) => T | PromiseLike<T>): Promise<T>;
1275 catch(onrejected?: (reason: any) => void): Promise<T>;
1276
1277 readonly [Symbol.toStringTag]: "Promise";
1278}
1279
1280interface PromiseConstructor {
1281 /**
1282 * A reference to the prototype.
1283 */
1284 readonly prototype: Promise<any>;
1285
1286 /**
1287 * Creates a new Promise.
1288 * @param executor A callback used to initialize the promise. This callback is passed two arguments:
1289 * a resolve callback used resolve the promise with a value or the result of another promise,
1290 * and a reject callback used to reject the promise with a provided reason or error.
1291 */
1292 new <T>(executor: (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;
1293
1294 /**
1295 * Creates a Promise that is resolved with an array of results when all of the provided Promises
1296 * resolve, or rejected when any Promise is rejected.
1297 * @param values An array of Promises.
1298 * @returns A new Promise.
1299 */
1300 all<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>, T9 | PromiseLike<T9>, T10 | PromiseLike<T10>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]>;
1301 all<T1, T2, T3, T4, T5, T6, T7, T8, T9>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>, T9 | PromiseLike<T9>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9]>;
1302 all<T1, T2, T3, T4, T5, T6, T7, T8>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8]>;
1303 all<T1, T2, T3, T4, T5, T6, T7>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>]): Promise<[T1, T2, T3, T4, T5, T6, T7]>;
1304 all<T1, T2, T3, T4, T5, T6>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>]): Promise<[T1, T2, T3, T4, T5, T6]>;
1305 all<T1, T2, T3, T4, T5>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>]): Promise<[T1, T2, T3, T4, T5]>;
1306 all<T1, T2, T3, T4>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>]): Promise<[T1, T2, T3, T4]>;
1307 all<T1, T2, T3>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>]): Promise<[T1, T2, T3]>;
1308 all<T1, T2>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>]): Promise<[T1, T2]>;
1309 all<TAll>(values: Iterable<TAll | PromiseLike<TAll>>): Promise<TAll[]>;
1310
1311 /**
1312 * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
1313 * or rejected.
1314 * @param values An array of Promises.
1315 * @returns A new Promise.
1316 */
1317 race<T>(values: Iterable<T | PromiseLike<T>>): Promise<T>;
1318
1319 /**
1320 * Creates a new rejected promise for the provided reason.
1321 * @param reason The reason the promise was rejected.
1322 * @returns A new rejected Promise.
1323 */
1324 reject(reason: any): Promise<void>;
1325
1326 /**
1327 * Creates a new rejected promise for the provided reason.
1328 * @param reason The reason the promise was rejected.
1329 * @returns A new rejected Promise.
1330 */
1331 reject<T>(reason: any): Promise<T>;
1332
1333 /**
1334 * Creates a new resolved promise for the provided value.
1335 * @param value A promise.
1336 * @returns A promise whose internal state matches the provided promise.
1337 */
1338 resolve<T>(value: T | PromiseLike<T>): Promise<T>;
1339
1340 /**
1341 * Creates a new resolved promise .
1342 * @returns A resolved promise.
1343 */
1344 resolve(): Promise<void>;
1345
1346 readonly [Symbol.species]: Function;
1347}
1348
1349declare var Promise: PromiseConstructor;
1350interface Array<T> {
1351 /**
1352 * Determines whether an array includes a certain element, returning true or false as appropriate.
1353 * @param searchElement The element to search for.
1354 * @param fromIndex The position in this array at which to begin searching for searchElement.
1355 */
1356 includes(searchElement: T, fromIndex?: number): boolean;
1357}
1358
1359interface Int8Array {
1360 /**
1361 * Determines whether an array includes a certain element, returning true or false as appropriate.
1362 * @param searchElement The element to search for.
1363 * @param fromIndex The position in this array at which to begin searching for searchElement.
1364 */
1365 includes(searchElement: number, fromIndex?: number): boolean;
1366}
1367
1368interface Uint8Array {
1369 /**
1370 * Determines whether an array includes a certain element, returning true or false as appropriate.
1371 * @param searchElement The element to search for.
1372 * @param fromIndex The position in this array at which to begin searching for searchElement.
1373 */
1374 includes(searchElement: number, fromIndex?: number): boolean;
1375}
1376
1377interface Uint8ClampedArray {
1378 /**
1379 * Determines whether an array includes a certain element, returning true or false as appropriate.
1380 * @param searchElement The element to search for.
1381 * @param fromIndex The position in this array at which to begin searching for searchElement.
1382 */
1383 includes(searchElement: number, fromIndex?: number): boolean;
1384}
1385
1386interface Int16Array {
1387 /**
1388 * Determines whether an array includes a certain element, returning true or false as appropriate.
1389 * @param searchElement The element to search for.
1390 * @param fromIndex The position in this array at which to begin searching for searchElement.
1391 */
1392 includes(searchElement: number, fromIndex?: number): boolean;
1393}
1394
1395interface Uint16Array {
1396 /**
1397 * Determines whether an array includes a certain element, returning true or false as appropriate.
1398 * @param searchElement The element to search for.
1399 * @param fromIndex The position in this array at which to begin searching for searchElement.
1400 */
1401 includes(searchElement: number, fromIndex?: number): boolean;
1402}
1403
1404interface Int32Array {
1405 /**
1406 * Determines whether an array includes a certain element, returning true or false as appropriate.
1407 * @param searchElement The element to search for.
1408 * @param fromIndex The position in this array at which to begin searching for searchElement.
1409 */
1410 includes(searchElement: number, fromIndex?: number): boolean;
1411}
1412
1413interface Uint32Array {
1414 /**
1415 * Determines whether an array includes a certain element, returning true or false as appropriate.
1416 * @param searchElement The element to search for.
1417 * @param fromIndex The position in this array at which to begin searching for searchElement.
1418 */
1419 includes(searchElement: number, fromIndex?: number): boolean;
1420}
1421
1422interface Float32Array {
1423 /**
1424 * Determines whether an array includes a certain element, returning true or false as appropriate.
1425 * @param searchElement The element to search for.
1426 * @param fromIndex The position in this array at which to begin searching for searchElement.
1427 */
1428 includes(searchElement: number, fromIndex?: number): boolean;
1429}
1430
1431interface Float64Array {
1432 /**
1433 * Determines whether an array includes a certain element, returning true or false as appropriate.
1434 * @param searchElement The element to search for.
1435 * @param fromIndex The position in this array at which to begin searching for searchElement.
1436 */
1437 includes(searchElement: number, fromIndex?: number): boolean;
1438}/////////////////////////////
1439/// ECMAScript APIs
1440/////////////////////////////
1441
1442declare const NaN: number;
1443declare const Infinity: number;
1444
1445/**
1446 * Evaluates JavaScript code and executes it.
1447 * @param x A String value that contains valid JavaScript code.
1448 */
1449declare function eval(x: string): any;
1450
1451/**
1452 * Converts A string to an integer.
1453 * @param s A string to convert into a number.
1454 * @param radix A value between 2 and 36 that specifies the base of the number in numString.
1455 * If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.
1456 * All other strings are considered decimal.
1457 */
1458declare function parseInt(s: string, radix?: number): number;
1459
1460/**
1461 * Converts a string to a floating-point number.
1462 * @param string A string that contains a floating-point number.
1463 */
1464declare function parseFloat(string: string): number;
1465
1466/**
1467 * Returns a Boolean value that indicates whether a value is the reserved value NaN (not a number).
1468 * @param number A numeric value.
1469 */
1470declare function isNaN(number: number): boolean;
1471
1472/**
1473 * Determines whether a supplied number is finite.
1474 * @param number Any numeric value.
1475 */
1476declare function isFinite(number: number): boolean;
1477
1478/**
1479 * Gets the unencoded version of an encoded Uniform Resource Identifier (URI).
1480 * @param encodedURI A value representing an encoded URI.
1481 */
1482declare function decodeURI(encodedURI: string): string;
1483
1484/**
1485 * Gets the unencoded version of an encoded component of a Uniform Resource Identifier (URI).
1486 * @param encodedURIComponent A value representing an encoded URI component.
1487 */
1488declare function decodeURIComponent(encodedURIComponent: string): string;
1489
1490/**
1491 * Encodes a text string as a valid Uniform Resource Identifier (URI)
1492 * @param uri A value representing an encoded URI.
1493 */
1494declare function encodeURI(uri: string): string;
1495
1496/**
1497 * Encodes a text string as a valid component of a Uniform Resource Identifier (URI).
1498 * @param uriComponent A value representing an encoded URI component.
1499 */
1500declare function encodeURIComponent(uriComponent: string): string;
1501
1502interface PropertyDescriptor {
1503 configurable?: boolean;
1504 enumerable?: boolean;
1505 value?: any;
1506 writable?: boolean;
1507 get? (): any;
1508 set? (v: any): void;
1509}
1510
1511interface PropertyDescriptorMap {
1512 [s: string]: PropertyDescriptor;
1513}
1514
1515interface Object {
1516 /** The initial value of Object.prototype.constructor is the standard built-in Object constructor. */
1517 constructor: Function;
1518
1519 /** Returns a string representation of an object. */
1520 toString(): string;
1521
1522 /** Returns a date converted to a string using the current locale. */
1523 toLocaleString(): string;
1524
1525 /** Returns the primitive value of the specified object. */
1526 valueOf(): Object;
1527
1528 /**
1529 * Determines whether an object has a property with the specified name.
1530 * @param v A property name.
1531 */
1532 hasOwnProperty(v: string): boolean;
1533
1534 /**
1535 * Determines whether an object exists in another object's prototype chain.
1536 * @param v Another object whose prototype chain is to be checked.
1537 */
1538 isPrototypeOf(v: Object): boolean;
1539
1540 /**
1541 * Determines whether a specified property is enumerable.
1542 * @param v A property name.
1543 */
1544 propertyIsEnumerable(v: string): boolean;
1545}
1546
1547interface ObjectConstructor {
1548 new (value?: any): Object;
1549 (): any;
1550 (value: any): any;
1551
1552 /** A reference to the prototype for a class of objects. */
1553 readonly prototype: Object;
1554
1555 /**
1556 * Returns the prototype of an object.
1557 * @param o The object that references the prototype.
1558 */
1559 getPrototypeOf(o: any): any;
1560
1561 /**
1562 * Gets the own property descriptor of the specified object.
1563 * An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.
1564 * @param o Object that contains the property.
1565 * @param p Name of the property.
1566 */
1567 getOwnPropertyDescriptor(o: any, p: string): PropertyDescriptor;
1568
1569 /**
1570 * Returns the names of the own properties of an object. The own properties of an object are those that are defined directly
1571 * on that object, and are not inherited from the object's prototype. The properties of an object include both fields (objects) and functions.
1572 * @param o Object that contains the own properties.
1573 */
1574 getOwnPropertyNames(o: any): string[];
1575
1576 /**
1577 * Creates an object that has the specified prototype, and that optionally contains specified properties.
1578 * @param o Object to use as a prototype. May be null
1579 * @param properties JavaScript object that contains one or more property descriptors.
1580 */
1581 create(o: any, properties?: PropertyDescriptorMap): any;
1582
1583 /**
1584 * Adds a property to an object, or modifies attributes of an existing property.
1585 * @param o Object on which to add or modify the property. This can be a native JavaScript object (that is, a user-defined object or a built in object) or a DOM object.
1586 * @param p The property name.
1587 * @param attributes Descriptor for the property. It can be for a data property or an accessor property.
1588 */
1589 defineProperty(o: any, p: string, attributes: PropertyDescriptor): any;
1590
1591 /**
1592 * Adds one or more properties to an object, and/or modifies attributes of existing properties.
1593 * @param o Object on which to add or modify the properties. This can be a native JavaScript object or a DOM object.
1594 * @param properties JavaScript object that contains one or more descriptor objects. Each descriptor object describes a data property or an accessor property.
1595 */
1596 defineProperties(o: any, properties: PropertyDescriptorMap): any;
1597
1598 /**
1599 * Prevents the modification of attributes of existing properties, and prevents the addition of new properties.
1600 * @param o Object on which to lock the attributes.
1601 */
1602 seal<T>(o: T): T;
1603
1604 /**
1605 * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
1606 * @param o Object on which to lock the attributes.
1607 */
1608 freeze<T>(o: T): T;
1609
1610 /**
1611 * Prevents the addition of new properties to an object.
1612 * @param o Object to make non-extensible.
1613 */
1614 preventExtensions<T>(o: T): T;
1615
1616 /**
1617 * Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object.
1618 * @param o Object to test.
1619 */
1620 isSealed(o: any): boolean;
1621
1622 /**
1623 * Returns true if existing property attributes and values cannot be modified in an object, and new properties cannot be added to the object.
1624 * @param o Object to test.
1625 */
1626 isFrozen(o: any): boolean;
1627
1628 /**
1629 * Returns a value that indicates whether new properties can be added to an object.
1630 * @param o Object to test.
1631 */
1632 isExtensible(o: any): boolean;
1633
1634 /**
1635 * Returns the names of the enumerable properties and methods of an object.
1636 * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
1637 */
1638 keys(o: any): string[];
1639}
1640
1641/**
1642 * Provides functionality common to all JavaScript objects.
1643 */
1644declare const Object: ObjectConstructor;
1645
1646/**
1647 * Creates a new function.
1648 */
1649interface Function {
1650 /**
1651 * Calls the function, substituting the specified object for the this value of the function, and the specified array for the arguments of the function.
1652 * @param thisArg The object to be used as the this object.
1653 * @param argArray A set of arguments to be passed to the function.
1654 */
1655 apply(thisArg: any, argArray?: any): any;
1656
1657 /**
1658 * Calls a method of an object, substituting another object for the current object.
1659 * @param thisArg The object to be used as the current object.
1660 * @param argArray A list of arguments to be passed to the method.
1661 */
1662 call(thisArg: any, ...argArray: any[]): any;
1663
1664 /**
1665 * For a given function, creates a bound function that has the same body as the original function.
1666 * The this object of the bound function is associated with the specified object, and has the specified initial parameters.
1667 * @param thisArg An object to which the this keyword can refer inside the new function.
1668 * @param argArray A list of arguments to be passed to the new function.
1669 */
1670 bind(thisArg: any, ...argArray: any[]): any;
1671
1672 prototype: any;
1673 readonly length: number;
1674
1675 // Non-standard extensions
1676 arguments: any;
1677 caller: Function;
1678}
1679
1680interface FunctionConstructor {
1681 /**
1682 * Creates a new function.
1683 * @param args A list of arguments the function accepts.
1684 */
1685 new (...args: string[]): Function;
1686 (...args: string[]): Function;
1687 readonly prototype: Function;
1688}
1689
1690declare const Function: FunctionConstructor;
1691
1692interface IArguments {
1693 [index: number]: any;
1694 length: number;
1695 callee: Function;
1696}
1697
1698interface String {
1699 /** Returns a string representation of a string. */
1700 toString(): string;
1701
1702 /**
1703 * Returns the character at the specified index.
1704 * @param pos The zero-based index of the desired character.
1705 */
1706 charAt(pos: number): string;
1707
1708 /**
1709 * Returns the Unicode value of the character at the specified location.
1710 * @param index The zero-based index of the desired character. If there is no character at the specified index, NaN is returned.
1711 */
1712 charCodeAt(index: number): number;
1713
1714 /**
1715 * Returns a string that contains the concatenation of two or more strings.
1716 * @param strings The strings to append to the end of the string.
1717 */
1718 concat(...strings: string[]): string;
1719
1720 /**
1721 * Returns the position of the first occurrence of a substring.
1722 * @param searchString The substring to search for in the string
1723 * @param position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string.
1724 */
1725 indexOf(searchString: string, position?: number): number;
1726
1727 /**
1728 * Returns the last occurrence of a substring in the string.
1729 * @param searchString The substring to search for.
1730 * @param position The index at which to begin searching. If omitted, the search begins at the end of the string.
1731 */
1732 lastIndexOf(searchString: string, position?: number): number;
1733
1734 /**
1735 * Determines whether two strings are equivalent in the current locale.
1736 * @param that String to compare to target string
1737 */
1738 localeCompare(that: string): number;
1739
1740 /**
1741 * Matches a string with a regular expression, and returns an array containing the results of that search.
1742 * @param regexp A variable name or string literal containing the regular expression pattern and flags.
1743 */
1744 match(regexp: string): RegExpMatchArray;
1745
1746 /**
1747 * Matches a string with a regular expression, and returns an array containing the results of that search.
1748 * @param regexp A regular expression object that contains the regular expression pattern and applicable flags.
1749 */
1750 match(regexp: RegExp): RegExpMatchArray;
1751
1752 /**
1753 * Replaces text in a string, using a regular expression or search string.
1754 * @param searchValue A string that represents the regular expression.
1755 * @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.
1756 */
1757 replace(searchValue: string, replaceValue: string): string;
1758
1759 /**
1760 * Replaces text in a string, using a regular expression or search string.
1761 * @param searchValue A string that represents the regular expression.
1762 * @param replacer A function that returns the replacement text.
1763 */
1764 replace(searchValue: string, replacer: (substring: string, ...args: any[]) => string): string;
1765
1766 /**
1767 * Replaces text in a string, using a regular expression or search string.
1768 * @param searchValue A Regular Expression object containing the regular expression pattern and applicable flags.
1769 * @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.
1770 */
1771 replace(searchValue: RegExp, replaceValue: string): string;
1772
1773 /**
1774 * Replaces text in a string, using a regular expression or search string.
1775 * @param searchValue A Regular Expression object containing the regular expression pattern and applicable flags
1776 * @param replacer A function that returns the replacement text.
1777 */
1778 replace(searchValue: RegExp, replacer: (substring: string, ...args: any[]) => string): string;
1779
1780 /**
1781 * Finds the first substring match in a regular expression search.
1782 * @param regexp The regular expression pattern and applicable flags.
1783 */
1784 search(regexp: string): number;
1785
1786 /**
1787 * Finds the first substring match in a regular expression search.
1788 * @param regexp The regular expression pattern and applicable flags.
1789 */
1790 search(regexp: RegExp): number;
1791
1792 /**
1793 * Returns a section of a string.
1794 * @param start The index to the beginning of the specified portion of stringObj.
1795 * @param end The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end.
1796 * If this value is not specified, the substring continues to the end of stringObj.
1797 */
1798 slice(start?: number, end?: number): string;
1799
1800 /**
1801 * Split a string into substrings using the specified separator and return them as an array.
1802 * @param separator A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned.
1803 * @param limit A value used to limit the number of elements returned in the array.
1804 */
1805 split(separator: string, limit?: number): string[];
1806
1807 /**
1808 * Split a string into substrings using the specified separator and return them as an array.
1809 * @param separator A Regular Express that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned.
1810 * @param limit A value used to limit the number of elements returned in the array.
1811 */
1812 split(separator: RegExp, limit?: number): string[];
1813
1814 /**
1815 * Returns the substring at the specified location within a String object.
1816 * @param start The zero-based index number indicating the beginning of the substring.
1817 * @param end Zero-based index number indicating the end of the substring. The substring includes the characters up to, but not including, the character indicated by end.
1818 * If end is omitted, the characters from start through the end of the original string are returned.
1819 */
1820 substring(start: number, end?: number): string;
1821
1822 /** Converts all the alphabetic characters in a string to lowercase. */
1823 toLowerCase(): string;
1824
1825 /** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */
1826 toLocaleLowerCase(): string;
1827
1828 /** Converts all the alphabetic characters in a string to uppercase. */
1829 toUpperCase(): string;
1830
1831 /** Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. */
1832 toLocaleUpperCase(): string;
1833
1834 /** Removes the leading and trailing white space and line terminator characters from a string. */
1835 trim(): string;
1836
1837 /** Returns the length of a String object. */
1838 readonly length: number;
1839
1840 // IE extensions
1841 /**
1842 * Gets a substring beginning at the specified location and having the specified length.
1843 * @param from The starting position of the desired substring. The index of the first character in the string is zero.
1844 * @param length The number of characters to include in the returned substring.
1845 */
1846 substr(from: number, length?: number): string;
1847
1848 /** Returns the primitive value of the specified object. */
1849 valueOf(): string;
1850
1851 readonly [index: number]: string;
1852}
1853
1854interface StringConstructor {
1855 new (value?: any): String;
1856 (value?: any): string;
1857 readonly prototype: String;
1858 fromCharCode(...codes: number[]): string;
1859}
1860
1861/**
1862 * Allows manipulation and formatting of text strings and determination and location of substrings within strings.
1863 */
1864declare const String: StringConstructor;
1865
1866interface Boolean {
1867 /** Returns the primitive value of the specified object. */
1868 valueOf(): boolean;
1869}
1870
1871interface BooleanConstructor {
1872 new (value?: any): Boolean;
1873 (value?: any): boolean;
1874 readonly prototype: Boolean;
1875}
1876
1877declare const Boolean: BooleanConstructor;
1878
1879interface Number {
1880 /**
1881 * Returns a string representation of an object.
1882 * @param radix Specifies a radix for converting numeric values to strings. This value is only used for numbers.
1883 */
1884 toString(radix?: number): string;
1885
1886 /**
1887 * Returns a string representing a number in fixed-point notation.
1888 * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
1889 */
1890 toFixed(fractionDigits?: number): string;
1891
1892 /**
1893 * Returns a string containing a number represented in exponential notation.
1894 * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
1895 */
1896 toExponential(fractionDigits?: number): string;
1897
1898 /**
1899 * Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits.
1900 * @param precision Number of significant digits. Must be in the range 1 - 21, inclusive.
1901 */
1902 toPrecision(precision?: number): string;
1903
1904 /** Returns the primitive value of the specified object. */
1905 valueOf(): number;
1906}
1907
1908interface NumberConstructor {
1909 new (value?: any): Number;
1910 (value?: any): number;
1911 readonly prototype: Number;
1912
1913 /** The largest number that can be represented in JavaScript. Equal to approximately 1.79E+308. */
1914 readonly MAX_VALUE: number;
1915
1916 /** The closest number to zero that can be represented in JavaScript. Equal to approximately 5.00E-324. */
1917 readonly MIN_VALUE: number;
1918
1919 /**
1920 * A value that is not a number.
1921 * In equality comparisons, NaN does not equal any value, including itself. To test whether a value is equivalent to NaN, use the isNaN function.
1922 */
1923 readonly NaN: number;
1924
1925 /**
1926 * A value that is less than the largest negative number that can be represented in JavaScript.
1927 * JavaScript displays NEGATIVE_INFINITY values as -infinity.
1928 */
1929 readonly NEGATIVE_INFINITY: number;
1930
1931 /**
1932 * A value greater than the largest number that can be represented in JavaScript.
1933 * JavaScript displays POSITIVE_INFINITY values as infinity.
1934 */
1935 readonly POSITIVE_INFINITY: number;
1936}
1937
1938/** An object that represents a number of any kind. All JavaScript numbers are 64-bit floating-point numbers. */
1939declare const Number: NumberConstructor;
1940
1941interface TemplateStringsArray extends Array<string> {
1942 readonly raw: string[];
1943}
1944
1945interface Math {
1946 /** The mathematical constant e. This is Euler's number, the base of natural logarithms. */
1947 readonly E: number;
1948 /** The natural logarithm of 10. */
1949 readonly LN10: number;
1950 /** The natural logarithm of 2. */
1951 readonly LN2: number;
1952 /** The base-2 logarithm of e. */
1953 readonly LOG2E: number;
1954 /** The base-10 logarithm of e. */
1955 readonly LOG10E: number;
1956 /** Pi. This is the ratio of the circumference of a circle to its diameter. */
1957 readonly PI: number;
1958 /** The square root of 0.5, or, equivalently, one divided by the square root of 2. */
1959 readonly SQRT1_2: number;
1960 /** The square root of 2. */
1961 readonly SQRT2: number;
1962 /**
1963 * Returns the absolute value of a number (the value without regard to whether it is positive or negative).
1964 * For example, the absolute value of -5 is the same as the absolute value of 5.
1965 * @param x A numeric expression for which the absolute value is needed.
1966 */
1967 abs(x: number): number;
1968 /**
1969 * Returns the arc cosine (or inverse cosine) of a number.
1970 * @param x A numeric expression.
1971 */
1972 acos(x: number): number;
1973 /**
1974 * Returns the arcsine of a number.
1975 * @param x A numeric expression.
1976 */
1977 asin(x: number): number;
1978 /**
1979 * Returns the arctangent of a number.
1980 * @param x A numeric expression for which the arctangent is needed.
1981 */
1982 atan(x: number): number;
1983 /**
1984 * Returns the angle (in radians) from the X axis to a point.
1985 * @param y A numeric expression representing the cartesian y-coordinate.
1986 * @param x A numeric expression representing the cartesian x-coordinate.
1987 */
1988 atan2(y: number, x: number): number;
1989 /**
1990 * Returns the smallest number greater than or equal to its numeric argument.
1991 * @param x A numeric expression.
1992 */
1993 ceil(x: number): number;
1994 /**
1995 * Returns the cosine of a number.
1996 * @param x A numeric expression that contains an angle measured in radians.
1997 */
1998 cos(x: number): number;
1999 /**
2000 * Returns e (the base of natural logarithms) raised to a power.
2001 * @param x A numeric expression representing the power of e.
2002 */
2003 exp(x: number): number;
2004 /**
2005 * Returns the greatest number less than or equal to its numeric argument.
2006 * @param x A numeric expression.
2007 */
2008 floor(x: number): number;
2009 /**
2010 * Returns the natural logarithm (base e) of a number.
2011 * @param x A numeric expression.
2012 */
2013 log(x: number): number;
2014 /**
2015 * Returns the larger of a set of supplied numeric expressions.
2016 * @param values Numeric expressions to be evaluated.
2017 */
2018 max(...values: number[]): number;
2019 /**
2020 * Returns the smaller of a set of supplied numeric expressions.
2021 * @param values Numeric expressions to be evaluated.
2022 */
2023 min(...values: number[]): number;
2024 /**
2025 * Returns the value of a base expression taken to a specified power.
2026 * @param x The base value of the expression.
2027 * @param y The exponent value of the expression.
2028 */
2029 pow(x: number, y: number): number;
2030 /** Returns a pseudorandom number between 0 and 1. */
2031 random(): number;
2032 /**
2033 * Returns a supplied numeric expression rounded to the nearest number.
2034 * @param x The value to be rounded to the nearest number.
2035 */
2036 round(x: number): number;
2037 /**
2038 * Returns the sine of a number.
2039 * @param x A numeric expression that contains an angle measured in radians.
2040 */
2041 sin(x: number): number;
2042 /**
2043 * Returns the square root of a number.
2044 * @param x A numeric expression.
2045 */
2046 sqrt(x: number): number;
2047 /**
2048 * Returns the tangent of a number.
2049 * @param x A numeric expression that contains an angle measured in radians.
2050 */
2051 tan(x: number): number;
2052}
2053/** An intrinsic object that provides basic mathematics functionality and constants. */
2054declare const Math: Math;
2055
2056/** Enables basic storage and retrieval of dates and times. */
2057interface Date {
2058 /** Returns a string representation of a date. The format of the string depends on the locale. */
2059 toString(): string;
2060 /** Returns a date as a string value. */
2061 toDateString(): string;
2062 /** Returns a time as a string value. */
2063 toTimeString(): string;
2064 /** Returns a value as a string value appropriate to the host environment's current locale. */
2065 toLocaleString(): string;
2066 /** Returns a date as a string value appropriate to the host environment's current locale. */
2067 toLocaleDateString(): string;
2068 /** Returns a time as a string value appropriate to the host environment's current locale. */
2069 toLocaleTimeString(): string;
2070 /** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */
2071 valueOf(): number;
2072 /** Gets the time value in milliseconds. */
2073 getTime(): number;
2074 /** Gets the year, using local time. */
2075 getFullYear(): number;
2076 /** Gets the year using Universal Coordinated Time (UTC). */
2077 getUTCFullYear(): number;
2078 /** Gets the month, using local time. */
2079 getMonth(): number;
2080 /** Gets the month of a Date object using Universal Coordinated Time (UTC). */
2081 getUTCMonth(): number;
2082 /** Gets the day-of-the-month, using local time. */
2083 getDate(): number;
2084 /** Gets the day-of-the-month, using Universal Coordinated Time (UTC). */
2085 getUTCDate(): number;
2086 /** Gets the day of the week, using local time. */
2087 getDay(): number;
2088 /** Gets the day of the week using Universal Coordinated Time (UTC). */
2089 getUTCDay(): number;
2090 /** Gets the hours in a date, using local time. */
2091 getHours(): number;
2092 /** Gets the hours value in a Date object using Universal Coordinated Time (UTC). */
2093 getUTCHours(): number;
2094 /** Gets the minutes of a Date object, using local time. */
2095 getMinutes(): number;
2096 /** Gets the minutes of a Date object using Universal Coordinated Time (UTC). */
2097 getUTCMinutes(): number;
2098 /** Gets the seconds of a Date object, using local time. */
2099 getSeconds(): number;
2100 /** Gets the seconds of a Date object using Universal Coordinated Time (UTC). */
2101 getUTCSeconds(): number;
2102 /** Gets the milliseconds of a Date, using local time. */
2103 getMilliseconds(): number;
2104 /** Gets the milliseconds of a Date object using Universal Coordinated Time (UTC). */
2105 getUTCMilliseconds(): number;
2106 /** Gets the difference in minutes between the time on the local computer and Universal Coordinated Time (UTC). */
2107 getTimezoneOffset(): number;
2108 /**
2109 * Sets the date and time value in the Date object.
2110 * @param time A numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT.
2111 */
2112 setTime(time: number): number;
2113 /**
2114 * Sets the milliseconds value in the Date object using local time.
2115 * @param ms A numeric value equal to the millisecond value.
2116 */
2117 setMilliseconds(ms: number): number;
2118 /**
2119 * Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC).
2120 * @param ms A numeric value equal to the millisecond value.
2121 */
2122 setUTCMilliseconds(ms: number): number;
2123
2124 /**
2125 * Sets the seconds value in the Date object using local time.
2126 * @param sec A numeric value equal to the seconds value.
2127 * @param ms A numeric value equal to the milliseconds value.
2128 */
2129 setSeconds(sec: number, ms?: number): number;
2130 /**
2131 * Sets the seconds value in the Date object using Universal Coordinated Time (UTC).
2132 * @param sec A numeric value equal to the seconds value.
2133 * @param ms A numeric value equal to the milliseconds value.
2134 */
2135 setUTCSeconds(sec: number, ms?: number): number;
2136 /**
2137 * Sets the minutes value in the Date object using local time.
2138 * @param min A numeric value equal to the minutes value.
2139 * @param sec A numeric value equal to the seconds value.
2140 * @param ms A numeric value equal to the milliseconds value.
2141 */
2142 setMinutes(min: number, sec?: number, ms?: number): number;
2143 /**
2144 * Sets the minutes value in the Date object using Universal Coordinated Time (UTC).
2145 * @param min A numeric value equal to the minutes value.
2146 * @param sec A numeric value equal to the seconds value.
2147 * @param ms A numeric value equal to the milliseconds value.
2148 */
2149 setUTCMinutes(min: number, sec?: number, ms?: number): number;
2150 /**
2151 * Sets the hour value in the Date object using local time.
2152 * @param hours A numeric value equal to the hours value.
2153 * @param min A numeric value equal to the minutes value.
2154 * @param sec A numeric value equal to the seconds value.
2155 * @param ms A numeric value equal to the milliseconds value.
2156 */
2157 setHours(hours: number, min?: number, sec?: number, ms?: number): number;
2158 /**
2159 * Sets the hours value in the Date object using Universal Coordinated Time (UTC).
2160 * @param hours A numeric value equal to the hours value.
2161 * @param min A numeric value equal to the minutes value.
2162 * @param sec A numeric value equal to the seconds value.
2163 * @param ms A numeric value equal to the milliseconds value.
2164 */
2165 setUTCHours(hours: number, min?: number, sec?: number, ms?: number): number;
2166 /**
2167 * Sets the numeric day-of-the-month value of the Date object using local time.
2168 * @param date A numeric value equal to the day of the month.
2169 */
2170 setDate(date: number): number;
2171 /**
2172 * Sets the numeric day of the month in the Date object using Universal Coordinated Time (UTC).
2173 * @param date A numeric value equal to the day of the month.
2174 */
2175 setUTCDate(date: number): number;
2176 /**
2177 * Sets the month value in the Date object using local time.
2178 * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.
2179 * @param date A numeric value representing the day of the month. If this value is not supplied, the value from a call to the getDate method is used.
2180 */
2181 setMonth(month: number, date?: number): number;
2182 /**
2183 * Sets the month value in the Date object using Universal Coordinated Time (UTC).
2184 * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.
2185 * @param date A numeric value representing the day of the month. If it is not supplied, the value from a call to the getUTCDate method is used.
2186 */
2187 setUTCMonth(month: number, date?: number): number;
2188 /**
2189 * Sets the year of the Date object using local time.
2190 * @param year A numeric value for the year.
2191 * @param month A zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified.
2192 * @param date A numeric value equal for the day of the month.
2193 */
2194 setFullYear(year: number, month?: number, date?: number): number;
2195 /**
2196 * Sets the year value in the Date object using Universal Coordinated Time (UTC).
2197 * @param year A numeric value equal to the year.
2198 * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. Must be supplied if numDate is supplied.
2199 * @param date A numeric value equal to the day of the month.
2200 */
2201 setUTCFullYear(year: number, month?: number, date?: number): number;
2202 /** Returns a date converted to a string using Universal Coordinated Time (UTC). */
2203 toUTCString(): string;
2204 /** Returns a date as a string value in ISO format. */
2205 toISOString(): string;
2206 /** Used by the JSON.stringify method to enable the transformation of an object's data for JavaScript Object Notation (JSON) serialization. */
2207 toJSON(key?: any): string;
2208}
2209
2210interface DateConstructor {
2211 new (): Date;
2212 new (value: number): Date;
2213 new (value: string): Date;
2214 new (year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): Date;
2215 (): string;
2216 readonly prototype: Date;
2217 /**
2218 * Parses a string containing a date, and returns the number of milliseconds between that date and midnight, January 1, 1970.
2219 * @param s A date string
2220 */
2221 parse(s: string): number;
2222 /**
2223 * Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date.
2224 * @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year.
2225 * @param month The month as an number between 0 and 11 (January to December).
2226 * @param date The date as an number between 1 and 31.
2227 * @param hours Must be supplied if minutes is supplied. An number from 0 to 23 (midnight to 11pm) that specifies the hour.
2228 * @param minutes Must be supplied if seconds is supplied. An number from 0 to 59 that specifies the minutes.
2229 * @param seconds Must be supplied if milliseconds is supplied. An number from 0 to 59 that specifies the seconds.
2230 * @param ms An number from 0 to 999 that specifies the milliseconds.
2231 */
2232 UTC(year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number;
2233 now(): number;
2234}
2235
2236declare const Date: DateConstructor;
2237
2238interface RegExpMatchArray extends Array<string> {
2239 index?: number;
2240 input?: string;
2241}
2242
2243interface RegExpExecArray extends Array<string> {
2244 index: number;
2245 input: string;
2246}
2247
2248interface RegExp {
2249 /**
2250 * Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search.
2251 * @param string The String object or string literal on which to perform the search.
2252 */
2253 exec(string: string): RegExpExecArray;
2254
2255 /**
2256 * Returns a Boolean value that indicates whether or not a pattern exists in a searched string.
2257 * @param string String on which to perform the search.
2258 */
2259 test(string: string): boolean;
2260
2261 /** Returns a copy of the text of the regular expression pattern. Read-only. The regExp argument is a Regular expression object. It can be a variable name or a literal. */
2262 readonly source: string;
2263
2264 /** Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. */
2265 readonly global: boolean;
2266
2267 /** Returns a Boolean value indicating the state of the ignoreCase flag (i) used with a regular expression. Default is false. Read-only. */
2268 readonly ignoreCase: boolean;
2269
2270 /** Returns a Boolean value indicating the state of the multiline flag (m) used with a regular expression. Default is false. Read-only. */
2271 readonly multiline: boolean;
2272
2273 lastIndex: number;
2274
2275 // Non-standard extensions
2276 compile(): RegExp;
2277}
2278
2279interface RegExpConstructor {
2280 new (pattern: string, flags?: string): RegExp;
2281 (pattern: string, flags?: string): RegExp;
2282 readonly prototype: RegExp;
2283
2284 // Non-standard extensions
2285 $1: string;
2286 $2: string;
2287 $3: string;
2288 $4: string;
2289 $5: string;
2290 $6: string;
2291 $7: string;
2292 $8: string;
2293 $9: string;
2294 lastMatch: string;
2295}
2296
2297declare const RegExp: RegExpConstructor;
2298
2299interface Error {
2300 name: string;
2301 message: string;
2302}
2303
2304interface ErrorConstructor {
2305 new (message?: string): Error;
2306 (message?: string): Error;
2307 readonly prototype: Error;
2308}
2309
2310declare const Error: ErrorConstructor;
2311
2312interface EvalError extends Error {
2313}
2314
2315interface EvalErrorConstructor {
2316 new (message?: string): EvalError;
2317 (message?: string): EvalError;
2318 readonly prototype: EvalError;
2319}
2320
2321declare const EvalError: EvalErrorConstructor;
2322
2323interface RangeError extends Error {
2324}
2325
2326interface RangeErrorConstructor {
2327 new (message?: string): RangeError;
2328 (message?: string): RangeError;
2329 readonly prototype: RangeError;
2330}
2331
2332declare const RangeError: RangeErrorConstructor;
2333
2334interface ReferenceError extends Error {
2335}
2336
2337interface ReferenceErrorConstructor {
2338 new (message?: string): ReferenceError;
2339 (message?: string): ReferenceError;
2340 readonly prototype: ReferenceError;
2341}
2342
2343declare const ReferenceError: ReferenceErrorConstructor;
2344
2345interface SyntaxError extends Error {
2346}
2347
2348interface SyntaxErrorConstructor {
2349 new (message?: string): SyntaxError;
2350 (message?: string): SyntaxError;
2351 readonly prototype: SyntaxError;
2352}
2353
2354declare const SyntaxError: SyntaxErrorConstructor;
2355
2356interface TypeError extends Error {
2357}
2358
2359interface TypeErrorConstructor {
2360 new (message?: string): TypeError;
2361 (message?: string): TypeError;
2362 readonly prototype: TypeError;
2363}
2364
2365declare const TypeError: TypeErrorConstructor;
2366
2367interface URIError extends Error {
2368}
2369
2370interface URIErrorConstructor {
2371 new (message?: string): URIError;
2372 (message?: string): URIError;
2373 readonly prototype: URIError;
2374}
2375
2376declare const URIError: URIErrorConstructor;
2377
2378interface JSON {
2379 /**
2380 * Converts a JavaScript Object Notation (JSON) string into an object.
2381 * @param text A valid JSON string.
2382 * @param reviver A function that transforms the results. This function is called for each member of the object.
2383 * If a member contains nested objects, the nested objects are transformed before the parent object is.
2384 */
2385 parse(text: string, reviver?: (key: any, value: any) => any): any;
2386 /**
2387 * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
2388 * @param value A JavaScript value, usually an object or array, to be converted.
2389 */
2390 stringify(value: any): string;
2391 /**
2392 * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
2393 * @param value A JavaScript value, usually an object or array, to be converted.
2394 * @param replacer A function that transforms the results.
2395 */
2396 stringify(value: any, replacer: (key: string, value: any) => any): string;
2397 /**
2398 * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
2399 * @param value A JavaScript value, usually an object or array, to be converted.
2400 * @param replacer Array that transforms the results.
2401 */
2402 stringify(value: any, replacer: any[]): string;
2403 /**
2404 * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
2405 * @param value A JavaScript value, usually an object or array, to be converted.
2406 * @param replacer A function that transforms the results.
2407 * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
2408 */
2409 stringify(value: any, replacer: (key: string, value: any) => any, space: string | number): string;
2410 /**
2411 * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
2412 * @param value A JavaScript value, usually an object or array, to be converted.
2413 * @param replacer Array that transforms the results.
2414 * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
2415 */
2416 stringify(value: any, replacer: any[], space: string | number): string;
2417}
2418/**
2419 * An intrinsic object that provides functions to convert JavaScript values to and from the JavaScript Object Notation (JSON) format.
2420 */
2421declare const JSON: JSON;
2422
2423
2424/////////////////////////////
2425/// ECMAScript Array API (specially handled by compiler)
2426/////////////////////////////
2427
2428interface ReadonlyArray<T> {
2429 /**
2430 * Gets the length of the array. This is a number one higher than the highest element defined in an array.
2431 */
2432 readonly length: number;
2433 /**
2434 * Returns a string representation of an array.
2435 */
2436 toString(): string;
2437 toLocaleString(): string;
2438 /**
2439 * Combines two or more arrays.
2440 * @param items Additional items to add to the end of array1.
2441 */
2442 concat<U extends ReadonlyArray<T>>(...items: U[]): T[];
2443 /**
2444 * Combines two or more arrays.
2445 * @param items Additional items to add to the end of array1.
2446 */
2447 concat(...items: T[]): T[];
2448 /**
2449 * Adds all the elements of an array separated by the specified separator string.
2450 * @param separator A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma.
2451 */
2452 join(separator?: string): string;
2453 /**
2454 * Returns a section of an array.
2455 * @param start The beginning of the specified portion of the array.
2456 * @param end The end of the specified portion of the array.
2457 */
2458 slice(start?: number, end?: number): T[];
2459 /**
2460 * Returns the index of the first occurrence of a value in an array.
2461 * @param searchElement The value to locate in the array.
2462 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
2463 */
2464 indexOf(searchElement: T, fromIndex?: number): number;
2465
2466 /**
2467 * Returns the index of the last occurrence of a specified value in an array.
2468 * @param searchElement The value to locate in the array.
2469 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at the last index in the array.
2470 */
2471 lastIndexOf(searchElement: T, fromIndex?: number): number;
2472 /**
2473 * Determines whether all the members of an array satisfy the specified test.
2474 * @param callbackfn A function that accepts up to three arguments. The every method calls the callbackfn function for each element in array1 until the callbackfn returns false, or until the end of the array.
2475 * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
2476 */
2477 every(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => boolean, thisArg?: any): boolean;
2478 /**
2479 * Determines whether the specified callback function returns true for any element of an array.
2480 * @param callbackfn A function that accepts up to three arguments. The some method calls the callbackfn function for each element in array1 until the callbackfn returns true, or until the end of the array.
2481 * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
2482 */
2483 some(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => boolean, thisArg?: any): boolean;
2484 /**
2485 * Performs the specified action for each element in an array.
2486 * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
2487 * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
2488 */
2489 forEach(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => void, thisArg?: any): void;
2490 /**
2491 * Calls a defined callback function on each element of an array, and returns an array that contains the results.
2492 * @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
2493 * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
2494 */
2495 map<U>(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => U, thisArg?: any): U[];
2496 /**
2497 * Returns the elements of an array that meet the condition specified in a callback function.
2498 * @param callbackfn A function that accepts up to three arguments. The filter method calls the callbackfn function one time for each element in the array.
2499 * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
2500 */
2501 filter(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => boolean, thisArg?: any): T[];
2502 /**
2503 * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
2504 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
2505 * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
2506 */
2507 reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: ReadonlyArray<T>) => T, initialValue?: T): T;
2508 /**
2509 * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
2510 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
2511 * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
2512 */
2513 reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: ReadonlyArray<T>) => U, initialValue: U): U;
2514 /**
2515 * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
2516 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
2517 * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
2518 */
2519 reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: ReadonlyArray<T>) => T, initialValue?: T): T;
2520 /**
2521 * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
2522 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
2523 * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
2524 */
2525 reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: ReadonlyArray<T>) => U, initialValue: U): U;
2526
2527 readonly [n: number]: T;
2528}
2529
2530interface Array<T> {
2531 /**
2532 * Gets or sets the length of the array. This is a number one higher than the highest element defined in an array.
2533 */
2534 length: number;
2535 /**
2536 * Returns a string representation of an array.
2537 */
2538 toString(): string;
2539 toLocaleString(): string;
2540 /**
2541 * Appends new elements to an array, and returns the new length of the array.
2542 * @param items New elements of the Array.
2543 */
2544 push(...items: T[]): number;
2545 /**
2546 * Removes the last element from an array and returns it.
2547 */
2548 pop(): T;
2549 /**
2550 * Combines two or more arrays.
2551 * @param items Additional items to add to the end of array1.
2552 */
2553 concat<U extends T[]>(...items: U[]): T[];
2554 /**
2555 * Combines two or more arrays.
2556 * @param items Additional items to add to the end of array1.
2557 */
2558 concat(...items: T[]): T[];
2559 /**
2560 * Adds all the elements of an array separated by the specified separator string.
2561 * @param separator A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma.
2562 */
2563 join(separator?: string): string;
2564 /**
2565 * Reverses the elements in an Array.
2566 */
2567 reverse(): T[];
2568 /**
2569 * Removes the first element from an array and returns it.
2570 */
2571 shift(): T;
2572 /**
2573 * Returns a section of an array.
2574 * @param start The beginning of the specified portion of the array.
2575 * @param end The end of the specified portion of the array.
2576 */
2577 slice(start?: number, end?: number): T[];
2578 /**
2579 * Sorts an array.
2580 * @param compareFn The name of the function used to determine the order of the elements. If omitted, the elements are sorted in ascending, ASCII character order.
2581 */
2582 sort(compareFn?: (a: T, b: T) => number): T[];
2583 /**
2584 * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
2585 * @param start The zero-based location in the array from which to start removing elements.
2586 */
2587 splice(start: number): T[];
2588 /**
2589 * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
2590 * @param start The zero-based location in the array from which to start removing elements.
2591 * @param deleteCount The number of elements to remove.
2592 * @param items Elements to insert into the array in place of the deleted elements.
2593 */
2594 splice(start: number, deleteCount: number, ...items: T[]): T[];
2595 /**
2596 * Inserts new elements at the start of an array.
2597 * @param items Elements to insert at the start of the Array.
2598 */
2599 unshift(...items: T[]): number;
2600 /**
2601 * Returns the index of the first occurrence of a value in an array.
2602 * @param searchElement The value to locate in the array.
2603 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
2604 */
2605 indexOf(searchElement: T, fromIndex?: number): number;
2606 /**
2607 * Returns the index of the last occurrence of a specified value in an array.
2608 * @param searchElement The value to locate in the array.
2609 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at the last index in the array.
2610 */
2611 lastIndexOf(searchElement: T, fromIndex?: number): number;
2612 /**
2613 * Determines whether all the members of an array satisfy the specified test.
2614 * @param callbackfn A function that accepts up to three arguments. The every method calls the callbackfn function for each element in array1 until the callbackfn returns false, or until the end of the array.
2615 * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
2616 */
2617 every(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): boolean;
2618 /**
2619 * Determines whether the specified callback function returns true for any element of an array.
2620 * @param callbackfn A function that accepts up to three arguments. The some method calls the callbackfn function for each element in array1 until the callbackfn returns true, or until the end of the array.
2621 * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
2622 */
2623 some(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): boolean;
2624 /**
2625 * Performs the specified action for each element in an array.
2626 * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
2627 * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
2628 */
2629 forEach(callbackfn: (value: T, index: number, array: T[]) => void, thisArg?: any): void;
2630 /**
2631 * Calls a defined callback function on each element of an array, and returns an array that contains the results.
2632 * @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
2633 * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
2634 */
2635 map<U>(callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): U[];
2636 /**
2637 * Returns the elements of an array that meet the condition specified in a callback function.
2638 * @param callbackfn A function that accepts up to three arguments. The filter method calls the callbackfn function one time for each element in the array.
2639 * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
2640 */
2641 filter(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): T[];
2642 /**
2643 * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
2644 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
2645 * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
2646 */
2647 reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue?: T): T;
2648 /**
2649 * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
2650 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
2651 * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
2652 */
2653 reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
2654 /**
2655 * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
2656 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
2657 * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
2658 */
2659 reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue?: T): T;
2660 /**
2661 * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
2662 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
2663 * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
2664 */
2665 reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
2666
2667 [n: number]: T;
2668}
2669
2670interface ArrayConstructor {
2671 new (arrayLength?: number): any[];
2672 new <T>(arrayLength: number): T[];
2673 new <T>(...items: T[]): T[];
2674 (arrayLength?: number): any[];
2675 <T>(arrayLength: number): T[];
2676 <T>(...items: T[]): T[];
2677 isArray(arg: any): arg is Array<any>;
2678 readonly prototype: Array<any>;
2679}
2680
2681declare const Array: ArrayConstructor;
2682
2683interface TypedPropertyDescriptor<T> {
2684 enumerable?: boolean;
2685 configurable?: boolean;
2686 writable?: boolean;
2687 value?: T;
2688 get?: () => T;
2689 set?: (value: T) => void;
2690}
2691
2692declare type ClassDecorator = <TFunction extends Function>(target: TFunction) => TFunction | void;
2693declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void;
2694declare type MethodDecorator = <T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
2695declare type ParameterDecorator = (target: Object, propertyKey: string | symbol, parameterIndex: number) => void;
2696
2697declare type PromiseConstructorLike = new <T>(executor: (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void) => PromiseLike<T>;
2698
2699interface PromiseLike<T> {
2700 /**
2701 * Attaches callbacks for the resolution and/or rejection of the Promise.
2702 * @param onfulfilled The callback to execute when the Promise is resolved.
2703 * @param onrejected The callback to execute when the Promise is rejected.
2704 * @returns A Promise for the completion of which ever callback is executed.
2705 */
2706 then<TResult>(onfulfilled?: (value: T) => TResult | PromiseLike<TResult>, onrejected?: (reason: any) => TResult | PromiseLike<TResult>): PromiseLike<TResult>;
2707 then<TResult>(onfulfilled?: (value: T) => TResult | PromiseLike<TResult>, onrejected?: (reason: any) => void): PromiseLike<TResult>;
2708}
2709
2710interface ArrayLike<T> {
2711 readonly length: number;
2712 readonly [n: number]: T;
2713}
2714
2715/**
2716 * Represents a raw buffer of binary data, which is used to store data for the
2717 * different typed arrays. ArrayBuffers cannot be read from or written to directly,
2718 * but can be passed to a typed array or DataView Object to interpret the raw
2719 * buffer as needed.
2720 */
2721interface ArrayBuffer {
2722 /**
2723 * Read-only. The length of the ArrayBuffer (in bytes).
2724 */
2725 readonly byteLength: number;
2726
2727 /**
2728 * Returns a section of an ArrayBuffer.
2729 */
2730 slice(begin:number, end?:number): ArrayBuffer;
2731}
2732
2733interface ArrayBufferConstructor {
2734 readonly prototype: ArrayBuffer;
2735 new (byteLength: number): ArrayBuffer;
2736 isView(arg: any): arg is ArrayBufferView;
2737}
2738declare const ArrayBuffer: ArrayBufferConstructor;
2739
2740interface ArrayBufferView {
2741 /**
2742 * The ArrayBuffer instance referenced by the array.
2743 */
2744 buffer: ArrayBuffer;
2745
2746 /**
2747 * The length in bytes of the array.
2748 */
2749 byteLength: number;
2750
2751 /**
2752 * The offset in bytes of the array.
2753 */
2754 byteOffset: number;
2755}
2756
2757interface DataView {
2758 readonly buffer: ArrayBuffer;
2759 readonly byteLength: number;
2760 readonly byteOffset: number;
2761 /**
2762 * Gets the Float32 value at the specified byte offset from the start of the view. There is
2763 * no alignment constraint; multi-byte values may be fetched from any offset.
2764 * @param byteOffset The place in the buffer at which the value should be retrieved.
2765 */
2766 getFloat32(byteOffset: number, littleEndian?: boolean): number;
2767
2768 /**
2769 * Gets the Float64 value at the specified byte offset from the start of the view. There is
2770 * no alignment constraint; multi-byte values may be fetched from any offset.
2771 * @param byteOffset The place in the buffer at which the value should be retrieved.
2772 */
2773 getFloat64(byteOffset: number, littleEndian?: boolean): number;
2774
2775 /**
2776 * Gets the Int8 value at the specified byte offset from the start of the view. There is
2777 * no alignment constraint; multi-byte values may be fetched from any offset.
2778 * @param byteOffset The place in the buffer at which the value should be retrieved.
2779 */
2780 getInt8(byteOffset: number): number;
2781
2782 /**
2783 * Gets the Int16 value at the specified byte offset from the start of the view. There is
2784 * no alignment constraint; multi-byte values may be fetched from any offset.
2785 * @param byteOffset The place in the buffer at which the value should be retrieved.
2786 */
2787 getInt16(byteOffset: number, littleEndian?: boolean): number;
2788 /**
2789 * Gets the Int32 value at the specified byte offset from the start of the view. There is
2790 * no alignment constraint; multi-byte values may be fetched from any offset.
2791 * @param byteOffset The place in the buffer at which the value should be retrieved.
2792 */
2793 getInt32(byteOffset: number, littleEndian?: boolean): number;
2794
2795 /**
2796 * Gets the Uint8 value at the specified byte offset from the start of the view. There is
2797 * no alignment constraint; multi-byte values may be fetched from any offset.
2798 * @param byteOffset The place in the buffer at which the value should be retrieved.
2799 */
2800 getUint8(byteOffset: number): number;
2801
2802 /**
2803 * Gets the Uint16 value at the specified byte offset from the start of the view. There is
2804 * no alignment constraint; multi-byte values may be fetched from any offset.
2805 * @param byteOffset The place in the buffer at which the value should be retrieved.
2806 */
2807 getUint16(byteOffset: number, littleEndian?: boolean): number;
2808
2809 /**
2810 * Gets the Uint32 value at the specified byte offset from the start of the view. There is
2811 * no alignment constraint; multi-byte values may be fetched from any offset.
2812 * @param byteOffset The place in the buffer at which the value should be retrieved.
2813 */
2814 getUint32(byteOffset: number, littleEndian?: boolean): number;
2815
2816 /**
2817 * Stores an Float32 value at the specified byte offset from the start of the view.
2818 * @param byteOffset The place in the buffer at which the value should be set.
2819 * @param value The value to set.
2820 * @param littleEndian If false or undefined, a big-endian value should be written,
2821 * otherwise a little-endian value should be written.
2822 */
2823 setFloat32(byteOffset: number, value: number, littleEndian?: boolean): void;
2824
2825 /**
2826 * Stores an Float64 value at the specified byte offset from the start of the view.
2827 * @param byteOffset The place in the buffer at which the value should be set.
2828 * @param value The value to set.
2829 * @param littleEndian If false or undefined, a big-endian value should be written,
2830 * otherwise a little-endian value should be written.
2831 */
2832 setFloat64(byteOffset: number, value: number, littleEndian?: boolean): void;
2833
2834 /**
2835 * Stores an Int8 value at the specified byte offset from the start of the view.
2836 * @param byteOffset The place in the buffer at which the value should be set.
2837 * @param value The value to set.
2838 */
2839 setInt8(byteOffset: number, value: number): void;
2840
2841 /**
2842 * Stores an Int16 value at the specified byte offset from the start of the view.
2843 * @param byteOffset The place in the buffer at which the value should be set.
2844 * @param value The value to set.
2845 * @param littleEndian If false or undefined, a big-endian value should be written,
2846 * otherwise a little-endian value should be written.
2847 */
2848 setInt16(byteOffset: number, value: number, littleEndian?: boolean): void;
2849
2850 /**
2851 * Stores an Int32 value at the specified byte offset from the start of the view.
2852 * @param byteOffset The place in the buffer at which the value should be set.
2853 * @param value The value to set.
2854 * @param littleEndian If false or undefined, a big-endian value should be written,
2855 * otherwise a little-endian value should be written.
2856 */
2857 setInt32(byteOffset: number, value: number, littleEndian?: boolean): void;
2858
2859 /**
2860 * Stores an Uint8 value at the specified byte offset from the start of the view.
2861 * @param byteOffset The place in the buffer at which the value should be set.
2862 * @param value The value to set.
2863 */
2864 setUint8(byteOffset: number, value: number): void;
2865
2866 /**
2867 * Stores an Uint16 value at the specified byte offset from the start of the view.
2868 * @param byteOffset The place in the buffer at which the value should be set.
2869 * @param value The value to set.
2870 * @param littleEndian If false or undefined, a big-endian value should be written,
2871 * otherwise a little-endian value should be written.
2872 */
2873 setUint16(byteOffset: number, value: number, littleEndian?: boolean): void;
2874
2875 /**
2876 * Stores an Uint32 value at the specified byte offset from the start of the view.
2877 * @param byteOffset The place in the buffer at which the value should be set.
2878 * @param value The value to set.
2879 * @param littleEndian If false or undefined, a big-endian value should be written,
2880 * otherwise a little-endian value should be written.
2881 */
2882 setUint32(byteOffset: number, value: number, littleEndian?: boolean): void;
2883}
2884
2885interface DataViewConstructor {
2886 new (buffer: ArrayBuffer, byteOffset?: number, byteLength?: number): DataView;
2887}
2888declare const DataView: DataViewConstructor;
2889
2890/**
2891 * A typed array of 8-bit integer values. The contents are initialized to 0. If the requested
2892 * number of bytes could not be allocated an exception is raised.
2893 */
2894interface Int8Array {
2895 /**
2896 * The size in bytes of each element in the array.
2897 */
2898 readonly BYTES_PER_ELEMENT: number;
2899
2900 /**
2901 * The ArrayBuffer instance referenced by the array.
2902 */
2903 readonly buffer: ArrayBuffer;
2904
2905 /**
2906 * The length in bytes of the array.
2907 */
2908 readonly byteLength: number;
2909
2910 /**
2911 * The offset in bytes of the array.
2912 */
2913 readonly byteOffset: number;
2914
2915 /**
2916 * Returns the this object after copying a section of the array identified by start and end
2917 * to the same array starting at position target
2918 * @param target If target is negative, it is treated as length+target where length is the
2919 * length of the array.
2920 * @param start If start is negative, it is treated as length+start. If end is negative, it
2921 * is treated as length+end.
2922 * @param end If not specified, length of the this object is used as its default value.
2923 */
2924 copyWithin(target: number, start: number, end?: number): Int8Array;
2925
2926 /**
2927 * Determines whether all the members of an array satisfy the specified test.
2928 * @param callbackfn A function that accepts up to three arguments. The every method calls
2929 * the callbackfn function for each element in array1 until the callbackfn returns false,
2930 * or until the end of the array.
2931 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
2932 * If thisArg is omitted, undefined is used as the this value.
2933 */
2934 every(callbackfn: (value: number, index: number, array: Int8Array) => boolean, thisArg?: any): boolean;
2935
2936 /**
2937 * Returns the this object after filling the section identified by start and end with value
2938 * @param value value to fill array section with
2939 * @param start index to start filling the array at. If start is negative, it is treated as
2940 * length+start where length is the length of the array.
2941 * @param end index to stop filling the array at. If end is negative, it is treated as
2942 * length+end.
2943 */
2944 fill(value: number, start?: number, end?: number): Int8Array;
2945
2946 /**
2947 * Returns the elements of an array that meet the condition specified in a callback function.
2948 * @param callbackfn A function that accepts up to three arguments. The filter method calls
2949 * the callbackfn function one time for each element in the array.
2950 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
2951 * If thisArg is omitted, undefined is used as the this value.
2952 */
2953 filter(callbackfn: (value: number, index: number, array: Int8Array) => boolean, thisArg?: any): Int8Array;
2954
2955 /**
2956 * Returns the value of the first element in the array where predicate is true, and undefined
2957 * otherwise.
2958 * @param predicate find calls predicate once for each element of the array, in ascending
2959 * order, until it finds one where predicate returns true. If such an element is found, find
2960 * immediately returns that element value. Otherwise, find returns undefined.
2961 * @param thisArg If provided, it will be used as the this value for each invocation of
2962 * predicate. If it is not provided, undefined is used instead.
2963 */
2964 find(predicate: (value: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number;
2965
2966 /**
2967 * Returns the index of the first element in the array where predicate is true, and undefined
2968 * otherwise.
2969 * @param predicate find calls predicate once for each element of the array, in ascending
2970 * order, until it finds one where predicate returns true. If such an element is found, find
2971 * immediately returns that element value. Otherwise, find returns undefined.
2972 * @param thisArg If provided, it will be used as the this value for each invocation of
2973 * predicate. If it is not provided, undefined is used instead.
2974 */
2975 findIndex(predicate: (value: number) => boolean, thisArg?: any): number;
2976
2977 /**
2978 * Performs the specified action for each element in an array.
2979 * @param callbackfn A function that accepts up to three arguments. forEach calls the
2980 * callbackfn function one time for each element in the array.
2981 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
2982 * If thisArg is omitted, undefined is used as the this value.
2983 */
2984 forEach(callbackfn: (value: number, index: number, array: Int8Array) => void, thisArg?: any): void;
2985
2986 /**
2987 * Returns the index of the first occurrence of a value in an array.
2988 * @param searchElement The value to locate in the array.
2989 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
2990 * search starts at index 0.
2991 */
2992 indexOf(searchElement: number, fromIndex?: number): number;
2993
2994 /**
2995 * Adds all the elements of an array separated by the specified separator string.
2996 * @param separator A string used to separate one element of an array from the next in the
2997 * resulting String. If omitted, the array elements are separated with a comma.
2998 */
2999 join(separator?: string): string;
3000
3001 /**
3002 * Returns the index of the last occurrence of a value in an array.
3003 * @param searchElement The value to locate in the array.
3004 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
3005 * search starts at index 0.
3006 */
3007 lastIndexOf(searchElement: number, fromIndex?: number): number;
3008
3009 /**
3010 * The length of the array.
3011 */
3012 readonly length: number;
3013
3014 /**
3015 * Calls a defined callback function on each element of an array, and returns an array that
3016 * contains the results.
3017 * @param callbackfn A function that accepts up to three arguments. The map method calls the
3018 * callbackfn function one time for each element in the array.
3019 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3020 * If thisArg is omitted, undefined is used as the this value.
3021 */
3022 map(callbackfn: (value: number, index: number, array: Int8Array) => number, thisArg?: any): Int8Array;
3023
3024 /**
3025 * Calls the specified callback function for all the elements in an array. The return value of
3026 * the callback function is the accumulated result, and is provided as an argument in the next
3027 * call to the callback function.
3028 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
3029 * callbackfn function one time for each element in the array.
3030 * @param initialValue If initialValue is specified, it is used as the initial value to start
3031 * the accumulation. The first call to the callbackfn function provides this value as an argument
3032 * instead of an array value.
3033 */
3034 reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue?: number): number;
3035
3036 /**
3037 * Calls the specified callback function for all the elements in an array. The return value of
3038 * the callback function is the accumulated result, and is provided as an argument in the next
3039 * call to the callback function.
3040 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
3041 * callbackfn function one time for each element in the array.
3042 * @param initialValue If initialValue is specified, it is used as the initial value to start
3043 * the accumulation. The first call to the callbackfn function provides this value as an argument
3044 * instead of an array value.
3045 */
3046 reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;
3047
3048 /**
3049 * Calls the specified callback function for all the elements in an array, in descending order.
3050 * The return value of the callback function is the accumulated result, and is provided as an
3051 * argument in the next call to the callback function.
3052 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
3053 * the callbackfn function one time for each element in the array.
3054 * @param initialValue If initialValue is specified, it is used as the initial value to start
3055 * the accumulation. The first call to the callbackfn function provides this value as an
3056 * argument instead of an array value.
3057 */
3058 reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue?: number): number;
3059
3060 /**
3061 * Calls the specified callback function for all the elements in an array, in descending order.
3062 * The return value of the callback function is the accumulated result, and is provided as an
3063 * argument in the next call to the callback function.
3064 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
3065 * the callbackfn function one time for each element in the array.
3066 * @param initialValue If initialValue is specified, it is used as the initial value to start
3067 * the accumulation. The first call to the callbackfn function provides this value as an argument
3068 * instead of an array value.
3069 */
3070 reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;
3071
3072 /**
3073 * Reverses the elements in an Array.
3074 */
3075 reverse(): Int8Array;
3076
3077 /**
3078 * Sets a value or an array of values.
3079 * @param index The index of the location to set.
3080 * @param value The value to set.
3081 */
3082 set(index: number, value: number): void;
3083
3084 /**
3085 * Sets a value or an array of values.
3086 * @param array A typed or untyped array of values to set.
3087 * @param offset The index in the current array at which the values are to be written.
3088 */
3089 set(array: ArrayLike<number>, offset?: number): void;
3090
3091 /**
3092 * Returns a section of an array.
3093 * @param start The beginning of the specified portion of the array.
3094 * @param end The end of the specified portion of the array.
3095 */
3096 slice(start?: number, end?: number): Int8Array;
3097
3098 /**
3099 * Determines whether the specified callback function returns true for any element of an array.
3100 * @param callbackfn A function that accepts up to three arguments. The some method calls the
3101 * callbackfn function for each element in array1 until the callbackfn returns true, or until
3102 * the end of the array.
3103 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3104 * If thisArg is omitted, undefined is used as the this value.
3105 */
3106 some(callbackfn: (value: number, index: number, array: Int8Array) => boolean, thisArg?: any): boolean;
3107
3108 /**
3109 * Sorts an array.
3110 * @param compareFn The name of the function used to determine the order of the elements. If
3111 * omitted, the elements are sorted in ascending, ASCII character order.
3112 */
3113 sort(compareFn?: (a: number, b: number) => number): Int8Array;
3114
3115 /**
3116 * Gets a new Int8Array view of the ArrayBuffer store for this array, referencing the elements
3117 * at begin, inclusive, up to end, exclusive.
3118 * @param begin The index of the beginning of the array.
3119 * @param end The index of the end of the array.
3120 */
3121 subarray(begin: number, end?: number): Int8Array;
3122
3123 /**
3124 * Converts a number to a string by using the current locale.
3125 */
3126 toLocaleString(): string;
3127
3128 /**
3129 * Returns a string representation of an array.
3130 */
3131 toString(): string;
3132
3133 [index: number]: number;
3134}
3135interface Int8ArrayConstructor {
3136 readonly prototype: Int8Array;
3137 new (length: number): Int8Array;
3138 new (array: ArrayLike<number>): Int8Array;
3139 new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int8Array;
3140
3141 /**
3142 * The size in bytes of each element in the array.
3143 */
3144 readonly BYTES_PER_ELEMENT: number;
3145
3146 /**
3147 * Returns a new array from a set of elements.
3148 * @param items A set of elements to include in the new array object.
3149 */
3150 of(...items: number[]): Int8Array;
3151
3152 /**
3153 * Creates an array from an array-like or iterable object.
3154 * @param arrayLike An array-like or iterable object to convert to an array.
3155 * @param mapfn A mapping function to call on every element of the array.
3156 * @param thisArg Value of 'this' used to invoke the mapfn.
3157 */
3158 from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int8Array;
3159
3160}
3161declare const Int8Array: Int8ArrayConstructor;
3162
3163/**
3164 * A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the
3165 * requested number of bytes could not be allocated an exception is raised.
3166 */
3167interface Uint8Array {
3168 /**
3169 * The size in bytes of each element in the array.
3170 */
3171 readonly BYTES_PER_ELEMENT: number;
3172
3173 /**
3174 * The ArrayBuffer instance referenced by the array.
3175 */
3176 readonly buffer: ArrayBuffer;
3177
3178 /**
3179 * The length in bytes of the array.
3180 */
3181 readonly byteLength: number;
3182
3183 /**
3184 * The offset in bytes of the array.
3185 */
3186 readonly byteOffset: number;
3187
3188 /**
3189 * Returns the this object after copying a section of the array identified by start and end
3190 * to the same array starting at position target
3191 * @param target If target is negative, it is treated as length+target where length is the
3192 * length of the array.
3193 * @param start If start is negative, it is treated as length+start. If end is negative, it
3194 * is treated as length+end.
3195 * @param end If not specified, length of the this object is used as its default value.
3196 */
3197 copyWithin(target: number, start: number, end?: number): Uint8Array;
3198
3199 /**
3200 * Determines whether all the members of an array satisfy the specified test.
3201 * @param callbackfn A function that accepts up to three arguments. The every method calls
3202 * the callbackfn function for each element in array1 until the callbackfn returns false,
3203 * or until the end of the array.
3204 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3205 * If thisArg is omitted, undefined is used as the this value.
3206 */
3207 every(callbackfn: (value: number, index: number, array: Uint8Array) => boolean, thisArg?: any): boolean;
3208
3209 /**
3210 * Returns the this object after filling the section identified by start and end with value
3211 * @param value value to fill array section with
3212 * @param start index to start filling the array at. If start is negative, it is treated as
3213 * length+start where length is the length of the array.
3214 * @param end index to stop filling the array at. If end is negative, it is treated as
3215 * length+end.
3216 */
3217 fill(value: number, start?: number, end?: number): Uint8Array;
3218
3219 /**
3220 * Returns the elements of an array that meet the condition specified in a callback function.
3221 * @param callbackfn A function that accepts up to three arguments. The filter method calls
3222 * the callbackfn function one time for each element in the array.
3223 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3224 * If thisArg is omitted, undefined is used as the this value.
3225 */
3226 filter(callbackfn: (value: number, index: number, array: Uint8Array) => boolean, thisArg?: any): Uint8Array;
3227
3228 /**
3229 * Returns the value of the first element in the array where predicate is true, and undefined
3230 * otherwise.
3231 * @param predicate find calls predicate once for each element of the array, in ascending
3232 * order, until it finds one where predicate returns true. If such an element is found, find
3233 * immediately returns that element value. Otherwise, find returns undefined.
3234 * @param thisArg If provided, it will be used as the this value for each invocation of
3235 * predicate. If it is not provided, undefined is used instead.
3236 */
3237 find(predicate: (value: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number;
3238
3239 /**
3240 * Returns the index of the first element in the array where predicate is true, and undefined
3241 * otherwise.
3242 * @param predicate find calls predicate once for each element of the array, in ascending
3243 * order, until it finds one where predicate returns true. If such an element is found, find
3244 * immediately returns that element value. Otherwise, find returns undefined.
3245 * @param thisArg If provided, it will be used as the this value for each invocation of
3246 * predicate. If it is not provided, undefined is used instead.
3247 */
3248 findIndex(predicate: (value: number) => boolean, thisArg?: any): number;
3249
3250 /**
3251 * Performs the specified action for each element in an array.
3252 * @param callbackfn A function that accepts up to three arguments. forEach calls the
3253 * callbackfn function one time for each element in the array.
3254 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3255 * If thisArg is omitted, undefined is used as the this value.
3256 */
3257 forEach(callbackfn: (value: number, index: number, array: Uint8Array) => void, thisArg?: any): void;
3258
3259 /**
3260 * Returns the index of the first occurrence of a value in an array.
3261 * @param searchElement The value to locate in the array.
3262 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
3263 * search starts at index 0.
3264 */
3265 indexOf(searchElement: number, fromIndex?: number): number;
3266
3267 /**
3268 * Adds all the elements of an array separated by the specified separator string.
3269 * @param separator A string used to separate one element of an array from the next in the
3270 * resulting String. If omitted, the array elements are separated with a comma.
3271 */
3272 join(separator?: string): string;
3273
3274 /**
3275 * Returns the index of the last occurrence of a value in an array.
3276 * @param searchElement The value to locate in the array.
3277 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
3278 * search starts at index 0.
3279 */
3280 lastIndexOf(searchElement: number, fromIndex?: number): number;
3281
3282 /**
3283 * The length of the array.
3284 */
3285 readonly length: number;
3286
3287 /**
3288 * Calls a defined callback function on each element of an array, and returns an array that
3289 * contains the results.
3290 * @param callbackfn A function that accepts up to three arguments. The map method calls the
3291 * callbackfn function one time for each element in the array.
3292 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3293 * If thisArg is omitted, undefined is used as the this value.
3294 */
3295 map(callbackfn: (value: number, index: number, array: Uint8Array) => number, thisArg?: any): Uint8Array;
3296
3297 /**
3298 * Calls the specified callback function for all the elements in an array. The return value of
3299 * the callback function is the accumulated result, and is provided as an argument in the next
3300 * call to the callback function.
3301 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
3302 * callbackfn function one time for each element in the array.
3303 * @param initialValue If initialValue is specified, it is used as the initial value to start
3304 * the accumulation. The first call to the callbackfn function provides this value as an argument
3305 * instead of an array value.
3306 */
3307 reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue?: number): number;
3308
3309 /**
3310 * Calls the specified callback function for all the elements in an array. The return value of
3311 * the callback function is the accumulated result, and is provided as an argument in the next
3312 * call to the callback function.
3313 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
3314 * callbackfn function one time for each element in the array.
3315 * @param initialValue If initialValue is specified, it is used as the initial value to start
3316 * the accumulation. The first call to the callbackfn function provides this value as an argument
3317 * instead of an array value.
3318 */
3319 reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;
3320
3321 /**
3322 * Calls the specified callback function for all the elements in an array, in descending order.
3323 * The return value of the callback function is the accumulated result, and is provided as an
3324 * argument in the next call to the callback function.
3325 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
3326 * the callbackfn function one time for each element in the array.
3327 * @param initialValue If initialValue is specified, it is used as the initial value to start
3328 * the accumulation. The first call to the callbackfn function provides this value as an
3329 * argument instead of an array value.
3330 */
3331 reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue?: number): number;
3332
3333 /**
3334 * Calls the specified callback function for all the elements in an array, in descending order.
3335 * The return value of the callback function is the accumulated result, and is provided as an
3336 * argument in the next call to the callback function.
3337 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
3338 * the callbackfn function one time for each element in the array.
3339 * @param initialValue If initialValue is specified, it is used as the initial value to start
3340 * the accumulation. The first call to the callbackfn function provides this value as an argument
3341 * instead of an array value.
3342 */
3343 reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;
3344
3345 /**
3346 * Reverses the elements in an Array.
3347 */
3348 reverse(): Uint8Array;
3349
3350 /**
3351 * Sets a value or an array of values.
3352 * @param index The index of the location to set.
3353 * @param value The value to set.
3354 */
3355 set(index: number, value: number): void;
3356
3357 /**
3358 * Sets a value or an array of values.
3359 * @param array A typed or untyped array of values to set.
3360 * @param offset The index in the current array at which the values are to be written.
3361 */
3362 set(array: ArrayLike<number>, offset?: number): void;
3363
3364 /**
3365 * Returns a section of an array.
3366 * @param start The beginning of the specified portion of the array.
3367 * @param end The end of the specified portion of the array.
3368 */
3369 slice(start?: number, end?: number): Uint8Array;
3370
3371 /**
3372 * Determines whether the specified callback function returns true for any element of an array.
3373 * @param callbackfn A function that accepts up to three arguments. The some method calls the
3374 * callbackfn function for each element in array1 until the callbackfn returns true, or until
3375 * the end of the array.
3376 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3377 * If thisArg is omitted, undefined is used as the this value.
3378 */
3379 some(callbackfn: (value: number, index: number, array: Uint8Array) => boolean, thisArg?: any): boolean;
3380
3381 /**
3382 * Sorts an array.
3383 * @param compareFn The name of the function used to determine the order of the elements. If
3384 * omitted, the elements are sorted in ascending, ASCII character order.
3385 */
3386 sort(compareFn?: (a: number, b: number) => number): Uint8Array;
3387
3388 /**
3389 * Gets a new Uint8Array view of the ArrayBuffer store for this array, referencing the elements
3390 * at begin, inclusive, up to end, exclusive.
3391 * @param begin The index of the beginning of the array.
3392 * @param end The index of the end of the array.
3393 */
3394 subarray(begin: number, end?: number): Uint8Array;
3395
3396 /**
3397 * Converts a number to a string by using the current locale.
3398 */
3399 toLocaleString(): string;
3400
3401 /**
3402 * Returns a string representation of an array.
3403 */
3404 toString(): string;
3405
3406 [index: number]: number;
3407}
3408
3409interface Uint8ArrayConstructor {
3410 readonly prototype: Uint8Array;
3411 new (length: number): Uint8Array;
3412 new (array: ArrayLike<number>): Uint8Array;
3413 new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint8Array;
3414
3415 /**
3416 * The size in bytes of each element in the array.
3417 */
3418 readonly BYTES_PER_ELEMENT: number;
3419
3420 /**
3421 * Returns a new array from a set of elements.
3422 * @param items A set of elements to include in the new array object.
3423 */
3424 of(...items: number[]): Uint8Array;
3425
3426 /**
3427 * Creates an array from an array-like or iterable object.
3428 * @param arrayLike An array-like or iterable object to convert to an array.
3429 * @param mapfn A mapping function to call on every element of the array.
3430 * @param thisArg Value of 'this' used to invoke the mapfn.
3431 */
3432 from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8Array;
3433
3434}
3435declare const Uint8Array: Uint8ArrayConstructor;
3436
3437/**
3438 * A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0.
3439 * If the requested number of bytes could not be allocated an exception is raised.
3440 */
3441interface Uint8ClampedArray {
3442 /**
3443 * The size in bytes of each element in the array.
3444 */
3445 readonly BYTES_PER_ELEMENT: number;
3446
3447 /**
3448 * The ArrayBuffer instance referenced by the array.
3449 */
3450 readonly buffer: ArrayBuffer;
3451
3452 /**
3453 * The length in bytes of the array.
3454 */
3455 readonly byteLength: number;
3456
3457 /**
3458 * The offset in bytes of the array.
3459 */
3460 readonly byteOffset: number;
3461
3462 /**
3463 * Returns the this object after copying a section of the array identified by start and end
3464 * to the same array starting at position target
3465 * @param target If target is negative, it is treated as length+target where length is the
3466 * length of the array.
3467 * @param start If start is negative, it is treated as length+start. If end is negative, it
3468 * is treated as length+end.
3469 * @param end If not specified, length of the this object is used as its default value.
3470 */
3471 copyWithin(target: number, start: number, end?: number): Uint8ClampedArray;
3472
3473 /**
3474 * Determines whether all the members of an array satisfy the specified test.
3475 * @param callbackfn A function that accepts up to three arguments. The every method calls
3476 * the callbackfn function for each element in array1 until the callbackfn returns false,
3477 * or until the end of the array.
3478 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3479 * If thisArg is omitted, undefined is used as the this value.
3480 */
3481 every(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => boolean, thisArg?: any): boolean;
3482
3483 /**
3484 * Returns the this object after filling the section identified by start and end with value
3485 * @param value value to fill array section with
3486 * @param start index to start filling the array at. If start is negative, it is treated as
3487 * length+start where length is the length of the array.
3488 * @param end index to stop filling the array at. If end is negative, it is treated as
3489 * length+end.
3490 */
3491 fill(value: number, start?: number, end?: number): Uint8ClampedArray;
3492
3493 /**
3494 * Returns the elements of an array that meet the condition specified in a callback function.
3495 * @param callbackfn A function that accepts up to three arguments. The filter method calls
3496 * the callbackfn function one time for each element in the array.
3497 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3498 * If thisArg is omitted, undefined is used as the this value.
3499 */
3500 filter(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => boolean, thisArg?: any): Uint8ClampedArray;
3501
3502 /**
3503 * Returns the value of the first element in the array where predicate is true, and undefined
3504 * otherwise.
3505 * @param predicate find calls predicate once for each element of the array, in ascending
3506 * order, until it finds one where predicate returns true. If such an element is found, find
3507 * immediately returns that element value. Otherwise, find returns undefined.
3508 * @param thisArg If provided, it will be used as the this value for each invocation of
3509 * predicate. If it is not provided, undefined is used instead.
3510 */
3511 find(predicate: (value: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number;
3512
3513 /**
3514 * Returns the index of the first element in the array where predicate is true, and undefined
3515 * otherwise.
3516 * @param predicate find calls predicate once for each element of the array, in ascending
3517 * order, until it finds one where predicate returns true. If such an element is found, find
3518 * immediately returns that element value. Otherwise, find returns undefined.
3519 * @param thisArg If provided, it will be used as the this value for each invocation of
3520 * predicate. If it is not provided, undefined is used instead.
3521 */
3522 findIndex(predicate: (value: number) => boolean, thisArg?: any): number;
3523
3524 /**
3525 * Performs the specified action for each element in an array.
3526 * @param callbackfn A function that accepts up to three arguments. forEach calls the
3527 * callbackfn function one time for each element in the array.
3528 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3529 * If thisArg is omitted, undefined is used as the this value.
3530 */
3531 forEach(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => void, thisArg?: any): void;
3532
3533 /**
3534 * Returns the index of the first occurrence of a value in an array.
3535 * @param searchElement The value to locate in the array.
3536 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
3537 * search starts at index 0.
3538 */
3539 indexOf(searchElement: number, fromIndex?: number): number;
3540
3541 /**
3542 * Adds all the elements of an array separated by the specified separator string.
3543 * @param separator A string used to separate one element of an array from the next in the
3544 * resulting String. If omitted, the array elements are separated with a comma.
3545 */
3546 join(separator?: string): string;
3547
3548 /**
3549 * Returns the index of the last occurrence of a value in an array.
3550 * @param searchElement The value to locate in the array.
3551 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
3552 * search starts at index 0.
3553 */
3554 lastIndexOf(searchElement: number, fromIndex?: number): number;
3555
3556 /**
3557 * The length of the array.
3558 */
3559 readonly length: number;
3560
3561 /**
3562 * Calls a defined callback function on each element of an array, and returns an array that
3563 * contains the results.
3564 * @param callbackfn A function that accepts up to three arguments. The map method calls the
3565 * callbackfn function one time for each element in the array.
3566 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3567 * If thisArg is omitted, undefined is used as the this value.
3568 */
3569 map(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => number, thisArg?: any): Uint8ClampedArray;
3570
3571 /**
3572 * Calls the specified callback function for all the elements in an array. The return value of
3573 * the callback function is the accumulated result, and is provided as an argument in the next
3574 * call to the callback function.
3575 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
3576 * callbackfn function one time for each element in the array.
3577 * @param initialValue If initialValue is specified, it is used as the initial value to start
3578 * the accumulation. The first call to the callbackfn function provides this value as an argument
3579 * instead of an array value.
3580 */
3581 reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue?: number): number;
3582
3583 /**
3584 * Calls the specified callback function for all the elements in an array. The return value of
3585 * the callback function is the accumulated result, and is provided as an argument in the next
3586 * call to the callback function.
3587 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
3588 * callbackfn function one time for each element in the array.
3589 * @param initialValue If initialValue is specified, it is used as the initial value to start
3590 * the accumulation. The first call to the callbackfn function provides this value as an argument
3591 * instead of an array value.
3592 */
3593 reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;
3594
3595 /**
3596 * Calls the specified callback function for all the elements in an array, in descending order.
3597 * The return value of the callback function is the accumulated result, and is provided as an
3598 * argument in the next call to the callback function.
3599 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
3600 * the callbackfn function one time for each element in the array.
3601 * @param initialValue If initialValue is specified, it is used as the initial value to start
3602 * the accumulation. The first call to the callbackfn function provides this value as an
3603 * argument instead of an array value.
3604 */
3605 reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue?: number): number;
3606
3607 /**
3608 * Calls the specified callback function for all the elements in an array, in descending order.
3609 * The return value of the callback function is the accumulated result, and is provided as an
3610 * argument in the next call to the callback function.
3611 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
3612 * the callbackfn function one time for each element in the array.
3613 * @param initialValue If initialValue is specified, it is used as the initial value to start
3614 * the accumulation. The first call to the callbackfn function provides this value as an argument
3615 * instead of an array value.
3616 */
3617 reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;
3618
3619 /**
3620 * Reverses the elements in an Array.
3621 */
3622 reverse(): Uint8ClampedArray;
3623
3624 /**
3625 * Sets a value or an array of values.
3626 * @param index The index of the location to set.
3627 * @param value The value to set.
3628 */
3629 set(index: number, value: number): void;
3630
3631 /**
3632 * Sets a value or an array of values.
3633 * @param array A typed or untyped array of values to set.
3634 * @param offset The index in the current array at which the values are to be written.
3635 */
3636 set(array: Uint8ClampedArray, offset?: number): void;
3637
3638 /**
3639 * Returns a section of an array.
3640 * @param start The beginning of the specified portion of the array.
3641 * @param end The end of the specified portion of the array.
3642 */
3643 slice(start?: number, end?: number): Uint8ClampedArray;
3644
3645 /**
3646 * Determines whether the specified callback function returns true for any element of an array.
3647 * @param callbackfn A function that accepts up to three arguments. The some method calls the
3648 * callbackfn function for each element in array1 until the callbackfn returns true, or until
3649 * the end of the array.
3650 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3651 * If thisArg is omitted, undefined is used as the this value.
3652 */
3653 some(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => boolean, thisArg?: any): boolean;
3654
3655 /**
3656 * Sorts an array.
3657 * @param compareFn The name of the function used to determine the order of the elements. If
3658 * omitted, the elements are sorted in ascending, ASCII character order.
3659 */
3660 sort(compareFn?: (a: number, b: number) => number): Uint8ClampedArray;
3661
3662 /**
3663 * Gets a new Uint8ClampedArray view of the ArrayBuffer store for this array, referencing the elements
3664 * at begin, inclusive, up to end, exclusive.
3665 * @param begin The index of the beginning of the array.
3666 * @param end The index of the end of the array.
3667 */
3668 subarray(begin: number, end?: number): Uint8ClampedArray;
3669
3670 /**
3671 * Converts a number to a string by using the current locale.
3672 */
3673 toLocaleString(): string;
3674
3675 /**
3676 * Returns a string representation of an array.
3677 */
3678 toString(): string;
3679
3680 [index: number]: number;
3681}
3682
3683interface Uint8ClampedArrayConstructor {
3684 readonly prototype: Uint8ClampedArray;
3685 new (length: number): Uint8ClampedArray;
3686 new (array: ArrayLike<number>): Uint8ClampedArray;
3687 new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint8ClampedArray;
3688
3689 /**
3690 * The size in bytes of each element in the array.
3691 */
3692 readonly BYTES_PER_ELEMENT: number;
3693
3694 /**
3695 * Returns a new array from a set of elements.
3696 * @param items A set of elements to include in the new array object.
3697 */
3698 of(...items: number[]): Uint8ClampedArray;
3699
3700 /**
3701 * Creates an array from an array-like or iterable object.
3702 * @param arrayLike An array-like or iterable object to convert to an array.
3703 * @param mapfn A mapping function to call on every element of the array.
3704 * @param thisArg Value of 'this' used to invoke the mapfn.
3705 */
3706 from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8ClampedArray;
3707}
3708declare const Uint8ClampedArray: Uint8ClampedArrayConstructor;
3709
3710/**
3711 * A typed array of 16-bit signed integer values. The contents are initialized to 0. If the
3712 * requested number of bytes could not be allocated an exception is raised.
3713 */
3714interface Int16Array {
3715 /**
3716 * The size in bytes of each element in the array.
3717 */
3718 readonly BYTES_PER_ELEMENT: number;
3719
3720 /**
3721 * The ArrayBuffer instance referenced by the array.
3722 */
3723 readonly buffer: ArrayBuffer;
3724
3725 /**
3726 * The length in bytes of the array.
3727 */
3728 readonly byteLength: number;
3729
3730 /**
3731 * The offset in bytes of the array.
3732 */
3733 readonly byteOffset: number;
3734
3735 /**
3736 * Returns the this object after copying a section of the array identified by start and end
3737 * to the same array starting at position target
3738 * @param target If target is negative, it is treated as length+target where length is the
3739 * length of the array.
3740 * @param start If start is negative, it is treated as length+start. If end is negative, it
3741 * is treated as length+end.
3742 * @param end If not specified, length of the this object is used as its default value.
3743 */
3744 copyWithin(target: number, start: number, end?: number): Int16Array;
3745
3746 /**
3747 * Determines whether all the members of an array satisfy the specified test.
3748 * @param callbackfn A function that accepts up to three arguments. The every method calls
3749 * the callbackfn function for each element in array1 until the callbackfn returns false,
3750 * or until the end of the array.
3751 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3752 * If thisArg is omitted, undefined is used as the this value.
3753 */
3754 every(callbackfn: (value: number, index: number, array: Int16Array) => boolean, thisArg?: any): boolean;
3755
3756 /**
3757 * Returns the this object after filling the section identified by start and end with value
3758 * @param value value to fill array section with
3759 * @param start index to start filling the array at. If start is negative, it is treated as
3760 * length+start where length is the length of the array.
3761 * @param end index to stop filling the array at. If end is negative, it is treated as
3762 * length+end.
3763 */
3764 fill(value: number, start?: number, end?: number): Int16Array;
3765
3766 /**
3767 * Returns the elements of an array that meet the condition specified in a callback function.
3768 * @param callbackfn A function that accepts up to three arguments. The filter method calls
3769 * the callbackfn function one time for each element in the array.
3770 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3771 * If thisArg is omitted, undefined is used as the this value.
3772 */
3773 filter(callbackfn: (value: number, index: number, array: Int16Array) => boolean, thisArg?: any): Int16Array;
3774
3775 /**
3776 * Returns the value of the first element in the array where predicate is true, and undefined
3777 * otherwise.
3778 * @param predicate find calls predicate once for each element of the array, in ascending
3779 * order, until it finds one where predicate returns true. If such an element is found, find
3780 * immediately returns that element value. Otherwise, find returns undefined.
3781 * @param thisArg If provided, it will be used as the this value for each invocation of
3782 * predicate. If it is not provided, undefined is used instead.
3783 */
3784 find(predicate: (value: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number;
3785
3786 /**
3787 * Returns the index of the first element in the array where predicate is true, and undefined
3788 * otherwise.
3789 * @param predicate find calls predicate once for each element of the array, in ascending
3790 * order, until it finds one where predicate returns true. If such an element is found, find
3791 * immediately returns that element value. Otherwise, find returns undefined.
3792 * @param thisArg If provided, it will be used as the this value for each invocation of
3793 * predicate. If it is not provided, undefined is used instead.
3794 */
3795 findIndex(predicate: (value: number) => boolean, thisArg?: any): number;
3796
3797 /**
3798 * Performs the specified action for each element in an array.
3799 * @param callbackfn A function that accepts up to three arguments. forEach calls the
3800 * callbackfn function one time for each element in the array.
3801 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3802 * If thisArg is omitted, undefined is used as the this value.
3803 */
3804 forEach(callbackfn: (value: number, index: number, array: Int16Array) => void, thisArg?: any): void;
3805
3806 /**
3807 * Returns the index of the first occurrence of a value in an array.
3808 * @param searchElement The value to locate in the array.
3809 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
3810 * search starts at index 0.
3811 */
3812 indexOf(searchElement: number, fromIndex?: number): number;
3813
3814 /**
3815 * Adds all the elements of an array separated by the specified separator string.
3816 * @param separator A string used to separate one element of an array from the next in the
3817 * resulting String. If omitted, the array elements are separated with a comma.
3818 */
3819 join(separator?: string): string;
3820
3821 /**
3822 * Returns the index of the last occurrence of a value in an array.
3823 * @param searchElement The value to locate in the array.
3824 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
3825 * search starts at index 0.
3826 */
3827 lastIndexOf(searchElement: number, fromIndex?: number): number;
3828
3829 /**
3830 * The length of the array.
3831 */
3832 readonly length: number;
3833
3834 /**
3835 * Calls a defined callback function on each element of an array, and returns an array that
3836 * contains the results.
3837 * @param callbackfn A function that accepts up to three arguments. The map method calls the
3838 * callbackfn function one time for each element in the array.
3839 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3840 * If thisArg is omitted, undefined is used as the this value.
3841 */
3842 map(callbackfn: (value: number, index: number, array: Int16Array) => number, thisArg?: any): Int16Array;
3843
3844 /**
3845 * Calls the specified callback function for all the elements in an array. The return value of
3846 * the callback function is the accumulated result, and is provided as an argument in the next
3847 * call to the callback function.
3848 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
3849 * callbackfn function one time for each element in the array.
3850 * @param initialValue If initialValue is specified, it is used as the initial value to start
3851 * the accumulation. The first call to the callbackfn function provides this value as an argument
3852 * instead of an array value.
3853 */
3854 reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue?: number): number;
3855
3856 /**
3857 * Calls the specified callback function for all the elements in an array. The return value of
3858 * the callback function is the accumulated result, and is provided as an argument in the next
3859 * call to the callback function.
3860 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
3861 * callbackfn function one time for each element in the array.
3862 * @param initialValue If initialValue is specified, it is used as the initial value to start
3863 * the accumulation. The first call to the callbackfn function provides this value as an argument
3864 * instead of an array value.
3865 */
3866 reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;
3867
3868 /**
3869 * Calls the specified callback function for all the elements in an array, in descending order.
3870 * The return value of the callback function is the accumulated result, and is provided as an
3871 * argument in the next call to the callback function.
3872 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
3873 * the callbackfn function one time for each element in the array.
3874 * @param initialValue If initialValue is specified, it is used as the initial value to start
3875 * the accumulation. The first call to the callbackfn function provides this value as an
3876 * argument instead of an array value.
3877 */
3878 reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue?: number): number;
3879
3880 /**
3881 * Calls the specified callback function for all the elements in an array, in descending order.
3882 * The return value of the callback function is the accumulated result, and is provided as an
3883 * argument in the next call to the callback function.
3884 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
3885 * the callbackfn function one time for each element in the array.
3886 * @param initialValue If initialValue is specified, it is used as the initial value to start
3887 * the accumulation. The first call to the callbackfn function provides this value as an argument
3888 * instead of an array value.
3889 */
3890 reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;
3891
3892 /**
3893 * Reverses the elements in an Array.
3894 */
3895 reverse(): Int16Array;
3896
3897 /**
3898 * Sets a value or an array of values.
3899 * @param index The index of the location to set.
3900 * @param value The value to set.
3901 */
3902 set(index: number, value: number): void;
3903
3904 /**
3905 * Sets a value or an array of values.
3906 * @param array A typed or untyped array of values to set.
3907 * @param offset The index in the current array at which the values are to be written.
3908 */
3909 set(array: ArrayLike<number>, offset?: number): void;
3910
3911 /**
3912 * Returns a section of an array.
3913 * @param start The beginning of the specified portion of the array.
3914 * @param end The end of the specified portion of the array.
3915 */
3916 slice(start?: number, end?: number): Int16Array;
3917
3918 /**
3919 * Determines whether the specified callback function returns true for any element of an array.
3920 * @param callbackfn A function that accepts up to three arguments. The some method calls the
3921 * callbackfn function for each element in array1 until the callbackfn returns true, or until
3922 * the end of the array.
3923 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3924 * If thisArg is omitted, undefined is used as the this value.
3925 */
3926 some(callbackfn: (value: number, index: number, array: Int16Array) => boolean, thisArg?: any): boolean;
3927
3928 /**
3929 * Sorts an array.
3930 * @param compareFn The name of the function used to determine the order of the elements. If
3931 * omitted, the elements are sorted in ascending, ASCII character order.
3932 */
3933 sort(compareFn?: (a: number, b: number) => number): Int16Array;
3934
3935 /**
3936 * Gets a new Int16Array view of the ArrayBuffer store for this array, referencing the elements
3937 * at begin, inclusive, up to end, exclusive.
3938 * @param begin The index of the beginning of the array.
3939 * @param end The index of the end of the array.
3940 */
3941 subarray(begin: number, end?: number): Int16Array;
3942
3943 /**
3944 * Converts a number to a string by using the current locale.
3945 */
3946 toLocaleString(): string;
3947
3948 /**
3949 * Returns a string representation of an array.
3950 */
3951 toString(): string;
3952
3953 [index: number]: number;
3954}
3955
3956interface Int16ArrayConstructor {
3957 readonly prototype: Int16Array;
3958 new (length: number): Int16Array;
3959 new (array: ArrayLike<number>): Int16Array;
3960 new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int16Array;
3961
3962 /**
3963 * The size in bytes of each element in the array.
3964 */
3965 readonly BYTES_PER_ELEMENT: number;
3966
3967 /**
3968 * Returns a new array from a set of elements.
3969 * @param items A set of elements to include in the new array object.
3970 */
3971 of(...items: number[]): Int16Array;
3972
3973 /**
3974 * Creates an array from an array-like or iterable object.
3975 * @param arrayLike An array-like or iterable object to convert to an array.
3976 * @param mapfn A mapping function to call on every element of the array.
3977 * @param thisArg Value of 'this' used to invoke the mapfn.
3978 */
3979 from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int16Array;
3980
3981}
3982declare const Int16Array: Int16ArrayConstructor;
3983
3984/**
3985 * A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the
3986 * requested number of bytes could not be allocated an exception is raised.
3987 */
3988interface Uint16Array {
3989 /**
3990 * The size in bytes of each element in the array.
3991 */
3992 readonly BYTES_PER_ELEMENT: number;
3993
3994 /**
3995 * The ArrayBuffer instance referenced by the array.
3996 */
3997 readonly buffer: ArrayBuffer;
3998
3999 /**
4000 * The length in bytes of the array.
4001 */
4002 readonly byteLength: number;
4003
4004 /**
4005 * The offset in bytes of the array.
4006 */
4007 readonly byteOffset: number;
4008
4009 /**
4010 * Returns the this object after copying a section of the array identified by start and end
4011 * to the same array starting at position target
4012 * @param target If target is negative, it is treated as length+target where length is the
4013 * length of the array.
4014 * @param start If start is negative, it is treated as length+start. If end is negative, it
4015 * is treated as length+end.
4016 * @param end If not specified, length of the this object is used as its default value.
4017 */
4018 copyWithin(target: number, start: number, end?: number): Uint16Array;
4019
4020 /**
4021 * Determines whether all the members of an array satisfy the specified test.
4022 * @param callbackfn A function that accepts up to three arguments. The every method calls
4023 * the callbackfn function for each element in array1 until the callbackfn returns false,
4024 * or until the end of the array.
4025 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
4026 * If thisArg is omitted, undefined is used as the this value.
4027 */
4028 every(callbackfn: (value: number, index: number, array: Uint16Array) => boolean, thisArg?: any): boolean;
4029
4030 /**
4031 * Returns the this object after filling the section identified by start and end with value
4032 * @param value value to fill array section with
4033 * @param start index to start filling the array at. If start is negative, it is treated as
4034 * length+start where length is the length of the array.
4035 * @param end index to stop filling the array at. If end is negative, it is treated as
4036 * length+end.
4037 */
4038 fill(value: number, start?: number, end?: number): Uint16Array;
4039
4040 /**
4041 * Returns the elements of an array that meet the condition specified in a callback function.
4042 * @param callbackfn A function that accepts up to three arguments. The filter method calls
4043 * the callbackfn function one time for each element in the array.
4044 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
4045 * If thisArg is omitted, undefined is used as the this value.
4046 */
4047 filter(callbackfn: (value: number, index: number, array: Uint16Array) => boolean, thisArg?: any): Uint16Array;
4048
4049 /**
4050 * Returns the value of the first element in the array where predicate is true, and undefined
4051 * otherwise.
4052 * @param predicate find calls predicate once for each element of the array, in ascending
4053 * order, until it finds one where predicate returns true. If such an element is found, find
4054 * immediately returns that element value. Otherwise, find returns undefined.
4055 * @param thisArg If provided, it will be used as the this value for each invocation of
4056 * predicate. If it is not provided, undefined is used instead.
4057 */
4058 find(predicate: (value: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number;
4059
4060 /**
4061 * Returns the index of the first element in the array where predicate is true, and undefined
4062 * otherwise.
4063 * @param predicate find calls predicate once for each element of the array, in ascending
4064 * order, until it finds one where predicate returns true. If such an element is found, find
4065 * immediately returns that element value. Otherwise, find returns undefined.
4066 * @param thisArg If provided, it will be used as the this value for each invocation of
4067 * predicate. If it is not provided, undefined is used instead.
4068 */
4069 findIndex(predicate: (value: number) => boolean, thisArg?: any): number;
4070
4071 /**
4072 * Performs the specified action for each element in an array.
4073 * @param callbackfn A function that accepts up to three arguments. forEach calls the
4074 * callbackfn function one time for each element in the array.
4075 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
4076 * If thisArg is omitted, undefined is used as the this value.
4077 */
4078 forEach(callbackfn: (value: number, index: number, array: Uint16Array) => void, thisArg?: any): void;
4079
4080 /**
4081 * Returns the index of the first occurrence of a value in an array.
4082 * @param searchElement The value to locate in the array.
4083 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
4084 * search starts at index 0.
4085 */
4086 indexOf(searchElement: number, fromIndex?: number): number;
4087
4088 /**
4089 * Adds all the elements of an array separated by the specified separator string.
4090 * @param separator A string used to separate one element of an array from the next in the
4091 * resulting String. If omitted, the array elements are separated with a comma.
4092 */
4093 join(separator?: string): string;
4094
4095 /**
4096 * Returns the index of the last occurrence of a value in an array.
4097 * @param searchElement The value to locate in the array.
4098 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
4099 * search starts at index 0.
4100 */
4101 lastIndexOf(searchElement: number, fromIndex?: number): number;
4102
4103 /**
4104 * The length of the array.
4105 */
4106 readonly length: number;
4107
4108 /**
4109 * Calls a defined callback function on each element of an array, and returns an array that
4110 * contains the results.
4111 * @param callbackfn A function that accepts up to three arguments. The map method calls the
4112 * callbackfn function one time for each element in the array.
4113 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
4114 * If thisArg is omitted, undefined is used as the this value.
4115 */
4116 map(callbackfn: (value: number, index: number, array: Uint16Array) => number, thisArg?: any): Uint16Array;
4117
4118 /**
4119 * Calls the specified callback function for all the elements in an array. The return value of
4120 * the callback function is the accumulated result, and is provided as an argument in the next
4121 * call to the callback function.
4122 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
4123 * callbackfn function one time for each element in the array.
4124 * @param initialValue If initialValue is specified, it is used as the initial value to start
4125 * the accumulation. The first call to the callbackfn function provides this value as an argument
4126 * instead of an array value.
4127 */
4128 reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue?: number): number;
4129
4130 /**
4131 * Calls the specified callback function for all the elements in an array. The return value of
4132 * the callback function is the accumulated result, and is provided as an argument in the next
4133 * call to the callback function.
4134 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
4135 * callbackfn function one time for each element in the array.
4136 * @param initialValue If initialValue is specified, it is used as the initial value to start
4137 * the accumulation. The first call to the callbackfn function provides this value as an argument
4138 * instead of an array value.
4139 */
4140 reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;
4141
4142 /**
4143 * Calls the specified callback function for all the elements in an array, in descending order.
4144 * The return value of the callback function is the accumulated result, and is provided as an
4145 * argument in the next call to the callback function.
4146 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
4147 * the callbackfn function one time for each element in the array.
4148 * @param initialValue If initialValue is specified, it is used as the initial value to start
4149 * the accumulation. The first call to the callbackfn function provides this value as an
4150 * argument instead of an array value.
4151 */
4152 reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue?: number): number;
4153
4154 /**
4155 * Calls the specified callback function for all the elements in an array, in descending order.
4156 * The return value of the callback function is the accumulated result, and is provided as an
4157 * argument in the next call to the callback function.
4158 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
4159 * the callbackfn function one time for each element in the array.
4160 * @param initialValue If initialValue is specified, it is used as the initial value to start
4161 * the accumulation. The first call to the callbackfn function provides this value as an argument
4162 * instead of an array value.
4163 */
4164 reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;
4165
4166 /**
4167 * Reverses the elements in an Array.
4168 */
4169 reverse(): Uint16Array;
4170
4171 /**
4172 * Sets a value or an array of values.
4173 * @param index The index of the location to set.
4174 * @param value The value to set.
4175 */
4176 set(index: number, value: number): void;
4177
4178 /**
4179 * Sets a value or an array of values.
4180 * @param array A typed or untyped array of values to set.
4181 * @param offset The index in the current array at which the values are to be written.
4182 */
4183 set(array: ArrayLike<number>, offset?: number): void;
4184
4185 /**
4186 * Returns a section of an array.
4187 * @param start The beginning of the specified portion of the array.
4188 * @param end The end of the specified portion of the array.
4189 */
4190 slice(start?: number, end?: number): Uint16Array;
4191
4192 /**
4193 * Determines whether the specified callback function returns true for any element of an array.
4194 * @param callbackfn A function that accepts up to three arguments. The some method calls the
4195 * callbackfn function for each element in array1 until the callbackfn returns true, or until
4196 * the end of the array.
4197 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
4198 * If thisArg is omitted, undefined is used as the this value.
4199 */
4200 some(callbackfn: (value: number, index: number, array: Uint16Array) => boolean, thisArg?: any): boolean;
4201
4202 /**
4203 * Sorts an array.
4204 * @param compareFn The name of the function used to determine the order of the elements. If
4205 * omitted, the elements are sorted in ascending, ASCII character order.
4206 */
4207 sort(compareFn?: (a: number, b: number) => number): Uint16Array;
4208
4209 /**
4210 * Gets a new Uint16Array view of the ArrayBuffer store for this array, referencing the elements
4211 * at begin, inclusive, up to end, exclusive.
4212 * @param begin The index of the beginning of the array.
4213 * @param end The index of the end of the array.
4214 */
4215 subarray(begin: number, end?: number): Uint16Array;
4216
4217 /**
4218 * Converts a number to a string by using the current locale.
4219 */
4220 toLocaleString(): string;
4221
4222 /**
4223 * Returns a string representation of an array.
4224 */
4225 toString(): string;
4226
4227 [index: number]: number;
4228}
4229
4230interface Uint16ArrayConstructor {
4231 readonly prototype: Uint16Array;
4232 new (length: number): Uint16Array;
4233 new (array: ArrayLike<number>): Uint16Array;
4234 new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint16Array;
4235
4236 /**
4237 * The size in bytes of each element in the array.
4238 */
4239 readonly BYTES_PER_ELEMENT: number;
4240
4241 /**
4242 * Returns a new array from a set of elements.
4243 * @param items A set of elements to include in the new array object.
4244 */
4245 of(...items: number[]): Uint16Array;
4246
4247 /**
4248 * Creates an array from an array-like or iterable object.
4249 * @param arrayLike An array-like or iterable object to convert to an array.
4250 * @param mapfn A mapping function to call on every element of the array.
4251 * @param thisArg Value of 'this' used to invoke the mapfn.
4252 */
4253 from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint16Array;
4254
4255}
4256declare const Uint16Array: Uint16ArrayConstructor;
4257/**
4258 * A typed array of 32-bit signed integer values. The contents are initialized to 0. If the
4259 * requested number of bytes could not be allocated an exception is raised.
4260 */
4261interface Int32Array {
4262 /**
4263 * The size in bytes of each element in the array.
4264 */
4265 readonly BYTES_PER_ELEMENT: number;
4266
4267 /**
4268 * The ArrayBuffer instance referenced by the array.
4269 */
4270 readonly buffer: ArrayBuffer;
4271
4272 /**
4273 * The length in bytes of the array.
4274 */
4275 readonly byteLength: number;
4276
4277 /**
4278 * The offset in bytes of the array.
4279 */
4280 readonly byteOffset: number;
4281
4282 /**
4283 * Returns the this object after copying a section of the array identified by start and end
4284 * to the same array starting at position target
4285 * @param target If target is negative, it is treated as length+target where length is the
4286 * length of the array.
4287 * @param start If start is negative, it is treated as length+start. If end is negative, it
4288 * is treated as length+end.
4289 * @param end If not specified, length of the this object is used as its default value.
4290 */
4291 copyWithin(target: number, start: number, end?: number): Int32Array;
4292
4293 /**
4294 * Determines whether all the members of an array satisfy the specified test.
4295 * @param callbackfn A function that accepts up to three arguments. The every method calls
4296 * the callbackfn function for each element in array1 until the callbackfn returns false,
4297 * or until the end of the array.
4298 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
4299 * If thisArg is omitted, undefined is used as the this value.
4300 */
4301 every(callbackfn: (value: number, index: number, array: Int32Array) => boolean, thisArg?: any): boolean;
4302
4303 /**
4304 * Returns the this object after filling the section identified by start and end with value
4305 * @param value value to fill array section with
4306 * @param start index to start filling the array at. If start is negative, it is treated as
4307 * length+start where length is the length of the array.
4308 * @param end index to stop filling the array at. If end is negative, it is treated as
4309 * length+end.
4310 */
4311 fill(value: number, start?: number, end?: number): Int32Array;
4312
4313 /**
4314 * Returns the elements of an array that meet the condition specified in a callback function.
4315 * @param callbackfn A function that accepts up to three arguments. The filter method calls
4316 * the callbackfn function one time for each element in the array.
4317 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
4318 * If thisArg is omitted, undefined is used as the this value.
4319 */
4320 filter(callbackfn: (value: number, index: number, array: Int32Array) => boolean, thisArg?: any): Int32Array;
4321
4322 /**
4323 * Returns the value of the first element in the array where predicate is true, and undefined
4324 * otherwise.
4325 * @param predicate find calls predicate once for each element of the array, in ascending
4326 * order, until it finds one where predicate returns true. If such an element is found, find
4327 * immediately returns that element value. Otherwise, find returns undefined.
4328 * @param thisArg If provided, it will be used as the this value for each invocation of
4329 * predicate. If it is not provided, undefined is used instead.
4330 */
4331 find(predicate: (value: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number;
4332
4333 /**
4334 * Returns the index of the first element in the array where predicate is true, and undefined
4335 * otherwise.
4336 * @param predicate find calls predicate once for each element of the array, in ascending
4337 * order, until it finds one where predicate returns true. If such an element is found, find
4338 * immediately returns that element value. Otherwise, find returns undefined.
4339 * @param thisArg If provided, it will be used as the this value for each invocation of
4340 * predicate. If it is not provided, undefined is used instead.
4341 */
4342 findIndex(predicate: (value: number) => boolean, thisArg?: any): number;
4343
4344 /**
4345 * Performs the specified action for each element in an array.
4346 * @param callbackfn A function that accepts up to three arguments. forEach calls the
4347 * callbackfn function one time for each element in the array.
4348 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
4349 * If thisArg is omitted, undefined is used as the this value.
4350 */
4351 forEach(callbackfn: (value: number, index: number, array: Int32Array) => void, thisArg?: any): void;
4352
4353 /**
4354 * Returns the index of the first occurrence of a value in an array.
4355 * @param searchElement The value to locate in the array.
4356 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
4357 * search starts at index 0.
4358 */
4359 indexOf(searchElement: number, fromIndex?: number): number;
4360
4361 /**
4362 * Adds all the elements of an array separated by the specified separator string.
4363 * @param separator A string used to separate one element of an array from the next in the
4364 * resulting String. If omitted, the array elements are separated with a comma.
4365 */
4366 join(separator?: string): string;
4367
4368 /**
4369 * Returns the index of the last occurrence of a value in an array.
4370 * @param searchElement The value to locate in the array.
4371 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
4372 * search starts at index 0.
4373 */
4374 lastIndexOf(searchElement: number, fromIndex?: number): number;
4375
4376 /**
4377 * The length of the array.
4378 */
4379 readonly length: number;
4380
4381 /**
4382 * Calls a defined callback function on each element of an array, and returns an array that
4383 * contains the results.
4384 * @param callbackfn A function that accepts up to three arguments. The map method calls the
4385 * callbackfn function one time for each element in the array.
4386 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
4387 * If thisArg is omitted, undefined is used as the this value.
4388 */
4389 map(callbackfn: (value: number, index: number, array: Int32Array) => number, thisArg?: any): Int32Array;
4390
4391 /**
4392 * Calls the specified callback function for all the elements in an array. The return value of
4393 * the callback function is the accumulated result, and is provided as an argument in the next
4394 * call to the callback function.
4395 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
4396 * callbackfn function one time for each element in the array.
4397 * @param initialValue If initialValue is specified, it is used as the initial value to start
4398 * the accumulation. The first call to the callbackfn function provides this value as an argument
4399 * instead of an array value.
4400 */
4401 reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue?: number): number;
4402
4403 /**
4404 * Calls the specified callback function for all the elements in an array. The return value of
4405 * the callback function is the accumulated result, and is provided as an argument in the next
4406 * call to the callback function.
4407 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
4408 * callbackfn function one time for each element in the array.
4409 * @param initialValue If initialValue is specified, it is used as the initial value to start
4410 * the accumulation. The first call to the callbackfn function provides this value as an argument
4411 * instead of an array value.
4412 */
4413 reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;
4414
4415 /**
4416 * Calls the specified callback function for all the elements in an array, in descending order.
4417 * The return value of the callback function is the accumulated result, and is provided as an
4418 * argument in the next call to the callback function.
4419 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
4420 * the callbackfn function one time for each element in the array.
4421 * @param initialValue If initialValue is specified, it is used as the initial value to start
4422 * the accumulation. The first call to the callbackfn function provides this value as an
4423 * argument instead of an array value.
4424 */
4425 reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue?: number): number;
4426
4427 /**
4428 * Calls the specified callback function for all the elements in an array, in descending order.
4429 * The return value of the callback function is the accumulated result, and is provided as an
4430 * argument in the next call to the callback function.
4431 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
4432 * the callbackfn function one time for each element in the array.
4433 * @param initialValue If initialValue is specified, it is used as the initial value to start
4434 * the accumulation. The first call to the callbackfn function provides this value as an argument
4435 * instead of an array value.
4436 */
4437 reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;
4438
4439 /**
4440 * Reverses the elements in an Array.
4441 */
4442 reverse(): Int32Array;
4443
4444 /**
4445 * Sets a value or an array of values.
4446 * @param index The index of the location to set.
4447 * @param value The value to set.
4448 */
4449 set(index: number, value: number): void;
4450
4451 /**
4452 * Sets a value or an array of values.
4453 * @param array A typed or untyped array of values to set.
4454 * @param offset The index in the current array at which the values are to be written.
4455 */
4456 set(array: ArrayLike<number>, offset?: number): void;
4457
4458 /**
4459 * Returns a section of an array.
4460 * @param start The beginning of the specified portion of the array.
4461 * @param end The end of the specified portion of the array.
4462 */
4463 slice(start?: number, end?: number): Int32Array;
4464
4465 /**
4466 * Determines whether the specified callback function returns true for any element of an array.
4467 * @param callbackfn A function that accepts up to three arguments. The some method calls the
4468 * callbackfn function for each element in array1 until the callbackfn returns true, or until
4469 * the end of the array.
4470 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
4471 * If thisArg is omitted, undefined is used as the this value.
4472 */
4473 some(callbackfn: (value: number, index: number, array: Int32Array) => boolean, thisArg?: any): boolean;
4474
4475 /**
4476 * Sorts an array.
4477 * @param compareFn The name of the function used to determine the order of the elements. If
4478 * omitted, the elements are sorted in ascending, ASCII character order.
4479 */
4480 sort(compareFn?: (a: number, b: number) => number): Int32Array;
4481
4482 /**
4483 * Gets a new Int32Array view of the ArrayBuffer store for this array, referencing the elements
4484 * at begin, inclusive, up to end, exclusive.
4485 * @param begin The index of the beginning of the array.
4486 * @param end The index of the end of the array.
4487 */
4488 subarray(begin: number, end?: number): Int32Array;
4489
4490 /**
4491 * Converts a number to a string by using the current locale.
4492 */
4493 toLocaleString(): string;
4494
4495 /**
4496 * Returns a string representation of an array.
4497 */
4498 toString(): string;
4499
4500 [index: number]: number;
4501}
4502
4503interface Int32ArrayConstructor {
4504 readonly prototype: Int32Array;
4505 new (length: number): Int32Array;
4506 new (array: ArrayLike<number>): Int32Array;
4507 new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int32Array;
4508
4509 /**
4510 * The size in bytes of each element in the array.
4511 */
4512 readonly BYTES_PER_ELEMENT: number;
4513
4514 /**
4515 * Returns a new array from a set of elements.
4516 * @param items A set of elements to include in the new array object.
4517 */
4518 of(...items: number[]): Int32Array;
4519
4520 /**
4521 * Creates an array from an array-like or iterable object.
4522 * @param arrayLike An array-like or iterable object to convert to an array.
4523 * @param mapfn A mapping function to call on every element of the array.
4524 * @param thisArg Value of 'this' used to invoke the mapfn.
4525 */
4526 from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int32Array;
4527}
4528declare const Int32Array: Int32ArrayConstructor;
4529
4530/**
4531 * A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the
4532 * requested number of bytes could not be allocated an exception is raised.
4533 */
4534interface Uint32Array {
4535 /**
4536 * The size in bytes of each element in the array.
4537 */
4538 readonly BYTES_PER_ELEMENT: number;
4539
4540 /**
4541 * The ArrayBuffer instance referenced by the array.
4542 */
4543 readonly buffer: ArrayBuffer;
4544
4545 /**
4546 * The length in bytes of the array.
4547 */
4548 readonly byteLength: number;
4549
4550 /**
4551 * The offset in bytes of the array.
4552 */
4553 readonly byteOffset: number;
4554
4555 /**
4556 * Returns the this object after copying a section of the array identified by start and end
4557 * to the same array starting at position target
4558 * @param target If target is negative, it is treated as length+target where length is the
4559 * length of the array.
4560 * @param start If start is negative, it is treated as length+start. If end is negative, it
4561 * is treated as length+end.
4562 * @param end If not specified, length of the this object is used as its default value.
4563 */
4564 copyWithin(target: number, start: number, end?: number): Uint32Array;
4565
4566 /**
4567 * Determines whether all the members of an array satisfy the specified test.
4568 * @param callbackfn A function that accepts up to three arguments. The every method calls
4569 * the callbackfn function for each element in array1 until the callbackfn returns false,
4570 * or until the end of the array.
4571 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
4572 * If thisArg is omitted, undefined is used as the this value.
4573 */
4574 every(callbackfn: (value: number, index: number, array: Uint32Array) => boolean, thisArg?: any): boolean;
4575
4576 /**
4577 * Returns the this object after filling the section identified by start and end with value
4578 * @param value value to fill array section with
4579 * @param start index to start filling the array at. If start is negative, it is treated as
4580 * length+start where length is the length of the array.
4581 * @param end index to stop filling the array at. If end is negative, it is treated as
4582 * length+end.
4583 */
4584 fill(value: number, start?: number, end?: number): Uint32Array;
4585
4586 /**
4587 * Returns the elements of an array that meet the condition specified in a callback function.
4588 * @param callbackfn A function that accepts up to three arguments. The filter method calls
4589 * the callbackfn function one time for each element in the array.
4590 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
4591 * If thisArg is omitted, undefined is used as the this value.
4592 */
4593 filter(callbackfn: (value: number, index: number, array: Uint32Array) => boolean, thisArg?: any): Uint32Array;
4594
4595 /**
4596 * Returns the value of the first element in the array where predicate is true, and undefined
4597 * otherwise.
4598 * @param predicate find calls predicate once for each element of the array, in ascending
4599 * order, until it finds one where predicate returns true. If such an element is found, find
4600 * immediately returns that element value. Otherwise, find returns undefined.
4601 * @param thisArg If provided, it will be used as the this value for each invocation of
4602 * predicate. If it is not provided, undefined is used instead.
4603 */
4604 find(predicate: (value: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number;
4605
4606 /**
4607 * Returns the index of the first element in the array where predicate is true, and undefined
4608 * otherwise.
4609 * @param predicate find calls predicate once for each element of the array, in ascending
4610 * order, until it finds one where predicate returns true. If such an element is found, find
4611 * immediately returns that element value. Otherwise, find returns undefined.
4612 * @param thisArg If provided, it will be used as the this value for each invocation of
4613 * predicate. If it is not provided, undefined is used instead.
4614 */
4615 findIndex(predicate: (value: number) => boolean, thisArg?: any): number;
4616
4617 /**
4618 * Performs the specified action for each element in an array.
4619 * @param callbackfn A function that accepts up to three arguments. forEach calls the
4620 * callbackfn function one time for each element in the array.
4621 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
4622 * If thisArg is omitted, undefined is used as the this value.
4623 */
4624 forEach(callbackfn: (value: number, index: number, array: Uint32Array) => void, thisArg?: any): void;
4625
4626 /**
4627 * Returns the index of the first occurrence of a value in an array.
4628 * @param searchElement The value to locate in the array.
4629 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
4630 * search starts at index 0.
4631 */
4632 indexOf(searchElement: number, fromIndex?: number): number;
4633
4634 /**
4635 * Adds all the elements of an array separated by the specified separator string.
4636 * @param separator A string used to separate one element of an array from the next in the
4637 * resulting String. If omitted, the array elements are separated with a comma.
4638 */
4639 join(separator?: string): string;
4640
4641 /**
4642 * Returns the index of the last occurrence of a value in an array.
4643 * @param searchElement The value to locate in the array.
4644 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
4645 * search starts at index 0.
4646 */
4647 lastIndexOf(searchElement: number, fromIndex?: number): number;
4648
4649 /**
4650 * The length of the array.
4651 */
4652 readonly length: number;
4653
4654 /**
4655 * Calls a defined callback function on each element of an array, and returns an array that
4656 * contains the results.
4657 * @param callbackfn A function that accepts up to three arguments. The map method calls the
4658 * callbackfn function one time for each element in the array.
4659 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
4660 * If thisArg is omitted, undefined is used as the this value.
4661 */
4662 map(callbackfn: (value: number, index: number, array: Uint32Array) => number, thisArg?: any): Uint32Array;
4663
4664 /**
4665 * Calls the specified callback function for all the elements in an array. The return value of
4666 * the callback function is the accumulated result, and is provided as an argument in the next
4667 * call to the callback function.
4668 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
4669 * callbackfn function one time for each element in the array.
4670 * @param initialValue If initialValue is specified, it is used as the initial value to start
4671 * the accumulation. The first call to the callbackfn function provides this value as an argument
4672 * instead of an array value.
4673 */
4674 reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue?: number): number;
4675
4676 /**
4677 * Calls the specified callback function for all the elements in an array. The return value of
4678 * the callback function is the accumulated result, and is provided as an argument in the next
4679 * call to the callback function.
4680 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
4681 * callbackfn function one time for each element in the array.
4682 * @param initialValue If initialValue is specified, it is used as the initial value to start
4683 * the accumulation. The first call to the callbackfn function provides this value as an argument
4684 * instead of an array value.
4685 */
4686 reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;
4687
4688 /**
4689 * Calls the specified callback function for all the elements in an array, in descending order.
4690 * The return value of the callback function is the accumulated result, and is provided as an
4691 * argument in the next call to the callback function.
4692 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
4693 * the callbackfn function one time for each element in the array.
4694 * @param initialValue If initialValue is specified, it is used as the initial value to start
4695 * the accumulation. The first call to the callbackfn function provides this value as an
4696 * argument instead of an array value.
4697 */
4698 reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue?: number): number;
4699
4700 /**
4701 * Calls the specified callback function for all the elements in an array, in descending order.
4702 * The return value of the callback function is the accumulated result, and is provided as an
4703 * argument in the next call to the callback function.
4704 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
4705 * the callbackfn function one time for each element in the array.
4706 * @param initialValue If initialValue is specified, it is used as the initial value to start
4707 * the accumulation. The first call to the callbackfn function provides this value as an argument
4708 * instead of an array value.
4709 */
4710 reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;
4711
4712 /**
4713 * Reverses the elements in an Array.
4714 */
4715 reverse(): Uint32Array;
4716
4717 /**
4718 * Sets a value or an array of values.
4719 * @param index The index of the location to set.
4720 * @param value The value to set.
4721 */
4722 set(index: number, value: number): void;
4723
4724 /**
4725 * Sets a value or an array of values.
4726 * @param array A typed or untyped array of values to set.
4727 * @param offset The index in the current array at which the values are to be written.
4728 */
4729 set(array: ArrayLike<number>, offset?: number): void;
4730
4731 /**
4732 * Returns a section of an array.
4733 * @param start The beginning of the specified portion of the array.
4734 * @param end The end of the specified portion of the array.
4735 */
4736 slice(start?: number, end?: number): Uint32Array;
4737
4738 /**
4739 * Determines whether the specified callback function returns true for any element of an array.
4740 * @param callbackfn A function that accepts up to three arguments. The some method calls the
4741 * callbackfn function for each element in array1 until the callbackfn returns true, or until
4742 * the end of the array.
4743 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
4744 * If thisArg is omitted, undefined is used as the this value.
4745 */
4746 some(callbackfn: (value: number, index: number, array: Uint32Array) => boolean, thisArg?: any): boolean;
4747
4748 /**
4749 * Sorts an array.
4750 * @param compareFn The name of the function used to determine the order of the elements. If
4751 * omitted, the elements are sorted in ascending, ASCII character order.
4752 */
4753 sort(compareFn?: (a: number, b: number) => number): Uint32Array;
4754
4755 /**
4756 * Gets a new Uint32Array view of the ArrayBuffer store for this array, referencing the elements
4757 * at begin, inclusive, up to end, exclusive.
4758 * @param begin The index of the beginning of the array.
4759 * @param end The index of the end of the array.
4760 */
4761 subarray(begin: number, end?: number): Uint32Array;
4762
4763 /**
4764 * Converts a number to a string by using the current locale.
4765 */
4766 toLocaleString(): string;
4767
4768 /**
4769 * Returns a string representation of an array.
4770 */
4771 toString(): string;
4772
4773 [index: number]: number;
4774}
4775
4776interface Uint32ArrayConstructor {
4777 readonly prototype: Uint32Array;
4778 new (length: number): Uint32Array;
4779 new (array: ArrayLike<number>): Uint32Array;
4780 new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint32Array;
4781
4782 /**
4783 * The size in bytes of each element in the array.
4784 */
4785 readonly BYTES_PER_ELEMENT: number;
4786
4787 /**
4788 * Returns a new array from a set of elements.
4789 * @param items A set of elements to include in the new array object.
4790 */
4791 of(...items: number[]): Uint32Array;
4792
4793 /**
4794 * Creates an array from an array-like or iterable object.
4795 * @param arrayLike An array-like or iterable object to convert to an array.
4796 * @param mapfn A mapping function to call on every element of the array.
4797 * @param thisArg Value of 'this' used to invoke the mapfn.
4798 */
4799 from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint32Array;
4800}
4801declare const Uint32Array: Uint32ArrayConstructor;
4802
4803/**
4804 * A typed array of 32-bit float values. The contents are initialized to 0. If the requested number
4805 * of bytes could not be allocated an exception is raised.
4806 */
4807interface Float32Array {
4808 /**
4809 * The size in bytes of each element in the array.
4810 */
4811 readonly BYTES_PER_ELEMENT: number;
4812
4813 /**
4814 * The ArrayBuffer instance referenced by the array.
4815 */
4816 readonly buffer: ArrayBuffer;
4817
4818 /**
4819 * The length in bytes of the array.
4820 */
4821 readonly byteLength: number;
4822
4823 /**
4824 * The offset in bytes of the array.
4825 */
4826 readonly byteOffset: number;
4827
4828 /**
4829 * Returns the this object after copying a section of the array identified by start and end
4830 * to the same array starting at position target
4831 * @param target If target is negative, it is treated as length+target where length is the
4832 * length of the array.
4833 * @param start If start is negative, it is treated as length+start. If end is negative, it
4834 * is treated as length+end.
4835 * @param end If not specified, length of the this object is used as its default value.
4836 */
4837 copyWithin(target: number, start: number, end?: number): Float32Array;
4838
4839 /**
4840 * Determines whether all the members of an array satisfy the specified test.
4841 * @param callbackfn A function that accepts up to three arguments. The every method calls
4842 * the callbackfn function for each element in array1 until the callbackfn returns false,
4843 * or until the end of the array.
4844 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
4845 * If thisArg is omitted, undefined is used as the this value.
4846 */
4847 every(callbackfn: (value: number, index: number, array: Float32Array) => boolean, thisArg?: any): boolean;
4848
4849 /**
4850 * Returns the this object after filling the section identified by start and end with value
4851 * @param value value to fill array section with
4852 * @param start index to start filling the array at. If start is negative, it is treated as
4853 * length+start where length is the length of the array.
4854 * @param end index to stop filling the array at. If end is negative, it is treated as
4855 * length+end.
4856 */
4857 fill(value: number, start?: number, end?: number): Float32Array;
4858
4859 /**
4860 * Returns the elements of an array that meet the condition specified in a callback function.
4861 * @param callbackfn A function that accepts up to three arguments. The filter method calls
4862 * the callbackfn function one time for each element in the array.
4863 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
4864 * If thisArg is omitted, undefined is used as the this value.
4865 */
4866 filter(callbackfn: (value: number, index: number, array: Float32Array) => boolean, thisArg?: any): Float32Array;
4867
4868 /**
4869 * Returns the value of the first element in the array where predicate is true, and undefined
4870 * otherwise.
4871 * @param predicate find calls predicate once for each element of the array, in ascending
4872 * order, until it finds one where predicate returns true. If such an element is found, find
4873 * immediately returns that element value. Otherwise, find returns undefined.
4874 * @param thisArg If provided, it will be used as the this value for each invocation of
4875 * predicate. If it is not provided, undefined is used instead.
4876 */
4877 find(predicate: (value: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number;
4878
4879 /**
4880 * Returns the index of the first element in the array where predicate is true, and undefined
4881 * otherwise.
4882 * @param predicate find calls predicate once for each element of the array, in ascending
4883 * order, until it finds one where predicate returns true. If such an element is found, find
4884 * immediately returns that element value. Otherwise, find returns undefined.
4885 * @param thisArg If provided, it will be used as the this value for each invocation of
4886 * predicate. If it is not provided, undefined is used instead.
4887 */
4888 findIndex(predicate: (value: number) => boolean, thisArg?: any): number;
4889
4890 /**
4891 * Performs the specified action for each element in an array.
4892 * @param callbackfn A function that accepts up to three arguments. forEach calls the
4893 * callbackfn function one time for each element in the array.
4894 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
4895 * If thisArg is omitted, undefined is used as the this value.
4896 */
4897 forEach(callbackfn: (value: number, index: number, array: Float32Array) => void, thisArg?: any): void;
4898
4899 /**
4900 * Returns the index of the first occurrence of a value in an array.
4901 * @param searchElement The value to locate in the array.
4902 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
4903 * search starts at index 0.
4904 */
4905 indexOf(searchElement: number, fromIndex?: number): number;
4906
4907 /**
4908 * Adds all the elements of an array separated by the specified separator string.
4909 * @param separator A string used to separate one element of an array from the next in the
4910 * resulting String. If omitted, the array elements are separated with a comma.
4911 */
4912 join(separator?: string): string;
4913
4914 /**
4915 * Returns the index of the last occurrence of a value in an array.
4916 * @param searchElement The value to locate in the array.
4917 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
4918 * search starts at index 0.
4919 */
4920 lastIndexOf(searchElement: number, fromIndex?: number): number;
4921
4922 /**
4923 * The length of the array.
4924 */
4925 readonly length: number;
4926
4927 /**
4928 * Calls a defined callback function on each element of an array, and returns an array that
4929 * contains the results.
4930 * @param callbackfn A function that accepts up to three arguments. The map method calls the
4931 * callbackfn function one time for each element in the array.
4932 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
4933 * If thisArg is omitted, undefined is used as the this value.
4934 */
4935 map(callbackfn: (value: number, index: number, array: Float32Array) => number, thisArg?: any): Float32Array;
4936
4937 /**
4938 * Calls the specified callback function for all the elements in an array. The return value of
4939 * the callback function is the accumulated result, and is provided as an argument in the next
4940 * call to the callback function.
4941 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
4942 * callbackfn function one time for each element in the array.
4943 * @param initialValue If initialValue is specified, it is used as the initial value to start
4944 * the accumulation. The first call to the callbackfn function provides this value as an argument
4945 * instead of an array value.
4946 */
4947 reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue?: number): number;
4948
4949 /**
4950 * Calls the specified callback function for all the elements in an array. The return value of
4951 * the callback function is the accumulated result, and is provided as an argument in the next
4952 * call to the callback function.
4953 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
4954 * callbackfn function one time for each element in the array.
4955 * @param initialValue If initialValue is specified, it is used as the initial value to start
4956 * the accumulation. The first call to the callbackfn function provides this value as an argument
4957 * instead of an array value.
4958 */
4959 reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;
4960
4961 /**
4962 * Calls the specified callback function for all the elements in an array, in descending order.
4963 * The return value of the callback function is the accumulated result, and is provided as an
4964 * argument in the next call to the callback function.
4965 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
4966 * the callbackfn function one time for each element in the array.
4967 * @param initialValue If initialValue is specified, it is used as the initial value to start
4968 * the accumulation. The first call to the callbackfn function provides this value as an
4969 * argument instead of an array value.
4970 */
4971 reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue?: number): number;
4972
4973 /**
4974 * Calls the specified callback function for all the elements in an array, in descending order.
4975 * The return value of the callback function is the accumulated result, and is provided as an
4976 * argument in the next call to the callback function.
4977 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
4978 * the callbackfn function one time for each element in the array.
4979 * @param initialValue If initialValue is specified, it is used as the initial value to start
4980 * the accumulation. The first call to the callbackfn function provides this value as an argument
4981 * instead of an array value.
4982 */
4983 reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;
4984
4985 /**
4986 * Reverses the elements in an Array.
4987 */
4988 reverse(): Float32Array;
4989
4990 /**
4991 * Sets a value or an array of values.
4992 * @param index The index of the location to set.
4993 * @param value The value to set.
4994 */
4995 set(index: number, value: number): void;
4996
4997 /**
4998 * Sets a value or an array of values.
4999 * @param array A typed or untyped array of values to set.
5000 * @param offset The index in the current array at which the values are to be written.
5001 */
5002 set(array: ArrayLike<number>, offset?: number): void;
5003
5004 /**
5005 * Returns a section of an array.
5006 * @param start The beginning of the specified portion of the array.
5007 * @param end The end of the specified portion of the array.
5008 */
5009 slice(start?: number, end?: number): Float32Array;
5010
5011 /**
5012 * Determines whether the specified callback function returns true for any element of an array.
5013 * @param callbackfn A function that accepts up to three arguments. The some method calls the
5014 * callbackfn function for each element in array1 until the callbackfn returns true, or until
5015 * the end of the array.
5016 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
5017 * If thisArg is omitted, undefined is used as the this value.
5018 */
5019 some(callbackfn: (value: number, index: number, array: Float32Array) => boolean, thisArg?: any): boolean;
5020
5021 /**
5022 * Sorts an array.
5023 * @param compareFn The name of the function used to determine the order of the elements. If
5024 * omitted, the elements are sorted in ascending, ASCII character order.
5025 */
5026 sort(compareFn?: (a: number, b: number) => number): Float32Array;
5027
5028 /**
5029 * Gets a new Float32Array view of the ArrayBuffer store for this array, referencing the elements
5030 * at begin, inclusive, up to end, exclusive.
5031 * @param begin The index of the beginning of the array.
5032 * @param end The index of the end of the array.
5033 */
5034 subarray(begin: number, end?: number): Float32Array;
5035
5036 /**
5037 * Converts a number to a string by using the current locale.
5038 */
5039 toLocaleString(): string;
5040
5041 /**
5042 * Returns a string representation of an array.
5043 */
5044 toString(): string;
5045
5046 [index: number]: number;
5047}
5048
5049interface Float32ArrayConstructor {
5050 readonly prototype: Float32Array;
5051 new (length: number): Float32Array;
5052 new (array: ArrayLike<number>): Float32Array;
5053 new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Float32Array;
5054
5055 /**
5056 * The size in bytes of each element in the array.
5057 */
5058 readonly BYTES_PER_ELEMENT: number;
5059
5060 /**
5061 * Returns a new array from a set of elements.
5062 * @param items A set of elements to include in the new array object.
5063 */
5064 of(...items: number[]): Float32Array;
5065
5066 /**
5067 * Creates an array from an array-like or iterable object.
5068 * @param arrayLike An array-like or iterable object to convert to an array.
5069 * @param mapfn A mapping function to call on every element of the array.
5070 * @param thisArg Value of 'this' used to invoke the mapfn.
5071 */
5072 from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float32Array;
5073
5074}
5075declare const Float32Array: Float32ArrayConstructor;
5076
5077/**
5078 * A typed array of 64-bit float values. The contents are initialized to 0. If the requested
5079 * number of bytes could not be allocated an exception is raised.
5080 */
5081interface Float64Array {
5082 /**
5083 * The size in bytes of each element in the array.
5084 */
5085 readonly BYTES_PER_ELEMENT: number;
5086
5087 /**
5088 * The ArrayBuffer instance referenced by the array.
5089 */
5090 readonly buffer: ArrayBuffer;
5091
5092 /**
5093 * The length in bytes of the array.
5094 */
5095 readonly byteLength: number;
5096
5097 /**
5098 * The offset in bytes of the array.
5099 */
5100 readonly byteOffset: number;
5101
5102 /**
5103 * Returns the this object after copying a section of the array identified by start and end
5104 * to the same array starting at position target
5105 * @param target If target is negative, it is treated as length+target where length is the
5106 * length of the array.
5107 * @param start If start is negative, it is treated as length+start. If end is negative, it
5108 * is treated as length+end.
5109 * @param end If not specified, length of the this object is used as its default value.
5110 */
5111 copyWithin(target: number, start: number, end?: number): Float64Array;
5112
5113 /**
5114 * Determines whether all the members of an array satisfy the specified test.
5115 * @param callbackfn A function that accepts up to three arguments. The every method calls
5116 * the callbackfn function for each element in array1 until the callbackfn returns false,
5117 * or until the end of the array.
5118 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
5119 * If thisArg is omitted, undefined is used as the this value.
5120 */
5121 every(callbackfn: (value: number, index: number, array: Float64Array) => boolean, thisArg?: any): boolean;
5122
5123 /**
5124 * Returns the this object after filling the section identified by start and end with value
5125 * @param value value to fill array section with
5126 * @param start index to start filling the array at. If start is negative, it is treated as
5127 * length+start where length is the length of the array.
5128 * @param end index to stop filling the array at. If end is negative, it is treated as
5129 * length+end.
5130 */
5131 fill(value: number, start?: number, end?: number): Float64Array;
5132
5133 /**
5134 * Returns the elements of an array that meet the condition specified in a callback function.
5135 * @param callbackfn A function that accepts up to three arguments. The filter method calls
5136 * the callbackfn function one time for each element in the array.
5137 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
5138 * If thisArg is omitted, undefined is used as the this value.
5139 */
5140 filter(callbackfn: (value: number, index: number, array: Float64Array) => boolean, thisArg?: any): Float64Array;
5141
5142 /**
5143 * Returns the value of the first element in the array where predicate is true, and undefined
5144 * otherwise.
5145 * @param predicate find calls predicate once for each element of the array, in ascending
5146 * order, until it finds one where predicate returns true. If such an element is found, find
5147 * immediately returns that element value. Otherwise, find returns undefined.
5148 * @param thisArg If provided, it will be used as the this value for each invocation of
5149 * predicate. If it is not provided, undefined is used instead.
5150 */
5151 find(predicate: (value: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number;
5152
5153 /**
5154 * Returns the index of the first element in the array where predicate is true, and undefined
5155 * otherwise.
5156 * @param predicate find calls predicate once for each element of the array, in ascending
5157 * order, until it finds one where predicate returns true. If such an element is found, find
5158 * immediately returns that element value. Otherwise, find returns undefined.
5159 * @param thisArg If provided, it will be used as the this value for each invocation of
5160 * predicate. If it is not provided, undefined is used instead.
5161 */
5162 findIndex(predicate: (value: number) => boolean, thisArg?: any): number;
5163
5164 /**
5165 * Performs the specified action for each element in an array.
5166 * @param callbackfn A function that accepts up to three arguments. forEach calls the
5167 * callbackfn function one time for each element in the array.
5168 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
5169 * If thisArg is omitted, undefined is used as the this value.
5170 */
5171 forEach(callbackfn: (value: number, index: number, array: Float64Array) => void, thisArg?: any): void;
5172
5173 /**
5174 * Returns the index of the first occurrence of a value in an array.
5175 * @param searchElement The value to locate in the array.
5176 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
5177 * search starts at index 0.
5178 */
5179 indexOf(searchElement: number, fromIndex?: number): number;
5180
5181 /**
5182 * Adds all the elements of an array separated by the specified separator string.
5183 * @param separator A string used to separate one element of an array from the next in the
5184 * resulting String. If omitted, the array elements are separated with a comma.
5185 */
5186 join(separator?: string): string;
5187
5188 /**
5189 * Returns the index of the last occurrence of a value in an array.
5190 * @param searchElement The value to locate in the array.
5191 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
5192 * search starts at index 0.
5193 */
5194 lastIndexOf(searchElement: number, fromIndex?: number): number;
5195
5196 /**
5197 * The length of the array.
5198 */
5199 readonly length: number;
5200
5201 /**
5202 * Calls a defined callback function on each element of an array, and returns an array that
5203 * contains the results.
5204 * @param callbackfn A function that accepts up to three arguments. The map method calls the
5205 * callbackfn function one time for each element in the array.
5206 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
5207 * If thisArg is omitted, undefined is used as the this value.
5208 */
5209 map(callbackfn: (value: number, index: number, array: Float64Array) => number, thisArg?: any): Float64Array;
5210
5211 /**
5212 * Calls the specified callback function for all the elements in an array. The return value of
5213 * the callback function is the accumulated result, and is provided as an argument in the next
5214 * call to the callback function.
5215 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
5216 * callbackfn function one time for each element in the array.
5217 * @param initialValue If initialValue is specified, it is used as the initial value to start
5218 * the accumulation. The first call to the callbackfn function provides this value as an argument
5219 * instead of an array value.
5220 */
5221 reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue?: number): number;
5222
5223 /**
5224 * Calls the specified callback function for all the elements in an array. The return value of
5225 * the callback function is the accumulated result, and is provided as an argument in the next
5226 * call to the callback function.
5227 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
5228 * callbackfn function one time for each element in the array.
5229 * @param initialValue If initialValue is specified, it is used as the initial value to start
5230 * the accumulation. The first call to the callbackfn function provides this value as an argument
5231 * instead of an array value.
5232 */
5233 reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;
5234
5235 /**
5236 * Calls the specified callback function for all the elements in an array, in descending order.
5237 * The return value of the callback function is the accumulated result, and is provided as an
5238 * argument in the next call to the callback function.
5239 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
5240 * the callbackfn function one time for each element in the array.
5241 * @param initialValue If initialValue is specified, it is used as the initial value to start
5242 * the accumulation. The first call to the callbackfn function provides this value as an
5243 * argument instead of an array value.
5244 */
5245 reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue?: number): number;
5246
5247 /**
5248 * Calls the specified callback function for all the elements in an array, in descending order.
5249 * The return value of the callback function is the accumulated result, and is provided as an
5250 * argument in the next call to the callback function.
5251 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
5252 * the callbackfn function one time for each element in the array.
5253 * @param initialValue If initialValue is specified, it is used as the initial value to start
5254 * the accumulation. The first call to the callbackfn function provides this value as an argument
5255 * instead of an array value.
5256 */
5257 reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;
5258
5259 /**
5260 * Reverses the elements in an Array.
5261 */
5262 reverse(): Float64Array;
5263
5264 /**
5265 * Sets a value or an array of values.
5266 * @param index The index of the location to set.
5267 * @param value The value to set.
5268 */
5269 set(index: number, value: number): void;
5270
5271 /**
5272 * Sets a value or an array of values.
5273 * @param array A typed or untyped array of values to set.
5274 * @param offset The index in the current array at which the values are to be written.
5275 */
5276 set(array: ArrayLike<number>, offset?: number): void;
5277
5278 /**
5279 * Returns a section of an array.
5280 * @param start The beginning of the specified portion of the array.
5281 * @param end The end of the specified portion of the array.
5282 */
5283 slice(start?: number, end?: number): Float64Array;
5284
5285 /**
5286 * Determines whether the specified callback function returns true for any element of an array.
5287 * @param callbackfn A function that accepts up to three arguments. The some method calls the
5288 * callbackfn function for each element in array1 until the callbackfn returns true, or until
5289 * the end of the array.
5290 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
5291 * If thisArg is omitted, undefined is used as the this value.
5292 */
5293 some(callbackfn: (value: number, index: number, array: Float64Array) => boolean, thisArg?: any): boolean;
5294
5295 /**
5296 * Sorts an array.
5297 * @param compareFn The name of the function used to determine the order of the elements. If
5298 * omitted, the elements are sorted in ascending, ASCII character order.
5299 */
5300 sort(compareFn?: (a: number, b: number) => number): Float64Array;
5301
5302 /**
5303 * Gets a new Float64Array view of the ArrayBuffer store for this array, referencing the elements
5304 * at begin, inclusive, up to end, exclusive.
5305 * @param begin The index of the beginning of the array.
5306 * @param end The index of the end of the array.
5307 */
5308 subarray(begin: number, end?: number): Float64Array;
5309
5310 /**
5311 * Converts a number to a string by using the current locale.
5312 */
5313 toLocaleString(): string;
5314
5315 /**
5316 * Returns a string representation of an array.
5317 */
5318 toString(): string;
5319
5320 [index: number]: number;
5321}
5322
5323interface Float64ArrayConstructor {
5324 readonly prototype: Float64Array;
5325 new (length: number): Float64Array;
5326 new (array: ArrayLike<number>): Float64Array;
5327 new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Float64Array;
5328
5329 /**
5330 * The size in bytes of each element in the array.
5331 */
5332 readonly BYTES_PER_ELEMENT: number;
5333
5334 /**
5335 * Returns a new array from a set of elements.
5336 * @param items A set of elements to include in the new array object.
5337 */
5338 of(...items: number[]): Float64Array;
5339
5340 /**
5341 * Creates an array from an array-like or iterable object.
5342 * @param arrayLike An array-like or iterable object to convert to an array.
5343 * @param mapfn A mapping function to call on every element of the array.
5344 * @param thisArg Value of 'this' used to invoke the mapfn.
5345 */
5346 from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float64Array;
5347}
5348declare const Float64Array: Float64ArrayConstructor;
5349/////////////////////////////
5350/// ECMAScript Internationalization API
5351/////////////////////////////
5352
5353declare module Intl {
5354 interface CollatorOptions {
5355 usage?: string;
5356 localeMatcher?: string;
5357 numeric?: boolean;
5358 caseFirst?: string;
5359 sensitivity?: string;
5360 ignorePunctuation?: boolean;
5361 }
5362
5363 interface ResolvedCollatorOptions {
5364 locale: string;
5365 usage: string;
5366 sensitivity: string;
5367 ignorePunctuation: boolean;
5368 collation: string;
5369 caseFirst: string;
5370 numeric: boolean;
5371 }
5372
5373 interface Collator {
5374 compare(x: string, y: string): number;
5375 resolvedOptions(): ResolvedCollatorOptions;
5376 }
5377 var Collator: {
5378 new (locales?: string[], options?: CollatorOptions): Collator;
5379 new (locale?: string, options?: CollatorOptions): Collator;
5380 (locales?: string[], options?: CollatorOptions): Collator;
5381 (locale?: string, options?: CollatorOptions): Collator;
5382 supportedLocalesOf(locales: string[], options?: CollatorOptions): string[];
5383 supportedLocalesOf(locale: string, options?: CollatorOptions): string[];
5384 }
5385
5386 interface NumberFormatOptions {
5387 localeMatcher?: string;
5388 style?: string;
5389 currency?: string;
5390 currencyDisplay?: string;
5391 useGrouping?: boolean;
5392 minimumIntegerDigits?: number;
5393 minimumFractionDigits?: number;
5394 maximumFractionDigits?: number;
5395 minimumSignificantDigits?: number;
5396 maximumSignificantDigits?: number;
5397 }
5398
5399 interface ResolvedNumberFormatOptions {
5400 locale: string;
5401 numberingSystem: string;
5402 style: string;
5403 currency?: string;
5404 currencyDisplay?: string;
5405 minimumIntegerDigits: number;
5406 minimumFractionDigits: number;
5407 maximumFractionDigits: number;
5408 minimumSignificantDigits?: number;
5409 maximumSignificantDigits?: number;
5410 useGrouping: boolean;
5411 }
5412
5413 interface NumberFormat {
5414 format(value: number): string;
5415 resolvedOptions(): ResolvedNumberFormatOptions;
5416 }
5417 var NumberFormat: {
5418 new (locales?: string[], options?: NumberFormatOptions): NumberFormat;
5419 new (locale?: string, options?: NumberFormatOptions): NumberFormat;
5420 (locales?: string[], options?: NumberFormatOptions): NumberFormat;
5421 (locale?: string, options?: NumberFormatOptions): NumberFormat;
5422 supportedLocalesOf(locales: string[], options?: NumberFormatOptions): string[];
5423 supportedLocalesOf(locale: string, options?: NumberFormatOptions): string[];
5424 }
5425
5426 interface DateTimeFormatOptions {
5427 localeMatcher?: string;
5428 weekday?: string;
5429 era?: string;
5430 year?: string;
5431 month?: string;
5432 day?: string;
5433 hour?: string;
5434 minute?: string;
5435 second?: string;
5436 timeZoneName?: string;
5437 formatMatcher?: string;
5438 hour12?: boolean;
5439 timeZone?: string;
5440 }
5441
5442 interface ResolvedDateTimeFormatOptions {
5443 locale: string;
5444 calendar: string;
5445 numberingSystem: string;
5446 timeZone: string;
5447 hour12?: boolean;
5448 weekday?: string;
5449 era?: string;
5450 year?: string;
5451 month?: string;
5452 day?: string;
5453 hour?: string;
5454 minute?: string;
5455 second?: string;
5456 timeZoneName?: string;
5457 }
5458
5459 interface DateTimeFormat {
5460 format(date?: Date | number): string;
5461 resolvedOptions(): ResolvedDateTimeFormatOptions;
5462 }
5463 var DateTimeFormat: {
5464 new (locales?: string[], options?: DateTimeFormatOptions): DateTimeFormat;
5465 new (locale?: string, options?: DateTimeFormatOptions): DateTimeFormat;
5466 (locales?: string[], options?: DateTimeFormatOptions): DateTimeFormat;
5467 (locale?: string, options?: DateTimeFormatOptions): DateTimeFormat;
5468 supportedLocalesOf(locales: string[], options?: DateTimeFormatOptions): string[];
5469 supportedLocalesOf(locale: string, options?: DateTimeFormatOptions): string[];
5470 }
5471}
5472
5473interface String {
5474 /**
5475 * Determines whether two strings are equivalent in the current locale.
5476 * @param that String to compare to target string
5477 * @param locales An array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details.
5478 * @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.
5479 */
5480 localeCompare(that: string, locales: string[], options?: Intl.CollatorOptions): number;
5481
5482 /**
5483 * Determines whether two strings are equivalent in the current locale.
5484 * @param that String to compare to target string
5485 * @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details.
5486 * @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.
5487 */
5488 localeCompare(that: string, locale: string, options?: Intl.CollatorOptions): number;
5489}
5490
5491interface Number {
5492 /**
5493 * Converts a number to a string by using the current or specified locale.
5494 * @param locales An array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
5495 * @param options An object that contains one or more properties that specify comparison options.
5496 */
5497 toLocaleString(locales?: string[], options?: Intl.NumberFormatOptions): string;
5498
5499 /**
5500 * Converts a number to a string by using the current or specified locale.
5501 * @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used.
5502 * @param options An object that contains one or more properties that specify comparison options.
5503 */
5504 toLocaleString(locale?: string, options?: Intl.NumberFormatOptions): string;
5505}
5506
5507interface Date {
5508 /**
5509 * Converts a date and time to a string by using the current or specified locale.
5510 * @param locales An array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
5511 * @param options An object that contains one or more properties that specify comparison options.
5512 */
5513 toLocaleString(locales?: string[], options?: Intl.DateTimeFormatOptions): string;
5514 /**
5515 * Converts a date to a string by using the current or specified locale.
5516 * @param locales An array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
5517 * @param options An object that contains one or more properties that specify comparison options.
5518 */
5519 toLocaleDateString(locales?: string[], options?: Intl.DateTimeFormatOptions): string;
5520
5521 /**
5522 * Converts a time to a string by using the current or specified locale.
5523 * @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used.
5524 * @param options An object that contains one or more properties that specify comparison options.
5525 */
5526 toLocaleTimeString(locale?: string[], options?: Intl.DateTimeFormatOptions): string;
5527
5528 /**
5529 * Converts a date and time to a string by using the current or specified locale.
5530 * @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used.
5531 * @param options An object that contains one or more properties that specify comparison options.
5532 */
5533 toLocaleString(locale?: string, options?: Intl.DateTimeFormatOptions): string;
5534
5535 /**
5536 * Converts a date to a string by using the current or specified locale.
5537 * @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used.
5538 * @param options An object that contains one or more properties that specify comparison options.
5539 */
5540 toLocaleDateString(locale?: string, options?: Intl.DateTimeFormatOptions): string;
5541
5542 /**
5543 * Converts a time to a string by using the current or specified locale.
5544 * @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used.
5545 * @param options An object that contains one or more properties that specify comparison options.
5546 */
5547 toLocaleTimeString(locale?: string, options?: Intl.DateTimeFormatOptions): string;
5548}
5549
5550
5551/////////////////////////////
5552/// IE DOM APIs
5553/////////////////////////////
5554
5555interface Algorithm {
5556 name?: string;
5557}
5558
5559interface AriaRequestEventInit extends EventInit {
5560 attributeName?: string;
5561 attributeValue?: string;
5562}
5563
5564interface ClipboardEventInit extends EventInit {
5565 data?: string;
5566 dataType?: string;
5567}
5568
5569interface CommandEventInit extends EventInit {
5570 commandName?: string;
5571 detail?: string;
5572}
5573
5574interface CompositionEventInit extends UIEventInit {
5575 data?: string;
5576}
5577
5578interface ConfirmSiteSpecificExceptionsInformation extends ExceptionInformation {
5579 arrayOfDomainStrings?: string[];
5580}
5581
5582interface CustomEventInit extends EventInit {
5583 detail?: any;
5584}
5585
5586interface DeviceAccelerationDict {
5587 x?: number;
5588 y?: number;
5589 z?: number;
5590}
5591
5592interface DeviceRotationRateDict {
5593 alpha?: number;
5594 beta?: number;
5595 gamma?: number;
5596}
5597
5598interface EventInit {
5599 bubbles?: boolean;
5600 cancelable?: boolean;
5601}
5602
5603interface ExceptionInformation {
5604 domain?: string;
5605}
5606
5607interface FocusEventInit extends UIEventInit {
5608 relatedTarget?: EventTarget;
5609}
5610
5611interface HashChangeEventInit extends EventInit {
5612 newURL?: string;
5613 oldURL?: string;
5614}
5615
5616interface KeyAlgorithm {
5617 name?: string;
5618}
5619
5620interface KeyboardEventInit extends SharedKeyboardAndMouseEventInit {
5621 key?: string;
5622 location?: number;
5623 repeat?: boolean;
5624}
5625
5626interface MouseEventInit extends SharedKeyboardAndMouseEventInit {
5627 screenX?: number;
5628 screenY?: number;
5629 clientX?: number;
5630 clientY?: number;
5631 button?: number;
5632 buttons?: number;
5633 relatedTarget?: EventTarget;
5634}
5635
5636interface MsZoomToOptions {
5637 contentX?: number;
5638 contentY?: number;
5639 viewportX?: string;
5640 viewportY?: string;
5641 scaleFactor?: number;
5642 animate?: string;
5643}
5644
5645interface MutationObserverInit {
5646 childList?: boolean;
5647 attributes?: boolean;
5648 characterData?: boolean;
5649 subtree?: boolean;
5650 attributeOldValue?: boolean;
5651 characterDataOldValue?: boolean;
5652 attributeFilter?: string[];
5653}
5654
5655interface ObjectURLOptions {
5656 oneTimeOnly?: boolean;
5657}
5658
5659interface PointerEventInit extends MouseEventInit {
5660 pointerId?: number;
5661 width?: number;
5662 height?: number;
5663 pressure?: number;
5664 tiltX?: number;
5665 tiltY?: number;
5666 pointerType?: string;
5667 isPrimary?: boolean;
5668}
5669
5670interface PositionOptions {
5671 enableHighAccuracy?: boolean;
5672 timeout?: number;
5673 maximumAge?: number;
5674}
5675
5676interface SharedKeyboardAndMouseEventInit extends UIEventInit {
5677 ctrlKey?: boolean;
5678 shiftKey?: boolean;
5679 altKey?: boolean;
5680 metaKey?: boolean;
5681 keyModifierStateAltGraph?: boolean;
5682 keyModifierStateCapsLock?: boolean;
5683 keyModifierStateFn?: boolean;
5684 keyModifierStateFnLock?: boolean;
5685 keyModifierStateHyper?: boolean;
5686 keyModifierStateNumLock?: boolean;
5687 keyModifierStateOS?: boolean;
5688 keyModifierStateScrollLock?: boolean;
5689 keyModifierStateSuper?: boolean;
5690 keyModifierStateSymbol?: boolean;
5691 keyModifierStateSymbolLock?: boolean;
5692}
5693
5694interface StoreExceptionsInformation extends ExceptionInformation {
5695 siteName?: string;
5696 explanationString?: string;
5697 detailURI?: string;
5698}
5699
5700interface StoreSiteSpecificExceptionsInformation extends StoreExceptionsInformation {
5701 arrayOfDomainStrings?: string[];
5702}
5703
5704interface UIEventInit extends EventInit {
5705 view?: Window;
5706 detail?: number;
5707}
5708
5709interface WebGLContextAttributes {
5710 alpha?: boolean;
5711 depth?: boolean;
5712 stencil?: boolean;
5713 antialias?: boolean;
5714 premultipliedAlpha?: boolean;
5715 preserveDrawingBuffer?: boolean;
5716}
5717
5718interface WebGLContextEventInit extends EventInit {
5719 statusMessage?: string;
5720}
5721
5722interface WheelEventInit extends MouseEventInit {
5723 deltaX?: number;
5724 deltaY?: number;
5725 deltaZ?: number;
5726 deltaMode?: number;
5727}
5728
5729interface EventListener {
5730 (evt: Event): void;
5731}
5732
5733interface ANGLE_instanced_arrays {
5734 drawArraysInstancedANGLE(mode: number, first: number, count: number, primcount: number): void;
5735 drawElementsInstancedANGLE(mode: number, count: number, type: number, offset: number, primcount: number): void;
5736 vertexAttribDivisorANGLE(index: number, divisor: number): void;
5737 VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: number;
5738}
5739
5740declare var ANGLE_instanced_arrays: {
5741 prototype: ANGLE_instanced_arrays;
5742 new(): ANGLE_instanced_arrays;
5743 VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: number;
5744}
5745
5746interface AnalyserNode extends AudioNode {
5747 fftSize: number;
5748 frequencyBinCount: number;
5749 maxDecibels: number;
5750 minDecibels: number;
5751 smoothingTimeConstant: number;
5752 getByteFrequencyData(array: Uint8Array): void;
5753 getByteTimeDomainData(array: Uint8Array): void;
5754 getFloatFrequencyData(array: Float32Array): void;
5755 getFloatTimeDomainData(array: Float32Array): void;
5756}
5757
5758declare var AnalyserNode: {
5759 prototype: AnalyserNode;
5760 new(): AnalyserNode;
5761}
5762
5763interface AnimationEvent extends Event {
5764 animationName: string;
5765 elapsedTime: number;
5766 initAnimationEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, animationNameArg: string, elapsedTimeArg: number): void;
5767}
5768
5769declare var AnimationEvent: {
5770 prototype: AnimationEvent;
5771 new(): AnimationEvent;
5772}
5773
5774interface ApplicationCache extends EventTarget {
5775 oncached: (ev: Event) => any;
5776 onchecking: (ev: Event) => any;
5777 ondownloading: (ev: Event) => any;
5778 onerror: (ev: Event) => any;
5779 onnoupdate: (ev: Event) => any;
5780 onobsolete: (ev: Event) => any;
5781 onprogress: (ev: ProgressEvent) => any;
5782 onupdateready: (ev: Event) => any;
5783 status: number;
5784 abort(): void;
5785 swapCache(): void;
5786 update(): void;
5787 CHECKING: number;
5788 DOWNLOADING: number;
5789 IDLE: number;
5790 OBSOLETE: number;
5791 UNCACHED: number;
5792 UPDATEREADY: number;
5793 addEventListener(type: "cached", listener: (ev: Event) => any, useCapture?: boolean): void;
5794 addEventListener(type: "checking", listener: (ev: Event) => any, useCapture?: boolean): void;
5795 addEventListener(type: "downloading", listener: (ev: Event) => any, useCapture?: boolean): void;
5796 addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
5797 addEventListener(type: "noupdate", listener: (ev: Event) => any, useCapture?: boolean): void;
5798 addEventListener(type: "obsolete", listener: (ev: Event) => any, useCapture?: boolean): void;
5799 addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
5800 addEventListener(type: "updateready", listener: (ev: Event) => any, useCapture?: boolean): void;
5801 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
5802}
5803
5804declare var ApplicationCache: {
5805 prototype: ApplicationCache;
5806 new(): ApplicationCache;
5807 CHECKING: number;
5808 DOWNLOADING: number;
5809 IDLE: number;
5810 OBSOLETE: number;
5811 UNCACHED: number;
5812 UPDATEREADY: number;
5813}
5814
5815interface AriaRequestEvent extends Event {
5816 attributeName: string;
5817 attributeValue: string;
5818}
5819
5820declare var AriaRequestEvent: {
5821 prototype: AriaRequestEvent;
5822 new(type: string, eventInitDict?: AriaRequestEventInit): AriaRequestEvent;
5823}
5824
5825interface Attr extends Node {
5826 name: string;
5827 ownerElement: Element;
5828 specified: boolean;
5829 value: string;
5830}
5831
5832declare var Attr: {
5833 prototype: Attr;
5834 new(): Attr;
5835}
5836
5837interface AudioBuffer {
5838 duration: number;
5839 length: number;
5840 numberOfChannels: number;
5841 sampleRate: number;
5842 getChannelData(channel: number): Float32Array;
5843}
5844
5845declare var AudioBuffer: {
5846 prototype: AudioBuffer;
5847 new(): AudioBuffer;
5848}
5849
5850interface AudioBufferSourceNode extends AudioNode {
5851 buffer: AudioBuffer;
5852 loop: boolean;
5853 loopEnd: number;
5854 loopStart: number;
5855 onended: (ev: Event) => any;
5856 playbackRate: AudioParam;
5857 start(when?: number, offset?: number, duration?: number): void;
5858 stop(when?: number): void;
5859 addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void;
5860 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
5861}
5862
5863declare var AudioBufferSourceNode: {
5864 prototype: AudioBufferSourceNode;
5865 new(): AudioBufferSourceNode;
5866}
5867
5868interface AudioContext extends EventTarget {
5869 currentTime: number;
5870 destination: AudioDestinationNode;
5871 listener: AudioListener;
5872 sampleRate: number;
5873 state: string;
5874 createAnalyser(): AnalyserNode;
5875 createBiquadFilter(): BiquadFilterNode;
5876 createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer;
5877 createBufferSource(): AudioBufferSourceNode;
5878 createChannelMerger(numberOfInputs?: number): ChannelMergerNode;
5879 createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode;
5880 createConvolver(): ConvolverNode;
5881 createDelay(maxDelayTime?: number): DelayNode;
5882 createDynamicsCompressor(): DynamicsCompressorNode;
5883 createGain(): GainNode;
5884 createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode;
5885 createOscillator(): OscillatorNode;
5886 createPanner(): PannerNode;
5887 createPeriodicWave(real: Float32Array, imag: Float32Array): PeriodicWave;
5888 createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode;
5889 createStereoPanner(): StereoPannerNode;
5890 createWaveShaper(): WaveShaperNode;
5891 decodeAudioData(audioData: ArrayBuffer, successCallback: DecodeSuccessCallback, errorCallback?: DecodeErrorCallback): void;
5892}
5893
5894declare var AudioContext: {
5895 prototype: AudioContext;
5896 new(): AudioContext;
5897}
5898
5899interface AudioDestinationNode extends AudioNode {
5900 maxChannelCount: number;
5901}
5902
5903declare var AudioDestinationNode: {
5904 prototype: AudioDestinationNode;
5905 new(): AudioDestinationNode;
5906}
5907
5908interface AudioListener {
5909 dopplerFactor: number;
5910 speedOfSound: number;
5911 setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, zUp: number): void;
5912 setPosition(x: number, y: number, z: number): void;
5913 setVelocity(x: number, y: number, z: number): void;
5914}
5915
5916declare var AudioListener: {
5917 prototype: AudioListener;
5918 new(): AudioListener;
5919}
5920
5921interface AudioNode extends EventTarget {
5922 channelCount: number;
5923 channelCountMode: string;
5924 channelInterpretation: string;
5925 context: AudioContext;
5926 numberOfInputs: number;
5927 numberOfOutputs: number;
5928 connect(destination: AudioNode, output?: number, input?: number): void;
5929 disconnect(output?: number): void;
5930}
5931
5932declare var AudioNode: {
5933 prototype: AudioNode;
5934 new(): AudioNode;
5935}
5936
5937interface AudioParam {
5938 defaultValue: number;
5939 value: number;
5940 cancelScheduledValues(startTime: number): void;
5941 exponentialRampToValueAtTime(value: number, endTime: number): void;
5942 linearRampToValueAtTime(value: number, endTime: number): void;
5943 setTargetAtTime(target: number, startTime: number, timeConstant: number): void;
5944 setValueAtTime(value: number, startTime: number): void;
5945 setValueCurveAtTime(values: Float32Array, startTime: number, duration: number): void;
5946}
5947
5948declare var AudioParam: {
5949 prototype: AudioParam;
5950 new(): AudioParam;
5951}
5952
5953interface AudioProcessingEvent extends Event {
5954 inputBuffer: AudioBuffer;
5955 outputBuffer: AudioBuffer;
5956 playbackTime: number;
5957}
5958
5959declare var AudioProcessingEvent: {
5960 prototype: AudioProcessingEvent;
5961 new(): AudioProcessingEvent;
5962}
5963
5964interface AudioTrack {
5965 enabled: boolean;
5966 id: string;
5967 kind: string;
5968 label: string;
5969 language: string;
5970 sourceBuffer: SourceBuffer;
5971}
5972
5973declare var AudioTrack: {
5974 prototype: AudioTrack;
5975 new(): AudioTrack;
5976}
5977
5978interface AudioTrackList extends EventTarget {
5979 length: number;
5980 onaddtrack: (ev: TrackEvent) => any;
5981 onchange: (ev: Event) => any;
5982 onremovetrack: (ev: TrackEvent) => any;
5983 getTrackById(id: string): AudioTrack;
5984 item(index: number): AudioTrack;
5985 addEventListener(type: "addtrack", listener: (ev: TrackEvent) => any, useCapture?: boolean): void;
5986 addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void;
5987 addEventListener(type: "removetrack", listener: (ev: TrackEvent) => any, useCapture?: boolean): void;
5988 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
5989 [index: number]: AudioTrack;
5990}
5991
5992declare var AudioTrackList: {
5993 prototype: AudioTrackList;
5994 new(): AudioTrackList;
5995}
5996
5997interface BarProp {
5998 visible: boolean;
5999}
6000
6001declare var BarProp: {
6002 prototype: BarProp;
6003 new(): BarProp;
6004}
6005
6006interface BeforeUnloadEvent extends Event {
6007 returnValue: any;
6008}
6009
6010declare var BeforeUnloadEvent: {
6011 prototype: BeforeUnloadEvent;
6012 new(): BeforeUnloadEvent;
6013}
6014
6015interface BiquadFilterNode extends AudioNode {
6016 Q: AudioParam;
6017 detune: AudioParam;
6018 frequency: AudioParam;
6019 gain: AudioParam;
6020 type: string;
6021 getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;
6022}
6023
6024declare var BiquadFilterNode: {
6025 prototype: BiquadFilterNode;
6026 new(): BiquadFilterNode;
6027}
6028
6029interface Blob {
6030 size: number;
6031 type: string;
6032 msClose(): void;
6033 msDetachStream(): any;
6034 slice(start?: number, end?: number, contentType?: string): Blob;
6035}
6036
6037declare var Blob: {
6038 prototype: Blob;
6039 new (blobParts?: any[], options?: BlobPropertyBag): Blob;
6040}
6041
6042interface CDATASection extends Text {
6043}
6044
6045declare var CDATASection: {
6046 prototype: CDATASection;
6047 new(): CDATASection;
6048}
6049
6050interface CSS {
6051 supports(property: string, value?: string): boolean;
6052}
6053declare var CSS: CSS;
6054
6055interface CSSConditionRule extends CSSGroupingRule {
6056 conditionText: string;
6057}
6058
6059declare var CSSConditionRule: {
6060 prototype: CSSConditionRule;
6061 new(): CSSConditionRule;
6062}
6063
6064interface CSSFontFaceRule extends CSSRule {
6065 style: CSSStyleDeclaration;
6066}
6067
6068declare var CSSFontFaceRule: {
6069 prototype: CSSFontFaceRule;
6070 new(): CSSFontFaceRule;
6071}
6072
6073interface CSSGroupingRule extends CSSRule {
6074 cssRules: CSSRuleList;
6075 deleteRule(index?: number): void;
6076 insertRule(rule: string, index?: number): number;
6077}
6078
6079declare var CSSGroupingRule: {
6080 prototype: CSSGroupingRule;
6081 new(): CSSGroupingRule;
6082}
6083
6084interface CSSImportRule extends CSSRule {
6085 href: string;
6086 media: MediaList;
6087 styleSheet: CSSStyleSheet;
6088}
6089
6090declare var CSSImportRule: {
6091 prototype: CSSImportRule;
6092 new(): CSSImportRule;
6093}
6094
6095interface CSSKeyframeRule extends CSSRule {
6096 keyText: string;
6097 style: CSSStyleDeclaration;
6098}
6099
6100declare var CSSKeyframeRule: {
6101 prototype: CSSKeyframeRule;
6102 new(): CSSKeyframeRule;
6103}
6104
6105interface CSSKeyframesRule extends CSSRule {
6106 cssRules: CSSRuleList;
6107 name: string;
6108 appendRule(rule: string): void;
6109 deleteRule(rule: string): void;
6110 findRule(rule: string): CSSKeyframeRule;
6111}
6112
6113declare var CSSKeyframesRule: {
6114 prototype: CSSKeyframesRule;
6115 new(): CSSKeyframesRule;
6116}
6117
6118interface CSSMediaRule extends CSSConditionRule {
6119 media: MediaList;
6120}
6121
6122declare var CSSMediaRule: {
6123 prototype: CSSMediaRule;
6124 new(): CSSMediaRule;
6125}
6126
6127interface CSSNamespaceRule extends CSSRule {
6128 namespaceURI: string;
6129 prefix: string;
6130}
6131
6132declare var CSSNamespaceRule: {
6133 prototype: CSSNamespaceRule;
6134 new(): CSSNamespaceRule;
6135}
6136
6137interface CSSPageRule extends CSSRule {
6138 pseudoClass: string;
6139 selector: string;
6140 selectorText: string;
6141 style: CSSStyleDeclaration;
6142}
6143
6144declare var CSSPageRule: {
6145 prototype: CSSPageRule;
6146 new(): CSSPageRule;
6147}
6148
6149interface CSSRule {
6150 cssText: string;
6151 parentRule: CSSRule;
6152 parentStyleSheet: CSSStyleSheet;
6153 type: number;
6154 CHARSET_RULE: number;
6155 FONT_FACE_RULE: number;
6156 IMPORT_RULE: number;
6157 KEYFRAMES_RULE: number;
6158 KEYFRAME_RULE: number;
6159 MEDIA_RULE: number;
6160 NAMESPACE_RULE: number;
6161 PAGE_RULE: number;
6162 STYLE_RULE: number;
6163 SUPPORTS_RULE: number;
6164 UNKNOWN_RULE: number;
6165 VIEWPORT_RULE: number;
6166}
6167
6168declare var CSSRule: {
6169 prototype: CSSRule;
6170 new(): CSSRule;
6171 CHARSET_RULE: number;
6172 FONT_FACE_RULE: number;
6173 IMPORT_RULE: number;
6174 KEYFRAMES_RULE: number;
6175 KEYFRAME_RULE: number;
6176 MEDIA_RULE: number;
6177 NAMESPACE_RULE: number;
6178 PAGE_RULE: number;
6179 STYLE_RULE: number;
6180 SUPPORTS_RULE: number;
6181 UNKNOWN_RULE: number;
6182 VIEWPORT_RULE: number;
6183}
6184
6185interface CSSRuleList {
6186 length: number;
6187 item(index: number): CSSRule;
6188 [index: number]: CSSRule;
6189}
6190
6191declare var CSSRuleList: {
6192 prototype: CSSRuleList;
6193 new(): CSSRuleList;
6194}
6195
6196interface CSSStyleDeclaration {
6197 alignContent: string;
6198 alignItems: string;
6199 alignSelf: string;
6200 alignmentBaseline: string;
6201 animation: string;
6202 animationDelay: string;
6203 animationDirection: string;
6204 animationDuration: string;
6205 animationFillMode: string;
6206 animationIterationCount: string;
6207 animationName: string;
6208 animationPlayState: string;
6209 animationTimingFunction: string;
6210 backfaceVisibility: string;
6211 background: string;
6212 backgroundAttachment: string;
6213 backgroundClip: string;
6214 backgroundColor: string;
6215 backgroundImage: string;
6216 backgroundOrigin: string;
6217 backgroundPosition: string;
6218 backgroundPositionX: string;
6219 backgroundPositionY: string;
6220 backgroundRepeat: string;
6221 backgroundSize: string;
6222 baselineShift: string;
6223 border: string;
6224 borderBottom: string;
6225 borderBottomColor: string;
6226 borderBottomLeftRadius: string;
6227 borderBottomRightRadius: string;
6228 borderBottomStyle: string;
6229 borderBottomWidth: string;
6230 borderCollapse: string;
6231 borderColor: string;
6232 borderImage: string;
6233 borderImageOutset: string;
6234 borderImageRepeat: string;
6235 borderImageSlice: string;
6236 borderImageSource: string;
6237 borderImageWidth: string;
6238 borderLeft: string;
6239 borderLeftColor: string;
6240 borderLeftStyle: string;
6241 borderLeftWidth: string;
6242 borderRadius: string;
6243 borderRight: string;
6244 borderRightColor: string;
6245 borderRightStyle: string;
6246 borderRightWidth: string;
6247 borderSpacing: string;
6248 borderStyle: string;
6249 borderTop: string;
6250 borderTopColor: string;
6251 borderTopLeftRadius: string;
6252 borderTopRightRadius: string;
6253 borderTopStyle: string;
6254 borderTopWidth: string;
6255 borderWidth: string;
6256 bottom: string;
6257 boxShadow: string;
6258 boxSizing: string;
6259 breakAfter: string;
6260 breakBefore: string;
6261 breakInside: string;
6262 captionSide: string;
6263 clear: string;
6264 clip: string;
6265 clipPath: string;
6266 clipRule: string;
6267 color: string;
6268 colorInterpolationFilters: string;
6269 columnCount: any;
6270 columnFill: string;
6271 columnGap: any;
6272 columnRule: string;
6273 columnRuleColor: any;
6274 columnRuleStyle: string;
6275 columnRuleWidth: any;
6276 columnSpan: string;
6277 columnWidth: any;
6278 columns: string;
6279 content: string;
6280 counterIncrement: string;
6281 counterReset: string;
6282 cssFloat: string;
6283 cssText: string;
6284 cursor: string;
6285 direction: string;
6286 display: string;
6287 dominantBaseline: string;
6288 emptyCells: string;
6289 enableBackground: string;
6290 fill: string;
6291 fillOpacity: string;
6292 fillRule: string;
6293 filter: string;
6294 flex: string;
6295 flexBasis: string;
6296 flexDirection: string;
6297 flexFlow: string;
6298 flexGrow: string;
6299 flexShrink: string;
6300 flexWrap: string;
6301 floodColor: string;
6302 floodOpacity: string;
6303 font: string;
6304 fontFamily: string;
6305 fontFeatureSettings: string;
6306 fontSize: string;
6307 fontSizeAdjust: string;
6308 fontStretch: string;
6309 fontStyle: string;
6310 fontVariant: string;
6311 fontWeight: string;
6312 glyphOrientationHorizontal: string;
6313 glyphOrientationVertical: string;
6314 height: string;
6315 imeMode: string;
6316 justifyContent: string;
6317 kerning: string;
6318 left: string;
6319 length: number;
6320 letterSpacing: string;
6321 lightingColor: string;
6322 lineHeight: string;
6323 listStyle: string;
6324 listStyleImage: string;
6325 listStylePosition: string;
6326 listStyleType: string;
6327 margin: string;
6328 marginBottom: string;
6329 marginLeft: string;
6330 marginRight: string;
6331 marginTop: string;
6332 marker: string;
6333 markerEnd: string;
6334 markerMid: string;
6335 markerStart: string;
6336 mask: string;
6337 maxHeight: string;
6338 maxWidth: string;
6339 minHeight: string;
6340 minWidth: string;
6341 msContentZoomChaining: string;
6342 msContentZoomLimit: string;
6343 msContentZoomLimitMax: any;
6344 msContentZoomLimitMin: any;
6345 msContentZoomSnap: string;
6346 msContentZoomSnapPoints: string;
6347 msContentZoomSnapType: string;
6348 msContentZooming: string;
6349 msFlowFrom: string;
6350 msFlowInto: string;
6351 msFontFeatureSettings: string;
6352 msGridColumn: any;
6353 msGridColumnAlign: string;
6354 msGridColumnSpan: any;
6355 msGridColumns: string;
6356 msGridRow: any;
6357 msGridRowAlign: string;
6358 msGridRowSpan: any;
6359 msGridRows: string;
6360 msHighContrastAdjust: string;
6361 msHyphenateLimitChars: string;
6362 msHyphenateLimitLines: any;
6363 msHyphenateLimitZone: any;
6364 msHyphens: string;
6365 msImeAlign: string;
6366 msOverflowStyle: string;
6367 msScrollChaining: string;
6368 msScrollLimit: string;
6369 msScrollLimitXMax: any;
6370 msScrollLimitXMin: any;
6371 msScrollLimitYMax: any;
6372 msScrollLimitYMin: any;
6373 msScrollRails: string;
6374 msScrollSnapPointsX: string;
6375 msScrollSnapPointsY: string;
6376 msScrollSnapType: string;
6377 msScrollSnapX: string;
6378 msScrollSnapY: string;
6379 msScrollTranslation: string;
6380 msTextCombineHorizontal: string;
6381 msTextSizeAdjust: any;
6382 msTouchAction: string;
6383 msTouchSelect: string;
6384 msUserSelect: string;
6385 msWrapFlow: string;
6386 msWrapMargin: any;
6387 msWrapThrough: string;
6388 opacity: string;
6389 order: string;
6390 orphans: string;
6391 outline: string;
6392 outlineColor: string;
6393 outlineStyle: string;
6394 outlineWidth: string;
6395 overflow: string;
6396 overflowX: string;
6397 overflowY: string;
6398 padding: string;
6399 paddingBottom: string;
6400 paddingLeft: string;
6401 paddingRight: string;
6402 paddingTop: string;
6403 pageBreakAfter: string;
6404 pageBreakBefore: string;
6405 pageBreakInside: string;
6406 parentRule: CSSRule;
6407 perspective: string;
6408 perspectiveOrigin: string;
6409 pointerEvents: string;
6410 position: string;
6411 quotes: string;
6412 right: string;
6413 rubyAlign: string;
6414 rubyOverhang: string;
6415 rubyPosition: string;
6416 stopColor: string;
6417 stopOpacity: string;
6418 stroke: string;
6419 strokeDasharray: string;
6420 strokeDashoffset: string;
6421 strokeLinecap: string;
6422 strokeLinejoin: string;
6423 strokeMiterlimit: string;
6424 strokeOpacity: string;
6425 strokeWidth: string;
6426 tableLayout: string;
6427 textAlign: string;
6428 textAlignLast: string;
6429 textAnchor: string;
6430 textDecoration: string;
6431 textFillColor: string;
6432 textIndent: string;
6433 textJustify: string;
6434 textKashida: string;
6435 textKashidaSpace: string;
6436 textOverflow: string;
6437 textShadow: string;
6438 textTransform: string;
6439 textUnderlinePosition: string;
6440 top: string;
6441 touchAction: string;
6442 transform: string;
6443 transformOrigin: string;
6444 transformStyle: string;
6445 transition: string;
6446 transitionDelay: string;
6447 transitionDuration: string;
6448 transitionProperty: string;
6449 transitionTimingFunction: string;
6450 unicodeBidi: string;
6451 verticalAlign: string;
6452 visibility: string;
6453 webkitAlignContent: string;
6454 webkitAlignItems: string;
6455 webkitAlignSelf: string;
6456 webkitAnimation: string;
6457 webkitAnimationDelay: string;
6458 webkitAnimationDirection: string;
6459 webkitAnimationDuration: string;
6460 webkitAnimationFillMode: string;
6461 webkitAnimationIterationCount: string;
6462 webkitAnimationName: string;
6463 webkitAnimationPlayState: string;
6464 webkitAnimationTimingFunction: string;
6465 webkitAppearance: string;
6466 webkitBackfaceVisibility: string;
6467 webkitBackground: string;
6468 webkitBackgroundAttachment: string;
6469 webkitBackgroundClip: string;
6470 webkitBackgroundColor: string;
6471 webkitBackgroundImage: string;
6472 webkitBackgroundOrigin: string;
6473 webkitBackgroundPosition: string;
6474 webkitBackgroundPositionX: string;
6475 webkitBackgroundPositionY: string;
6476 webkitBackgroundRepeat: string;
6477 webkitBackgroundSize: string;
6478 webkitBorderBottomLeftRadius: string;
6479 webkitBorderBottomRightRadius: string;
6480 webkitBorderImage: string;
6481 webkitBorderImageOutset: string;
6482 webkitBorderImageRepeat: string;
6483 webkitBorderImageSlice: string;
6484 webkitBorderImageSource: string;
6485 webkitBorderImageWidth: string;
6486 webkitBorderRadius: string;
6487 webkitBorderTopLeftRadius: string;
6488 webkitBorderTopRightRadius: string;
6489 webkitBoxAlign: string;
6490 webkitBoxDirection: string;
6491 webkitBoxFlex: string;
6492 webkitBoxOrdinalGroup: string;
6493 webkitBoxOrient: string;
6494 webkitBoxPack: string;
6495 webkitBoxSizing: string;
6496 webkitColumnBreakAfter: string;
6497 webkitColumnBreakBefore: string;
6498 webkitColumnBreakInside: string;
6499 webkitColumnCount: any;
6500 webkitColumnGap: any;
6501 webkitColumnRule: string;
6502 webkitColumnRuleColor: any;
6503 webkitColumnRuleStyle: string;
6504 webkitColumnRuleWidth: any;
6505 webkitColumnSpan: string;
6506 webkitColumnWidth: any;
6507 webkitColumns: string;
6508 webkitFilter: string;
6509 webkitFlex: string;
6510 webkitFlexBasis: string;
6511 webkitFlexDirection: string;
6512 webkitFlexFlow: string;
6513 webkitFlexGrow: string;
6514 webkitFlexShrink: string;
6515 webkitFlexWrap: string;
6516 webkitJustifyContent: string;
6517 webkitOrder: string;
6518 webkitPerspective: string;
6519 webkitPerspectiveOrigin: string;
6520 webkitTapHighlightColor: string;
6521 webkitTextFillColor: string;
6522 webkitTextSizeAdjust: any;
6523 webkitTransform: string;
6524 webkitTransformOrigin: string;
6525 webkitTransformStyle: string;
6526 webkitTransition: string;
6527 webkitTransitionDelay: string;
6528 webkitTransitionDuration: string;
6529 webkitTransitionProperty: string;
6530 webkitTransitionTimingFunction: string;
6531 webkitUserSelect: string;
6532 webkitWritingMode: string;
6533 whiteSpace: string;
6534 widows: string;
6535 width: string;
6536 wordBreak: string;
6537 wordSpacing: string;
6538 wordWrap: string;
6539 writingMode: string;
6540 zIndex: string;
6541 zoom: string;
6542 getPropertyPriority(propertyName: string): string;
6543 getPropertyValue(propertyName: string): string;
6544 item(index: number): string;
6545 removeProperty(propertyName: string): string;
6546 setProperty(propertyName: string, value: string, priority?: string): void;
6547 [index: number]: string;
6548}
6549
6550declare var CSSStyleDeclaration: {
6551 prototype: CSSStyleDeclaration;
6552 new(): CSSStyleDeclaration;
6553}
6554
6555interface CSSStyleRule extends CSSRule {
6556 readOnly: boolean;
6557 selectorText: string;
6558 style: CSSStyleDeclaration;
6559}
6560
6561declare var CSSStyleRule: {
6562 prototype: CSSStyleRule;
6563 new(): CSSStyleRule;
6564}
6565
6566interface CSSStyleSheet extends StyleSheet {
6567 cssRules: CSSRuleList;
6568 cssText: string;
6569 href: string;
6570 id: string;
6571 imports: StyleSheetList;
6572 isAlternate: boolean;
6573 isPrefAlternate: boolean;
6574 ownerRule: CSSRule;
6575 owningElement: Element;
6576 pages: StyleSheetPageList;
6577 readOnly: boolean;
6578 rules: CSSRuleList;
6579 addImport(bstrURL: string, lIndex?: number): number;
6580 addPageRule(bstrSelector: string, bstrStyle: string, lIndex?: number): number;
6581 addRule(bstrSelector: string, bstrStyle?: string, lIndex?: number): number;
6582 deleteRule(index?: number): void;
6583 insertRule(rule: string, index?: number): number;
6584 removeImport(lIndex: number): void;
6585 removeRule(lIndex: number): void;
6586}
6587
6588declare var CSSStyleSheet: {
6589 prototype: CSSStyleSheet;
6590 new(): CSSStyleSheet;
6591}
6592
6593interface CSSSupportsRule extends CSSConditionRule {
6594}
6595
6596declare var CSSSupportsRule: {
6597 prototype: CSSSupportsRule;
6598 new(): CSSSupportsRule;
6599}
6600
6601interface CanvasGradient {
6602 addColorStop(offset: number, color: string): void;
6603}
6604
6605declare var CanvasGradient: {
6606 prototype: CanvasGradient;
6607 new(): CanvasGradient;
6608}
6609
6610interface CanvasPattern {
6611}
6612
6613declare var CanvasPattern: {
6614 prototype: CanvasPattern;
6615 new(): CanvasPattern;
6616}
6617
6618interface CanvasRenderingContext2D {
6619 canvas: HTMLCanvasElement;
6620 fillStyle: string | CanvasGradient | CanvasPattern;
6621 font: string;
6622 globalAlpha: number;
6623 globalCompositeOperation: string;
6624 lineCap: string;
6625 lineDashOffset: number;
6626 lineJoin: string;
6627 lineWidth: number;
6628 miterLimit: number;
6629 msFillRule: string;
6630 msImageSmoothingEnabled: boolean;
6631 shadowBlur: number;
6632 shadowColor: string;
6633 shadowOffsetX: number;
6634 shadowOffsetY: number;
6635 strokeStyle: string | CanvasGradient | CanvasPattern;
6636 textAlign: string;
6637 textBaseline: string;
6638 arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, anticlockwise?: boolean): void;
6639 arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;
6640 beginPath(): void;
6641 bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;
6642 clearRect(x: number, y: number, w: number, h: number): void;
6643 clip(fillRule?: string): void;
6644 closePath(): void;
6645 createImageData(imageDataOrSw: number | ImageData, sh?: number): ImageData;
6646 createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;
6647 createPattern(image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement, repetition: string): CanvasPattern;
6648 createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;
6649 drawImage(image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement, offsetX: number, offsetY: number, width?: number, height?: number, canvasOffsetX?: number, canvasOffsetY?: number, canvasImageWidth?: number, canvasImageHeight?: number): void;
6650 fill(fillRule?: string): void;
6651 fillRect(x: number, y: number, w: number, h: number): void;
6652 fillText(text: string, x: number, y: number, maxWidth?: number): void;
6653 getImageData(sx: number, sy: number, sw: number, sh: number): ImageData;
6654 getLineDash(): number[];
6655 isPointInPath(x: number, y: number, fillRule?: string): boolean;
6656 lineTo(x: number, y: number): void;
6657 measureText(text: string): TextMetrics;
6658 moveTo(x: number, y: number): void;
6659 putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX?: number, dirtyY?: number, dirtyWidth?: number, dirtyHeight?: number): void;
6660 quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
6661 rect(x: number, y: number, w: number, h: number): void;
6662 restore(): void;
6663 rotate(angle: number): void;
6664 save(): void;
6665 scale(x: number, y: number): void;
6666 setLineDash(segments: number[]): void;
6667 setTransform(m11: number, m12: number, m21: number, m22: number, dx: number, dy: number): void;
6668 stroke(): void;
6669 strokeRect(x: number, y: number, w: number, h: number): void;
6670 strokeText(text: string, x: number, y: number, maxWidth?: number): void;
6671 transform(m11: number, m12: number, m21: number, m22: number, dx: number, dy: number): void;
6672 translate(x: number, y: number): void;
6673}
6674
6675declare var CanvasRenderingContext2D: {
6676 prototype: CanvasRenderingContext2D;
6677 new(): CanvasRenderingContext2D;
6678}
6679
6680interface ChannelMergerNode extends AudioNode {
6681}
6682
6683declare var ChannelMergerNode: {
6684 prototype: ChannelMergerNode;
6685 new(): ChannelMergerNode;
6686}
6687
6688interface ChannelSplitterNode extends AudioNode {
6689}
6690
6691declare var ChannelSplitterNode: {
6692 prototype: ChannelSplitterNode;
6693 new(): ChannelSplitterNode;
6694}
6695
6696interface CharacterData extends Node, ChildNode {
6697 data: string;
6698 length: number;
6699 appendData(arg: string): void;
6700 deleteData(offset: number, count: number): void;
6701 insertData(offset: number, arg: string): void;
6702 replaceData(offset: number, count: number, arg: string): void;
6703 substringData(offset: number, count: number): string;
6704 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
6705}
6706
6707declare var CharacterData: {
6708 prototype: CharacterData;
6709 new(): CharacterData;
6710}
6711
6712interface ClientRect {
6713 bottom: number;
6714 height: number;
6715 left: number;
6716 right: number;
6717 top: number;
6718 width: number;
6719}
6720
6721declare var ClientRect: {
6722 prototype: ClientRect;
6723 new(): ClientRect;
6724}
6725
6726interface ClientRectList {
6727 length: number;
6728 item(index: number): ClientRect;
6729 [index: number]: ClientRect;
6730}
6731
6732declare var ClientRectList: {
6733 prototype: ClientRectList;
6734 new(): ClientRectList;
6735}
6736
6737interface ClipboardEvent extends Event {
6738 clipboardData: DataTransfer;
6739}
6740
6741declare var ClipboardEvent: {
6742 prototype: ClipboardEvent;
6743 new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent;
6744}
6745
6746interface CloseEvent extends Event {
6747 code: number;
6748 reason: string;
6749 wasClean: boolean;
6750 initCloseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, wasCleanArg: boolean, codeArg: number, reasonArg: string): void;
6751}
6752
6753declare var CloseEvent: {
6754 prototype: CloseEvent;
6755 new(): CloseEvent;
6756}
6757
6758interface CommandEvent extends Event {
6759 commandName: string;
6760 detail: string;
6761}
6762
6763declare var CommandEvent: {
6764 prototype: CommandEvent;
6765 new(type: string, eventInitDict?: CommandEventInit): CommandEvent;
6766}
6767
6768interface Comment extends CharacterData {
6769 text: string;
6770}
6771
6772declare var Comment: {
6773 prototype: Comment;
6774 new(): Comment;
6775}
6776
6777interface CompositionEvent extends UIEvent {
6778 data: string;
6779 locale: string;
6780 initCompositionEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, dataArg: string, locale: string): void;
6781}
6782
6783declare var CompositionEvent: {
6784 prototype: CompositionEvent;
6785 new(typeArg: string, eventInitDict?: CompositionEventInit): CompositionEvent;
6786}
6787
6788interface Console {
6789 assert(test?: boolean, message?: string, ...optionalParams: any[]): void;
6790 clear(): void;
6791 count(countTitle?: string): void;
6792 debug(message?: string, ...optionalParams: any[]): void;
6793 dir(value?: any, ...optionalParams: any[]): void;
6794 dirxml(value: any): void;
6795 error(message?: any, ...optionalParams: any[]): void;
6796 group(groupTitle?: string): void;
6797 groupCollapsed(groupTitle?: string): void;
6798 groupEnd(): void;
6799 info(message?: any, ...optionalParams: any[]): void;
6800 log(message?: any, ...optionalParams: any[]): void;
6801 msIsIndependentlyComposed(element: Element): boolean;
6802 profile(reportName?: string): void;
6803 profileEnd(): void;
6804 select(element: Element): void;
6805 time(timerName?: string): void;
6806 timeEnd(timerName?: string): void;
6807 trace(message?: any, ...optionalParams: any[]): void;
6808 warn(message?: any, ...optionalParams: any[]): void;
6809}
6810
6811declare var Console: {
6812 prototype: Console;
6813 new(): Console;
6814}
6815
6816interface ConvolverNode extends AudioNode {
6817 buffer: AudioBuffer;
6818 normalize: boolean;
6819}
6820
6821declare var ConvolverNode: {
6822 prototype: ConvolverNode;
6823 new(): ConvolverNode;
6824}
6825
6826interface Coordinates {
6827 accuracy: number;
6828 altitude: number;
6829 altitudeAccuracy: number;
6830 heading: number;
6831 latitude: number;
6832 longitude: number;
6833 speed: number;
6834}
6835
6836declare var Coordinates: {
6837 prototype: Coordinates;
6838 new(): Coordinates;
6839}
6840
6841interface Crypto extends Object, RandomSource {
6842 subtle: SubtleCrypto;
6843}
6844
6845declare var Crypto: {
6846 prototype: Crypto;
6847 new(): Crypto;
6848}
6849
6850interface CryptoKey {
6851 algorithm: KeyAlgorithm;
6852 extractable: boolean;
6853 type: string;
6854 usages: string[];
6855}
6856
6857declare var CryptoKey: {
6858 prototype: CryptoKey;
6859 new(): CryptoKey;
6860}
6861
6862interface CryptoKeyPair {
6863 privateKey: CryptoKey;
6864 publicKey: CryptoKey;
6865}
6866
6867declare var CryptoKeyPair: {
6868 prototype: CryptoKeyPair;
6869 new(): CryptoKeyPair;
6870}
6871
6872interface CustomEvent extends Event {
6873 detail: any;
6874 initCustomEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, detailArg: any): void;
6875}
6876
6877declare var CustomEvent: {
6878 prototype: CustomEvent;
6879 new(typeArg: string, eventInitDict?: CustomEventInit): CustomEvent;
6880}
6881
6882interface DOMError {
6883 name: string;
6884 toString(): string;
6885}
6886
6887declare var DOMError: {
6888 prototype: DOMError;
6889 new(): DOMError;
6890}
6891
6892interface DOMException {
6893 code: number;
6894 message: string;
6895 name: string;
6896 toString(): string;
6897 ABORT_ERR: number;
6898 DATA_CLONE_ERR: number;
6899 DOMSTRING_SIZE_ERR: number;
6900 HIERARCHY_REQUEST_ERR: number;
6901 INDEX_SIZE_ERR: number;
6902 INUSE_ATTRIBUTE_ERR: number;
6903 INVALID_ACCESS_ERR: number;
6904 INVALID_CHARACTER_ERR: number;
6905 INVALID_MODIFICATION_ERR: number;
6906 INVALID_NODE_TYPE_ERR: number;
6907 INVALID_STATE_ERR: number;
6908 NAMESPACE_ERR: number;
6909 NETWORK_ERR: number;
6910 NOT_FOUND_ERR: number;
6911 NOT_SUPPORTED_ERR: number;
6912 NO_DATA_ALLOWED_ERR: number;
6913 NO_MODIFICATION_ALLOWED_ERR: number;
6914 PARSE_ERR: number;
6915 QUOTA_EXCEEDED_ERR: number;
6916 SECURITY_ERR: number;
6917 SERIALIZE_ERR: number;
6918 SYNTAX_ERR: number;
6919 TIMEOUT_ERR: number;
6920 TYPE_MISMATCH_ERR: number;
6921 URL_MISMATCH_ERR: number;
6922 VALIDATION_ERR: number;
6923 WRONG_DOCUMENT_ERR: number;
6924}
6925
6926declare var DOMException: {
6927 prototype: DOMException;
6928 new(): DOMException;
6929 ABORT_ERR: number;
6930 DATA_CLONE_ERR: number;
6931 DOMSTRING_SIZE_ERR: number;
6932 HIERARCHY_REQUEST_ERR: number;
6933 INDEX_SIZE_ERR: number;
6934 INUSE_ATTRIBUTE_ERR: number;
6935 INVALID_ACCESS_ERR: number;
6936 INVALID_CHARACTER_ERR: number;
6937 INVALID_MODIFICATION_ERR: number;
6938 INVALID_NODE_TYPE_ERR: number;
6939 INVALID_STATE_ERR: number;
6940 NAMESPACE_ERR: number;
6941 NETWORK_ERR: number;
6942 NOT_FOUND_ERR: number;
6943 NOT_SUPPORTED_ERR: number;
6944 NO_DATA_ALLOWED_ERR: number;
6945 NO_MODIFICATION_ALLOWED_ERR: number;
6946 PARSE_ERR: number;
6947 QUOTA_EXCEEDED_ERR: number;
6948 SECURITY_ERR: number;
6949 SERIALIZE_ERR: number;
6950 SYNTAX_ERR: number;
6951 TIMEOUT_ERR: number;
6952 TYPE_MISMATCH_ERR: number;
6953 URL_MISMATCH_ERR: number;
6954 VALIDATION_ERR: number;
6955 WRONG_DOCUMENT_ERR: number;
6956}
6957
6958interface DOMImplementation {
6959 createDocument(namespaceURI: string, qualifiedName: string, doctype: DocumentType): Document;
6960 createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType;
6961 createHTMLDocument(title: string): Document;
6962 hasFeature(feature: string, version: string): boolean;
6963}
6964
6965declare var DOMImplementation: {
6966 prototype: DOMImplementation;
6967 new(): DOMImplementation;
6968}
6969
6970interface DOMParser {
6971 parseFromString(source: string, mimeType: string): Document;
6972}
6973
6974declare var DOMParser: {
6975 prototype: DOMParser;
6976 new(): DOMParser;
6977}
6978
6979interface DOMSettableTokenList extends DOMTokenList {
6980 value: string;
6981}
6982
6983declare var DOMSettableTokenList: {
6984 prototype: DOMSettableTokenList;
6985 new(): DOMSettableTokenList;
6986}
6987
6988interface DOMStringList {
6989 length: number;
6990 contains(str: string): boolean;
6991 item(index: number): string;
6992 [index: number]: string;
6993}
6994
6995declare var DOMStringList: {
6996 prototype: DOMStringList;
6997 new(): DOMStringList;
6998}
6999
7000interface DOMStringMap {
7001 [name: string]: string;
7002}
7003
7004declare var DOMStringMap: {
7005 prototype: DOMStringMap;
7006 new(): DOMStringMap;
7007}
7008
7009interface DOMTokenList {
7010 length: number;
7011 add(...token: string[]): void;
7012 contains(token: string): boolean;
7013 item(index: number): string;
7014 remove(...token: string[]): void;
7015 toString(): string;
7016 toggle(token: string, force?: boolean): boolean;
7017 [index: number]: string;
7018}
7019
7020declare var DOMTokenList: {
7021 prototype: DOMTokenList;
7022 new(): DOMTokenList;
7023}
7024
7025interface DataCue extends TextTrackCue {
7026 data: ArrayBuffer;
7027}
7028
7029declare var DataCue: {
7030 prototype: DataCue;
7031 new(): DataCue;
7032}
7033
7034interface DataTransfer {
7035 dropEffect: string;
7036 effectAllowed: string;
7037 files: FileList;
7038 items: DataTransferItemList;
7039 types: DOMStringList;
7040 clearData(format?: string): boolean;
7041 getData(format: string): string;
7042 setData(format: string, data: string): boolean;
7043}
7044
7045declare var DataTransfer: {
7046 prototype: DataTransfer;
7047 new(): DataTransfer;
7048}
7049
7050interface DataTransferItem {
7051 kind: string;
7052 type: string;
7053 getAsFile(): File;
7054 getAsString(_callback: FunctionStringCallback): void;
7055}
7056
7057declare var DataTransferItem: {
7058 prototype: DataTransferItem;
7059 new(): DataTransferItem;
7060}
7061
7062interface DataTransferItemList {
7063 length: number;
7064 add(data: File): DataTransferItem;
7065 clear(): void;
7066 item(index: number): DataTransferItem;
7067 remove(index: number): void;
7068 [index: number]: DataTransferItem;
7069}
7070
7071declare var DataTransferItemList: {
7072 prototype: DataTransferItemList;
7073 new(): DataTransferItemList;
7074}
7075
7076interface DeferredPermissionRequest {
7077 id: number;
7078 type: string;
7079 uri: string;
7080 allow(): void;
7081 deny(): void;
7082}
7083
7084declare var DeferredPermissionRequest: {
7085 prototype: DeferredPermissionRequest;
7086 new(): DeferredPermissionRequest;
7087}
7088
7089interface DelayNode extends AudioNode {
7090 delayTime: AudioParam;
7091}
7092
7093declare var DelayNode: {
7094 prototype: DelayNode;
7095 new(): DelayNode;
7096}
7097
7098interface DeviceAcceleration {
7099 x: number;
7100 y: number;
7101 z: number;
7102}
7103
7104declare var DeviceAcceleration: {
7105 prototype: DeviceAcceleration;
7106 new(): DeviceAcceleration;
7107}
7108
7109interface DeviceMotionEvent extends Event {
7110 acceleration: DeviceAcceleration;
7111 accelerationIncludingGravity: DeviceAcceleration;
7112 interval: number;
7113 rotationRate: DeviceRotationRate;
7114 initDeviceMotionEvent(type: string, bubbles: boolean, cancelable: boolean, acceleration: DeviceAccelerationDict, accelerationIncludingGravity: DeviceAccelerationDict, rotationRate: DeviceRotationRateDict, interval: number): void;
7115}
7116
7117declare var DeviceMotionEvent: {
7118 prototype: DeviceMotionEvent;
7119 new(): DeviceMotionEvent;
7120}
7121
7122interface DeviceOrientationEvent extends Event {
7123 absolute: boolean;
7124 alpha: number;
7125 beta: number;
7126 gamma: number;
7127 initDeviceOrientationEvent(type: string, bubbles: boolean, cancelable: boolean, alpha: number, beta: number, gamma: number, absolute: boolean): void;
7128}
7129
7130declare var DeviceOrientationEvent: {
7131 prototype: DeviceOrientationEvent;
7132 new(): DeviceOrientationEvent;
7133}
7134
7135interface DeviceRotationRate {
7136 alpha: number;
7137 beta: number;
7138 gamma: number;
7139}
7140
7141declare var DeviceRotationRate: {
7142 prototype: DeviceRotationRate;
7143 new(): DeviceRotationRate;
7144}
7145
7146interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEvent {
7147 /**
7148 * Sets or gets the URL for the current document.
7149 */
7150 URL: string;
7151 /**
7152 * Gets the URL for the document, stripped of any character encoding.
7153 */
7154 URLUnencoded: string;
7155 /**
7156 * Gets the object that has the focus when the parent document has focus.
7157 */
7158 activeElement: Element;
7159 /**
7160 * Sets or gets the color of all active links in the document.
7161 */
7162 alinkColor: string;
7163 /**
7164 * Returns a reference to the collection of elements contained by the object.
7165 */
7166 all: HTMLCollection;
7167 /**
7168 * Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order.
7169 */
7170 anchors: HTMLCollection;
7171 /**
7172 * Retrieves a collection of all applet objects in the document.
7173 */
7174 applets: HTMLCollection;
7175 /**
7176 * Deprecated. Sets or retrieves a value that indicates the background color behind the object.
7177 */
7178 bgColor: string;
7179 /**
7180 * Specifies the beginning and end of the document body.
7181 */
7182 body: HTMLElement;
7183 characterSet: string;
7184 /**
7185 * Gets or sets the character set used to encode the object.
7186 */
7187 charset: string;
7188 /**
7189 * Gets a value that indicates whether standards-compliant mode is switched on for the object.
7190 */
7191 compatMode: string;
7192 cookie: string;
7193 /**
7194 * Gets the default character set from the current regional language settings.
7195 */
7196 defaultCharset: string;
7197 defaultView: Window;
7198 /**
7199 * Sets or gets a value that indicates whether the document can be edited.
7200 */
7201 designMode: string;
7202 /**
7203 * Sets or retrieves a value that indicates the reading order of the object.
7204 */
7205 dir: string;
7206 /**
7207 * Gets an object representing the document type declaration associated with the current document.
7208 */
7209 doctype: DocumentType;
7210 /**
7211 * Gets a reference to the root node of the document.
7212 */
7213 documentElement: HTMLElement;
7214 /**
7215 * Sets or gets the security domain of the document.
7216 */
7217 domain: string;
7218 /**
7219 * Retrieves a collection of all embed objects in the document.
7220 */
7221 embeds: HTMLCollection;
7222 /**
7223 * Sets or gets the foreground (text) color of the document.
7224 */
7225 fgColor: string;
7226 /**
7227 * Retrieves a collection, in source order, of all form objects in the document.
7228 */
7229 forms: HTMLCollection;
7230 fullscreenElement: Element;
7231 fullscreenEnabled: boolean;
7232 head: HTMLHeadElement;
7233 hidden: boolean;
7234 /**
7235 * Retrieves a collection, in source order, of img objects in the document.
7236 */
7237 images: HTMLCollection;
7238 /**
7239 * Gets the implementation object of the current document.
7240 */
7241 implementation: DOMImplementation;
7242 /**
7243 * Returns the character encoding used to create the webpage that is loaded into the document object.
7244 */
7245 inputEncoding: string;
7246 /**
7247 * Gets the date that the page was last modified, if the page supplies one.
7248 */
7249 lastModified: string;
7250 /**
7251 * Sets or gets the color of the document links.
7252 */
7253 linkColor: string;
7254 /**
7255 * Retrieves a collection of all a objects that specify the href property and all area objects in the document.
7256 */
7257 links: HTMLCollection;
7258 /**
7259 * Contains information about the current URL.
7260 */
7261 location: Location;
7262 media: string;
7263 msCSSOMElementFloatMetrics: boolean;
7264 msCapsLockWarningOff: boolean;
7265 msHidden: boolean;
7266 msVisibilityState: string;
7267 /**
7268 * Fires when the user aborts the download.
7269 * @param ev The event.
7270 */
7271 onabort: (ev: Event) => any;
7272 /**
7273 * Fires when the object is set as the active element.
7274 * @param ev The event.
7275 */
7276 onactivate: (ev: UIEvent) => any;
7277 /**
7278 * Fires immediately before the object is set as the active element.
7279 * @param ev The event.
7280 */
7281 onbeforeactivate: (ev: UIEvent) => any;
7282 /**
7283 * Fires immediately before the activeElement is changed from the current object to another object in the parent document.
7284 * @param ev The event.
7285 */
7286 onbeforedeactivate: (ev: UIEvent) => any;
7287 /**
7288 * Fires when the object loses the input focus.
7289 * @param ev The focus event.
7290 */
7291 onblur: (ev: FocusEvent) => any;
7292 /**
7293 * Occurs when playback is possible, but would require further buffering.
7294 * @param ev The event.
7295 */
7296 oncanplay: (ev: Event) => any;
7297 oncanplaythrough: (ev: Event) => any;
7298 /**
7299 * Fires when the contents of the object or selection have changed.
7300 * @param ev The event.
7301 */
7302 onchange: (ev: Event) => any;
7303 /**
7304 * Fires when the user clicks the left mouse button on the object
7305 * @param ev The mouse event.
7306 */
7307 onclick: (ev: MouseEvent) => any;
7308 /**
7309 * Fires when the user clicks the right mouse button in the client area, opening the context menu.
7310 * @param ev The mouse event.
7311 */
7312 oncontextmenu: (ev: PointerEvent) => any;
7313 /**
7314 * Fires when the user double-clicks the object.
7315 * @param ev The mouse event.
7316 */
7317 ondblclick: (ev: MouseEvent) => any;
7318 /**
7319 * Fires when the activeElement is changed from the current object to another object in the parent document.
7320 * @param ev The UI Event
7321 */
7322 ondeactivate: (ev: UIEvent) => any;
7323 /**
7324 * Fires on the source object continuously during a drag operation.
7325 * @param ev The event.
7326 */
7327 ondrag: (ev: DragEvent) => any;
7328 /**
7329 * Fires on the source object when the user releases the mouse at the close of a drag operation.
7330 * @param ev The event.
7331 */
7332 ondragend: (ev: DragEvent) => any;
7333 /**
7334 * Fires on the target element when the user drags the object to a valid drop target.
7335 * @param ev The drag event.
7336 */
7337 ondragenter: (ev: DragEvent) => any;
7338 /**
7339 * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
7340 * @param ev The drag event.
7341 */
7342 ondragleave: (ev: DragEvent) => any;
7343 /**
7344 * Fires on the target element continuously while the user drags the object over a valid drop target.
7345 * @param ev The event.
7346 */
7347 ondragover: (ev: DragEvent) => any;
7348 /**
7349 * Fires on the source object when the user starts to drag a text selection or selected object.
7350 * @param ev The event.
7351 */
7352 ondragstart: (ev: DragEvent) => any;
7353 ondrop: (ev: DragEvent) => any;
7354 /**
7355 * Occurs when the duration attribute is updated.
7356 * @param ev The event.
7357 */
7358 ondurationchange: (ev: Event) => any;
7359 /**
7360 * Occurs when the media element is reset to its initial state.
7361 * @param ev The event.
7362 */
7363 onemptied: (ev: Event) => any;
7364 /**
7365 * Occurs when the end of playback is reached.
7366 * @param ev The event
7367 */
7368 onended: (ev: Event) => any;
7369 /**
7370 * Fires when an error occurs during object loading.
7371 * @param ev The event.
7372 */
7373 onerror: (ev: Event) => any;
7374 /**
7375 * Fires when the object receives focus.
7376 * @param ev The event.
7377 */
7378 onfocus: (ev: FocusEvent) => any;
7379 onfullscreenchange: (ev: Event) => any;
7380 onfullscreenerror: (ev: Event) => any;
7381 oninput: (ev: Event) => any;
7382 /**
7383 * Fires when the user presses a key.
7384 * @param ev The keyboard event
7385 */
7386 onkeydown: (ev: KeyboardEvent) => any;
7387 /**
7388 * Fires when the user presses an alphanumeric key.
7389 * @param ev The event.
7390 */
7391 onkeypress: (ev: KeyboardEvent) => any;
7392 /**
7393 * Fires when the user releases a key.
7394 * @param ev The keyboard event
7395 */
7396 onkeyup: (ev: KeyboardEvent) => any;
7397 /**
7398 * Fires immediately after the browser loads the object.
7399 * @param ev The event.
7400 */
7401 onload: (ev: Event) => any;
7402 /**
7403 * Occurs when media data is loaded at the current playback position.
7404 * @param ev The event.
7405 */
7406 onloadeddata: (ev: Event) => any;
7407 /**
7408 * Occurs when the duration and dimensions of the media have been determined.
7409 * @param ev The event.
7410 */
7411 onloadedmetadata: (ev: Event) => any;
7412 /**
7413 * Occurs when Internet Explorer begins looking for media data.
7414 * @param ev The event.
7415 */
7416 onloadstart: (ev: Event) => any;
7417 /**
7418 * Fires when the user clicks the object with either mouse button.
7419 * @param ev The mouse event.
7420 */
7421 onmousedown: (ev: MouseEvent) => any;
7422 /**
7423 * Fires when the user moves the mouse over the object.
7424 * @param ev The mouse event.
7425 */
7426 onmousemove: (ev: MouseEvent) => any;
7427 /**
7428 * Fires when the user moves the mouse pointer outside the boundaries of the object.
7429 * @param ev The mouse event.
7430 */
7431 onmouseout: (ev: MouseEvent) => any;
7432 /**
7433 * Fires when the user moves the mouse pointer into the object.
7434 * @param ev The mouse event.
7435 */
7436 onmouseover: (ev: MouseEvent) => any;
7437 /**
7438 * Fires when the user releases a mouse button while the mouse is over the object.
7439 * @param ev The mouse event.
7440 */
7441 onmouseup: (ev: MouseEvent) => any;
7442 /**
7443 * Fires when the wheel button is rotated.
7444 * @param ev The mouse event
7445 */
7446 onmousewheel: (ev: MouseWheelEvent) => any;
7447 onmscontentzoom: (ev: UIEvent) => any;
7448 onmsgesturechange: (ev: MSGestureEvent) => any;
7449 onmsgesturedoubletap: (ev: MSGestureEvent) => any;
7450 onmsgestureend: (ev: MSGestureEvent) => any;
7451 onmsgesturehold: (ev: MSGestureEvent) => any;
7452 onmsgesturestart: (ev: MSGestureEvent) => any;
7453 onmsgesturetap: (ev: MSGestureEvent) => any;
7454 onmsinertiastart: (ev: MSGestureEvent) => any;
7455 onmsmanipulationstatechanged: (ev: MSManipulationEvent) => any;
7456 onmspointercancel: (ev: MSPointerEvent) => any;
7457 onmspointerdown: (ev: MSPointerEvent) => any;
7458 onmspointerenter: (ev: MSPointerEvent) => any;
7459 onmspointerleave: (ev: MSPointerEvent) => any;
7460 onmspointermove: (ev: MSPointerEvent) => any;
7461 onmspointerout: (ev: MSPointerEvent) => any;
7462 onmspointerover: (ev: MSPointerEvent) => any;
7463 onmspointerup: (ev: MSPointerEvent) => any;
7464 /**
7465 * Occurs when an item is removed from a Jump List of a webpage running in Site Mode.
7466 * @param ev The event.
7467 */
7468 onmssitemodejumplistitemremoved: (ev: MSSiteModeEvent) => any;
7469 /**
7470 * Occurs when a user clicks a button in a Thumbnail Toolbar of a webpage running in Site Mode.
7471 * @param ev The event.
7472 */
7473 onmsthumbnailclick: (ev: MSSiteModeEvent) => any;
7474 /**
7475 * Occurs when playback is paused.
7476 * @param ev The event.
7477 */
7478 onpause: (ev: Event) => any;
7479 /**
7480 * Occurs when the play method is requested.
7481 * @param ev The event.
7482 */
7483 onplay: (ev: Event) => any;
7484 /**
7485 * Occurs when the audio or video has started playing.
7486 * @param ev The event.
7487 */
7488 onplaying: (ev: Event) => any;
7489 onpointerlockchange: (ev: Event) => any;
7490 onpointerlockerror: (ev: Event) => any;
7491 /**
7492 * Occurs to indicate progress while downloading media data.
7493 * @param ev The event.
7494 */
7495 onprogress: (ev: ProgressEvent) => any;
7496 /**
7497 * Occurs when the playback rate is increased or decreased.
7498 * @param ev The event.
7499 */
7500 onratechange: (ev: Event) => any;
7501 /**
7502 * Fires when the state of the object has changed.
7503 * @param ev The event
7504 */
7505 onreadystatechange: (ev: ProgressEvent) => any;
7506 /**
7507 * Fires when the user resets a form.
7508 * @param ev The event.
7509 */
7510 onreset: (ev: Event) => any;
7511 /**
7512 * Fires when the user repositions the scroll box in the scroll bar on the object.
7513 * @param ev The event.
7514 */
7515 onscroll: (ev: UIEvent) => any;
7516 /**
7517 * Occurs when the seek operation ends.
7518 * @param ev The event.
7519 */
7520 onseeked: (ev: Event) => any;
7521 /**
7522 * Occurs when the current playback position is moved.
7523 * @param ev The event.
7524 */
7525 onseeking: (ev: Event) => any;
7526 /**
7527 * Fires when the current selection changes.
7528 * @param ev The event.
7529 */
7530 onselect: (ev: UIEvent) => any;
7531 onselectstart: (ev: Event) => any;
7532 /**
7533 * Occurs when the download has stopped.
7534 * @param ev The event.
7535 */
7536 onstalled: (ev: Event) => any;
7537 /**
7538 * Fires when the user clicks the Stop button or leaves the Web page.
7539 * @param ev The event.
7540 */
7541 onstop: (ev: Event) => any;
7542 onsubmit: (ev: Event) => any;
7543 /**
7544 * Occurs if the load operation has been intentionally halted.
7545 * @param ev The event.
7546 */
7547 onsuspend: (ev: Event) => any;
7548 /**
7549 * Occurs to indicate the current playback position.
7550 * @param ev The event.
7551 */
7552 ontimeupdate: (ev: Event) => any;
7553 ontouchcancel: (ev: TouchEvent) => any;
7554 ontouchend: (ev: TouchEvent) => any;
7555 ontouchmove: (ev: TouchEvent) => any;
7556 ontouchstart: (ev: TouchEvent) => any;
7557 /**
7558 * Occurs when the volume is changed, or playback is muted or unmuted.
7559 * @param ev The event.
7560 */
7561 onvolumechange: (ev: Event) => any;
7562 /**
7563 * Occurs when playback stops because the next frame of a video resource is not available.
7564 * @param ev The event.
7565 */
7566 onwaiting: (ev: Event) => any;
7567 onwebkitfullscreenchange: (ev: Event) => any;
7568 onwebkitfullscreenerror: (ev: Event) => any;
7569 plugins: HTMLCollection;
7570 pointerLockElement: Element;
7571 /**
7572 * Retrieves a value that indicates the current state of the object.
7573 */
7574 readyState: string;
7575 /**
7576 * Gets the URL of the location that referred the user to the current page.
7577 */
7578 referrer: string;
7579 /**
7580 * Gets the root svg element in the document hierarchy.
7581 */
7582 rootElement: SVGSVGElement;
7583 /**
7584 * Retrieves a collection of all script objects in the document.
7585 */
7586 scripts: HTMLCollection;
7587 security: string;
7588 /**
7589 * Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document.
7590 */
7591 styleSheets: StyleSheetList;
7592 /**
7593 * Contains the title of the document.
7594 */
7595 title: string;
7596 visibilityState: string;
7597 /**
7598 * Sets or gets the color of the links that the user has visited.
7599 */
7600 vlinkColor: string;
7601 webkitCurrentFullScreenElement: Element;
7602 webkitFullscreenElement: Element;
7603 webkitFullscreenEnabled: boolean;
7604 webkitIsFullScreen: boolean;
7605 xmlEncoding: string;
7606 xmlStandalone: boolean;
7607 /**
7608 * Gets or sets the version attribute specified in the declaration of an XML document.
7609 */
7610 xmlVersion: string;
7611 currentScript: HTMLScriptElement;
7612 adoptNode(source: Node): Node;
7613 captureEvents(): void;
7614 clear(): void;
7615 /**
7616 * Closes an output stream and forces the sent data to display.
7617 */
7618 close(): void;
7619 /**
7620 * Creates an attribute object with a specified name.
7621 * @param name String that sets the attribute object's name.
7622 */
7623 createAttribute(name: string): Attr;
7624 createAttributeNS(namespaceURI: string, qualifiedName: string): Attr;
7625 createCDATASection(data: string): CDATASection;
7626 /**
7627 * Creates a comment object with the specified data.
7628 * @param data Sets the comment object's data.
7629 */
7630 createComment(data: string): Comment;
7631 /**
7632 * Creates a new document.
7633 */
7634 createDocumentFragment(): DocumentFragment;
7635 /**
7636 * Creates an instance of the element for the specified tag.
7637 * @param tagName The name of an element.
7638 */
7639 createElement(tagName: "a"): HTMLAnchorElement;
7640 createElement(tagName: "abbr"): HTMLPhraseElement;
7641 createElement(tagName: "acronym"): HTMLPhraseElement;
7642 createElement(tagName: "address"): HTMLBlockElement;
7643 createElement(tagName: "applet"): HTMLAppletElement;
7644 createElement(tagName: "area"): HTMLAreaElement;
7645 createElement(tagName: "audio"): HTMLAudioElement;
7646 createElement(tagName: "b"): HTMLPhraseElement;
7647 createElement(tagName: "base"): HTMLBaseElement;
7648 createElement(tagName: "basefont"): HTMLBaseFontElement;
7649 createElement(tagName: "bdo"): HTMLPhraseElement;
7650 createElement(tagName: "big"): HTMLPhraseElement;
7651 createElement(tagName: "blockquote"): HTMLBlockElement;
7652 createElement(tagName: "body"): HTMLBodyElement;
7653 createElement(tagName: "br"): HTMLBRElement;
7654 createElement(tagName: "button"): HTMLButtonElement;
7655 createElement(tagName: "canvas"): HTMLCanvasElement;
7656 createElement(tagName: "caption"): HTMLTableCaptionElement;
7657 createElement(tagName: "center"): HTMLBlockElement;
7658 createElement(tagName: "cite"): HTMLPhraseElement;
7659 createElement(tagName: "code"): HTMLPhraseElement;
7660 createElement(tagName: "col"): HTMLTableColElement;
7661 createElement(tagName: "colgroup"): HTMLTableColElement;
7662 createElement(tagName: "datalist"): HTMLDataListElement;
7663 createElement(tagName: "dd"): HTMLDDElement;
7664 createElement(tagName: "del"): HTMLModElement;
7665 createElement(tagName: "dfn"): HTMLPhraseElement;
7666 createElement(tagName: "dir"): HTMLDirectoryElement;
7667 createElement(tagName: "div"): HTMLDivElement;
7668 createElement(tagName: "dl"): HTMLDListElement;
7669 createElement(tagName: "dt"): HTMLDTElement;
7670 createElement(tagName: "em"): HTMLPhraseElement;
7671 createElement(tagName: "embed"): HTMLEmbedElement;
7672 createElement(tagName: "fieldset"): HTMLFieldSetElement;
7673 createElement(tagName: "font"): HTMLFontElement;
7674 createElement(tagName: "form"): HTMLFormElement;
7675 createElement(tagName: "frame"): HTMLFrameElement;
7676 createElement(tagName: "frameset"): HTMLFrameSetElement;
7677 createElement(tagName: "h1"): HTMLHeadingElement;
7678 createElement(tagName: "h2"): HTMLHeadingElement;
7679 createElement(tagName: "h3"): HTMLHeadingElement;
7680 createElement(tagName: "h4"): HTMLHeadingElement;
7681 createElement(tagName: "h5"): HTMLHeadingElement;
7682 createElement(tagName: "h6"): HTMLHeadingElement;
7683 createElement(tagName: "head"): HTMLHeadElement;
7684 createElement(tagName: "hr"): HTMLHRElement;
7685 createElement(tagName: "html"): HTMLHtmlElement;
7686 createElement(tagName: "i"): HTMLPhraseElement;
7687 createElement(tagName: "iframe"): HTMLIFrameElement;
7688 createElement(tagName: "img"): HTMLImageElement;
7689 createElement(tagName: "input"): HTMLInputElement;
7690 createElement(tagName: "ins"): HTMLModElement;
7691 createElement(tagName: "isindex"): HTMLIsIndexElement;
7692 createElement(tagName: "kbd"): HTMLPhraseElement;
7693 createElement(tagName: "keygen"): HTMLBlockElement;
7694 createElement(tagName: "label"): HTMLLabelElement;
7695 createElement(tagName: "legend"): HTMLLegendElement;
7696 createElement(tagName: "li"): HTMLLIElement;
7697 createElement(tagName: "link"): HTMLLinkElement;
7698 createElement(tagName: "listing"): HTMLBlockElement;
7699 createElement(tagName: "map"): HTMLMapElement;
7700 createElement(tagName: "marquee"): HTMLMarqueeElement;
7701 createElement(tagName: "menu"): HTMLMenuElement;
7702 createElement(tagName: "meta"): HTMLMetaElement;
7703 createElement(tagName: "nextid"): HTMLNextIdElement;
7704 createElement(tagName: "nobr"): HTMLPhraseElement;
7705 createElement(tagName: "object"): HTMLObjectElement;
7706 createElement(tagName: "ol"): HTMLOListElement;
7707 createElement(tagName: "optgroup"): HTMLOptGroupElement;
7708 createElement(tagName: "option"): HTMLOptionElement;
7709 createElement(tagName: "p"): HTMLParagraphElement;
7710 createElement(tagName: "param"): HTMLParamElement;
7711 createElement(tagName: "plaintext"): HTMLBlockElement;
7712 createElement(tagName: "pre"): HTMLPreElement;
7713 createElement(tagName: "progress"): HTMLProgressElement;
7714 createElement(tagName: "q"): HTMLQuoteElement;
7715 createElement(tagName: "rt"): HTMLPhraseElement;
7716 createElement(tagName: "ruby"): HTMLPhraseElement;
7717 createElement(tagName: "s"): HTMLPhraseElement;
7718 createElement(tagName: "samp"): HTMLPhraseElement;
7719 createElement(tagName: "script"): HTMLScriptElement;
7720 createElement(tagName: "select"): HTMLSelectElement;
7721 createElement(tagName: "small"): HTMLPhraseElement;
7722 createElement(tagName: "source"): HTMLSourceElement;
7723 createElement(tagName: "span"): HTMLSpanElement;
7724 createElement(tagName: "strike"): HTMLPhraseElement;
7725 createElement(tagName: "strong"): HTMLPhraseElement;
7726 createElement(tagName: "style"): HTMLStyleElement;
7727 createElement(tagName: "sub"): HTMLPhraseElement;
7728 createElement(tagName: "sup"): HTMLPhraseElement;
7729 createElement(tagName: "table"): HTMLTableElement;
7730 createElement(tagName: "tbody"): HTMLTableSectionElement;
7731 createElement(tagName: "td"): HTMLTableDataCellElement;
7732 createElement(tagName: "textarea"): HTMLTextAreaElement;
7733 createElement(tagName: "tfoot"): HTMLTableSectionElement;
7734 createElement(tagName: "th"): HTMLTableHeaderCellElement;
7735 createElement(tagName: "thead"): HTMLTableSectionElement;
7736 createElement(tagName: "title"): HTMLTitleElement;
7737 createElement(tagName: "tr"): HTMLTableRowElement;
7738 createElement(tagName: "track"): HTMLTrackElement;
7739 createElement(tagName: "tt"): HTMLPhraseElement;
7740 createElement(tagName: "u"): HTMLPhraseElement;
7741 createElement(tagName: "ul"): HTMLUListElement;
7742 createElement(tagName: "var"): HTMLPhraseElement;
7743 createElement(tagName: "video"): HTMLVideoElement;
7744 createElement(tagName: "x-ms-webview"): MSHTMLWebViewElement;
7745 createElement(tagName: "xmp"): HTMLBlockElement;
7746 createElement(tagName: string): HTMLElement;
7747 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "a"): SVGAElement
7748 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "circle"): SVGCircleElement
7749 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "clipPath"): SVGClipPathElement
7750 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "componentTransferFunction"): SVGComponentTransferFunctionElement
7751 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "defs"): SVGDefsElement
7752 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "desc"): SVGDescElement
7753 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "ellipse"): SVGEllipseElement
7754 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feBlend"): SVGFEBlendElement
7755 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feColorMatrix"): SVGFEColorMatrixElement
7756 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feComponentTransfer"): SVGFEComponentTransferElement
7757 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feComposite"): SVGFECompositeElement
7758 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feConvolveMatrix"): SVGFEConvolveMatrixElement
7759 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feDiffuseLighting"): SVGFEDiffuseLightingElement
7760 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feDisplacementMap"): SVGFEDisplacementMapElement
7761 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feDistantLight"): SVGFEDistantLightElement
7762 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFlood"): SVGFEFloodElement
7763 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncA"): SVGFEFuncAElement
7764 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncB"): SVGFEFuncBElement
7765 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncG"): SVGFEFuncGElement
7766 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncR"): SVGFEFuncRElement
7767 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feGaussianBlur"): SVGFEGaussianBlurElement
7768 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feImage"): SVGFEImageElement
7769 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feMerge"): SVGFEMergeElement
7770 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feMergeNode"): SVGFEMergeNodeElement
7771 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feMorphology"): SVGFEMorphologyElement
7772 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feOffset"): SVGFEOffsetElement
7773 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "fePointLight"): SVGFEPointLightElement
7774 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feSpecularLighting"): SVGFESpecularLightingElement
7775 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feSpotLight"): SVGFESpotLightElement
7776 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feTile"): SVGFETileElement
7777 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feTurbulence"): SVGFETurbulenceElement
7778 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "filter"): SVGFilterElement
7779 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "foreignObject"): SVGForeignObjectElement
7780 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "g"): SVGGElement
7781 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "image"): SVGImageElement
7782 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "gradient"): SVGGradientElement
7783 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "line"): SVGLineElement
7784 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "linearGradient"): SVGLinearGradientElement
7785 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "marker"): SVGMarkerElement
7786 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "mask"): SVGMaskElement
7787 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "path"): SVGPathElement
7788 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "metadata"): SVGMetadataElement
7789 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "pattern"): SVGPatternElement
7790 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "polygon"): SVGPolygonElement
7791 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "polyline"): SVGPolylineElement
7792 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "radialGradient"): SVGRadialGradientElement
7793 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "rect"): SVGRectElement
7794 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "svg"): SVGSVGElement
7795 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "script"): SVGScriptElement
7796 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "stop"): SVGStopElement
7797 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "style"): SVGStyleElement
7798 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "switch"): SVGSwitchElement
7799 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "symbol"): SVGSymbolElement
7800 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "tspan"): SVGTSpanElement
7801 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "textContent"): SVGTextContentElement
7802 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "text"): SVGTextElement
7803 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "textPath"): SVGTextPathElement
7804 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "textPositioning"): SVGTextPositioningElement
7805 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "title"): SVGTitleElement
7806 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "use"): SVGUseElement
7807 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "view"): SVGViewElement
7808 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement
7809 createElementNS(namespaceURI: string, qualifiedName: string): Element;
7810 createExpression(expression: string, resolver: XPathNSResolver): XPathExpression;
7811 createNSResolver(nodeResolver: Node): XPathNSResolver;
7812 /**
7813 * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.
7814 * @param root The root element or node to start traversing on.
7815 * @param whatToShow The type of nodes or elements to appear in the node list
7816 * @param filter A custom NodeFilter function to use. For more information, see filter. Use null for no filter.
7817 * @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded.
7818 */
7819 createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter, entityReferenceExpansion?: boolean): NodeIterator;
7820 createProcessingInstruction(target: string, data: string): ProcessingInstruction;
7821 /**
7822 * Returns an empty range object that has both of its boundary points positioned at the beginning of the document.
7823 */
7824 createRange(): Range;
7825 /**
7826 * Creates a text string from the specified value.
7827 * @param data String that specifies the nodeValue property of the text node.
7828 */
7829 createTextNode(data: string): Text;
7830 createTouch(view: any, target: EventTarget, identifier: number, pageX: number, pageY: number, screenX: number, screenY: number): Touch;
7831 createTouchList(...touches: Touch[]): TouchList;
7832 /**
7833 * Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document.
7834 * @param root The root element or node to start traversing on.
7835 * @param whatToShow The type of nodes or elements to appear in the node list. For more information, see whatToShow.
7836 * @param filter A custom NodeFilter function to use.
7837 * @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded.
7838 */
7839 createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter, entityReferenceExpansion?: boolean): TreeWalker;
7840 /**
7841 * Returns the element for the specified x coordinate and the specified y coordinate.
7842 * @param x The x-offset
7843 * @param y The y-offset
7844 */
7845 elementFromPoint(x: number, y: number): Element;
7846 evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver, type: number, result: XPathResult): XPathResult;
7847 /**
7848 * Executes a command on the current document, current selection, or the given range.
7849 * @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script.
7850 * @param showUI Display the user interface, defaults to false.
7851 * @param value Value to assign.
7852 */
7853 execCommand(commandId: string, showUI?: boolean, value?: any): boolean;
7854 /**
7855 * Displays help information for the given command identifier.
7856 * @param commandId Displays help information for the given command identifier.
7857 */
7858 execCommandShowHelp(commandId: string): boolean;
7859 exitFullscreen(): void;
7860 exitPointerLock(): void;
7861 /**
7862 * Causes the element to receive the focus and executes the code specified by the onfocus event.
7863 */
7864 focus(): void;
7865 /**
7866 * Returns a reference to the first object with the specified value of the ID or NAME attribute.
7867 * @param elementId String that specifies the ID value. Case-insensitive.
7868 */
7869 getElementById(elementId: string): HTMLElement;
7870 getElementsByClassName(classNames: string): NodeListOf<Element>;
7871 /**
7872 * Gets a collection of objects based on the value of the NAME or ID attribute.
7873 * @param elementName Gets a collection of objects based on the value of the NAME or ID attribute.
7874 */
7875 getElementsByName(elementName: string): NodeListOf<Element>;
7876 /**
7877 * Retrieves a collection of objects based on the specified element name.
7878 * @param name Specifies the name of an element.
7879 */
7880 getElementsByTagName(tagname: "a"): NodeListOf<HTMLAnchorElement>;
7881 getElementsByTagName(tagname: "abbr"): NodeListOf<HTMLPhraseElement>;
7882 getElementsByTagName(tagname: "acronym"): NodeListOf<HTMLPhraseElement>;
7883 getElementsByTagName(tagname: "address"): NodeListOf<HTMLBlockElement>;
7884 getElementsByTagName(tagname: "applet"): NodeListOf<HTMLAppletElement>;
7885 getElementsByTagName(tagname: "area"): NodeListOf<HTMLAreaElement>;
7886 getElementsByTagName(tagname: "article"): NodeListOf<HTMLElement>;
7887 getElementsByTagName(tagname: "aside"): NodeListOf<HTMLElement>;
7888 getElementsByTagName(tagname: "audio"): NodeListOf<HTMLAudioElement>;
7889 getElementsByTagName(tagname: "b"): NodeListOf<HTMLPhraseElement>;
7890 getElementsByTagName(tagname: "base"): NodeListOf<HTMLBaseElement>;
7891 getElementsByTagName(tagname: "basefont"): NodeListOf<HTMLBaseFontElement>;
7892 getElementsByTagName(tagname: "bdo"): NodeListOf<HTMLPhraseElement>;
7893 getElementsByTagName(tagname: "big"): NodeListOf<HTMLPhraseElement>;
7894 getElementsByTagName(tagname: "blockquote"): NodeListOf<HTMLBlockElement>;
7895 getElementsByTagName(tagname: "body"): NodeListOf<HTMLBodyElement>;
7896 getElementsByTagName(tagname: "br"): NodeListOf<HTMLBRElement>;
7897 getElementsByTagName(tagname: "button"): NodeListOf<HTMLButtonElement>;
7898 getElementsByTagName(tagname: "canvas"): NodeListOf<HTMLCanvasElement>;
7899 getElementsByTagName(tagname: "caption"): NodeListOf<HTMLTableCaptionElement>;
7900 getElementsByTagName(tagname: "center"): NodeListOf<HTMLBlockElement>;
7901 getElementsByTagName(tagname: "circle"): NodeListOf<SVGCircleElement>;
7902 getElementsByTagName(tagname: "cite"): NodeListOf<HTMLPhraseElement>;
7903 getElementsByTagName(tagname: "clippath"): NodeListOf<SVGClipPathElement>;
7904 getElementsByTagName(tagname: "code"): NodeListOf<HTMLPhraseElement>;
7905 getElementsByTagName(tagname: "col"): NodeListOf<HTMLTableColElement>;
7906 getElementsByTagName(tagname: "colgroup"): NodeListOf<HTMLTableColElement>;
7907 getElementsByTagName(tagname: "datalist"): NodeListOf<HTMLDataListElement>;
7908 getElementsByTagName(tagname: "dd"): NodeListOf<HTMLDDElement>;
7909 getElementsByTagName(tagname: "defs"): NodeListOf<SVGDefsElement>;
7910 getElementsByTagName(tagname: "del"): NodeListOf<HTMLModElement>;
7911 getElementsByTagName(tagname: "desc"): NodeListOf<SVGDescElement>;
7912 getElementsByTagName(tagname: "dfn"): NodeListOf<HTMLPhraseElement>;
7913 getElementsByTagName(tagname: "dir"): NodeListOf<HTMLDirectoryElement>;
7914 getElementsByTagName(tagname: "div"): NodeListOf<HTMLDivElement>;
7915 getElementsByTagName(tagname: "dl"): NodeListOf<HTMLDListElement>;
7916 getElementsByTagName(tagname: "dt"): NodeListOf<HTMLDTElement>;
7917 getElementsByTagName(tagname: "ellipse"): NodeListOf<SVGEllipseElement>;
7918 getElementsByTagName(tagname: "em"): NodeListOf<HTMLPhraseElement>;
7919 getElementsByTagName(tagname: "embed"): NodeListOf<HTMLEmbedElement>;
7920 getElementsByTagName(tagname: "feblend"): NodeListOf<SVGFEBlendElement>;
7921 getElementsByTagName(tagname: "fecolormatrix"): NodeListOf<SVGFEColorMatrixElement>;
7922 getElementsByTagName(tagname: "fecomponenttransfer"): NodeListOf<SVGFEComponentTransferElement>;
7923 getElementsByTagName(tagname: "fecomposite"): NodeListOf<SVGFECompositeElement>;
7924 getElementsByTagName(tagname: "feconvolvematrix"): NodeListOf<SVGFEConvolveMatrixElement>;
7925 getElementsByTagName(tagname: "fediffuselighting"): NodeListOf<SVGFEDiffuseLightingElement>;
7926 getElementsByTagName(tagname: "fedisplacementmap"): NodeListOf<SVGFEDisplacementMapElement>;
7927 getElementsByTagName(tagname: "fedistantlight"): NodeListOf<SVGFEDistantLightElement>;
7928 getElementsByTagName(tagname: "feflood"): NodeListOf<SVGFEFloodElement>;
7929 getElementsByTagName(tagname: "fefunca"): NodeListOf<SVGFEFuncAElement>;
7930 getElementsByTagName(tagname: "fefuncb"): NodeListOf<SVGFEFuncBElement>;
7931 getElementsByTagName(tagname: "fefuncg"): NodeListOf<SVGFEFuncGElement>;
7932 getElementsByTagName(tagname: "fefuncr"): NodeListOf<SVGFEFuncRElement>;
7933 getElementsByTagName(tagname: "fegaussianblur"): NodeListOf<SVGFEGaussianBlurElement>;
7934 getElementsByTagName(tagname: "feimage"): NodeListOf<SVGFEImageElement>;
7935 getElementsByTagName(tagname: "femerge"): NodeListOf<SVGFEMergeElement>;
7936 getElementsByTagName(tagname: "femergenode"): NodeListOf<SVGFEMergeNodeElement>;
7937 getElementsByTagName(tagname: "femorphology"): NodeListOf<SVGFEMorphologyElement>;
7938 getElementsByTagName(tagname: "feoffset"): NodeListOf<SVGFEOffsetElement>;
7939 getElementsByTagName(tagname: "fepointlight"): NodeListOf<SVGFEPointLightElement>;
7940 getElementsByTagName(tagname: "fespecularlighting"): NodeListOf<SVGFESpecularLightingElement>;
7941 getElementsByTagName(tagname: "fespotlight"): NodeListOf<SVGFESpotLightElement>;
7942 getElementsByTagName(tagname: "fetile"): NodeListOf<SVGFETileElement>;
7943 getElementsByTagName(tagname: "feturbulence"): NodeListOf<SVGFETurbulenceElement>;
7944 getElementsByTagName(tagname: "fieldset"): NodeListOf<HTMLFieldSetElement>;
7945 getElementsByTagName(tagname: "figcaption"): NodeListOf<HTMLElement>;
7946 getElementsByTagName(tagname: "figure"): NodeListOf<HTMLElement>;
7947 getElementsByTagName(tagname: "filter"): NodeListOf<SVGFilterElement>;
7948 getElementsByTagName(tagname: "font"): NodeListOf<HTMLFontElement>;
7949 getElementsByTagName(tagname: "footer"): NodeListOf<HTMLElement>;
7950 getElementsByTagName(tagname: "foreignobject"): NodeListOf<SVGForeignObjectElement>;
7951 getElementsByTagName(tagname: "form"): NodeListOf<HTMLFormElement>;
7952 getElementsByTagName(tagname: "frame"): NodeListOf<HTMLFrameElement>;
7953 getElementsByTagName(tagname: "frameset"): NodeListOf<HTMLFrameSetElement>;
7954 getElementsByTagName(tagname: "g"): NodeListOf<SVGGElement>;
7955 getElementsByTagName(tagname: "h1"): NodeListOf<HTMLHeadingElement>;
7956 getElementsByTagName(tagname: "h2"): NodeListOf<HTMLHeadingElement>;
7957 getElementsByTagName(tagname: "h3"): NodeListOf<HTMLHeadingElement>;
7958 getElementsByTagName(tagname: "h4"): NodeListOf<HTMLHeadingElement>;
7959 getElementsByTagName(tagname: "h5"): NodeListOf<HTMLHeadingElement>;
7960 getElementsByTagName(tagname: "h6"): NodeListOf<HTMLHeadingElement>;
7961 getElementsByTagName(tagname: "head"): NodeListOf<HTMLHeadElement>;
7962 getElementsByTagName(tagname: "header"): NodeListOf<HTMLElement>;
7963 getElementsByTagName(tagname: "hgroup"): NodeListOf<HTMLElement>;
7964 getElementsByTagName(tagname: "hr"): NodeListOf<HTMLHRElement>;
7965 getElementsByTagName(tagname: "html"): NodeListOf<HTMLHtmlElement>;
7966 getElementsByTagName(tagname: "i"): NodeListOf<HTMLPhraseElement>;
7967 getElementsByTagName(tagname: "iframe"): NodeListOf<HTMLIFrameElement>;
7968 getElementsByTagName(tagname: "image"): NodeListOf<SVGImageElement>;
7969 getElementsByTagName(tagname: "img"): NodeListOf<HTMLImageElement>;
7970 getElementsByTagName(tagname: "input"): NodeListOf<HTMLInputElement>;
7971 getElementsByTagName(tagname: "ins"): NodeListOf<HTMLModElement>;
7972 getElementsByTagName(tagname: "isindex"): NodeListOf<HTMLIsIndexElement>;
7973 getElementsByTagName(tagname: "kbd"): NodeListOf<HTMLPhraseElement>;
7974 getElementsByTagName(tagname: "keygen"): NodeListOf<HTMLBlockElement>;
7975 getElementsByTagName(tagname: "label"): NodeListOf<HTMLLabelElement>;
7976 getElementsByTagName(tagname: "legend"): NodeListOf<HTMLLegendElement>;
7977 getElementsByTagName(tagname: "li"): NodeListOf<HTMLLIElement>;
7978 getElementsByTagName(tagname: "line"): NodeListOf<SVGLineElement>;
7979 getElementsByTagName(tagname: "lineargradient"): NodeListOf<SVGLinearGradientElement>;
7980 getElementsByTagName(tagname: "link"): NodeListOf<HTMLLinkElement>;
7981 getElementsByTagName(tagname: "listing"): NodeListOf<HTMLBlockElement>;
7982 getElementsByTagName(tagname: "map"): NodeListOf<HTMLMapElement>;
7983 getElementsByTagName(tagname: "mark"): NodeListOf<HTMLElement>;
7984 getElementsByTagName(tagname: "marker"): NodeListOf<SVGMarkerElement>;
7985 getElementsByTagName(tagname: "marquee"): NodeListOf<HTMLMarqueeElement>;
7986 getElementsByTagName(tagname: "mask"): NodeListOf<SVGMaskElement>;
7987 getElementsByTagName(tagname: "menu"): NodeListOf<HTMLMenuElement>;
7988 getElementsByTagName(tagname: "meta"): NodeListOf<HTMLMetaElement>;
7989 getElementsByTagName(tagname: "metadata"): NodeListOf<SVGMetadataElement>;
7990 getElementsByTagName(tagname: "nav"): NodeListOf<HTMLElement>;
7991 getElementsByTagName(tagname: "nextid"): NodeListOf<HTMLNextIdElement>;
7992 getElementsByTagName(tagname: "nobr"): NodeListOf<HTMLPhraseElement>;
7993 getElementsByTagName(tagname: "noframes"): NodeListOf<HTMLElement>;
7994 getElementsByTagName(tagname: "noscript"): NodeListOf<HTMLElement>;
7995 getElementsByTagName(tagname: "object"): NodeListOf<HTMLObjectElement>;
7996 getElementsByTagName(tagname: "ol"): NodeListOf<HTMLOListElement>;
7997 getElementsByTagName(tagname: "optgroup"): NodeListOf<HTMLOptGroupElement>;
7998 getElementsByTagName(tagname: "option"): NodeListOf<HTMLOptionElement>;
7999 getElementsByTagName(tagname: "p"): NodeListOf<HTMLParagraphElement>;
8000 getElementsByTagName(tagname: "param"): NodeListOf<HTMLParamElement>;
8001 getElementsByTagName(tagname: "path"): NodeListOf<SVGPathElement>;
8002 getElementsByTagName(tagname: "pattern"): NodeListOf<SVGPatternElement>;
8003 getElementsByTagName(tagname: "plaintext"): NodeListOf<HTMLBlockElement>;
8004 getElementsByTagName(tagname: "polygon"): NodeListOf<SVGPolygonElement>;
8005 getElementsByTagName(tagname: "polyline"): NodeListOf<SVGPolylineElement>;
8006 getElementsByTagName(tagname: "pre"): NodeListOf<HTMLPreElement>;
8007 getElementsByTagName(tagname: "progress"): NodeListOf<HTMLProgressElement>;
8008 getElementsByTagName(tagname: "q"): NodeListOf<HTMLQuoteElement>;
8009 getElementsByTagName(tagname: "radialgradient"): NodeListOf<SVGRadialGradientElement>;
8010 getElementsByTagName(tagname: "rect"): NodeListOf<SVGRectElement>;
8011 getElementsByTagName(tagname: "rt"): NodeListOf<HTMLPhraseElement>;
8012 getElementsByTagName(tagname: "ruby"): NodeListOf<HTMLPhraseElement>;
8013 getElementsByTagName(tagname: "s"): NodeListOf<HTMLPhraseElement>;
8014 getElementsByTagName(tagname: "samp"): NodeListOf<HTMLPhraseElement>;
8015 getElementsByTagName(tagname: "script"): NodeListOf<HTMLScriptElement>;
8016 getElementsByTagName(tagname: "section"): NodeListOf<HTMLElement>;
8017 getElementsByTagName(tagname: "select"): NodeListOf<HTMLSelectElement>;
8018 getElementsByTagName(tagname: "small"): NodeListOf<HTMLPhraseElement>;
8019 getElementsByTagName(tagname: "source"): NodeListOf<HTMLSourceElement>;
8020 getElementsByTagName(tagname: "span"): NodeListOf<HTMLSpanElement>;
8021 getElementsByTagName(tagname: "stop"): NodeListOf<SVGStopElement>;
8022 getElementsByTagName(tagname: "strike"): NodeListOf<HTMLPhraseElement>;
8023 getElementsByTagName(tagname: "strong"): NodeListOf<HTMLPhraseElement>;
8024 getElementsByTagName(tagname: "style"): NodeListOf<HTMLStyleElement>;
8025 getElementsByTagName(tagname: "sub"): NodeListOf<HTMLPhraseElement>;
8026 getElementsByTagName(tagname: "sup"): NodeListOf<HTMLPhraseElement>;
8027 getElementsByTagName(tagname: "svg"): NodeListOf<SVGSVGElement>;
8028 getElementsByTagName(tagname: "switch"): NodeListOf<SVGSwitchElement>;
8029 getElementsByTagName(tagname: "symbol"): NodeListOf<SVGSymbolElement>;
8030 getElementsByTagName(tagname: "table"): NodeListOf<HTMLTableElement>;
8031 getElementsByTagName(tagname: "tbody"): NodeListOf<HTMLTableSectionElement>;
8032 getElementsByTagName(tagname: "td"): NodeListOf<HTMLTableDataCellElement>;
8033 getElementsByTagName(tagname: "text"): NodeListOf<SVGTextElement>;
8034 getElementsByTagName(tagname: "textpath"): NodeListOf<SVGTextPathElement>;
8035 getElementsByTagName(tagname: "textarea"): NodeListOf<HTMLTextAreaElement>;
8036 getElementsByTagName(tagname: "tfoot"): NodeListOf<HTMLTableSectionElement>;
8037 getElementsByTagName(tagname: "th"): NodeListOf<HTMLTableHeaderCellElement>;
8038 getElementsByTagName(tagname: "thead"): NodeListOf<HTMLTableSectionElement>;
8039 getElementsByTagName(tagname: "title"): NodeListOf<HTMLTitleElement>;
8040 getElementsByTagName(tagname: "tr"): NodeListOf<HTMLTableRowElement>;
8041 getElementsByTagName(tagname: "track"): NodeListOf<HTMLTrackElement>;
8042 getElementsByTagName(tagname: "tspan"): NodeListOf<SVGTSpanElement>;
8043 getElementsByTagName(tagname: "tt"): NodeListOf<HTMLPhraseElement>;
8044 getElementsByTagName(tagname: "u"): NodeListOf<HTMLPhraseElement>;
8045 getElementsByTagName(tagname: "ul"): NodeListOf<HTMLUListElement>;
8046 getElementsByTagName(tagname: "use"): NodeListOf<SVGUseElement>;
8047 getElementsByTagName(tagname: "var"): NodeListOf<HTMLPhraseElement>;
8048 getElementsByTagName(tagname: "video"): NodeListOf<HTMLVideoElement>;
8049 getElementsByTagName(tagname: "view"): NodeListOf<SVGViewElement>;
8050 getElementsByTagName(tagname: "wbr"): NodeListOf<HTMLElement>;
8051 getElementsByTagName(tagname: "x-ms-webview"): NodeListOf<MSHTMLWebViewElement>;
8052 getElementsByTagName(tagname: "xmp"): NodeListOf<HTMLBlockElement>;
8053 getElementsByTagName(tagname: string): NodeListOf<Element>;
8054 getElementsByTagNameNS(namespaceURI: string, localName: string): NodeListOf<Element>;
8055 /**
8056 * Returns an object representing the current selection of the document that is loaded into the object displaying a webpage.
8057 */
8058 getSelection(): Selection;
8059 /**
8060 * Gets a value indicating whether the object currently has focus.
8061 */
8062 hasFocus(): boolean;
8063 importNode(importedNode: Node, deep: boolean): Node;
8064 msElementsFromPoint(x: number, y: number): NodeList;
8065 msElementsFromRect(left: number, top: number, width: number, height: number): NodeList;
8066 /**
8067 * Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method.
8068 * @param url Specifies a MIME type for the document.
8069 * @param name Specifies the name of the window. This name is used as the value for the TARGET attribute on a form or an anchor element.
8070 * @param features Contains a list of items separated by commas. Each item consists of an option and a value, separated by an equals sign (for example, "fullscreen=yes, toolbar=yes"). The following values are supported.
8071 * @param replace Specifies whether the existing entry for the document is replaced in the history list.
8072 */
8073 open(url?: string, name?: string, features?: string, replace?: boolean): Document;
8074 /**
8075 * Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document.
8076 * @param commandId Specifies a command identifier.
8077 */
8078 queryCommandEnabled(commandId: string): boolean;
8079 /**
8080 * Returns a Boolean value that indicates whether the specified command is in the indeterminate state.
8081 * @param commandId String that specifies a command identifier.
8082 */
8083 queryCommandIndeterm(commandId: string): boolean;
8084 /**
8085 * Returns a Boolean value that indicates the current state of the command.
8086 * @param commandId String that specifies a command identifier.
8087 */
8088 queryCommandState(commandId: string): boolean;
8089 /**
8090 * Returns a Boolean value that indicates whether the current command is supported on the current range.
8091 * @param commandId Specifies a command identifier.
8092 */
8093 queryCommandSupported(commandId: string): boolean;
8094 /**
8095 * Retrieves the string associated with a command.
8096 * @param commandId String that contains the identifier of a command. This can be any command identifier given in the list of Command Identifiers.
8097 */
8098 queryCommandText(commandId: string): string;
8099 /**
8100 * Returns the current value of the document, range, or current selection for the given command.
8101 * @param commandId String that specifies a command identifier.
8102 */
8103 queryCommandValue(commandId: string): string;
8104 releaseEvents(): void;
8105 /**
8106 * Allows updating the print settings for the page.
8107 */
8108 updateSettings(): void;
8109 webkitCancelFullScreen(): void;
8110 webkitExitFullscreen(): void;
8111 /**
8112 * Writes one or more HTML expressions to a document in the specified window.
8113 * @param content Specifies the text and HTML tags to write.
8114 */
8115 write(...content: string[]): void;
8116 /**
8117 * Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window.
8118 * @param content The text and HTML tags to write.
8119 */
8120 writeln(...content: string[]): void;
8121 createElement(tagName: "picture"): HTMLPictureElement;
8122 getElementsByTagName(tagname: "picture"): NodeListOf<HTMLPictureElement>;
8123 addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8124 addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8125 addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8126 addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8127 addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8128 addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8129 addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8130 addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8131 addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void;
8132 addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8133 addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8134 addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8135 addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8136 addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8137 addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8138 addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8139 addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8140 addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8141 addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8142 addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8143 addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8144 addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
8145 addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void;
8146 addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void;
8147 addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void;
8148 addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8149 addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8150 addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8151 addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8152 addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8153 addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8154 addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8155 addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8156 addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8157 addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8158 addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8159 addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void;
8160 addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void;
8161 addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void;
8162 addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
8163 addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
8164 addEventListener(type: "fullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void;
8165 addEventListener(type: "fullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void;
8166 addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void;
8167 addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
8168 addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
8169 addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
8170 addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
8171 addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void;
8172 addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void;
8173 addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void;
8174 addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8175 addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8176 addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8177 addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8178 addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8179 addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void;
8180 addEventListener(type: "mssitemodejumplistitemremoved", listener: (ev: MSSiteModeEvent) => any, useCapture?: boolean): void;
8181 addEventListener(type: "msthumbnailclick", listener: (ev: MSSiteModeEvent) => any, useCapture?: boolean): void;
8182 addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void;
8183 addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void;
8184 addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void;
8185 addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8186 addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8187 addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8188 addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8189 addEventListener(type: "pointerlockchange", listener: (ev: Event) => any, useCapture?: boolean): void;
8190 addEventListener(type: "pointerlockerror", listener: (ev: Event) => any, useCapture?: boolean): void;
8191 addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8192 addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8193 addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8194 addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8195 addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
8196 addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void;
8197 addEventListener(type: "readystatechange", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
8198 addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void;
8199 addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8200 addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void;
8201 addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void;
8202 addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8203 addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void;
8204 addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void;
8205 addEventListener(type: "stop", listener: (ev: Event) => any, useCapture?: boolean): void;
8206 addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void;
8207 addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void;
8208 addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void;
8209 addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
8210 addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
8211 addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
8212 addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
8213 addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void;
8214 addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void;
8215 addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void;
8216 addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void;
8217 addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void;
8218 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
8219}
8220
8221declare var Document: {
8222 prototype: Document;
8223 new(): Document;
8224}
8225
8226interface DocumentFragment extends Node, NodeSelector {
8227 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
8228}
8229
8230declare var DocumentFragment: {
8231 prototype: DocumentFragment;
8232 new(): DocumentFragment;
8233}
8234
8235interface DocumentType extends Node, ChildNode {
8236 entities: NamedNodeMap;
8237 internalSubset: string;
8238 name: string;
8239 notations: NamedNodeMap;
8240 publicId: string;
8241 systemId: string;
8242 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
8243}
8244
8245declare var DocumentType: {
8246 prototype: DocumentType;
8247 new(): DocumentType;
8248}
8249
8250interface DragEvent extends MouseEvent {
8251 dataTransfer: DataTransfer;
8252 initDragEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget, dataTransferArg: DataTransfer): void;
8253 msConvertURL(file: File, targetType: string, targetURL?: string): void;
8254}
8255
8256declare var DragEvent: {
8257 prototype: DragEvent;
8258 new(): DragEvent;
8259}
8260
8261interface DynamicsCompressorNode extends AudioNode {
8262 attack: AudioParam;
8263 knee: AudioParam;
8264 ratio: AudioParam;
8265 reduction: AudioParam;
8266 release: AudioParam;
8267 threshold: AudioParam;
8268}
8269
8270declare var DynamicsCompressorNode: {
8271 prototype: DynamicsCompressorNode;
8272 new(): DynamicsCompressorNode;
8273}
8274
8275interface EXT_texture_filter_anisotropic {
8276 MAX_TEXTURE_MAX_ANISOTROPY_EXT: number;
8277 TEXTURE_MAX_ANISOTROPY_EXT: number;
8278}
8279
8280declare var EXT_texture_filter_anisotropic: {
8281 prototype: EXT_texture_filter_anisotropic;
8282 new(): EXT_texture_filter_anisotropic;
8283 MAX_TEXTURE_MAX_ANISOTROPY_EXT: number;
8284 TEXTURE_MAX_ANISOTROPY_EXT: number;
8285}
8286
8287interface Element extends Node, GlobalEventHandlers, ElementTraversal, NodeSelector, ChildNode {
8288 classList: DOMTokenList;
8289 clientHeight: number;
8290 clientLeft: number;
8291 clientTop: number;
8292 clientWidth: number;
8293 msContentZoomFactor: number;
8294 msRegionOverflow: string;
8295 onariarequest: (ev: AriaRequestEvent) => any;
8296 oncommand: (ev: CommandEvent) => any;
8297 ongotpointercapture: (ev: PointerEvent) => any;
8298 onlostpointercapture: (ev: PointerEvent) => any;
8299 onmsgesturechange: (ev: MSGestureEvent) => any;
8300 onmsgesturedoubletap: (ev: MSGestureEvent) => any;
8301 onmsgestureend: (ev: MSGestureEvent) => any;
8302 onmsgesturehold: (ev: MSGestureEvent) => any;
8303 onmsgesturestart: (ev: MSGestureEvent) => any;
8304 onmsgesturetap: (ev: MSGestureEvent) => any;
8305 onmsgotpointercapture: (ev: MSPointerEvent) => any;
8306 onmsinertiastart: (ev: MSGestureEvent) => any;
8307 onmslostpointercapture: (ev: MSPointerEvent) => any;
8308 onmspointercancel: (ev: MSPointerEvent) => any;
8309 onmspointerdown: (ev: MSPointerEvent) => any;
8310 onmspointerenter: (ev: MSPointerEvent) => any;
8311 onmspointerleave: (ev: MSPointerEvent) => any;
8312 onmspointermove: (ev: MSPointerEvent) => any;
8313 onmspointerout: (ev: MSPointerEvent) => any;
8314 onmspointerover: (ev: MSPointerEvent) => any;
8315 onmspointerup: (ev: MSPointerEvent) => any;
8316 ontouchcancel: (ev: TouchEvent) => any;
8317 ontouchend: (ev: TouchEvent) => any;
8318 ontouchmove: (ev: TouchEvent) => any;
8319 ontouchstart: (ev: TouchEvent) => any;
8320 onwebkitfullscreenchange: (ev: Event) => any;
8321 onwebkitfullscreenerror: (ev: Event) => any;
8322 scrollHeight: number;
8323 scrollLeft: number;
8324 scrollTop: number;
8325 scrollWidth: number;
8326 tagName: string;
8327 id: string;
8328 className: string;
8329 innerHTML: string;
8330 getAttribute(name?: string): string;
8331 getAttributeNS(namespaceURI: string, localName: string): string;
8332 getAttributeNode(name: string): Attr;
8333 getAttributeNodeNS(namespaceURI: string, localName: string): Attr;
8334 getBoundingClientRect(): ClientRect;
8335 getClientRects(): ClientRectList;
8336 getElementsByTagName(name: "a"): NodeListOf<HTMLAnchorElement>;
8337 getElementsByTagName(name: "abbr"): NodeListOf<HTMLPhraseElement>;
8338 getElementsByTagName(name: "acronym"): NodeListOf<HTMLPhraseElement>;
8339 getElementsByTagName(name: "address"): NodeListOf<HTMLBlockElement>;
8340 getElementsByTagName(name: "applet"): NodeListOf<HTMLAppletElement>;
8341 getElementsByTagName(name: "area"): NodeListOf<HTMLAreaElement>;
8342 getElementsByTagName(name: "article"): NodeListOf<HTMLElement>;
8343 getElementsByTagName(name: "aside"): NodeListOf<HTMLElement>;
8344 getElementsByTagName(name: "audio"): NodeListOf<HTMLAudioElement>;
8345 getElementsByTagName(name: "b"): NodeListOf<HTMLPhraseElement>;
8346 getElementsByTagName(name: "base"): NodeListOf<HTMLBaseElement>;
8347 getElementsByTagName(name: "basefont"): NodeListOf<HTMLBaseFontElement>;
8348 getElementsByTagName(name: "bdo"): NodeListOf<HTMLPhraseElement>;
8349 getElementsByTagName(name: "big"): NodeListOf<HTMLPhraseElement>;
8350 getElementsByTagName(name: "blockquote"): NodeListOf<HTMLBlockElement>;
8351 getElementsByTagName(name: "body"): NodeListOf<HTMLBodyElement>;
8352 getElementsByTagName(name: "br"): NodeListOf<HTMLBRElement>;
8353 getElementsByTagName(name: "button"): NodeListOf<HTMLButtonElement>;
8354 getElementsByTagName(name: "canvas"): NodeListOf<HTMLCanvasElement>;
8355 getElementsByTagName(name: "caption"): NodeListOf<HTMLTableCaptionElement>;
8356 getElementsByTagName(name: "center"): NodeListOf<HTMLBlockElement>;
8357 getElementsByTagName(name: "circle"): NodeListOf<SVGCircleElement>;
8358 getElementsByTagName(name: "cite"): NodeListOf<HTMLPhraseElement>;
8359 getElementsByTagName(name: "clippath"): NodeListOf<SVGClipPathElement>;
8360 getElementsByTagName(name: "code"): NodeListOf<HTMLPhraseElement>;
8361 getElementsByTagName(name: "col"): NodeListOf<HTMLTableColElement>;
8362 getElementsByTagName(name: "colgroup"): NodeListOf<HTMLTableColElement>;
8363 getElementsByTagName(name: "datalist"): NodeListOf<HTMLDataListElement>;
8364 getElementsByTagName(name: "dd"): NodeListOf<HTMLDDElement>;
8365 getElementsByTagName(name: "defs"): NodeListOf<SVGDefsElement>;
8366 getElementsByTagName(name: "del"): NodeListOf<HTMLModElement>;
8367 getElementsByTagName(name: "desc"): NodeListOf<SVGDescElement>;
8368 getElementsByTagName(name: "dfn"): NodeListOf<HTMLPhraseElement>;
8369 getElementsByTagName(name: "dir"): NodeListOf<HTMLDirectoryElement>;
8370 getElementsByTagName(name: "div"): NodeListOf<HTMLDivElement>;
8371 getElementsByTagName(name: "dl"): NodeListOf<HTMLDListElement>;
8372 getElementsByTagName(name: "dt"): NodeListOf<HTMLDTElement>;
8373 getElementsByTagName(name: "ellipse"): NodeListOf<SVGEllipseElement>;
8374 getElementsByTagName(name: "em"): NodeListOf<HTMLPhraseElement>;
8375 getElementsByTagName(name: "embed"): NodeListOf<HTMLEmbedElement>;
8376 getElementsByTagName(name: "feblend"): NodeListOf<SVGFEBlendElement>;
8377 getElementsByTagName(name: "fecolormatrix"): NodeListOf<SVGFEColorMatrixElement>;
8378 getElementsByTagName(name: "fecomponenttransfer"): NodeListOf<SVGFEComponentTransferElement>;
8379 getElementsByTagName(name: "fecomposite"): NodeListOf<SVGFECompositeElement>;
8380 getElementsByTagName(name: "feconvolvematrix"): NodeListOf<SVGFEConvolveMatrixElement>;
8381 getElementsByTagName(name: "fediffuselighting"): NodeListOf<SVGFEDiffuseLightingElement>;
8382 getElementsByTagName(name: "fedisplacementmap"): NodeListOf<SVGFEDisplacementMapElement>;
8383 getElementsByTagName(name: "fedistantlight"): NodeListOf<SVGFEDistantLightElement>;
8384 getElementsByTagName(name: "feflood"): NodeListOf<SVGFEFloodElement>;
8385 getElementsByTagName(name: "fefunca"): NodeListOf<SVGFEFuncAElement>;
8386 getElementsByTagName(name: "fefuncb"): NodeListOf<SVGFEFuncBElement>;
8387 getElementsByTagName(name: "fefuncg"): NodeListOf<SVGFEFuncGElement>;
8388 getElementsByTagName(name: "fefuncr"): NodeListOf<SVGFEFuncRElement>;
8389 getElementsByTagName(name: "fegaussianblur"): NodeListOf<SVGFEGaussianBlurElement>;
8390 getElementsByTagName(name: "feimage"): NodeListOf<SVGFEImageElement>;
8391 getElementsByTagName(name: "femerge"): NodeListOf<SVGFEMergeElement>;
8392 getElementsByTagName(name: "femergenode"): NodeListOf<SVGFEMergeNodeElement>;
8393 getElementsByTagName(name: "femorphology"): NodeListOf<SVGFEMorphologyElement>;
8394 getElementsByTagName(name: "feoffset"): NodeListOf<SVGFEOffsetElement>;
8395 getElementsByTagName(name: "fepointlight"): NodeListOf<SVGFEPointLightElement>;
8396 getElementsByTagName(name: "fespecularlighting"): NodeListOf<SVGFESpecularLightingElement>;
8397 getElementsByTagName(name: "fespotlight"): NodeListOf<SVGFESpotLightElement>;
8398 getElementsByTagName(name: "fetile"): NodeListOf<SVGFETileElement>;
8399 getElementsByTagName(name: "feturbulence"): NodeListOf<SVGFETurbulenceElement>;
8400 getElementsByTagName(name: "fieldset"): NodeListOf<HTMLFieldSetElement>;
8401 getElementsByTagName(name: "figcaption"): NodeListOf<HTMLElement>;
8402 getElementsByTagName(name: "figure"): NodeListOf<HTMLElement>;
8403 getElementsByTagName(name: "filter"): NodeListOf<SVGFilterElement>;
8404 getElementsByTagName(name: "font"): NodeListOf<HTMLFontElement>;
8405 getElementsByTagName(name: "footer"): NodeListOf<HTMLElement>;
8406 getElementsByTagName(name: "foreignobject"): NodeListOf<SVGForeignObjectElement>;
8407 getElementsByTagName(name: "form"): NodeListOf<HTMLFormElement>;
8408 getElementsByTagName(name: "frame"): NodeListOf<HTMLFrameElement>;
8409 getElementsByTagName(name: "frameset"): NodeListOf<HTMLFrameSetElement>;
8410 getElementsByTagName(name: "g"): NodeListOf<SVGGElement>;
8411 getElementsByTagName(name: "h1"): NodeListOf<HTMLHeadingElement>;
8412 getElementsByTagName(name: "h2"): NodeListOf<HTMLHeadingElement>;
8413 getElementsByTagName(name: "h3"): NodeListOf<HTMLHeadingElement>;
8414 getElementsByTagName(name: "h4"): NodeListOf<HTMLHeadingElement>;
8415 getElementsByTagName(name: "h5"): NodeListOf<HTMLHeadingElement>;
8416 getElementsByTagName(name: "h6"): NodeListOf<HTMLHeadingElement>;
8417 getElementsByTagName(name: "head"): NodeListOf<HTMLHeadElement>;
8418 getElementsByTagName(name: "header"): NodeListOf<HTMLElement>;
8419 getElementsByTagName(name: "hgroup"): NodeListOf<HTMLElement>;
8420 getElementsByTagName(name: "hr"): NodeListOf<HTMLHRElement>;
8421 getElementsByTagName(name: "html"): NodeListOf<HTMLHtmlElement>;
8422 getElementsByTagName(name: "i"): NodeListOf<HTMLPhraseElement>;
8423 getElementsByTagName(name: "iframe"): NodeListOf<HTMLIFrameElement>;
8424 getElementsByTagName(name: "image"): NodeListOf<SVGImageElement>;
8425 getElementsByTagName(name: "img"): NodeListOf<HTMLImageElement>;
8426 getElementsByTagName(name: "input"): NodeListOf<HTMLInputElement>;
8427 getElementsByTagName(name: "ins"): NodeListOf<HTMLModElement>;
8428 getElementsByTagName(name: "isindex"): NodeListOf<HTMLIsIndexElement>;
8429 getElementsByTagName(name: "kbd"): NodeListOf<HTMLPhraseElement>;
8430 getElementsByTagName(name: "keygen"): NodeListOf<HTMLBlockElement>;
8431 getElementsByTagName(name: "label"): NodeListOf<HTMLLabelElement>;
8432 getElementsByTagName(name: "legend"): NodeListOf<HTMLLegendElement>;
8433 getElementsByTagName(name: "li"): NodeListOf<HTMLLIElement>;
8434 getElementsByTagName(name: "line"): NodeListOf<SVGLineElement>;
8435 getElementsByTagName(name: "lineargradient"): NodeListOf<SVGLinearGradientElement>;
8436 getElementsByTagName(name: "link"): NodeListOf<HTMLLinkElement>;
8437 getElementsByTagName(name: "listing"): NodeListOf<HTMLBlockElement>;
8438 getElementsByTagName(name: "map"): NodeListOf<HTMLMapElement>;
8439 getElementsByTagName(name: "mark"): NodeListOf<HTMLElement>;
8440 getElementsByTagName(name: "marker"): NodeListOf<SVGMarkerElement>;
8441 getElementsByTagName(name: "marquee"): NodeListOf<HTMLMarqueeElement>;
8442 getElementsByTagName(name: "mask"): NodeListOf<SVGMaskElement>;
8443 getElementsByTagName(name: "menu"): NodeListOf<HTMLMenuElement>;
8444 getElementsByTagName(name: "meta"): NodeListOf<HTMLMetaElement>;
8445 getElementsByTagName(name: "metadata"): NodeListOf<SVGMetadataElement>;
8446 getElementsByTagName(name: "nav"): NodeListOf<HTMLElement>;
8447 getElementsByTagName(name: "nextid"): NodeListOf<HTMLNextIdElement>;
8448 getElementsByTagName(name: "nobr"): NodeListOf<HTMLPhraseElement>;
8449 getElementsByTagName(name: "noframes"): NodeListOf<HTMLElement>;
8450 getElementsByTagName(name: "noscript"): NodeListOf<HTMLElement>;
8451 getElementsByTagName(name: "object"): NodeListOf<HTMLObjectElement>;
8452 getElementsByTagName(name: "ol"): NodeListOf<HTMLOListElement>;
8453 getElementsByTagName(name: "optgroup"): NodeListOf<HTMLOptGroupElement>;
8454 getElementsByTagName(name: "option"): NodeListOf<HTMLOptionElement>;
8455 getElementsByTagName(name: "p"): NodeListOf<HTMLParagraphElement>;
8456 getElementsByTagName(name: "param"): NodeListOf<HTMLParamElement>;
8457 getElementsByTagName(name: "path"): NodeListOf<SVGPathElement>;
8458 getElementsByTagName(name: "pattern"): NodeListOf<SVGPatternElement>;
8459 getElementsByTagName(name: "plaintext"): NodeListOf<HTMLBlockElement>;
8460 getElementsByTagName(name: "polygon"): NodeListOf<SVGPolygonElement>;
8461 getElementsByTagName(name: "polyline"): NodeListOf<SVGPolylineElement>;
8462 getElementsByTagName(name: "pre"): NodeListOf<HTMLPreElement>;
8463 getElementsByTagName(name: "progress"): NodeListOf<HTMLProgressElement>;
8464 getElementsByTagName(name: "q"): NodeListOf<HTMLQuoteElement>;
8465 getElementsByTagName(name: "radialgradient"): NodeListOf<SVGRadialGradientElement>;
8466 getElementsByTagName(name: "rect"): NodeListOf<SVGRectElement>;
8467 getElementsByTagName(name: "rt"): NodeListOf<HTMLPhraseElement>;
8468 getElementsByTagName(name: "ruby"): NodeListOf<HTMLPhraseElement>;
8469 getElementsByTagName(name: "s"): NodeListOf<HTMLPhraseElement>;
8470 getElementsByTagName(name: "samp"): NodeListOf<HTMLPhraseElement>;
8471 getElementsByTagName(name: "script"): NodeListOf<HTMLScriptElement>;
8472 getElementsByTagName(name: "section"): NodeListOf<HTMLElement>;
8473 getElementsByTagName(name: "select"): NodeListOf<HTMLSelectElement>;
8474 getElementsByTagName(name: "small"): NodeListOf<HTMLPhraseElement>;
8475 getElementsByTagName(name: "source"): NodeListOf<HTMLSourceElement>;
8476 getElementsByTagName(name: "span"): NodeListOf<HTMLSpanElement>;
8477 getElementsByTagName(name: "stop"): NodeListOf<SVGStopElement>;
8478 getElementsByTagName(name: "strike"): NodeListOf<HTMLPhraseElement>;
8479 getElementsByTagName(name: "strong"): NodeListOf<HTMLPhraseElement>;
8480 getElementsByTagName(name: "style"): NodeListOf<HTMLStyleElement>;
8481 getElementsByTagName(name: "sub"): NodeListOf<HTMLPhraseElement>;
8482 getElementsByTagName(name: "sup"): NodeListOf<HTMLPhraseElement>;
8483 getElementsByTagName(name: "svg"): NodeListOf<SVGSVGElement>;
8484 getElementsByTagName(name: "switch"): NodeListOf<SVGSwitchElement>;
8485 getElementsByTagName(name: "symbol"): NodeListOf<SVGSymbolElement>;
8486 getElementsByTagName(name: "table"): NodeListOf<HTMLTableElement>;
8487 getElementsByTagName(name: "tbody"): NodeListOf<HTMLTableSectionElement>;
8488 getElementsByTagName(name: "td"): NodeListOf<HTMLTableDataCellElement>;
8489 getElementsByTagName(name: "text"): NodeListOf<SVGTextElement>;
8490 getElementsByTagName(name: "textpath"): NodeListOf<SVGTextPathElement>;
8491 getElementsByTagName(name: "textarea"): NodeListOf<HTMLTextAreaElement>;
8492 getElementsByTagName(name: "tfoot"): NodeListOf<HTMLTableSectionElement>;
8493 getElementsByTagName(name: "th"): NodeListOf<HTMLTableHeaderCellElement>;
8494 getElementsByTagName(name: "thead"): NodeListOf<HTMLTableSectionElement>;
8495 getElementsByTagName(name: "title"): NodeListOf<HTMLTitleElement>;
8496 getElementsByTagName(name: "tr"): NodeListOf<HTMLTableRowElement>;
8497 getElementsByTagName(name: "track"): NodeListOf<HTMLTrackElement>;
8498 getElementsByTagName(name: "tspan"): NodeListOf<SVGTSpanElement>;
8499 getElementsByTagName(name: "tt"): NodeListOf<HTMLPhraseElement>;
8500 getElementsByTagName(name: "u"): NodeListOf<HTMLPhraseElement>;
8501 getElementsByTagName(name: "ul"): NodeListOf<HTMLUListElement>;
8502 getElementsByTagName(name: "use"): NodeListOf<SVGUseElement>;
8503 getElementsByTagName(name: "var"): NodeListOf<HTMLPhraseElement>;
8504 getElementsByTagName(name: "video"): NodeListOf<HTMLVideoElement>;
8505 getElementsByTagName(name: "view"): NodeListOf<SVGViewElement>;
8506 getElementsByTagName(name: "wbr"): NodeListOf<HTMLElement>;
8507 getElementsByTagName(name: "x-ms-webview"): NodeListOf<MSHTMLWebViewElement>;
8508 getElementsByTagName(name: "xmp"): NodeListOf<HTMLBlockElement>;
8509 getElementsByTagName(name: string): NodeListOf<Element>;
8510 getElementsByTagNameNS(namespaceURI: string, localName: string): NodeListOf<Element>;
8511 hasAttribute(name: string): boolean;
8512 hasAttributeNS(namespaceURI: string, localName: string): boolean;
8513 msGetRegionContent(): MSRangeCollection;
8514 msGetUntransformedBounds(): ClientRect;
8515 msMatchesSelector(selectors: string): boolean;
8516 msReleasePointerCapture(pointerId: number): void;
8517 msSetPointerCapture(pointerId: number): void;
8518 msZoomTo(args: MsZoomToOptions): void;
8519 releasePointerCapture(pointerId: number): void;
8520 removeAttribute(name?: string): void;
8521 removeAttributeNS(namespaceURI: string, localName: string): void;
8522 removeAttributeNode(oldAttr: Attr): Attr;
8523 requestFullscreen(): void;
8524 requestPointerLock(): void;
8525 setAttribute(name: string, value: string): void;
8526 setAttributeNS(namespaceURI: string, qualifiedName: string, value: string): void;
8527 setAttributeNode(newAttr: Attr): Attr;
8528 setAttributeNodeNS(newAttr: Attr): Attr;
8529 setPointerCapture(pointerId: number): void;
8530 webkitMatchesSelector(selectors: string): boolean;
8531 webkitRequestFullScreen(): void;
8532 webkitRequestFullscreen(): void;
8533 getElementsByClassName(classNames: string): NodeListOf<Element>;
8534 matches(selector: string): boolean;
8535 getElementsByTagName(tagname: "picture"): NodeListOf<HTMLPictureElement>;
8536 addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8537 addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8538 addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8539 addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8540 addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8541 addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8542 addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8543 addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8544 addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8545 addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8546 addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8547 addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8548 addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8549 addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8550 addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8551 addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8552 addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8553 addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void;
8554 addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void;
8555 addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8556 addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8557 addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8558 addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8559 addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8560 addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8561 addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8562 addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8563 addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8564 addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8565 addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
8566 addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
8567 addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
8568 addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
8569 addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void;
8570 addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void;
8571 addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void;
8572 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
8573}
8574
8575declare var Element: {
8576 prototype: Element;
8577 new(): Element;
8578}
8579
8580interface ErrorEvent extends Event {
8581 colno: number;
8582 error: any;
8583 filename: string;
8584 lineno: number;
8585 message: string;
8586 initErrorEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, messageArg: string, filenameArg: string, linenoArg: number): void;
8587}
8588
8589declare var ErrorEvent: {
8590 prototype: ErrorEvent;
8591 new(): ErrorEvent;
8592}
8593
8594interface Event {
8595 bubbles: boolean;
8596 cancelBubble: boolean;
8597 cancelable: boolean;
8598 currentTarget: EventTarget;
8599 defaultPrevented: boolean;
8600 eventPhase: number;
8601 isTrusted: boolean;
8602 returnValue: boolean;
8603 srcElement: Element;
8604 target: EventTarget;
8605 timeStamp: number;
8606 type: string;
8607 initEvent(eventTypeArg: string, canBubbleArg: boolean, cancelableArg: boolean): void;
8608 preventDefault(): void;
8609 stopImmediatePropagation(): void;
8610 stopPropagation(): void;
8611 AT_TARGET: number;
8612 BUBBLING_PHASE: number;
8613 CAPTURING_PHASE: number;
8614}
8615
8616declare var Event: {
8617 prototype: Event;
8618 new(type: string, eventInitDict?: EventInit): Event;
8619 AT_TARGET: number;
8620 BUBBLING_PHASE: number;
8621 CAPTURING_PHASE: number;
8622}
8623
8624interface EventTarget {
8625 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
8626 dispatchEvent(evt: Event): boolean;
8627 removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
8628}
8629
8630declare var EventTarget: {
8631 prototype: EventTarget;
8632 new(): EventTarget;
8633}
8634
8635interface External {
8636}
8637
8638declare var External: {
8639 prototype: External;
8640 new(): External;
8641}
8642
8643interface File extends Blob {
8644 lastModifiedDate: any;
8645 name: string;
8646}
8647
8648declare var File: {
8649 prototype: File;
8650 new (parts: (ArrayBuffer | ArrayBufferView | Blob | string)[], filename: string, properties?: FilePropertyBag): File;
8651}
8652
8653interface FileList {
8654 length: number;
8655 item(index: number): File;
8656 [index: number]: File;
8657}
8658
8659declare var FileList: {
8660 prototype: FileList;
8661 new(): FileList;
8662}
8663
8664interface FileReader extends EventTarget, MSBaseReader {
8665 error: DOMError;
8666 readAsArrayBuffer(blob: Blob): void;
8667 readAsBinaryString(blob: Blob): void;
8668 readAsDataURL(blob: Blob): void;
8669 readAsText(blob: Blob, encoding?: string): void;
8670 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
8671}
8672
8673declare var FileReader: {
8674 prototype: FileReader;
8675 new(): FileReader;
8676}
8677
8678interface FocusEvent extends UIEvent {
8679 relatedTarget: EventTarget;
8680 initFocusEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, relatedTargetArg: EventTarget): void;
8681}
8682
8683declare var FocusEvent: {
8684 prototype: FocusEvent;
8685 new(typeArg: string, eventInitDict?: FocusEventInit): FocusEvent;
8686}
8687
8688interface FormData {
8689 append(name: any, value: any, blobName?: string): void;
8690}
8691
8692declare var FormData: {
8693 prototype: FormData;
8694 new (form?: HTMLFormElement): FormData;
8695}
8696
8697interface GainNode extends AudioNode {
8698 gain: AudioParam;
8699}
8700
8701declare var GainNode: {
8702 prototype: GainNode;
8703 new(): GainNode;
8704}
8705
8706interface Gamepad {
8707 axes: number[];
8708 buttons: GamepadButton[];
8709 connected: boolean;
8710 id: string;
8711 index: number;
8712 mapping: string;
8713 timestamp: number;
8714}
8715
8716declare var Gamepad: {
8717 prototype: Gamepad;
8718 new(): Gamepad;
8719}
8720
8721interface GamepadButton {
8722 pressed: boolean;
8723 value: number;
8724}
8725
8726declare var GamepadButton: {
8727 prototype: GamepadButton;
8728 new(): GamepadButton;
8729}
8730
8731interface GamepadEvent extends Event {
8732 gamepad: Gamepad;
8733}
8734
8735declare var GamepadEvent: {
8736 prototype: GamepadEvent;
8737 new(): GamepadEvent;
8738}
8739
8740interface Geolocation {
8741 clearWatch(watchId: number): void;
8742 getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback, options?: PositionOptions): void;
8743 watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback, options?: PositionOptions): number;
8744}
8745
8746declare var Geolocation: {
8747 prototype: Geolocation;
8748 new(): Geolocation;
8749}
8750
8751interface HTMLAllCollection extends HTMLCollection {
8752 namedItem(name: string): Element;
8753}
8754
8755declare var HTMLAllCollection: {
8756 prototype: HTMLAllCollection;
8757 new(): HTMLAllCollection;
8758}
8759
8760interface HTMLAnchorElement extends HTMLElement {
8761 Methods: string;
8762 /**
8763 * Sets or retrieves the character set used to encode the object.
8764 */
8765 charset: string;
8766 /**
8767 * Sets or retrieves the coordinates of the object.
8768 */
8769 coords: string;
8770 /**
8771 * Contains the anchor portion of the URL including the hash sign (#).
8772 */
8773 hash: string;
8774 /**
8775 * Contains the hostname and port values of the URL.
8776 */
8777 host: string;
8778 /**
8779 * Contains the hostname of a URL.
8780 */
8781 hostname: string;
8782 /**
8783 * Sets or retrieves a destination URL or an anchor point.
8784 */
8785 href: string;
8786 /**
8787 * Sets or retrieves the language code of the object.
8788 */
8789 hreflang: string;
8790 mimeType: string;
8791 /**
8792 * Sets or retrieves the shape of the object.
8793 */
8794 name: string;
8795 nameProp: string;
8796 /**
8797 * Contains the pathname of the URL.
8798 */
8799 pathname: string;
8800 /**
8801 * Sets or retrieves the port number associated with a URL.
8802 */
8803 port: string;
8804 /**
8805 * Contains the protocol of the URL.
8806 */
8807 protocol: string;
8808 protocolLong: string;
8809 /**
8810 * Sets or retrieves the relationship between the object and the destination of the link.
8811 */
8812 rel: string;
8813 /**
8814 * Sets or retrieves the relationship between the object and the destination of the link.
8815 */
8816 rev: string;
8817 /**
8818 * Sets or retrieves the substring of the href property that follows the question mark.
8819 */
8820 search: string;
8821 /**
8822 * Sets or retrieves the shape of the object.
8823 */
8824 shape: string;
8825 /**
8826 * Sets or retrieves the window or frame at which to target content.
8827 */
8828 target: string;
8829 /**
8830 * Retrieves or sets the text of the object as a string.
8831 */
8832 text: string;
8833 type: string;
8834 urn: string;
8835 /**
8836 * Returns a string representation of an object.
8837 */
8838 toString(): string;
8839}
8840
8841declare var HTMLAnchorElement: {
8842 prototype: HTMLAnchorElement;
8843 new(): HTMLAnchorElement;
8844}
8845
8846interface HTMLAppletElement extends HTMLElement {
8847 /**
8848 * Retrieves a string of the URL where the object tag can be found. This is often the href of the document that the object is in, or the value set by a base element.
8849 */
8850 BaseHref: string;
8851 align: string;
8852 /**
8853 * Sets or retrieves a text alternative to the graphic.
8854 */
8855 alt: string;
8856 /**
8857 * Gets or sets the optional alternative HTML script to execute if the object fails to load.
8858 */
8859 altHtml: string;
8860 /**
8861 * Sets or retrieves a character string that can be used to implement your own archive functionality for the object.
8862 */
8863 archive: string;
8864 border: string;
8865 code: string;
8866 /**
8867 * Sets or retrieves the URL of the component.
8868 */
8869 codeBase: string;
8870 /**
8871 * Sets or retrieves the Internet media type for the code associated with the object.
8872 */
8873 codeType: string;
8874 /**
8875 * Address of a pointer to the document this page or frame contains. If there is no document, then null will be returned.
8876 */
8877 contentDocument: Document;
8878 /**
8879 * Sets or retrieves the URL that references the data of the object.
8880 */
8881 data: string;
8882 /**
8883 * Sets or retrieves a character string that can be used to implement your own declare functionality for the object.
8884 */
8885 declare: boolean;
8886 form: HTMLFormElement;
8887 /**
8888 * Sets or retrieves the height of the object.
8889 */
8890 height: string;
8891 hspace: number;
8892 /**
8893 * Sets or retrieves the shape of the object.
8894 */
8895 name: string;
8896 object: string;
8897 /**
8898 * Sets or retrieves a message to be displayed while an object is loading.
8899 */
8900 standby: string;
8901 /**
8902 * Returns the content type of the object.
8903 */
8904 type: string;
8905 /**
8906 * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
8907 */
8908 useMap: string;
8909 vspace: number;
8910 width: number;
8911}
8912
8913declare var HTMLAppletElement: {
8914 prototype: HTMLAppletElement;
8915 new(): HTMLAppletElement;
8916}
8917
8918interface HTMLAreaElement extends HTMLElement {
8919 /**
8920 * Sets or retrieves a text alternative to the graphic.
8921 */
8922 alt: string;
8923 /**
8924 * Sets or retrieves the coordinates of the object.
8925 */
8926 coords: string;
8927 /**
8928 * Sets or retrieves the subsection of the href property that follows the number sign (#).
8929 */
8930 hash: string;
8931 /**
8932 * Sets or retrieves the hostname and port number of the location or URL.
8933 */
8934 host: string;
8935 /**
8936 * Sets or retrieves the host name part of the location or URL.
8937 */
8938 hostname: string;
8939 /**
8940 * Sets or retrieves a destination URL or an anchor point.
8941 */
8942 href: string;
8943 /**
8944 * Sets or gets whether clicks in this region cause action.
8945 */
8946 noHref: boolean;
8947 /**
8948 * Sets or retrieves the file name or path specified by the object.
8949 */
8950 pathname: string;
8951 /**
8952 * Sets or retrieves the port number associated with a URL.
8953 */
8954 port: string;
8955 /**
8956 * Sets or retrieves the protocol portion of a URL.
8957 */
8958 protocol: string;
8959 rel: string;
8960 /**
8961 * Sets or retrieves the substring of the href property that follows the question mark.
8962 */
8963 search: string;
8964 /**
8965 * Sets or retrieves the shape of the object.
8966 */
8967 shape: string;
8968 /**
8969 * Sets or retrieves the window or frame at which to target content.
8970 */
8971 target: string;
8972 /**
8973 * Returns a string representation of an object.
8974 */
8975 toString(): string;
8976}
8977
8978declare var HTMLAreaElement: {
8979 prototype: HTMLAreaElement;
8980 new(): HTMLAreaElement;
8981}
8982
8983interface HTMLAreasCollection extends HTMLCollection {
8984 /**
8985 * Adds an element to the areas, controlRange, or options collection.
8986 */
8987 add(element: HTMLElement, before?: HTMLElement | number): void;
8988 /**
8989 * Removes an element from the collection.
8990 */
8991 remove(index?: number): void;
8992}
8993
8994declare var HTMLAreasCollection: {
8995 prototype: HTMLAreasCollection;
8996 new(): HTMLAreasCollection;
8997}
8998
8999interface HTMLAudioElement extends HTMLMediaElement {
9000}
9001
9002declare var HTMLAudioElement: {
9003 prototype: HTMLAudioElement;
9004 new(): HTMLAudioElement;
9005}
9006
9007interface HTMLBRElement extends HTMLElement {
9008 /**
9009 * Sets or retrieves the side on which floating objects are not to be positioned when any IHTMLBlockElement is inserted into the document.
9010 */
9011 clear: string;
9012}
9013
9014declare var HTMLBRElement: {
9015 prototype: HTMLBRElement;
9016 new(): HTMLBRElement;
9017}
9018
9019interface HTMLBaseElement extends HTMLElement {
9020 /**
9021 * Gets or sets the baseline URL on which relative links are based.
9022 */
9023 href: string;
9024 /**
9025 * Sets or retrieves the window or frame at which to target content.
9026 */
9027 target: string;
9028}
9029
9030declare var HTMLBaseElement: {
9031 prototype: HTMLBaseElement;
9032 new(): HTMLBaseElement;
9033}
9034
9035interface HTMLBaseFontElement extends HTMLElement, DOML2DeprecatedColorProperty {
9036 /**
9037 * Sets or retrieves the current typeface family.
9038 */
9039 face: string;
9040 /**
9041 * Sets or retrieves the font size of the object.
9042 */
9043 size: number;
9044 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
9045}
9046
9047declare var HTMLBaseFontElement: {
9048 prototype: HTMLBaseFontElement;
9049 new(): HTMLBaseFontElement;
9050}
9051
9052interface HTMLBlockElement extends HTMLElement {
9053 /**
9054 * Sets or retrieves reference information about the object.
9055 */
9056 cite: string;
9057 clear: string;
9058 /**
9059 * Sets or retrieves the width of the object.
9060 */
9061 width: number;
9062}
9063
9064declare var HTMLBlockElement: {
9065 prototype: HTMLBlockElement;
9066 new(): HTMLBlockElement;
9067}
9068
9069interface HTMLBodyElement extends HTMLElement {
9070 aLink: any;
9071 background: string;
9072 bgColor: any;
9073 bgProperties: string;
9074 link: any;
9075 noWrap: boolean;
9076 onafterprint: (ev: Event) => any;
9077 onbeforeprint: (ev: Event) => any;
9078 onbeforeunload: (ev: BeforeUnloadEvent) => any;
9079 onblur: (ev: FocusEvent) => any;
9080 onerror: (ev: Event) => any;
9081 onfocus: (ev: FocusEvent) => any;
9082 onhashchange: (ev: HashChangeEvent) => any;
9083 onload: (ev: Event) => any;
9084 onmessage: (ev: MessageEvent) => any;
9085 onoffline: (ev: Event) => any;
9086 ononline: (ev: Event) => any;
9087 onorientationchange: (ev: Event) => any;
9088 onpagehide: (ev: PageTransitionEvent) => any;
9089 onpageshow: (ev: PageTransitionEvent) => any;
9090 onpopstate: (ev: PopStateEvent) => any;
9091 onresize: (ev: UIEvent) => any;
9092 onstorage: (ev: StorageEvent) => any;
9093 onunload: (ev: Event) => any;
9094 text: any;
9095 vLink: any;
9096 createTextRange(): TextRange;
9097 addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9098 addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9099 addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9100 addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9101 addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9102 addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9103 addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9104 addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9105 addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9106 addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9107 addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void;
9108 addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9109 addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9110 addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9111 addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9112 addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9113 addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9114 addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9115 addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9116 addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9117 addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9118 addEventListener(type: "afterprint", listener: (ev: Event) => any, useCapture?: boolean): void;
9119 addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void;
9120 addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9121 addEventListener(type: "beforecopy", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9122 addEventListener(type: "beforecut", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9123 addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9124 addEventListener(type: "beforepaste", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9125 addEventListener(type: "beforeprint", listener: (ev: Event) => any, useCapture?: boolean): void;
9126 addEventListener(type: "beforeunload", listener: (ev: BeforeUnloadEvent) => any, useCapture?: boolean): void;
9127 addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
9128 addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
9129 addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void;
9130 addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void;
9131 addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void;
9132 addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9133 addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void;
9134 addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9135 addEventListener(type: "copy", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9136 addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void;
9137 addEventListener(type: "cut", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9138 addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9139 addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9140 addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9141 addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9142 addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9143 addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9144 addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9145 addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9146 addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9147 addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void;
9148 addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void;
9149 addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void;
9150 addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
9151 addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
9152 addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
9153 addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
9154 addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9155 addEventListener(type: "hashchange", listener: (ev: HashChangeEvent) => any, useCapture?: boolean): void;
9156 addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void;
9157 addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
9158 addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
9159 addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
9160 addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
9161 addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
9162 addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void;
9163 addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void;
9164 addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void;
9165 addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9166 addEventListener(type: "message", listener: (ev: MessageEvent) => any, useCapture?: boolean): void;
9167 addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9168 addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9169 addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9170 addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9171 addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9172 addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9173 addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9174 addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void;
9175 addEventListener(type: "offline", listener: (ev: Event) => any, useCapture?: boolean): void;
9176 addEventListener(type: "online", listener: (ev: Event) => any, useCapture?: boolean): void;
9177 addEventListener(type: "orientationchange", listener: (ev: Event) => any, useCapture?: boolean): void;
9178 addEventListener(type: "pagehide", listener: (ev: PageTransitionEvent) => any, useCapture?: boolean): void;
9179 addEventListener(type: "pageshow", listener: (ev: PageTransitionEvent) => any, useCapture?: boolean): void;
9180 addEventListener(type: "paste", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9181 addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void;
9182 addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void;
9183 addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void;
9184 addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9185 addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9186 addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9187 addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9188 addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9189 addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9190 addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9191 addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9192 addEventListener(type: "popstate", listener: (ev: PopStateEvent) => any, useCapture?: boolean): void;
9193 addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
9194 addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void;
9195 addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void;
9196 addEventListener(type: "resize", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9197 addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9198 addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void;
9199 addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void;
9200 addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9201 addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void;
9202 addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void;
9203 addEventListener(type: "storage", listener: (ev: StorageEvent) => any, useCapture?: boolean): void;
9204 addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void;
9205 addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void;
9206 addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void;
9207 addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
9208 addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
9209 addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
9210 addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
9211 addEventListener(type: "unload", listener: (ev: Event) => any, useCapture?: boolean): void;
9212 addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void;
9213 addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void;
9214 addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void;
9215 addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void;
9216 addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void;
9217 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
9218}
9219
9220declare var HTMLBodyElement: {
9221 prototype: HTMLBodyElement;
9222 new(): HTMLBodyElement;
9223}
9224
9225interface HTMLButtonElement extends HTMLElement {
9226 /**
9227 * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing.
9228 */
9229 autofocus: boolean;
9230 disabled: boolean;
9231 /**
9232 * Retrieves a reference to the form that the object is embedded in.
9233 */
9234 form: HTMLFormElement;
9235 /**
9236 * Overrides the action attribute (where the data on a form is sent) on the parent form element.
9237 */
9238 formAction: string;
9239 /**
9240 * Used to override the encoding (formEnctype attribute) specified on the form element.
9241 */
9242 formEnctype: string;
9243 /**
9244 * Overrides the submit method attribute previously specified on a form element.
9245 */
9246 formMethod: string;
9247 /**
9248 * Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option.
9249 */
9250 formNoValidate: string;
9251 /**
9252 * Overrides the target attribute on a form element.
9253 */
9254 formTarget: string;
9255 /**
9256 * Sets or retrieves the name of the object.
9257 */
9258 name: string;
9259 status: any;
9260 /**
9261 * Gets the classification and default behavior of the button.
9262 */
9263 type: string;
9264 /**
9265 * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
9266 */
9267 validationMessage: string;
9268 /**
9269 * Returns a ValidityState object that represents the validity states of an element.
9270 */
9271 validity: ValidityState;
9272 /**
9273 * Sets or retrieves the default or selected value of the control.
9274 */
9275 value: string;
9276 /**
9277 * Returns whether an element will successfully validate based on forms validation rules and constraints.
9278 */
9279 willValidate: boolean;
9280 /**
9281 * Returns whether a form will validate when it is submitted, without having to submit it.
9282 */
9283 checkValidity(): boolean;
9284 /**
9285 * Creates a TextRange object for the element.
9286 */
9287 createTextRange(): TextRange;
9288 /**
9289 * Sets a custom error message that is displayed when a form is submitted.
9290 * @param error Sets a custom error message that is displayed when a form is submitted.
9291 */
9292 setCustomValidity(error: string): void;
9293}
9294
9295declare var HTMLButtonElement: {
9296 prototype: HTMLButtonElement;
9297 new(): HTMLButtonElement;
9298}
9299
9300interface HTMLCanvasElement extends HTMLElement {
9301 /**
9302 * Gets or sets the height of a canvas element on a document.
9303 */
9304 height: number;
9305 /**
9306 * Gets or sets the width of a canvas element on a document.
9307 */
9308 width: number;
9309 /**
9310 * Returns an object that provides methods and properties for drawing and manipulating images and graphics on a canvas element in a document. A context object includes information about colors, line widths, fonts, and other graphic parameters that can be drawn on a canvas.
9311 * @param contextId The identifier (ID) of the type of canvas to create. Internet Explorer 9 and Internet Explorer 10 support only a 2-D context using canvas.getContext("2d"); IE11 Preview also supports 3-D or WebGL context using canvas.getContext("experimental-webgl");
9312 */
9313 getContext(contextId: "2d"): CanvasRenderingContext2D;
9314 getContext(contextId: "experimental-webgl"): WebGLRenderingContext;
9315 getContext(contextId: string, ...args: any[]): CanvasRenderingContext2D | WebGLRenderingContext;
9316 /**
9317 * Returns a blob object encoded as a Portable Network Graphics (PNG) format from a canvas image or drawing.
9318 */
9319 msToBlob(): Blob;
9320 /**
9321 * Returns the content of the current canvas as an image that you can use as a source for another canvas or an HTML element.
9322 * @param type The standard MIME type for the image format to return. If you do not specify this parameter, the default value is a PNG format image.
9323 */
9324 toDataURL(type?: string, ...args: any[]): string;
9325 toBlob(): Blob;
9326}
9327
9328declare var HTMLCanvasElement: {
9329 prototype: HTMLCanvasElement;
9330 new(): HTMLCanvasElement;
9331}
9332
9333interface HTMLCollection {
9334 /**
9335 * Sets or retrieves the number of objects in a collection.
9336 */
9337 length: number;
9338 /**
9339 * Retrieves an object from various collections.
9340 */
9341 item(nameOrIndex?: any, optionalIndex?: any): Element;
9342 /**
9343 * Retrieves a select object or an object from an options collection.
9344 */
9345 namedItem(name: string): Element;
9346 [index: number]: Element;
9347}
9348
9349declare var HTMLCollection: {
9350 prototype: HTMLCollection;
9351 new(): HTMLCollection;
9352}
9353
9354interface HTMLDDElement extends HTMLElement {
9355 /**
9356 * Sets or retrieves whether the browser automatically performs wordwrap.
9357 */
9358 noWrap: boolean;
9359}
9360
9361declare var HTMLDDElement: {
9362 prototype: HTMLDDElement;
9363 new(): HTMLDDElement;
9364}
9365
9366interface HTMLDListElement extends HTMLElement {
9367 compact: boolean;
9368}
9369
9370declare var HTMLDListElement: {
9371 prototype: HTMLDListElement;
9372 new(): HTMLDListElement;
9373}
9374
9375interface HTMLDTElement extends HTMLElement {
9376 /**
9377 * Sets or retrieves whether the browser automatically performs wordwrap.
9378 */
9379 noWrap: boolean;
9380}
9381
9382declare var HTMLDTElement: {
9383 prototype: HTMLDTElement;
9384 new(): HTMLDTElement;
9385}
9386
9387interface HTMLDataListElement extends HTMLElement {
9388 options: HTMLCollection;
9389}
9390
9391declare var HTMLDataListElement: {
9392 prototype: HTMLDataListElement;
9393 new(): HTMLDataListElement;
9394}
9395
9396interface HTMLDirectoryElement extends HTMLElement {
9397 compact: boolean;
9398}
9399
9400declare var HTMLDirectoryElement: {
9401 prototype: HTMLDirectoryElement;
9402 new(): HTMLDirectoryElement;
9403}
9404
9405interface HTMLDivElement extends HTMLElement {
9406 /**
9407 * Sets or retrieves how the object is aligned with adjacent text.
9408 */
9409 align: string;
9410 /**
9411 * Sets or retrieves whether the browser automatically performs wordwrap.
9412 */
9413 noWrap: boolean;
9414}
9415
9416declare var HTMLDivElement: {
9417 prototype: HTMLDivElement;
9418 new(): HTMLDivElement;
9419}
9420
9421interface HTMLDocument extends Document {
9422}
9423
9424declare var HTMLDocument: {
9425 prototype: HTMLDocument;
9426 new(): HTMLDocument;
9427}
9428
9429interface HTMLElement extends Element {
9430 accessKey: string;
9431 children: HTMLCollection;
9432 contentEditable: string;
9433 dataset: DOMStringMap;
9434 dir: string;
9435 draggable: boolean;
9436 hidden: boolean;
9437 hideFocus: boolean;
9438 innerHTML: string;
9439 innerText: string;
9440 isContentEditable: boolean;
9441 lang: string;
9442 offsetHeight: number;
9443 offsetLeft: number;
9444 offsetParent: Element;
9445 offsetTop: number;
9446 offsetWidth: number;
9447 onabort: (ev: Event) => any;
9448 onactivate: (ev: UIEvent) => any;
9449 onbeforeactivate: (ev: UIEvent) => any;
9450 onbeforecopy: (ev: DragEvent) => any;
9451 onbeforecut: (ev: DragEvent) => any;
9452 onbeforedeactivate: (ev: UIEvent) => any;
9453 onbeforepaste: (ev: DragEvent) => any;
9454 onblur: (ev: FocusEvent) => any;
9455 oncanplay: (ev: Event) => any;
9456 oncanplaythrough: (ev: Event) => any;
9457 onchange: (ev: Event) => any;
9458 onclick: (ev: MouseEvent) => any;
9459 oncontextmenu: (ev: PointerEvent) => any;
9460 oncopy: (ev: DragEvent) => any;
9461 oncuechange: (ev: Event) => any;
9462 oncut: (ev: DragEvent) => any;
9463 ondblclick: (ev: MouseEvent) => any;
9464 ondeactivate: (ev: UIEvent) => any;
9465 ondrag: (ev: DragEvent) => any;
9466 ondragend: (ev: DragEvent) => any;
9467 ondragenter: (ev: DragEvent) => any;
9468 ondragleave: (ev: DragEvent) => any;
9469 ondragover: (ev: DragEvent) => any;
9470 ondragstart: (ev: DragEvent) => any;
9471 ondrop: (ev: DragEvent) => any;
9472 ondurationchange: (ev: Event) => any;
9473 onemptied: (ev: Event) => any;
9474 onended: (ev: Event) => any;
9475 onerror: (ev: Event) => any;
9476 onfocus: (ev: FocusEvent) => any;
9477 oninput: (ev: Event) => any;
9478 onkeydown: (ev: KeyboardEvent) => any;
9479 onkeypress: (ev: KeyboardEvent) => any;
9480 onkeyup: (ev: KeyboardEvent) => any;
9481 onload: (ev: Event) => any;
9482 onloadeddata: (ev: Event) => any;
9483 onloadedmetadata: (ev: Event) => any;
9484 onloadstart: (ev: Event) => any;
9485 onmousedown: (ev: MouseEvent) => any;
9486 onmouseenter: (ev: MouseEvent) => any;
9487 onmouseleave: (ev: MouseEvent) => any;
9488 onmousemove: (ev: MouseEvent) => any;
9489 onmouseout: (ev: MouseEvent) => any;
9490 onmouseover: (ev: MouseEvent) => any;
9491 onmouseup: (ev: MouseEvent) => any;
9492 onmousewheel: (ev: MouseWheelEvent) => any;
9493 onmscontentzoom: (ev: UIEvent) => any;
9494 onmsmanipulationstatechanged: (ev: MSManipulationEvent) => any;
9495 onpaste: (ev: DragEvent) => any;
9496 onpause: (ev: Event) => any;
9497 onplay: (ev: Event) => any;
9498 onplaying: (ev: Event) => any;
9499 onprogress: (ev: ProgressEvent) => any;
9500 onratechange: (ev: Event) => any;
9501 onreset: (ev: Event) => any;
9502 onscroll: (ev: UIEvent) => any;
9503 onseeked: (ev: Event) => any;
9504 onseeking: (ev: Event) => any;
9505 onselect: (ev: UIEvent) => any;
9506 onselectstart: (ev: Event) => any;
9507 onstalled: (ev: Event) => any;
9508 onsubmit: (ev: Event) => any;
9509 onsuspend: (ev: Event) => any;
9510 ontimeupdate: (ev: Event) => any;
9511 onvolumechange: (ev: Event) => any;
9512 onwaiting: (ev: Event) => any;
9513 outerHTML: string;
9514 outerText: string;
9515 spellcheck: boolean;
9516 style: CSSStyleDeclaration;
9517 tabIndex: number;
9518 title: string;
9519 blur(): void;
9520 click(): void;
9521 dragDrop(): boolean;
9522 focus(): void;
9523 insertAdjacentElement(position: string, insertedElement: Element): Element;
9524 insertAdjacentHTML(where: string, html: string): void;
9525 insertAdjacentText(where: string, text: string): void;
9526 msGetInputContext(): MSInputMethodContext;
9527 scrollIntoView(top?: boolean): void;
9528 setActive(): void;
9529 addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9530 addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9531 addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9532 addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9533 addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9534 addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9535 addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9536 addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9537 addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9538 addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9539 addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void;
9540 addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9541 addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9542 addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9543 addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9544 addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9545 addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9546 addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9547 addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9548 addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9549 addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9550 addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void;
9551 addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9552 addEventListener(type: "beforecopy", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9553 addEventListener(type: "beforecut", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9554 addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9555 addEventListener(type: "beforepaste", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9556 addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
9557 addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void;
9558 addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void;
9559 addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void;
9560 addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9561 addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void;
9562 addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9563 addEventListener(type: "copy", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9564 addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void;
9565 addEventListener(type: "cut", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9566 addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9567 addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9568 addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9569 addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9570 addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9571 addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9572 addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9573 addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9574 addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9575 addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void;
9576 addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void;
9577 addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void;
9578 addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
9579 addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
9580 addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9581 addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void;
9582 addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
9583 addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
9584 addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
9585 addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
9586 addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void;
9587 addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void;
9588 addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void;
9589 addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9590 addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9591 addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9592 addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9593 addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9594 addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9595 addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9596 addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9597 addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void;
9598 addEventListener(type: "paste", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9599 addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void;
9600 addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void;
9601 addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void;
9602 addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9603 addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9604 addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9605 addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9606 addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9607 addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9608 addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9609 addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9610 addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
9611 addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void;
9612 addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void;
9613 addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9614 addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void;
9615 addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void;
9616 addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9617 addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void;
9618 addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void;
9619 addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void;
9620 addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void;
9621 addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void;
9622 addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
9623 addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
9624 addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
9625 addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
9626 addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void;
9627 addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void;
9628 addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void;
9629 addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void;
9630 addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void;
9631 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
9632}
9633
9634declare var HTMLElement: {
9635 prototype: HTMLElement;
9636 new(): HTMLElement;
9637}
9638
9639interface HTMLEmbedElement extends HTMLElement, GetSVGDocument {
9640 /**
9641 * Sets or retrieves the height of the object.
9642 */
9643 height: string;
9644 hidden: any;
9645 /**
9646 * Gets or sets whether the DLNA PlayTo device is available.
9647 */
9648 msPlayToDisabled: boolean;
9649 /**
9650 * Gets or sets the path to the preferred media source. This enables the Play To target device to stream the media content, which can be DRM protected, from a different location, such as a cloud media server.
9651 */
9652 msPlayToPreferredSourceUri: string;
9653 /**
9654 * Gets or sets the primary DLNA PlayTo device.
9655 */
9656 msPlayToPrimary: boolean;
9657 /**
9658 * Gets the source associated with the media element for use by the PlayToManager.
9659 */
9660 msPlayToSource: any;
9661 /**
9662 * Sets or retrieves the name of the object.
9663 */
9664 name: string;
9665 /**
9666 * Retrieves the palette used for the embedded document.
9667 */
9668 palette: string;
9669 /**
9670 * Retrieves the URL of the plug-in used to view an embedded document.
9671 */
9672 pluginspage: string;
9673 readyState: string;
9674 /**
9675 * Sets or retrieves a URL to be loaded by the object.
9676 */
9677 src: string;
9678 /**
9679 * Sets or retrieves the height and width units of the embed object.
9680 */
9681 units: string;
9682 /**
9683 * Sets or retrieves the width of the object.
9684 */
9685 width: string;
9686 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
9687}
9688
9689declare var HTMLEmbedElement: {
9690 prototype: HTMLEmbedElement;
9691 new(): HTMLEmbedElement;
9692}
9693
9694interface HTMLFieldSetElement extends HTMLElement {
9695 /**
9696 * Sets or retrieves how the object is aligned with adjacent text.
9697 */
9698 align: string;
9699 disabled: boolean;
9700 /**
9701 * Retrieves a reference to the form that the object is embedded in.
9702 */
9703 form: HTMLFormElement;
9704 /**
9705 * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
9706 */
9707 validationMessage: string;
9708 /**
9709 * Returns a ValidityState object that represents the validity states of an element.
9710 */
9711 validity: ValidityState;
9712 /**
9713 * Returns whether an element will successfully validate based on forms validation rules and constraints.
9714 */
9715 willValidate: boolean;
9716 /**
9717 * Returns whether a form will validate when it is submitted, without having to submit it.
9718 */
9719 checkValidity(): boolean;
9720 /**
9721 * Sets a custom error message that is displayed when a form is submitted.
9722 * @param error Sets a custom error message that is displayed when a form is submitted.
9723 */
9724 setCustomValidity(error: string): void;
9725}
9726
9727declare var HTMLFieldSetElement: {
9728 prototype: HTMLFieldSetElement;
9729 new(): HTMLFieldSetElement;
9730}
9731
9732interface HTMLFontElement extends HTMLElement, DOML2DeprecatedColorProperty, DOML2DeprecatedSizeProperty {
9733 /**
9734 * Sets or retrieves the current typeface family.
9735 */
9736 face: string;
9737 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
9738}
9739
9740declare var HTMLFontElement: {
9741 prototype: HTMLFontElement;
9742 new(): HTMLFontElement;
9743}
9744
9745interface HTMLFormElement extends HTMLElement {
9746 /**
9747 * Sets or retrieves a list of character encodings for input data that must be accepted by the server processing the form.
9748 */
9749 acceptCharset: string;
9750 /**
9751 * Sets or retrieves the URL to which the form content is sent for processing.
9752 */
9753 action: string;
9754 /**
9755 * Specifies whether autocomplete is applied to an editable text field.
9756 */
9757 autocomplete: string;
9758 /**
9759 * Retrieves a collection, in source order, of all controls in a given form.
9760 */
9761 elements: HTMLCollection;
9762 /**
9763 * Sets or retrieves the MIME encoding for the form.
9764 */
9765 encoding: string;
9766 /**
9767 * Sets or retrieves the encoding type for the form.
9768 */
9769 enctype: string;
9770 /**
9771 * Sets or retrieves the number of objects in a collection.
9772 */
9773 length: number;
9774 /**
9775 * Sets or retrieves how to send the form data to the server.
9776 */
9777 method: string;
9778 /**
9779 * Sets or retrieves the name of the object.
9780 */
9781 name: string;
9782 /**
9783 * Designates a form that is not validated when submitted.
9784 */
9785 noValidate: boolean;
9786 /**
9787 * Sets or retrieves the window or frame at which to target content.
9788 */
9789 target: string;
9790 /**
9791 * Returns whether a form will validate when it is submitted, without having to submit it.
9792 */
9793 checkValidity(): boolean;
9794 /**
9795 * Retrieves a form object or an object from an elements collection.
9796 * @param name Variant of type Number or String that specifies the object or collection to retrieve. If this parameter is a Number, it is the zero-based index of the object. If this parameter is a string, all objects with matching name or id properties are retrieved, and a collection is returned if more than one match is made.
9797 * @param index Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned.
9798 */
9799 item(name?: any, index?: any): any;
9800 /**
9801 * Retrieves a form object or an object from an elements collection.
9802 */
9803 namedItem(name: string): any;
9804 /**
9805 * Fires when the user resets a form.
9806 */
9807 reset(): void;
9808 /**
9809 * Fires when a FORM is about to be submitted.
9810 */
9811 submit(): void;
9812 [name: string]: any;
9813}
9814
9815declare var HTMLFormElement: {
9816 prototype: HTMLFormElement;
9817 new(): HTMLFormElement;
9818}
9819
9820interface HTMLFrameElement extends HTMLElement, GetSVGDocument {
9821 /**
9822 * Specifies the properties of a border drawn around an object.
9823 */
9824 border: string;
9825 /**
9826 * Sets or retrieves the border color of the object.
9827 */
9828 borderColor: any;
9829 /**
9830 * Retrieves the document object of the page or frame.
9831 */
9832 contentDocument: Document;
9833 /**
9834 * Retrieves the object of the specified.
9835 */
9836 contentWindow: Window;
9837 /**
9838 * Sets or retrieves whether to display a border for the frame.
9839 */
9840 frameBorder: string;
9841 /**
9842 * Sets or retrieves the amount of additional space between the frames.
9843 */
9844 frameSpacing: any;
9845 /**
9846 * Sets or retrieves the height of the object.
9847 */
9848 height: string | number;
9849 /**
9850 * Sets or retrieves a URI to a long description of the object.
9851 */
9852 longDesc: string;
9853 /**
9854 * Sets or retrieves the top and bottom margin heights before displaying the text in a frame.
9855 */
9856 marginHeight: string;
9857 /**
9858 * Sets or retrieves the left and right margin widths before displaying the text in a frame.
9859 */
9860 marginWidth: string;
9861 /**
9862 * Sets or retrieves the frame name.
9863 */
9864 name: string;
9865 /**
9866 * Sets or retrieves whether the user can resize the frame.
9867 */
9868 noResize: boolean;
9869 /**
9870 * Raised when the object has been completely received from the server.
9871 */
9872 onload: (ev: Event) => any;
9873 /**
9874 * Sets or retrieves whether the frame can be scrolled.
9875 */
9876 scrolling: string;
9877 /**
9878 * Sets the value indicating whether the source file of a frame or iframe has specific security restrictions applied.
9879 */
9880 security: any;
9881 /**
9882 * Sets or retrieves a URL to be loaded by the object.
9883 */
9884 src: string;
9885 /**
9886 * Sets or retrieves the width of the object.
9887 */
9888 width: string | number;
9889 addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9890 addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9891 addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9892 addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9893 addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9894 addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9895 addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9896 addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9897 addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9898 addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9899 addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void;
9900 addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9901 addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9902 addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9903 addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9904 addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9905 addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9906 addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9907 addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9908 addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9909 addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9910 addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void;
9911 addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9912 addEventListener(type: "beforecopy", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9913 addEventListener(type: "beforecut", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9914 addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9915 addEventListener(type: "beforepaste", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9916 addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
9917 addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void;
9918 addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void;
9919 addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void;
9920 addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9921 addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void;
9922 addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9923 addEventListener(type: "copy", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9924 addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void;
9925 addEventListener(type: "cut", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9926 addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9927 addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9928 addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9929 addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9930 addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9931 addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9932 addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9933 addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9934 addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9935 addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void;
9936 addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void;
9937 addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void;
9938 addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
9939 addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
9940 addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9941 addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void;
9942 addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
9943 addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
9944 addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
9945 addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
9946 addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
9947 addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void;
9948 addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void;
9949 addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void;
9950 addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9951 addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9952 addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9953 addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9954 addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9955 addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9956 addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9957 addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9958 addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void;
9959 addEventListener(type: "paste", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9960 addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void;
9961 addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void;
9962 addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void;
9963 addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9964 addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9965 addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9966 addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9967 addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9968 addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9969 addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9970 addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9971 addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
9972 addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void;
9973 addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void;
9974 addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9975 addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void;
9976 addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void;
9977 addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9978 addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void;
9979 addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void;
9980 addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void;
9981 addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void;
9982 addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void;
9983 addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
9984 addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
9985 addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
9986 addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
9987 addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void;
9988 addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void;
9989 addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void;
9990 addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void;
9991 addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void;
9992 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
9993}
9994
9995declare var HTMLFrameElement: {
9996 prototype: HTMLFrameElement;
9997 new(): HTMLFrameElement;
9998}
9999
10000interface HTMLFrameSetElement extends HTMLElement {
10001 border: string;
10002 /**
10003 * Sets or retrieves the border color of the object.
10004 */
10005 borderColor: any;
10006 /**
10007 * Sets or retrieves the frame widths of the object.
10008 */
10009 cols: string;
10010 /**
10011 * Sets or retrieves whether to display a border for the frame.
10012 */
10013 frameBorder: string;
10014 /**
10015 * Sets or retrieves the amount of additional space between the frames.
10016 */
10017 frameSpacing: any;
10018 name: string;
10019 onafterprint: (ev: Event) => any;
10020 onbeforeprint: (ev: Event) => any;
10021 onbeforeunload: (ev: BeforeUnloadEvent) => any;
10022 /**
10023 * Fires when the object loses the input focus.
10024 */
10025 onblur: (ev: FocusEvent) => any;
10026 onerror: (ev: Event) => any;
10027 /**
10028 * Fires when the object receives focus.
10029 */
10030 onfocus: (ev: FocusEvent) => any;
10031 onhashchange: (ev: HashChangeEvent) => any;
10032 onload: (ev: Event) => any;
10033 onmessage: (ev: MessageEvent) => any;
10034 onoffline: (ev: Event) => any;
10035 ononline: (ev: Event) => any;
10036 onorientationchange: (ev: Event) => any;
10037 onpagehide: (ev: PageTransitionEvent) => any;
10038 onpageshow: (ev: PageTransitionEvent) => any;
10039 onresize: (ev: UIEvent) => any;
10040 onstorage: (ev: StorageEvent) => any;
10041 onunload: (ev: Event) => any;
10042 /**
10043 * Sets or retrieves the frame heights of the object.
10044 */
10045 rows: string;
10046 addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10047 addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
10048 addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
10049 addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
10050 addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
10051 addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
10052 addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
10053 addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10054 addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
10055 addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10056 addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void;
10057 addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10058 addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10059 addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10060 addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10061 addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10062 addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10063 addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10064 addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10065 addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10066 addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10067 addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void;
10068 addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10069 addEventListener(type: "beforecopy", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10070 addEventListener(type: "beforecut", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10071 addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10072 addEventListener(type: "beforepaste", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10073 addEventListener(type: "beforeprint", listener: (ev: Event) => any, useCapture?: boolean): void;
10074 addEventListener(type: "beforeunload", listener: (ev: BeforeUnloadEvent) => any, useCapture?: boolean): void;
10075 addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
10076 addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
10077 addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void;
10078 addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void;
10079 addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void;
10080 addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10081 addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void;
10082 addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10083 addEventListener(type: "copy", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10084 addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void;
10085 addEventListener(type: "cut", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10086 addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10087 addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10088 addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10089 addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10090 addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10091 addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10092 addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10093 addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10094 addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10095 addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void;
10096 addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void;
10097 addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void;
10098 addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
10099 addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
10100 addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
10101 addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
10102 addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10103 addEventListener(type: "hashchange", listener: (ev: HashChangeEvent) => any, useCapture?: boolean): void;
10104 addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void;
10105 addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
10106 addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
10107 addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
10108 addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
10109 addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
10110 addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void;
10111 addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void;
10112 addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void;
10113 addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10114 addEventListener(type: "message", listener: (ev: MessageEvent) => any, useCapture?: boolean): void;
10115 addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10116 addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10117 addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10118 addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10119 addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10120 addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10121 addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10122 addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void;
10123 addEventListener(type: "offline", listener: (ev: Event) => any, useCapture?: boolean): void;
10124 addEventListener(type: "online", listener: (ev: Event) => any, useCapture?: boolean): void;
10125 addEventListener(type: "orientationchange", listener: (ev: Event) => any, useCapture?: boolean): void;
10126 addEventListener(type: "pagehide", listener: (ev: PageTransitionEvent) => any, useCapture?: boolean): void;
10127 addEventListener(type: "pageshow", listener: (ev: PageTransitionEvent) => any, useCapture?: boolean): void;
10128 addEventListener(type: "paste", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10129 addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void;
10130 addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void;
10131 addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void;
10132 addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10133 addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10134 addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10135 addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10136 addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10137 addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10138 addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10139 addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10140 addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
10141 addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void;
10142 addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void;
10143 addEventListener(type: "resize", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10144 addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10145 addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void;
10146 addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void;
10147 addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10148 addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void;
10149 addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void;
10150 addEventListener(type: "storage", listener: (ev: StorageEvent) => any, useCapture?: boolean): void;
10151 addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void;
10152 addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void;
10153 addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void;
10154 addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
10155 addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
10156 addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
10157 addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
10158 addEventListener(type: "unload", listener: (ev: Event) => any, useCapture?: boolean): void;
10159 addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void;
10160 addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void;
10161 addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void;
10162 addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void;
10163 addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void;
10164 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
10165}
10166
10167declare var HTMLFrameSetElement: {
10168 prototype: HTMLFrameSetElement;
10169 new(): HTMLFrameSetElement;
10170}
10171
10172interface HTMLHRElement extends HTMLElement, DOML2DeprecatedColorProperty, DOML2DeprecatedSizeProperty {
10173 /**
10174 * Sets or retrieves how the object is aligned with adjacent text.
10175 */
10176 align: string;
10177 /**
10178 * Sets or retrieves whether the horizontal rule is drawn with 3-D shading.
10179 */
10180 noShade: boolean;
10181 /**
10182 * Sets or retrieves the width of the object.
10183 */
10184 width: number;
10185 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
10186}
10187
10188declare var HTMLHRElement: {
10189 prototype: HTMLHRElement;
10190 new(): HTMLHRElement;
10191}
10192
10193interface HTMLHeadElement extends HTMLElement {
10194 profile: string;
10195}
10196
10197declare var HTMLHeadElement: {
10198 prototype: HTMLHeadElement;
10199 new(): HTMLHeadElement;
10200}
10201
10202interface HTMLHeadingElement extends HTMLElement {
10203 /**
10204 * Sets or retrieves a value that indicates the table alignment.
10205 */
10206 align: string;
10207 clear: string;
10208}
10209
10210declare var HTMLHeadingElement: {
10211 prototype: HTMLHeadingElement;
10212 new(): HTMLHeadingElement;
10213}
10214
10215interface HTMLHtmlElement extends HTMLElement {
10216 /**
10217 * Sets or retrieves the DTD version that governs the current document.
10218 */
10219 version: string;
10220}
10221
10222declare var HTMLHtmlElement: {
10223 prototype: HTMLHtmlElement;
10224 new(): HTMLHtmlElement;
10225}
10226
10227interface HTMLIFrameElement extends HTMLElement, GetSVGDocument {
10228 /**
10229 * Sets or retrieves how the object is aligned with adjacent text.
10230 */
10231 align: string;
10232 allowFullscreen: boolean;
10233 /**
10234 * Specifies the properties of a border drawn around an object.
10235 */
10236 border: string;
10237 /**
10238 * Retrieves the document object of the page or frame.
10239 */
10240 contentDocument: Document;
10241 /**
10242 * Retrieves the object of the specified.
10243 */
10244 contentWindow: Window;
10245 /**
10246 * Sets or retrieves whether to display a border for the frame.
10247 */
10248 frameBorder: string;
10249 /**
10250 * Sets or retrieves the amount of additional space between the frames.
10251 */
10252 frameSpacing: any;
10253 /**
10254 * Sets or retrieves the height of the object.
10255 */
10256 height: string;
10257 /**
10258 * Sets or retrieves the horizontal margin for the object.
10259 */
10260 hspace: number;
10261 /**
10262 * Sets or retrieves a URI to a long description of the object.
10263 */
10264 longDesc: string;
10265 /**
10266 * Sets or retrieves the top and bottom margin heights before displaying the text in a frame.
10267 */
10268 marginHeight: string;
10269 /**
10270 * Sets or retrieves the left and right margin widths before displaying the text in a frame.
10271 */
10272 marginWidth: string;
10273 /**
10274 * Sets or retrieves the frame name.
10275 */
10276 name: string;
10277 /**
10278 * Sets or retrieves whether the user can resize the frame.
10279 */
10280 noResize: boolean;
10281 /**
10282 * Raised when the object has been completely received from the server.
10283 */
10284 onload: (ev: Event) => any;
10285 sandbox: DOMSettableTokenList;
10286 /**
10287 * Sets or retrieves whether the frame can be scrolled.
10288 */
10289 scrolling: string;
10290 /**
10291 * Sets the value indicating whether the source file of a frame or iframe has specific security restrictions applied.
10292 */
10293 security: any;
10294 /**
10295 * Sets or retrieves a URL to be loaded by the object.
10296 */
10297 src: string;
10298 /**
10299 * Sets or retrieves the vertical margin for the object.
10300 */
10301 vspace: number;
10302 /**
10303 * Sets or retrieves the width of the object.
10304 */
10305 width: string;
10306 addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10307 addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
10308 addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
10309 addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
10310 addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
10311 addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
10312 addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
10313 addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10314 addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
10315 addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10316 addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void;
10317 addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10318 addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10319 addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10320 addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10321 addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10322 addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10323 addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10324 addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10325 addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10326 addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10327 addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void;
10328 addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10329 addEventListener(type: "beforecopy", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10330 addEventListener(type: "beforecut", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10331 addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10332 addEventListener(type: "beforepaste", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10333 addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
10334 addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void;
10335 addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void;
10336 addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void;
10337 addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10338 addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void;
10339 addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10340 addEventListener(type: "copy", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10341 addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void;
10342 addEventListener(type: "cut", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10343 addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10344 addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10345 addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10346 addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10347 addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10348 addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10349 addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10350 addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10351 addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10352 addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void;
10353 addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void;
10354 addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void;
10355 addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
10356 addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
10357 addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10358 addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void;
10359 addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
10360 addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
10361 addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
10362 addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
10363 addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
10364 addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void;
10365 addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void;
10366 addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void;
10367 addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10368 addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10369 addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10370 addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10371 addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10372 addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10373 addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10374 addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10375 addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void;
10376 addEventListener(type: "paste", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10377 addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void;
10378 addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void;
10379 addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void;
10380 addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10381 addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10382 addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10383 addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10384 addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10385 addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10386 addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10387 addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10388 addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
10389 addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void;
10390 addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void;
10391 addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10392 addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void;
10393 addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void;
10394 addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10395 addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void;
10396 addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void;
10397 addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void;
10398 addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void;
10399 addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void;
10400 addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
10401 addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
10402 addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
10403 addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
10404 addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void;
10405 addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void;
10406 addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void;
10407 addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void;
10408 addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void;
10409 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
10410}
10411
10412declare var HTMLIFrameElement: {
10413 prototype: HTMLIFrameElement;
10414 new(): HTMLIFrameElement;
10415}
10416
10417interface HTMLImageElement extends HTMLElement {
10418 /**
10419 * Sets or retrieves how the object is aligned with adjacent text.
10420 */
10421 align: string;
10422 /**
10423 * Sets or retrieves a text alternative to the graphic.
10424 */
10425 alt: string;
10426 /**
10427 * Specifies the properties of a border drawn around an object.
10428 */
10429 border: string;
10430 /**
10431 * Retrieves whether the object is fully loaded.
10432 */
10433 complete: boolean;
10434 crossOrigin: string;
10435 currentSrc: string;
10436 /**
10437 * Sets or retrieves the height of the object.
10438 */
10439 height: number;
10440 /**
10441 * Sets or retrieves the width of the border to draw around the object.
10442 */
10443 hspace: number;
10444 /**
10445 * Sets or retrieves whether the image is a server-side image map.
10446 */
10447 isMap: boolean;
10448 /**
10449 * Sets or retrieves a Uniform Resource Identifier (URI) to a long description of the object.
10450 */
10451 longDesc: string;
10452 /**
10453 * Gets or sets whether the DLNA PlayTo device is available.
10454 */
10455 msPlayToDisabled: boolean;
10456 msPlayToPreferredSourceUri: string;
10457 /**
10458 * Gets or sets the primary DLNA PlayTo device.
10459 */
10460 msPlayToPrimary: boolean;
10461 /**
10462 * Gets the source associated with the media element for use by the PlayToManager.
10463 */
10464 msPlayToSource: any;
10465 /**
10466 * Sets or retrieves the name of the object.
10467 */
10468 name: string;
10469 /**
10470 * The original height of the image resource before sizing.
10471 */
10472 naturalHeight: number;
10473 /**
10474 * The original width of the image resource before sizing.
10475 */
10476 naturalWidth: number;
10477 /**
10478 * The address or URL of the a media resource that is to be considered.
10479 */
10480 src: string;
10481 srcset: string;
10482 /**
10483 * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
10484 */
10485 useMap: string;
10486 /**
10487 * Sets or retrieves the vertical margin for the object.
10488 */
10489 vspace: number;
10490 /**
10491 * Sets or retrieves the width of the object.
10492 */
10493 width: number;
10494 x: number;
10495 y: number;
10496 msGetAsCastingSource(): any;
10497}
10498
10499declare var HTMLImageElement: {
10500 prototype: HTMLImageElement;
10501 new(): HTMLImageElement;
10502 create(): HTMLImageElement;
10503}
10504
10505interface HTMLInputElement extends HTMLElement {
10506 /**
10507 * Sets or retrieves a comma-separated list of content types.
10508 */
10509 accept: string;
10510 /**
10511 * Sets or retrieves how the object is aligned with adjacent text.
10512 */
10513 align: string;
10514 /**
10515 * Sets or retrieves a text alternative to the graphic.
10516 */
10517 alt: string;
10518 /**
10519 * Specifies whether autocomplete is applied to an editable text field.
10520 */
10521 autocomplete: string;
10522 /**
10523 * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing.
10524 */
10525 autofocus: boolean;
10526 /**
10527 * Sets or retrieves the width of the border to draw around the object.
10528 */
10529 border: string;
10530 /**
10531 * Sets or retrieves the state of the check box or radio button.
10532 */
10533 checked: boolean;
10534 /**
10535 * Retrieves whether the object is fully loaded.
10536 */
10537 complete: boolean;
10538 /**
10539 * Sets or retrieves the state of the check box or radio button.
10540 */
10541 defaultChecked: boolean;
10542 /**
10543 * Sets or retrieves the initial contents of the object.
10544 */
10545 defaultValue: string;
10546 disabled: boolean;
10547 /**
10548 * Returns a FileList object on a file type input object.
10549 */
10550 files: FileList;
10551 /**
10552 * Retrieves a reference to the form that the object is embedded in.
10553 */
10554 form: HTMLFormElement;
10555 /**
10556 * Overrides the action attribute (where the data on a form is sent) on the parent form element.
10557 */
10558 formAction: string;
10559 /**
10560 * Used to override the encoding (formEnctype attribute) specified on the form element.
10561 */
10562 formEnctype: string;
10563 /**
10564 * Overrides the submit method attribute previously specified on a form element.
10565 */
10566 formMethod: string;
10567 /**
10568 * Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option.
10569 */
10570 formNoValidate: string;
10571 /**
10572 * Overrides the target attribute on a form element.
10573 */
10574 formTarget: string;
10575 /**
10576 * Sets or retrieves the height of the object.
10577 */
10578 height: string;
10579 /**
10580 * Sets or retrieves the width of the border to draw around the object.
10581 */
10582 hspace: number;
10583 indeterminate: boolean;
10584 /**
10585 * Specifies the ID of a pre-defined datalist of options for an input element.
10586 */
10587 list: HTMLElement;
10588 /**
10589 * Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field.
10590 */
10591 max: string;
10592 /**
10593 * Sets or retrieves the maximum number of characters that the user can enter in a text control.
10594 */
10595 maxLength: number;
10596 /**
10597 * Defines the minimum acceptable value for an input element with type="number". When used with the max and step attributes, lets you control the range and increment (such as even numbers only) that the user can enter into an input field.
10598 */
10599 min: string;
10600 /**
10601 * Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.
10602 */
10603 multiple: boolean;
10604 /**
10605 * Sets or retrieves the name of the object.
10606 */
10607 name: string;
10608 /**
10609 * Gets or sets a string containing a regular expression that the user's input must match.
10610 */
10611 pattern: string;
10612 /**
10613 * Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field.
10614 */
10615 placeholder: string;
10616 readOnly: boolean;
10617 /**
10618 * When present, marks an element that can't be submitted without a value.
10619 */
10620 required: boolean;
10621 /**
10622 * Gets or sets the end position or offset of a text selection.
10623 */
10624 selectionEnd: number;
10625 /**
10626 * Gets or sets the starting position or offset of a text selection.
10627 */
10628 selectionStart: number;
10629 size: number;
10630 /**
10631 * The address or URL of the a media resource that is to be considered.
10632 */
10633 src: string;
10634 status: boolean;
10635 /**
10636 * Defines an increment or jump between values that you want to allow the user to enter. When used with the max and min attributes, lets you control the range and increment (for example, allow only even numbers) that the user can enter into an input field.
10637 */
10638 step: string;
10639 /**
10640 * Returns the content type of the object.
10641 */
10642 type: string;
10643 /**
10644 * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
10645 */
10646 useMap: string;
10647 /**
10648 * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
10649 */
10650 validationMessage: string;
10651 /**
10652 * Returns a ValidityState object that represents the validity states of an element.
10653 */
10654 validity: ValidityState;
10655 /**
10656 * Returns the value of the data at the cursor's current position.
10657 */
10658 value: string;
10659 valueAsDate: Date;
10660 /**
10661 * Returns the input field value as a number.
10662 */
10663 valueAsNumber: number;
10664 /**
10665 * Sets or retrieves the vertical margin for the object.
10666 */
10667 vspace: number;
10668 /**
10669 * Sets or retrieves the width of the object.
10670 */
10671 width: string;
10672 /**
10673 * Returns whether an element will successfully validate based on forms validation rules and constraints.
10674 */
10675 willValidate: boolean;
10676 /**
10677 * Returns whether a form will validate when it is submitted, without having to submit it.
10678 */
10679 checkValidity(): boolean;
10680 /**
10681 * Creates a TextRange object for the element.
10682 */
10683 createTextRange(): TextRange;
10684 /**
10685 * Makes the selection equal to the current object.
10686 */
10687 select(): void;
10688 /**
10689 * Sets a custom error message that is displayed when a form is submitted.
10690 * @param error Sets a custom error message that is displayed when a form is submitted.
10691 */
10692 setCustomValidity(error: string): void;
10693 /**
10694 * Sets the start and end positions of a selection in a text field.
10695 * @param start The offset into the text field for the start of the selection.
10696 * @param end The offset into the text field for the end of the selection.
10697 */
10698 setSelectionRange(start: number, end: number): void;
10699 /**
10700 * Decrements a range input control's value by the value given by the Step attribute. If the optional parameter is used, it will decrement the input control's step value multiplied by the parameter's value.
10701 * @param n Value to decrement the value by.
10702 */
10703 stepDown(n?: number): void;
10704 /**
10705 * Increments a range input control's value by the value given by the Step attribute. If the optional parameter is used, will increment the input control's value by that value.
10706 * @param n Value to increment the value by.
10707 */
10708 stepUp(n?: number): void;
10709}
10710
10711declare var HTMLInputElement: {
10712 prototype: HTMLInputElement;
10713 new(): HTMLInputElement;
10714}
10715
10716interface HTMLIsIndexElement extends HTMLElement {
10717 /**
10718 * Sets or retrieves the URL to which the form content is sent for processing.
10719 */
10720 action: string;
10721 /**
10722 * Retrieves a reference to the form that the object is embedded in.
10723 */
10724 form: HTMLFormElement;
10725 prompt: string;
10726}
10727
10728declare var HTMLIsIndexElement: {
10729 prototype: HTMLIsIndexElement;
10730 new(): HTMLIsIndexElement;
10731}
10732
10733interface HTMLLIElement extends HTMLElement {
10734 type: string;
10735 /**
10736 * Sets or retrieves the value of a list item.
10737 */
10738 value: number;
10739}
10740
10741declare var HTMLLIElement: {
10742 prototype: HTMLLIElement;
10743 new(): HTMLLIElement;
10744}
10745
10746interface HTMLLabelElement extends HTMLElement {
10747 /**
10748 * Retrieves a reference to the form that the object is embedded in.
10749 */
10750 form: HTMLFormElement;
10751 /**
10752 * Sets or retrieves the object to which the given label object is assigned.
10753 */
10754 htmlFor: string;
10755}
10756
10757declare var HTMLLabelElement: {
10758 prototype: HTMLLabelElement;
10759 new(): HTMLLabelElement;
10760}
10761
10762interface HTMLLegendElement extends HTMLElement {
10763 /**
10764 * Retrieves a reference to the form that the object is embedded in.
10765 */
10766 align: string;
10767 /**
10768 * Retrieves a reference to the form that the object is embedded in.
10769 */
10770 form: HTMLFormElement;
10771}
10772
10773declare var HTMLLegendElement: {
10774 prototype: HTMLLegendElement;
10775 new(): HTMLLegendElement;
10776}
10777
10778interface HTMLLinkElement extends HTMLElement, LinkStyle {
10779 /**
10780 * Sets or retrieves the character set used to encode the object.
10781 */
10782 charset: string;
10783 disabled: boolean;
10784 /**
10785 * Sets or retrieves a destination URL or an anchor point.
10786 */
10787 href: string;
10788 /**
10789 * Sets or retrieves the language code of the object.
10790 */
10791 hreflang: string;
10792 /**
10793 * Sets or retrieves the media type.
10794 */
10795 media: string;
10796 /**
10797 * Sets or retrieves the relationship between the object and the destination of the link.
10798 */
10799 rel: string;
10800 /**
10801 * Sets or retrieves the relationship between the object and the destination of the link.
10802 */
10803 rev: string;
10804 /**
10805 * Sets or retrieves the window or frame at which to target content.
10806 */
10807 target: string;
10808 /**
10809 * Sets or retrieves the MIME type of the object.
10810 */
10811 type: string;
10812 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
10813}
10814
10815declare var HTMLLinkElement: {
10816 prototype: HTMLLinkElement;
10817 new(): HTMLLinkElement;
10818}
10819
10820interface HTMLMapElement extends HTMLElement {
10821 /**
10822 * Retrieves a collection of the area objects defined for the given map object.
10823 */
10824 areas: HTMLAreasCollection;
10825 /**
10826 * Sets or retrieves the name of the object.
10827 */
10828 name: string;
10829}
10830
10831declare var HTMLMapElement: {
10832 prototype: HTMLMapElement;
10833 new(): HTMLMapElement;
10834}
10835
10836interface HTMLMarqueeElement extends HTMLElement {
10837 behavior: string;
10838 bgColor: any;
10839 direction: string;
10840 height: string;
10841 hspace: number;
10842 loop: number;
10843 onbounce: (ev: Event) => any;
10844 onfinish: (ev: Event) => any;
10845 onstart: (ev: Event) => any;
10846 scrollAmount: number;
10847 scrollDelay: number;
10848 trueSpeed: boolean;
10849 vspace: number;
10850 width: string;
10851 start(): void;
10852 stop(): void;
10853 addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10854 addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
10855 addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
10856 addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
10857 addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
10858 addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
10859 addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
10860 addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10861 addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
10862 addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10863 addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void;
10864 addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10865 addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10866 addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10867 addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10868 addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10869 addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10870 addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10871 addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10872 addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10873 addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10874 addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void;
10875 addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10876 addEventListener(type: "beforecopy", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10877 addEventListener(type: "beforecut", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10878 addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10879 addEventListener(type: "beforepaste", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10880 addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
10881 addEventListener(type: "bounce", listener: (ev: Event) => any, useCapture?: boolean): void;
10882 addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void;
10883 addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void;
10884 addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void;
10885 addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10886 addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void;
10887 addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10888 addEventListener(type: "copy", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10889 addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void;
10890 addEventListener(type: "cut", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10891 addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10892 addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10893 addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10894 addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10895 addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10896 addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10897 addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10898 addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10899 addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10900 addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void;
10901 addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void;
10902 addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void;
10903 addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
10904 addEventListener(type: "finish", listener: (ev: Event) => any, useCapture?: boolean): void;
10905 addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
10906 addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10907 addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void;
10908 addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
10909 addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
10910 addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
10911 addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
10912 addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void;
10913 addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void;
10914 addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void;
10915 addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10916 addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10917 addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10918 addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10919 addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10920 addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10921 addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10922 addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10923 addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void;
10924 addEventListener(type: "paste", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10925 addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void;
10926 addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void;
10927 addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void;
10928 addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10929 addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10930 addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10931 addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10932 addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10933 addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10934 addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10935 addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10936 addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
10937 addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void;
10938 addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void;
10939 addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10940 addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void;
10941 addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void;
10942 addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10943 addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void;
10944 addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void;
10945 addEventListener(type: "start", listener: (ev: Event) => any, useCapture?: boolean): void;
10946 addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void;
10947 addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void;
10948 addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void;
10949 addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
10950 addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
10951 addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
10952 addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
10953 addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void;
10954 addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void;
10955 addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void;
10956 addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void;
10957 addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void;
10958 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
10959}
10960
10961declare var HTMLMarqueeElement: {
10962 prototype: HTMLMarqueeElement;
10963 new(): HTMLMarqueeElement;
10964}
10965
10966interface HTMLMediaElement extends HTMLElement {
10967 /**
10968 * Returns an AudioTrackList object with the audio tracks for a given video element.
10969 */
10970 audioTracks: AudioTrackList;
10971 /**
10972 * Gets or sets a value that indicates whether to start playing the media automatically.
10973 */
10974 autoplay: boolean;
10975 /**
10976 * Gets a collection of buffered time ranges.
10977 */
10978 buffered: TimeRanges;
10979 /**
10980 * Gets or sets a flag that indicates whether the client provides a set of controls for the media (in case the developer does not include controls for the player).
10981 */
10982 controls: boolean;
10983 /**
10984 * Gets the address or URL of the current media resource that is selected by IHTMLMediaElement.
10985 */
10986 currentSrc: string;
10987 /**
10988 * Gets or sets the current playback position, in seconds.
10989 */
10990 currentTime: number;
10991 defaultMuted: boolean;
10992 /**
10993 * Gets or sets the default playback rate when the user is not using fast forward or reverse for a video or audio resource.
10994 */
10995 defaultPlaybackRate: number;
10996 /**
10997 * Returns the duration in seconds of the current media resource. A NaN value is returned if duration is not available, or Infinity if the media resource is streaming.
10998 */
10999 duration: number;
11000 /**
11001 * Gets information about whether the playback has ended or not.
11002 */
11003 ended: boolean;
11004 /**
11005 * Returns an object representing the current error state of the audio or video element.
11006 */
11007 error: MediaError;
11008 /**
11009 * Gets or sets a flag to specify whether playback should restart after it completes.
11010 */
11011 loop: boolean;
11012 /**
11013 * Specifies the purpose of the audio or video media, such as background audio or alerts.
11014 */
11015 msAudioCategory: string;
11016 /**
11017 * Specifies the output device id that the audio will be sent to.
11018 */
11019 msAudioDeviceType: string;
11020 msGraphicsTrustStatus: MSGraphicsTrust;
11021 /**
11022 * Gets the MSMediaKeys object, which is used for decrypting media data, that is associated with this media element.
11023 */
11024 msKeys: MSMediaKeys;
11025 /**
11026 * Gets or sets whether the DLNA PlayTo device is available.
11027 */
11028 msPlayToDisabled: boolean;
11029 /**
11030 * Gets or sets the path to the preferred media source. This enables the Play To target device to stream the media content, which can be DRM protected, from a different location, such as a cloud media server.
11031 */
11032 msPlayToPreferredSourceUri: string;
11033 /**
11034 * Gets or sets the primary DLNA PlayTo device.
11035 */
11036 msPlayToPrimary: boolean;
11037 /**
11038 * Gets the source associated with the media element for use by the PlayToManager.
11039 */
11040 msPlayToSource: any;
11041 /**
11042 * Specifies whether or not to enable low-latency playback on the media element.
11043 */
11044 msRealTime: boolean;
11045 /**
11046 * Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted.
11047 */
11048 muted: boolean;
11049 /**
11050 * Gets the current network activity for the element.
11051 */
11052 networkState: number;
11053 onmsneedkey: (ev: MSMediaKeyNeededEvent) => any;
11054 /**
11055 * Gets a flag that specifies whether playback is paused.
11056 */
11057 paused: boolean;
11058 /**
11059 * Gets or sets the current rate of speed for the media resource to play. This speed is expressed as a multiple of the normal speed of the media resource.
11060 */
11061 playbackRate: number;
11062 /**
11063 * Gets TimeRanges for the current media resource that has been played.
11064 */
11065 played: TimeRanges;
11066 /**
11067 * Gets or sets the current playback position, in seconds.
11068 */
11069 preload: string;
11070 readyState: number;
11071 /**
11072 * Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked.
11073 */
11074 seekable: TimeRanges;
11075 /**
11076 * Gets a flag that indicates whether the the client is currently moving to a new playback position in the media resource.
11077 */
11078 seeking: boolean;
11079 /**
11080 * The address or URL of the a media resource that is to be considered.
11081 */
11082 src: string;
11083 textTracks: TextTrackList;
11084 videoTracks: VideoTrackList;
11085 /**
11086 * Gets or sets the volume level for audio portions of the media element.
11087 */
11088 volume: number;
11089 addTextTrack(kind: string, label?: string, language?: string): TextTrack;
11090 /**
11091 * Returns a string that specifies whether the client can play a given media resource type.
11092 */
11093 canPlayType(type: string): string;
11094 /**
11095 * Fires immediately after the client loads the object.
11096 */
11097 load(): void;
11098 /**
11099 * Clears all effects from the media pipeline.
11100 */
11101 msClearEffects(): void;
11102 msGetAsCastingSource(): any;
11103 /**
11104 * Inserts the specified audio effect into media pipeline.
11105 */
11106 msInsertAudioEffect(activatableClassId: string, effectRequired: boolean, config?: any): void;
11107 msSetMediaKeys(mediaKeys: MSMediaKeys): void;
11108 /**
11109 * Specifies the media protection manager for a given media pipeline.
11110 */
11111 msSetMediaProtectionManager(mediaProtectionManager?: any): void;
11112 /**
11113 * Pauses the current playback and sets paused to TRUE. This can be used to test whether the media is playing or paused. You can also use the pause or play events to tell whether the media is playing or not.
11114 */
11115 pause(): void;
11116 /**
11117 * Loads and starts playback of a media resource.
11118 */
11119 play(): void;
11120 HAVE_CURRENT_DATA: number;
11121 HAVE_ENOUGH_DATA: number;
11122 HAVE_FUTURE_DATA: number;
11123 HAVE_METADATA: number;
11124 HAVE_NOTHING: number;
11125 NETWORK_EMPTY: number;
11126 NETWORK_IDLE: number;
11127 NETWORK_LOADING: number;
11128 NETWORK_NO_SOURCE: number;
11129 addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
11130 addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
11131 addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
11132 addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
11133 addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
11134 addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
11135 addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
11136 addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
11137 addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
11138 addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
11139 addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void;
11140 addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
11141 addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
11142 addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
11143 addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
11144 addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
11145 addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
11146 addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
11147 addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
11148 addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
11149 addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
11150 addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void;
11151 addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
11152 addEventListener(type: "beforecopy", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
11153 addEventListener(type: "beforecut", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
11154 addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
11155 addEventListener(type: "beforepaste", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
11156 addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
11157 addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void;
11158 addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void;
11159 addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void;
11160 addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
11161 addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void;
11162 addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
11163 addEventListener(type: "copy", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
11164 addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void;
11165 addEventListener(type: "cut", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
11166 addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
11167 addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
11168 addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
11169 addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
11170 addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
11171 addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
11172 addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
11173 addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
11174 addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
11175 addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void;
11176 addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void;
11177 addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void;
11178 addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
11179 addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
11180 addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
11181 addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void;
11182 addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
11183 addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
11184 addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
11185 addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
11186 addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void;
11187 addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void;
11188 addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void;
11189 addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
11190 addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
11191 addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
11192 addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
11193 addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
11194 addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
11195 addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
11196 addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
11197 addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void;
11198 addEventListener(type: "msneedkey", listener: (ev: MSMediaKeyNeededEvent) => any, useCapture?: boolean): void;
11199 addEventListener(type: "paste", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
11200 addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void;
11201 addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void;
11202 addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void;
11203 addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
11204 addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
11205 addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
11206 addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
11207 addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
11208 addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
11209 addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
11210 addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
11211 addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
11212 addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void;
11213 addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void;
11214 addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
11215 addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void;
11216 addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void;
11217 addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
11218 addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void;
11219 addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void;
11220 addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void;
11221 addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void;
11222 addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void;
11223 addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
11224 addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
11225 addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
11226 addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
11227 addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void;
11228 addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void;
11229 addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void;
11230 addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void;
11231 addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void;
11232 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
11233}
11234
11235declare var HTMLMediaElement: {
11236 prototype: HTMLMediaElement;
11237 new(): HTMLMediaElement;
11238 HAVE_CURRENT_DATA: number;
11239 HAVE_ENOUGH_DATA: number;
11240 HAVE_FUTURE_DATA: number;
11241 HAVE_METADATA: number;
11242 HAVE_NOTHING: number;
11243 NETWORK_EMPTY: number;
11244 NETWORK_IDLE: number;
11245 NETWORK_LOADING: number;
11246 NETWORK_NO_SOURCE: number;
11247}
11248
11249interface HTMLMenuElement extends HTMLElement {
11250 compact: boolean;
11251 type: string;
11252}
11253
11254declare var HTMLMenuElement: {
11255 prototype: HTMLMenuElement;
11256 new(): HTMLMenuElement;
11257}
11258
11259interface HTMLMetaElement extends HTMLElement {
11260 /**
11261 * Sets or retrieves the character set used to encode the object.
11262 */
11263 charset: string;
11264 /**
11265 * Gets or sets meta-information to associate with httpEquiv or name.
11266 */
11267 content: string;
11268 /**
11269 * Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header.
11270 */
11271 httpEquiv: string;
11272 /**
11273 * Sets or retrieves the value specified in the content attribute of the meta object.
11274 */
11275 name: string;
11276 /**
11277 * Sets or retrieves a scheme to be used in interpreting the value of a property specified for the object.
11278 */
11279 scheme: string;
11280 /**
11281 * Sets or retrieves the URL property that will be loaded after the specified time has elapsed.
11282 */
11283 url: string;
11284}
11285
11286declare var HTMLMetaElement: {
11287 prototype: HTMLMetaElement;
11288 new(): HTMLMetaElement;
11289}
11290
11291interface HTMLModElement extends HTMLElement {
11292 /**
11293 * Sets or retrieves reference information about the object.
11294 */
11295 cite: string;
11296 /**
11297 * Sets or retrieves the date and time of a modification to the object.
11298 */
11299 dateTime: string;
11300}
11301
11302declare var HTMLModElement: {
11303 prototype: HTMLModElement;
11304 new(): HTMLModElement;
11305}
11306
11307interface HTMLNextIdElement extends HTMLElement {
11308 n: string;
11309}
11310
11311declare var HTMLNextIdElement: {
11312 prototype: HTMLNextIdElement;
11313 new(): HTMLNextIdElement;
11314}
11315
11316interface HTMLOListElement extends HTMLElement {
11317 compact: boolean;
11318 /**
11319 * The starting number.
11320 */
11321 start: number;
11322 type: string;
11323}
11324
11325declare var HTMLOListElement: {
11326 prototype: HTMLOListElement;
11327 new(): HTMLOListElement;
11328}
11329
11330interface HTMLObjectElement extends HTMLElement, GetSVGDocument {
11331 /**
11332 * Retrieves a string of the URL where the object tag can be found. This is often the href of the document that the object is in, or the value set by a base element.
11333 */
11334 BaseHref: string;
11335 align: string;
11336 /**
11337 * Sets or retrieves a text alternative to the graphic.
11338 */
11339 alt: string;
11340 /**
11341 * Gets or sets the optional alternative HTML script to execute if the object fails to load.
11342 */
11343 altHtml: string;
11344 /**
11345 * Sets or retrieves a character string that can be used to implement your own archive functionality for the object.
11346 */
11347 archive: string;
11348 border: string;
11349 /**
11350 * Sets or retrieves the URL of the file containing the compiled Java class.
11351 */
11352 code: string;
11353 /**
11354 * Sets or retrieves the URL of the component.
11355 */
11356 codeBase: string;
11357 /**
11358 * Sets or retrieves the Internet media type for the code associated with the object.
11359 */
11360 codeType: string;
11361 /**
11362 * Retrieves the document object of the page or frame.
11363 */
11364 contentDocument: Document;
11365 /**
11366 * Sets or retrieves the URL that references the data of the object.
11367 */
11368 data: string;
11369 declare: boolean;
11370 /**
11371 * Retrieves a reference to the form that the object is embedded in.
11372 */
11373 form: HTMLFormElement;
11374 /**
11375 * Sets or retrieves the height of the object.
11376 */
11377 height: string;
11378 hspace: number;
11379 /**
11380 * Gets or sets whether the DLNA PlayTo device is available.
11381 */
11382 msPlayToDisabled: boolean;
11383 /**
11384 * Gets or sets the path to the preferred media source. This enables the Play To target device to stream the media content, which can be DRM protected, from a different location, such as a cloud media server.
11385 */
11386 msPlayToPreferredSourceUri: string;
11387 /**
11388 * Gets or sets the primary DLNA PlayTo device.
11389 */
11390 msPlayToPrimary: boolean;
11391 /**
11392 * Gets the source associated with the media element for use by the PlayToManager.
11393 */
11394 msPlayToSource: any;
11395 /**
11396 * Sets or retrieves the name of the object.
11397 */
11398 name: string;
11399 /**
11400 * Retrieves the contained object.
11401 */
11402 object: any;
11403 readyState: number;
11404 /**
11405 * Sets or retrieves a message to be displayed while an object is loading.
11406 */
11407 standby: string;
11408 /**
11409 * Sets or retrieves the MIME type of the object.
11410 */
11411 type: string;
11412 /**
11413 * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
11414 */
11415 useMap: string;
11416 /**
11417 * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
11418 */
11419 validationMessage: string;
11420 /**
11421 * Returns a ValidityState object that represents the validity states of an element.
11422 */
11423 validity: ValidityState;
11424 vspace: number;
11425 /**
11426 * Sets or retrieves the width of the object.
11427 */
11428 width: string;
11429 /**
11430 * Returns whether an element will successfully validate based on forms validation rules and constraints.
11431 */
11432 willValidate: boolean;
11433 /**
11434 * Returns whether a form will validate when it is submitted, without having to submit it.
11435 */
11436 checkValidity(): boolean;
11437 /**
11438 * Sets a custom error message that is displayed when a form is submitted.
11439 * @param error Sets a custom error message that is displayed when a form is submitted.
11440 */
11441 setCustomValidity(error: string): void;
11442 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
11443}
11444
11445declare var HTMLObjectElement: {
11446 prototype: HTMLObjectElement;
11447 ne