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.es6.d.ts

11497lines · 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;
1350/////////////////////////////
1351/// ECMAScript APIs
1352/////////////////////////////
1353
1354declare const NaN: number;
1355declare const Infinity: number;
1356
1357/**
1358 * Evaluates JavaScript code and executes it.
1359 * @param x A String value that contains valid JavaScript code.
1360 */
1361declare function eval(x: string): any;
1362
1363/**
1364 * Converts A string to an integer.
1365 * @param s A string to convert into a number.
1366 * @param radix A value between 2 and 36 that specifies the base of the number in numString.
1367 * If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.
1368 * All other strings are considered decimal.
1369 */
1370declare function parseInt(s: string, radix?: number): number;
1371
1372/**
1373 * Converts a string to a floating-point number.
1374 * @param string A string that contains a floating-point number.
1375 */
1376declare function parseFloat(string: string): number;
1377
1378/**
1379 * Returns a Boolean value that indicates whether a value is the reserved value NaN (not a number).
1380 * @param number A numeric value.
1381 */
1382declare function isNaN(number: number): boolean;
1383
1384/**
1385 * Determines whether a supplied number is finite.
1386 * @param number Any numeric value.
1387 */
1388declare function isFinite(number: number): boolean;
1389
1390/**
1391 * Gets the unencoded version of an encoded Uniform Resource Identifier (URI).
1392 * @param encodedURI A value representing an encoded URI.
1393 */
1394declare function decodeURI(encodedURI: string): string;
1395
1396/**
1397 * Gets the unencoded version of an encoded component of a Uniform Resource Identifier (URI).
1398 * @param encodedURIComponent A value representing an encoded URI component.
1399 */
1400declare function decodeURIComponent(encodedURIComponent: string): string;
1401
1402/**
1403 * Encodes a text string as a valid Uniform Resource Identifier (URI)
1404 * @param uri A value representing an encoded URI.
1405 */
1406declare function encodeURI(uri: string): string;
1407
1408/**
1409 * Encodes a text string as a valid component of a Uniform Resource Identifier (URI).
1410 * @param uriComponent A value representing an encoded URI component.
1411 */
1412declare function encodeURIComponent(uriComponent: string): string;
1413
1414interface PropertyDescriptor {
1415 configurable?: boolean;
1416 enumerable?: boolean;
1417 value?: any;
1418 writable?: boolean;
1419 get? (): any;
1420 set? (v: any): void;
1421}
1422
1423interface PropertyDescriptorMap {
1424 [s: string]: PropertyDescriptor;
1425}
1426
1427interface Object {
1428 /** The initial value of Object.prototype.constructor is the standard built-in Object constructor. */
1429 constructor: Function;
1430
1431 /** Returns a string representation of an object. */
1432 toString(): string;
1433
1434 /** Returns a date converted to a string using the current locale. */
1435 toLocaleString(): string;
1436
1437 /** Returns the primitive value of the specified object. */
1438 valueOf(): Object;
1439
1440 /**
1441 * Determines whether an object has a property with the specified name.
1442 * @param v A property name.
1443 */
1444 hasOwnProperty(v: string): boolean;
1445
1446 /**
1447 * Determines whether an object exists in another object's prototype chain.
1448 * @param v Another object whose prototype chain is to be checked.
1449 */
1450 isPrototypeOf(v: Object): boolean;
1451
1452 /**
1453 * Determines whether a specified property is enumerable.
1454 * @param v A property name.
1455 */
1456 propertyIsEnumerable(v: string): boolean;
1457}
1458
1459interface ObjectConstructor {
1460 new (value?: any): Object;
1461 (): any;
1462 (value: any): any;
1463
1464 /** A reference to the prototype for a class of objects. */
1465 readonly prototype: Object;
1466
1467 /**
1468 * Returns the prototype of an object.
1469 * @param o The object that references the prototype.
1470 */
1471 getPrototypeOf(o: any): any;
1472
1473 /**
1474 * Gets the own property descriptor of the specified object.
1475 * An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.
1476 * @param o Object that contains the property.
1477 * @param p Name of the property.
1478 */
1479 getOwnPropertyDescriptor(o: any, p: string): PropertyDescriptor;
1480
1481 /**
1482 * Returns the names of the own properties of an object. The own properties of an object are those that are defined directly
1483 * on that object, and are not inherited from the object's prototype. The properties of an object include both fields (objects) and functions.
1484 * @param o Object that contains the own properties.
1485 */
1486 getOwnPropertyNames(o: any): string[];
1487
1488 /**
1489 * Creates an object that has the specified prototype, and that optionally contains specified properties.
1490 * @param o Object to use as a prototype. May be null
1491 * @param properties JavaScript object that contains one or more property descriptors.
1492 */
1493 create(o: any, properties?: PropertyDescriptorMap): any;
1494
1495 /**
1496 * Adds a property to an object, or modifies attributes of an existing property.
1497 * @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.
1498 * @param p The property name.
1499 * @param attributes Descriptor for the property. It can be for a data property or an accessor property.
1500 */
1501 defineProperty(o: any, p: string, attributes: PropertyDescriptor): any;
1502
1503 /**
1504 * Adds one or more properties to an object, and/or modifies attributes of existing properties.
1505 * @param o Object on which to add or modify the properties. This can be a native JavaScript object or a DOM object.
1506 * @param properties JavaScript object that contains one or more descriptor objects. Each descriptor object describes a data property or an accessor property.
1507 */
1508 defineProperties(o: any, properties: PropertyDescriptorMap): any;
1509
1510 /**
1511 * Prevents the modification of attributes of existing properties, and prevents the addition of new properties.
1512 * @param o Object on which to lock the attributes.
1513 */
1514 seal<T>(o: T): T;
1515
1516 /**
1517 * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
1518 * @param o Object on which to lock the attributes.
1519 */
1520 freeze<T>(o: T): T;
1521
1522 /**
1523 * Prevents the addition of new properties to an object.
1524 * @param o Object to make non-extensible.
1525 */
1526 preventExtensions<T>(o: T): T;
1527
1528 /**
1529 * Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object.
1530 * @param o Object to test.
1531 */
1532 isSealed(o: any): boolean;
1533
1534 /**
1535 * Returns true if existing property attributes and values cannot be modified in an object, and new properties cannot be added to the object.
1536 * @param o Object to test.
1537 */
1538 isFrozen(o: any): boolean;
1539
1540 /**
1541 * Returns a value that indicates whether new properties can be added to an object.
1542 * @param o Object to test.
1543 */
1544 isExtensible(o: any): boolean;
1545
1546 /**
1547 * Returns the names of the enumerable properties and methods of an object.
1548 * @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.
1549 */
1550 keys(o: any): string[];
1551}
1552
1553/**
1554 * Provides functionality common to all JavaScript objects.
1555 */
1556declare const Object: ObjectConstructor;
1557
1558/**
1559 * Creates a new function.
1560 */
1561interface Function {
1562 /**
1563 * Calls the function, substituting the specified object for the this value of the function, and the specified array for the arguments of the function.
1564 * @param thisArg The object to be used as the this object.
1565 * @param argArray A set of arguments to be passed to the function.
1566 */
1567 apply(thisArg: any, argArray?: any): any;
1568
1569 /**
1570 * Calls a method of an object, substituting another object for the current object.
1571 * @param thisArg The object to be used as the current object.
1572 * @param argArray A list of arguments to be passed to the method.
1573 */
1574 call(thisArg: any, ...argArray: any[]): any;
1575
1576 /**
1577 * For a given function, creates a bound function that has the same body as the original function.
1578 * The this object of the bound function is associated with the specified object, and has the specified initial parameters.
1579 * @param thisArg An object to which the this keyword can refer inside the new function.
1580 * @param argArray A list of arguments to be passed to the new function.
1581 */
1582 bind(thisArg: any, ...argArray: any[]): any;
1583
1584 prototype: any;
1585 readonly length: number;
1586
1587 // Non-standard extensions
1588 arguments: any;
1589 caller: Function;
1590}
1591
1592interface FunctionConstructor {
1593 /**
1594 * Creates a new function.
1595 * @param args A list of arguments the function accepts.
1596 */
1597 new (...args: string[]): Function;
1598 (...args: string[]): Function;
1599 readonly prototype: Function;
1600}
1601
1602declare const Function: FunctionConstructor;
1603
1604interface IArguments {
1605 [index: number]: any;
1606 length: number;
1607 callee: Function;
1608}
1609
1610interface String {
1611 /** Returns a string representation of a string. */
1612 toString(): string;
1613
1614 /**
1615 * Returns the character at the specified index.
1616 * @param pos The zero-based index of the desired character.
1617 */
1618 charAt(pos: number): string;
1619
1620 /**
1621 * Returns the Unicode value of the character at the specified location.
1622 * @param index The zero-based index of the desired character. If there is no character at the specified index, NaN is returned.
1623 */
1624 charCodeAt(index: number): number;
1625
1626 /**
1627 * Returns a string that contains the concatenation of two or more strings.
1628 * @param strings The strings to append to the end of the string.
1629 */
1630 concat(...strings: string[]): string;
1631
1632 /**
1633 * Returns the position of the first occurrence of a substring.
1634 * @param searchString The substring to search for in the string
1635 * @param position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string.
1636 */
1637 indexOf(searchString: string, position?: number): number;
1638
1639 /**
1640 * Returns the last occurrence of a substring in the string.
1641 * @param searchString The substring to search for.
1642 * @param position The index at which to begin searching. If omitted, the search begins at the end of the string.
1643 */
1644 lastIndexOf(searchString: string, position?: number): number;
1645
1646 /**
1647 * Determines whether two strings are equivalent in the current locale.
1648 * @param that String to compare to target string
1649 */
1650 localeCompare(that: string): number;
1651
1652 /**
1653 * Matches a string with a regular expression, and returns an array containing the results of that search.
1654 * @param regexp A variable name or string literal containing the regular expression pattern and flags.
1655 */
1656 match(regexp: string): RegExpMatchArray;
1657
1658 /**
1659 * Matches a string with a regular expression, and returns an array containing the results of that search.
1660 * @param regexp A regular expression object that contains the regular expression pattern and applicable flags.
1661 */
1662 match(regexp: RegExp): RegExpMatchArray;
1663
1664 /**
1665 * Replaces text in a string, using a regular expression or search string.
1666 * @param searchValue A string that represents the regular expression.
1667 * @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.
1668 */
1669 replace(searchValue: string, replaceValue: string): string;
1670
1671 /**
1672 * Replaces text in a string, using a regular expression or search string.
1673 * @param searchValue A string that represents the regular expression.
1674 * @param replacer A function that returns the replacement text.
1675 */
1676 replace(searchValue: string, replacer: (substring: string, ...args: any[]) => string): string;
1677
1678 /**
1679 * Replaces text in a string, using a regular expression or search string.
1680 * @param searchValue A Regular Expression object containing the regular expression pattern and applicable flags.
1681 * @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.
1682 */
1683 replace(searchValue: RegExp, replaceValue: string): string;
1684
1685 /**
1686 * Replaces text in a string, using a regular expression or search string.
1687 * @param searchValue A Regular Expression object containing the regular expression pattern and applicable flags
1688 * @param replacer A function that returns the replacement text.
1689 */
1690 replace(searchValue: RegExp, replacer: (substring: string, ...args: any[]) => string): string;
1691
1692 /**
1693 * Finds the first substring match in a regular expression search.
1694 * @param regexp The regular expression pattern and applicable flags.
1695 */
1696 search(regexp: string): number;
1697
1698 /**
1699 * Finds the first substring match in a regular expression search.
1700 * @param regexp The regular expression pattern and applicable flags.
1701 */
1702 search(regexp: RegExp): number;
1703
1704 /**
1705 * Returns a section of a string.
1706 * @param start The index to the beginning of the specified portion of stringObj.
1707 * @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.
1708 * If this value is not specified, the substring continues to the end of stringObj.
1709 */
1710 slice(start?: number, end?: number): string;
1711
1712 /**
1713 * Split a string into substrings using the specified separator and return them as an array.
1714 * @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.
1715 * @param limit A value used to limit the number of elements returned in the array.
1716 */
1717 split(separator: string, limit?: number): string[];
1718
1719 /**
1720 * Split a string into substrings using the specified separator and return them as an array.
1721 * @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.
1722 * @param limit A value used to limit the number of elements returned in the array.
1723 */
1724 split(separator: RegExp, limit?: number): string[];
1725
1726 /**
1727 * Returns the substring at the specified location within a String object.
1728 * @param start The zero-based index number indicating the beginning of the substring.
1729 * @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.
1730 * If end is omitted, the characters from start through the end of the original string are returned.
1731 */
1732 substring(start: number, end?: number): string;
1733
1734 /** Converts all the alphabetic characters in a string to lowercase. */
1735 toLowerCase(): string;
1736
1737 /** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */
1738 toLocaleLowerCase(): string;
1739
1740 /** Converts all the alphabetic characters in a string to uppercase. */
1741 toUpperCase(): string;
1742
1743 /** Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. */
1744 toLocaleUpperCase(): string;
1745
1746 /** Removes the leading and trailing white space and line terminator characters from a string. */
1747 trim(): string;
1748
1749 /** Returns the length of a String object. */
1750 readonly length: number;
1751
1752 // IE extensions
1753 /**
1754 * Gets a substring beginning at the specified location and having the specified length.
1755 * @param from The starting position of the desired substring. The index of the first character in the string is zero.
1756 * @param length The number of characters to include in the returned substring.
1757 */
1758 substr(from: number, length?: number): string;
1759
1760 /** Returns the primitive value of the specified object. */
1761 valueOf(): string;
1762
1763 readonly [index: number]: string;
1764}
1765
1766interface StringConstructor {
1767 new (value?: any): String;
1768 (value?: any): string;
1769 readonly prototype: String;
1770 fromCharCode(...codes: number[]): string;
1771}
1772
1773/**
1774 * Allows manipulation and formatting of text strings and determination and location of substrings within strings.
1775 */
1776declare const String: StringConstructor;
1777
1778interface Boolean {
1779 /** Returns the primitive value of the specified object. */
1780 valueOf(): boolean;
1781}
1782
1783interface BooleanConstructor {
1784 new (value?: any): Boolean;
1785 (value?: any): boolean;
1786 readonly prototype: Boolean;
1787}
1788
1789declare const Boolean: BooleanConstructor;
1790
1791interface Number {
1792 /**
1793 * Returns a string representation of an object.
1794 * @param radix Specifies a radix for converting numeric values to strings. This value is only used for numbers.
1795 */
1796 toString(radix?: number): string;
1797
1798 /**
1799 * Returns a string representing a number in fixed-point notation.
1800 * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
1801 */
1802 toFixed(fractionDigits?: number): string;
1803
1804 /**
1805 * Returns a string containing a number represented in exponential notation.
1806 * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
1807 */
1808 toExponential(fractionDigits?: number): string;
1809
1810 /**
1811 * Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits.
1812 * @param precision Number of significant digits. Must be in the range 1 - 21, inclusive.
1813 */
1814 toPrecision(precision?: number): string;
1815
1816 /** Returns the primitive value of the specified object. */
1817 valueOf(): number;
1818}
1819
1820interface NumberConstructor {
1821 new (value?: any): Number;
1822 (value?: any): number;
1823 readonly prototype: Number;
1824
1825 /** The largest number that can be represented in JavaScript. Equal to approximately 1.79E+308. */
1826 readonly MAX_VALUE: number;
1827
1828 /** The closest number to zero that can be represented in JavaScript. Equal to approximately 5.00E-324. */
1829 readonly MIN_VALUE: number;
1830
1831 /**
1832 * A value that is not a number.
1833 * In equality comparisons, NaN does not equal any value, including itself. To test whether a value is equivalent to NaN, use the isNaN function.
1834 */
1835 readonly NaN: number;
1836
1837 /**
1838 * A value that is less than the largest negative number that can be represented in JavaScript.
1839 * JavaScript displays NEGATIVE_INFINITY values as -infinity.
1840 */
1841 readonly NEGATIVE_INFINITY: number;
1842
1843 /**
1844 * A value greater than the largest number that can be represented in JavaScript.
1845 * JavaScript displays POSITIVE_INFINITY values as infinity.
1846 */
1847 readonly POSITIVE_INFINITY: number;
1848}
1849
1850/** An object that represents a number of any kind. All JavaScript numbers are 64-bit floating-point numbers. */
1851declare const Number: NumberConstructor;
1852
1853interface TemplateStringsArray extends Array<string> {
1854 readonly raw: string[];
1855}
1856
1857interface Math {
1858 /** The mathematical constant e. This is Euler's number, the base of natural logarithms. */
1859 readonly E: number;
1860 /** The natural logarithm of 10. */
1861 readonly LN10: number;
1862 /** The natural logarithm of 2. */
1863 readonly LN2: number;
1864 /** The base-2 logarithm of e. */
1865 readonly LOG2E: number;
1866 /** The base-10 logarithm of e. */
1867 readonly LOG10E: number;
1868 /** Pi. This is the ratio of the circumference of a circle to its diameter. */
1869 readonly PI: number;
1870 /** The square root of 0.5, or, equivalently, one divided by the square root of 2. */
1871 readonly SQRT1_2: number;
1872 /** The square root of 2. */
1873 readonly SQRT2: number;
1874 /**
1875 * Returns the absolute value of a number (the value without regard to whether it is positive or negative).
1876 * For example, the absolute value of -5 is the same as the absolute value of 5.
1877 * @param x A numeric expression for which the absolute value is needed.
1878 */
1879 abs(x: number): number;
1880 /**
1881 * Returns the arc cosine (or inverse cosine) of a number.
1882 * @param x A numeric expression.
1883 */
1884 acos(x: number): number;
1885 /**
1886 * Returns the arcsine of a number.
1887 * @param x A numeric expression.
1888 */
1889 asin(x: number): number;
1890 /**
1891 * Returns the arctangent of a number.
1892 * @param x A numeric expression for which the arctangent is needed.
1893 */
1894 atan(x: number): number;
1895 /**
1896 * Returns the angle (in radians) from the X axis to a point.
1897 * @param y A numeric expression representing the cartesian y-coordinate.
1898 * @param x A numeric expression representing the cartesian x-coordinate.
1899 */
1900 atan2(y: number, x: number): number;
1901 /**
1902 * Returns the smallest number greater than or equal to its numeric argument.
1903 * @param x A numeric expression.
1904 */
1905 ceil(x: number): number;
1906 /**
1907 * Returns the cosine of a number.
1908 * @param x A numeric expression that contains an angle measured in radians.
1909 */
1910 cos(x: number): number;
1911 /**
1912 * Returns e (the base of natural logarithms) raised to a power.
1913 * @param x A numeric expression representing the power of e.
1914 */
1915 exp(x: number): number;
1916 /**
1917 * Returns the greatest number less than or equal to its numeric argument.
1918 * @param x A numeric expression.
1919 */
1920 floor(x: number): number;
1921 /**
1922 * Returns the natural logarithm (base e) of a number.
1923 * @param x A numeric expression.
1924 */
1925 log(x: number): number;
1926 /**
1927 * Returns the larger of a set of supplied numeric expressions.
1928 * @param values Numeric expressions to be evaluated.
1929 */
1930 max(...values: number[]): number;
1931 /**
1932 * Returns the smaller of a set of supplied numeric expressions.
1933 * @param values Numeric expressions to be evaluated.
1934 */
1935 min(...values: number[]): number;
1936 /**
1937 * Returns the value of a base expression taken to a specified power.
1938 * @param x The base value of the expression.
1939 * @param y The exponent value of the expression.
1940 */
1941 pow(x: number, y: number): number;
1942 /** Returns a pseudorandom number between 0 and 1. */
1943 random(): number;
1944 /**
1945 * Returns a supplied numeric expression rounded to the nearest number.
1946 * @param x The value to be rounded to the nearest number.
1947 */
1948 round(x: number): number;
1949 /**
1950 * Returns the sine of a number.
1951 * @param x A numeric expression that contains an angle measured in radians.
1952 */
1953 sin(x: number): number;
1954 /**
1955 * Returns the square root of a number.
1956 * @param x A numeric expression.
1957 */
1958 sqrt(x: number): number;
1959 /**
1960 * Returns the tangent of a number.
1961 * @param x A numeric expression that contains an angle measured in radians.
1962 */
1963 tan(x: number): number;
1964}
1965/** An intrinsic object that provides basic mathematics functionality and constants. */
1966declare const Math: Math;
1967
1968/** Enables basic storage and retrieval of dates and times. */
1969interface Date {
1970 /** Returns a string representation of a date. The format of the string depends on the locale. */
1971 toString(): string;
1972 /** Returns a date as a string value. */
1973 toDateString(): string;
1974 /** Returns a time as a string value. */
1975 toTimeString(): string;
1976 /** Returns a value as a string value appropriate to the host environment's current locale. */
1977 toLocaleString(): string;
1978 /** Returns a date as a string value appropriate to the host environment's current locale. */
1979 toLocaleDateString(): string;
1980 /** Returns a time as a string value appropriate to the host environment's current locale. */
1981 toLocaleTimeString(): string;
1982 /** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */
1983 valueOf(): number;
1984 /** Gets the time value in milliseconds. */
1985 getTime(): number;
1986 /** Gets the year, using local time. */
1987 getFullYear(): number;
1988 /** Gets the year using Universal Coordinated Time (UTC). */
1989 getUTCFullYear(): number;
1990 /** Gets the month, using local time. */
1991 getMonth(): number;
1992 /** Gets the month of a Date object using Universal Coordinated Time (UTC). */
1993 getUTCMonth(): number;
1994 /** Gets the day-of-the-month, using local time. */
1995 getDate(): number;
1996 /** Gets the day-of-the-month, using Universal Coordinated Time (UTC). */
1997 getUTCDate(): number;
1998 /** Gets the day of the week, using local time. */
1999 getDay(): number;
2000 /** Gets the day of the week using Universal Coordinated Time (UTC). */
2001 getUTCDay(): number;
2002 /** Gets the hours in a date, using local time. */
2003 getHours(): number;
2004 /** Gets the hours value in a Date object using Universal Coordinated Time (UTC). */
2005 getUTCHours(): number;
2006 /** Gets the minutes of a Date object, using local time. */
2007 getMinutes(): number;
2008 /** Gets the minutes of a Date object using Universal Coordinated Time (UTC). */
2009 getUTCMinutes(): number;
2010 /** Gets the seconds of a Date object, using local time. */
2011 getSeconds(): number;
2012 /** Gets the seconds of a Date object using Universal Coordinated Time (UTC). */
2013 getUTCSeconds(): number;
2014 /** Gets the milliseconds of a Date, using local time. */
2015 getMilliseconds(): number;
2016 /** Gets the milliseconds of a Date object using Universal Coordinated Time (UTC). */
2017 getUTCMilliseconds(): number;
2018 /** Gets the difference in minutes between the time on the local computer and Universal Coordinated Time (UTC). */
2019 getTimezoneOffset(): number;
2020 /**
2021 * Sets the date and time value in the Date object.
2022 * @param time A numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT.
2023 */
2024 setTime(time: number): number;
2025 /**
2026 * Sets the milliseconds value in the Date object using local time.
2027 * @param ms A numeric value equal to the millisecond value.
2028 */
2029 setMilliseconds(ms: number): number;
2030 /**
2031 * Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC).
2032 * @param ms A numeric value equal to the millisecond value.
2033 */
2034 setUTCMilliseconds(ms: number): number;
2035
2036 /**
2037 * Sets the seconds value in the Date object using local time.
2038 * @param sec A numeric value equal to the seconds value.
2039 * @param ms A numeric value equal to the milliseconds value.
2040 */
2041 setSeconds(sec: number, ms?: number): number;
2042 /**
2043 * Sets the seconds value in the Date object using Universal Coordinated Time (UTC).
2044 * @param sec A numeric value equal to the seconds value.
2045 * @param ms A numeric value equal to the milliseconds value.
2046 */
2047 setUTCSeconds(sec: number, ms?: number): number;
2048 /**
2049 * Sets the minutes value in the Date object using local time.
2050 * @param min A numeric value equal to the minutes value.
2051 * @param sec A numeric value equal to the seconds value.
2052 * @param ms A numeric value equal to the milliseconds value.
2053 */
2054 setMinutes(min: number, sec?: number, ms?: number): number;
2055 /**
2056 * Sets the minutes value in the Date object using Universal Coordinated Time (UTC).
2057 * @param min A numeric value equal to the minutes value.
2058 * @param sec A numeric value equal to the seconds value.
2059 * @param ms A numeric value equal to the milliseconds value.
2060 */
2061 setUTCMinutes(min: number, sec?: number, ms?: number): number;
2062 /**
2063 * Sets the hour value in the Date object using local time.
2064 * @param hours A numeric value equal to the hours value.
2065 * @param min A numeric value equal to the minutes value.
2066 * @param sec A numeric value equal to the seconds value.
2067 * @param ms A numeric value equal to the milliseconds value.
2068 */
2069 setHours(hours: number, min?: number, sec?: number, ms?: number): number;
2070 /**
2071 * Sets the hours value in the Date object using Universal Coordinated Time (UTC).
2072 * @param hours A numeric value equal to the hours value.
2073 * @param min A numeric value equal to the minutes value.
2074 * @param sec A numeric value equal to the seconds value.
2075 * @param ms A numeric value equal to the milliseconds value.
2076 */
2077 setUTCHours(hours: number, min?: number, sec?: number, ms?: number): number;
2078 /**
2079 * Sets the numeric day-of-the-month value of the Date object using local time.
2080 * @param date A numeric value equal to the day of the month.
2081 */
2082 setDate(date: number): number;
2083 /**
2084 * Sets the numeric day of the month in the Date object using Universal Coordinated Time (UTC).
2085 * @param date A numeric value equal to the day of the month.
2086 */
2087 setUTCDate(date: number): number;
2088 /**
2089 * Sets the month value in the Date object using local time.
2090 * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.
2091 * @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.
2092 */
2093 setMonth(month: number, date?: number): number;
2094 /**
2095 * Sets the month value in the Date object using Universal Coordinated Time (UTC).
2096 * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.
2097 * @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.
2098 */
2099 setUTCMonth(month: number, date?: number): number;
2100 /**
2101 * Sets the year of the Date object using local time.
2102 * @param year A numeric value for the year.
2103 * @param month A zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified.
2104 * @param date A numeric value equal for the day of the month.
2105 */
2106 setFullYear(year: number, month?: number, date?: number): number;
2107 /**
2108 * Sets the year value in the Date object using Universal Coordinated Time (UTC).
2109 * @param year A numeric value equal to the year.
2110 * @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.
2111 * @param date A numeric value equal to the day of the month.
2112 */
2113 setUTCFullYear(year: number, month?: number, date?: number): number;
2114 /** Returns a date converted to a string using Universal Coordinated Time (UTC). */
2115 toUTCString(): string;
2116 /** Returns a date as a string value in ISO format. */
2117 toISOString(): string;
2118 /** Used by the JSON.stringify method to enable the transformation of an object's data for JavaScript Object Notation (JSON) serialization. */
2119 toJSON(key?: any): string;
2120}
2121
2122interface DateConstructor {
2123 new (): Date;
2124 new (value: number): Date;
2125 new (value: string): Date;
2126 new (year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): Date;
2127 (): string;
2128 readonly prototype: Date;
2129 /**
2130 * Parses a string containing a date, and returns the number of milliseconds between that date and midnight, January 1, 1970.
2131 * @param s A date string
2132 */
2133 parse(s: string): number;
2134 /**
2135 * Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date.
2136 * @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.
2137 * @param month The month as an number between 0 and 11 (January to December).
2138 * @param date The date as an number between 1 and 31.
2139 * @param hours Must be supplied if minutes is supplied. An number from 0 to 23 (midnight to 11pm) that specifies the hour.
2140 * @param minutes Must be supplied if seconds is supplied. An number from 0 to 59 that specifies the minutes.
2141 * @param seconds Must be supplied if milliseconds is supplied. An number from 0 to 59 that specifies the seconds.
2142 * @param ms An number from 0 to 999 that specifies the milliseconds.
2143 */
2144 UTC(year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number;
2145 now(): number;
2146}
2147
2148declare const Date: DateConstructor;
2149
2150interface RegExpMatchArray extends Array<string> {
2151 index?: number;
2152 input?: string;
2153}
2154
2155interface RegExpExecArray extends Array<string> {
2156 index: number;
2157 input: string;
2158}
2159
2160interface RegExp {
2161 /**
2162 * Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search.
2163 * @param string The String object or string literal on which to perform the search.
2164 */
2165 exec(string: string): RegExpExecArray;
2166
2167 /**
2168 * Returns a Boolean value that indicates whether or not a pattern exists in a searched string.
2169 * @param string String on which to perform the search.
2170 */
2171 test(string: string): boolean;
2172
2173 /** 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. */
2174 readonly source: string;
2175
2176 /** Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. */
2177 readonly global: boolean;
2178
2179 /** Returns a Boolean value indicating the state of the ignoreCase flag (i) used with a regular expression. Default is false. Read-only. */
2180 readonly ignoreCase: boolean;
2181
2182 /** Returns a Boolean value indicating the state of the multiline flag (m) used with a regular expression. Default is false. Read-only. */
2183 readonly multiline: boolean;
2184
2185 lastIndex: number;
2186
2187 // Non-standard extensions
2188 compile(): RegExp;
2189}
2190
2191interface RegExpConstructor {
2192 new (pattern: string, flags?: string): RegExp;
2193 (pattern: string, flags?: string): RegExp;
2194 readonly prototype: RegExp;
2195
2196 // Non-standard extensions
2197 $1: string;
2198 $2: string;
2199 $3: string;
2200 $4: string;
2201 $5: string;
2202 $6: string;
2203 $7: string;
2204 $8: string;
2205 $9: string;
2206 lastMatch: string;
2207}
2208
2209declare const RegExp: RegExpConstructor;
2210
2211interface Error {
2212 name: string;
2213 message: string;
2214}
2215
2216interface ErrorConstructor {
2217 new (message?: string): Error;
2218 (message?: string): Error;
2219 readonly prototype: Error;
2220}
2221
2222declare const Error: ErrorConstructor;
2223
2224interface EvalError extends Error {
2225}
2226
2227interface EvalErrorConstructor {
2228 new (message?: string): EvalError;
2229 (message?: string): EvalError;
2230 readonly prototype: EvalError;
2231}
2232
2233declare const EvalError: EvalErrorConstructor;
2234
2235interface RangeError extends Error {
2236}
2237
2238interface RangeErrorConstructor {
2239 new (message?: string): RangeError;
2240 (message?: string): RangeError;
2241 readonly prototype: RangeError;
2242}
2243
2244declare const RangeError: RangeErrorConstructor;
2245
2246interface ReferenceError extends Error {
2247}
2248
2249interface ReferenceErrorConstructor {
2250 new (message?: string): ReferenceError;
2251 (message?: string): ReferenceError;
2252 readonly prototype: ReferenceError;
2253}
2254
2255declare const ReferenceError: ReferenceErrorConstructor;
2256
2257interface SyntaxError extends Error {
2258}
2259
2260interface SyntaxErrorConstructor {
2261 new (message?: string): SyntaxError;
2262 (message?: string): SyntaxError;
2263 readonly prototype: SyntaxError;
2264}
2265
2266declare const SyntaxError: SyntaxErrorConstructor;
2267
2268interface TypeError extends Error {
2269}
2270
2271interface TypeErrorConstructor {
2272 new (message?: string): TypeError;
2273 (message?: string): TypeError;
2274 readonly prototype: TypeError;
2275}
2276
2277declare const TypeError: TypeErrorConstructor;
2278
2279interface URIError extends Error {
2280}
2281
2282interface URIErrorConstructor {
2283 new (message?: string): URIError;
2284 (message?: string): URIError;
2285 readonly prototype: URIError;
2286}
2287
2288declare const URIError: URIErrorConstructor;
2289
2290interface JSON {
2291 /**
2292 * Converts a JavaScript Object Notation (JSON) string into an object.
2293 * @param text A valid JSON string.
2294 * @param reviver A function that transforms the results. This function is called for each member of the object.
2295 * If a member contains nested objects, the nested objects are transformed before the parent object is.
2296 */
2297 parse(text: string, reviver?: (key: any, value: any) => any): any;
2298 /**
2299 * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
2300 * @param value A JavaScript value, usually an object or array, to be converted.
2301 */
2302 stringify(value: any): string;
2303 /**
2304 * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
2305 * @param value A JavaScript value, usually an object or array, to be converted.
2306 * @param replacer A function that transforms the results.
2307 */
2308 stringify(value: any, replacer: (key: string, value: any) => any): string;
2309 /**
2310 * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
2311 * @param value A JavaScript value, usually an object or array, to be converted.
2312 * @param replacer Array that transforms the results.
2313 */
2314 stringify(value: any, replacer: any[]): string;
2315 /**
2316 * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
2317 * @param value A JavaScript value, usually an object or array, to be converted.
2318 * @param replacer A function that transforms the results.
2319 * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
2320 */
2321 stringify(value: any, replacer: (key: string, value: any) => any, space: string | number): string;
2322 /**
2323 * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
2324 * @param value A JavaScript value, usually an object or array, to be converted.
2325 * @param replacer Array that transforms the results.
2326 * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
2327 */
2328 stringify(value: any, replacer: any[], space: string | number): string;
2329}
2330/**
2331 * An intrinsic object that provides functions to convert JavaScript values to and from the JavaScript Object Notation (JSON) format.
2332 */
2333declare const JSON: JSON;
2334
2335
2336/////////////////////////////
2337/// ECMAScript Array API (specially handled by compiler)
2338/////////////////////////////
2339
2340interface ReadonlyArray<T> {
2341 /**
2342 * Gets the length of the array. This is a number one higher than the highest element defined in an array.
2343 */
2344 readonly length: number;
2345 /**
2346 * Returns a string representation of an array.
2347 */
2348 toString(): string;
2349 toLocaleString(): string;
2350 /**
2351 * Combines two or more arrays.
2352 * @param items Additional items to add to the end of array1.
2353 */
2354 concat<U extends ReadonlyArray<T>>(...items: U[]): T[];
2355 /**
2356 * Combines two or more arrays.
2357 * @param items Additional items to add to the end of array1.
2358 */
2359 concat(...items: T[]): T[];
2360 /**
2361 * Adds all the elements of an array separated by the specified separator string.
2362 * @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.
2363 */
2364 join(separator?: string): string;
2365 /**
2366 * Returns a section of an array.
2367 * @param start The beginning of the specified portion of the array.
2368 * @param end The end of the specified portion of the array.
2369 */
2370 slice(start?: number, end?: number): T[];
2371 /**
2372 * Returns the index of the first occurrence of a value in an array.
2373 * @param searchElement The value to locate in the array.
2374 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
2375 */
2376 indexOf(searchElement: T, fromIndex?: number): number;
2377
2378 /**
2379 * Returns the index of the last occurrence of a specified value in an array.
2380 * @param searchElement The value to locate in the array.
2381 * @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.
2382 */
2383 lastIndexOf(searchElement: T, fromIndex?: number): number;
2384 /**
2385 * Determines whether all the members of an array satisfy the specified test.
2386 * @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.
2387 * @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.
2388 */
2389 every(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => boolean, thisArg?: any): boolean;
2390 /**
2391 * Determines whether the specified callback function returns true for any element of an array.
2392 * @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.
2393 * @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.
2394 */
2395 some(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => boolean, thisArg?: any): boolean;
2396 /**
2397 * Performs the specified action for each element in an array.
2398 * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
2399 * @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.
2400 */
2401 forEach(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => void, thisArg?: any): void;
2402 /**
2403 * Calls a defined callback function on each element of an array, and returns an array that contains the results.
2404 * @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.
2405 * @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.
2406 */
2407 map<U>(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => U, thisArg?: any): U[];
2408 /**
2409 * Returns the elements of an array that meet the condition specified in a callback function.
2410 * @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.
2411 * @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.
2412 */
2413 filter(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => boolean, thisArg?: any): T[];
2414 /**
2415 * 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.
2416 * @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.
2417 * @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.
2418 */
2419 reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: ReadonlyArray<T>) => T, initialValue?: T): T;
2420 /**
2421 * 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.
2422 * @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.
2423 * @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.
2424 */
2425 reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: ReadonlyArray<T>) => U, initialValue: U): U;
2426 /**
2427 * 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.
2428 * @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.
2429 * @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.
2430 */
2431 reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: ReadonlyArray<T>) => T, initialValue?: T): T;
2432 /**
2433 * 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.
2434 * @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.
2435 * @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.
2436 */
2437 reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: ReadonlyArray<T>) => U, initialValue: U): U;
2438
2439 readonly [n: number]: T;
2440}
2441
2442interface Array<T> {
2443 /**
2444 * Gets or sets the length of the array. This is a number one higher than the highest element defined in an array.
2445 */
2446 length: number;
2447 /**
2448 * Returns a string representation of an array.
2449 */
2450 toString(): string;
2451 toLocaleString(): string;
2452 /**
2453 * Appends new elements to an array, and returns the new length of the array.
2454 * @param items New elements of the Array.
2455 */
2456 push(...items: T[]): number;
2457 /**
2458 * Removes the last element from an array and returns it.
2459 */
2460 pop(): T;
2461 /**
2462 * Combines two or more arrays.
2463 * @param items Additional items to add to the end of array1.
2464 */
2465 concat<U extends T[]>(...items: U[]): T[];
2466 /**
2467 * Combines two or more arrays.
2468 * @param items Additional items to add to the end of array1.
2469 */
2470 concat(...items: T[]): T[];
2471 /**
2472 * Adds all the elements of an array separated by the specified separator string.
2473 * @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.
2474 */
2475 join(separator?: string): string;
2476 /**
2477 * Reverses the elements in an Array.
2478 */
2479 reverse(): T[];
2480 /**
2481 * Removes the first element from an array and returns it.
2482 */
2483 shift(): T;
2484 /**
2485 * Returns a section of an array.
2486 * @param start The beginning of the specified portion of the array.
2487 * @param end The end of the specified portion of the array.
2488 */
2489 slice(start?: number, end?: number): T[];
2490 /**
2491 * Sorts an array.
2492 * @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.
2493 */
2494 sort(compareFn?: (a: T, b: T) => number): T[];
2495 /**
2496 * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
2497 * @param start The zero-based location in the array from which to start removing elements.
2498 */
2499 splice(start: number): T[];
2500 /**
2501 * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
2502 * @param start The zero-based location in the array from which to start removing elements.
2503 * @param deleteCount The number of elements to remove.
2504 * @param items Elements to insert into the array in place of the deleted elements.
2505 */
2506 splice(start: number, deleteCount: number, ...items: T[]): T[];
2507 /**
2508 * Inserts new elements at the start of an array.
2509 * @param items Elements to insert at the start of the Array.
2510 */
2511 unshift(...items: T[]): number;
2512 /**
2513 * Returns the index of the first occurrence of a value in an array.
2514 * @param searchElement The value to locate in the array.
2515 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
2516 */
2517 indexOf(searchElement: T, fromIndex?: number): number;
2518 /**
2519 * Returns the index of the last occurrence of a specified value in an array.
2520 * @param searchElement The value to locate in the array.
2521 * @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.
2522 */
2523 lastIndexOf(searchElement: T, fromIndex?: number): number;
2524 /**
2525 * Determines whether all the members of an array satisfy the specified test.
2526 * @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.
2527 * @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.
2528 */
2529 every(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): boolean;
2530 /**
2531 * Determines whether the specified callback function returns true for any element of an array.
2532 * @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.
2533 * @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.
2534 */
2535 some(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): boolean;
2536 /**
2537 * Performs the specified action for each element in an array.
2538 * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
2539 * @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.
2540 */
2541 forEach(callbackfn: (value: T, index: number, array: T[]) => void, thisArg?: any): void;
2542 /**
2543 * Calls a defined callback function on each element of an array, and returns an array that contains the results.
2544 * @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.
2545 * @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.
2546 */
2547 map<U>(callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): U[];
2548 /**
2549 * Returns the elements of an array that meet the condition specified in a callback function.
2550 * @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.
2551 * @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.
2552 */
2553 filter(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): T[];
2554 /**
2555 * 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.
2556 * @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.
2557 * @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.
2558 */
2559 reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue?: T): T;
2560 /**
2561 * 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.
2562 * @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.
2563 * @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.
2564 */
2565 reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
2566 /**
2567 * 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.
2568 * @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.
2569 * @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.
2570 */
2571 reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue?: T): T;
2572 /**
2573 * 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.
2574 * @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.
2575 * @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.
2576 */
2577 reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
2578
2579 [n: number]: T;
2580}
2581
2582interface ArrayConstructor {
2583 new (arrayLength?: number): any[];
2584 new <T>(arrayLength: number): T[];
2585 new <T>(...items: T[]): T[];
2586 (arrayLength?: number): any[];
2587 <T>(arrayLength: number): T[];
2588 <T>(...items: T[]): T[];
2589 isArray(arg: any): arg is Array<any>;
2590 readonly prototype: Array<any>;
2591}
2592
2593declare const Array: ArrayConstructor;
2594
2595interface TypedPropertyDescriptor<T> {
2596 enumerable?: boolean;
2597 configurable?: boolean;
2598 writable?: boolean;
2599 value?: T;
2600 get?: () => T;
2601 set?: (value: T) => void;
2602}
2603
2604declare type ClassDecorator = <TFunction extends Function>(target: TFunction) => TFunction | void;
2605declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void;
2606declare type MethodDecorator = <T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
2607declare type ParameterDecorator = (target: Object, propertyKey: string | symbol, parameterIndex: number) => void;
2608
2609declare type PromiseConstructorLike = new <T>(executor: (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void) => PromiseLike<T>;
2610
2611interface PromiseLike<T> {
2612 /**
2613 * Attaches callbacks for the resolution and/or rejection of the Promise.
2614 * @param onfulfilled The callback to execute when the Promise is resolved.
2615 * @param onrejected The callback to execute when the Promise is rejected.
2616 * @returns A Promise for the completion of which ever callback is executed.
2617 */
2618 then<TResult>(onfulfilled?: (value: T) => TResult | PromiseLike<TResult>, onrejected?: (reason: any) => TResult | PromiseLike<TResult>): PromiseLike<TResult>;
2619 then<TResult>(onfulfilled?: (value: T) => TResult | PromiseLike<TResult>, onrejected?: (reason: any) => void): PromiseLike<TResult>;
2620}
2621
2622interface ArrayLike<T> {
2623 readonly length: number;
2624 readonly [n: number]: T;
2625}
2626
2627/**
2628 * Represents a raw buffer of binary data, which is used to store data for the
2629 * different typed arrays. ArrayBuffers cannot be read from or written to directly,
2630 * but can be passed to a typed array or DataView Object to interpret the raw
2631 * buffer as needed.
2632 */
2633interface ArrayBuffer {
2634 /**
2635 * Read-only. The length of the ArrayBuffer (in bytes).
2636 */
2637 readonly byteLength: number;
2638
2639 /**
2640 * Returns a section of an ArrayBuffer.
2641 */
2642 slice(begin:number, end?:number): ArrayBuffer;
2643}
2644
2645interface ArrayBufferConstructor {
2646 readonly prototype: ArrayBuffer;
2647 new (byteLength: number): ArrayBuffer;
2648 isView(arg: any): arg is ArrayBufferView;
2649}
2650declare const ArrayBuffer: ArrayBufferConstructor;
2651
2652interface ArrayBufferView {
2653 /**
2654 * The ArrayBuffer instance referenced by the array.
2655 */
2656 buffer: ArrayBuffer;
2657
2658 /**
2659 * The length in bytes of the array.
2660 */
2661 byteLength: number;
2662
2663 /**
2664 * The offset in bytes of the array.
2665 */
2666 byteOffset: number;
2667}
2668
2669interface DataView {
2670 readonly buffer: ArrayBuffer;
2671 readonly byteLength: number;
2672 readonly byteOffset: number;
2673 /**
2674 * Gets the Float32 value at the specified byte offset from the start of the view. There is
2675 * no alignment constraint; multi-byte values may be fetched from any offset.
2676 * @param byteOffset The place in the buffer at which the value should be retrieved.
2677 */
2678 getFloat32(byteOffset: number, littleEndian?: boolean): number;
2679
2680 /**
2681 * Gets the Float64 value at the specified byte offset from the start of the view. There is
2682 * no alignment constraint; multi-byte values may be fetched from any offset.
2683 * @param byteOffset The place in the buffer at which the value should be retrieved.
2684 */
2685 getFloat64(byteOffset: number, littleEndian?: boolean): number;
2686
2687 /**
2688 * Gets the Int8 value at the specified byte offset from the start of the view. There is
2689 * no alignment constraint; multi-byte values may be fetched from any offset.
2690 * @param byteOffset The place in the buffer at which the value should be retrieved.
2691 */
2692 getInt8(byteOffset: number): number;
2693
2694 /**
2695 * Gets the Int16 value at the specified byte offset from the start of the view. There is
2696 * no alignment constraint; multi-byte values may be fetched from any offset.
2697 * @param byteOffset The place in the buffer at which the value should be retrieved.
2698 */
2699 getInt16(byteOffset: number, littleEndian?: boolean): number;
2700 /**
2701 * Gets the Int32 value at the specified byte offset from the start of the view. There is
2702 * no alignment constraint; multi-byte values may be fetched from any offset.
2703 * @param byteOffset The place in the buffer at which the value should be retrieved.
2704 */
2705 getInt32(byteOffset: number, littleEndian?: boolean): number;
2706
2707 /**
2708 * Gets the Uint8 value at the specified byte offset from the start of the view. There is
2709 * no alignment constraint; multi-byte values may be fetched from any offset.
2710 * @param byteOffset The place in the buffer at which the value should be retrieved.
2711 */
2712 getUint8(byteOffset: number): number;
2713
2714 /**
2715 * Gets the Uint16 value at the specified byte offset from the start of the view. There is
2716 * no alignment constraint; multi-byte values may be fetched from any offset.
2717 * @param byteOffset The place in the buffer at which the value should be retrieved.
2718 */
2719 getUint16(byteOffset: number, littleEndian?: boolean): number;
2720
2721 /**
2722 * Gets the Uint32 value at the specified byte offset from the start of the view. There is
2723 * no alignment constraint; multi-byte values may be fetched from any offset.
2724 * @param byteOffset The place in the buffer at which the value should be retrieved.
2725 */
2726 getUint32(byteOffset: number, littleEndian?: boolean): number;
2727
2728 /**
2729 * Stores an Float32 value at the specified byte offset from the start of the view.
2730 * @param byteOffset The place in the buffer at which the value should be set.
2731 * @param value The value to set.
2732 * @param littleEndian If false or undefined, a big-endian value should be written,
2733 * otherwise a little-endian value should be written.
2734 */
2735 setFloat32(byteOffset: number, value: number, littleEndian?: boolean): void;
2736
2737 /**
2738 * Stores an Float64 value at the specified byte offset from the start of the view.
2739 * @param byteOffset The place in the buffer at which the value should be set.
2740 * @param value The value to set.
2741 * @param littleEndian If false or undefined, a big-endian value should be written,
2742 * otherwise a little-endian value should be written.
2743 */
2744 setFloat64(byteOffset: number, value: number, littleEndian?: boolean): void;
2745
2746 /**
2747 * Stores an Int8 value at the specified byte offset from the start of the view.
2748 * @param byteOffset The place in the buffer at which the value should be set.
2749 * @param value The value to set.
2750 */
2751 setInt8(byteOffset: number, value: number): void;
2752
2753 /**
2754 * Stores an Int16 value at the specified byte offset from the start of the view.
2755 * @param byteOffset The place in the buffer at which the value should be set.
2756 * @param value The value to set.
2757 * @param littleEndian If false or undefined, a big-endian value should be written,
2758 * otherwise a little-endian value should be written.
2759 */
2760 setInt16(byteOffset: number, value: number, littleEndian?: boolean): void;
2761
2762 /**
2763 * Stores an Int32 value at the specified byte offset from the start of the view.
2764 * @param byteOffset The place in the buffer at which the value should be set.
2765 * @param value The value to set.
2766 * @param littleEndian If false or undefined, a big-endian value should be written,
2767 * otherwise a little-endian value should be written.
2768 */
2769 setInt32(byteOffset: number, value: number, littleEndian?: boolean): void;
2770
2771 /**
2772 * Stores an Uint8 value at the specified byte offset from the start of the view.
2773 * @param byteOffset The place in the buffer at which the value should be set.
2774 * @param value The value to set.
2775 */
2776 setUint8(byteOffset: number, value: number): void;
2777
2778 /**
2779 * Stores an Uint16 value at the specified byte offset from the start of the view.
2780 * @param byteOffset The place in the buffer at which the value should be set.
2781 * @param value The value to set.
2782 * @param littleEndian If false or undefined, a big-endian value should be written,
2783 * otherwise a little-endian value should be written.
2784 */
2785 setUint16(byteOffset: number, value: number, littleEndian?: boolean): void;
2786
2787 /**
2788 * Stores an Uint32 value at the specified byte offset from the start of the view.
2789 * @param byteOffset The place in the buffer at which the value should be set.
2790 * @param value The value to set.
2791 * @param littleEndian If false or undefined, a big-endian value should be written,
2792 * otherwise a little-endian value should be written.
2793 */
2794 setUint32(byteOffset: number, value: number, littleEndian?: boolean): void;
2795}
2796
2797interface DataViewConstructor {
2798 new (buffer: ArrayBuffer, byteOffset?: number, byteLength?: number): DataView;
2799}
2800declare const DataView: DataViewConstructor;
2801
2802/**
2803 * A typed array of 8-bit integer values. The contents are initialized to 0. If the requested
2804 * number of bytes could not be allocated an exception is raised.
2805 */
2806interface Int8Array {
2807 /**
2808 * The size in bytes of each element in the array.
2809 */
2810 readonly BYTES_PER_ELEMENT: number;
2811
2812 /**
2813 * The ArrayBuffer instance referenced by the array.
2814 */
2815 readonly buffer: ArrayBuffer;
2816
2817 /**
2818 * The length in bytes of the array.
2819 */
2820 readonly byteLength: number;
2821
2822 /**
2823 * The offset in bytes of the array.
2824 */
2825 readonly byteOffset: number;
2826
2827 /**
2828 * Returns the this object after copying a section of the array identified by start and end
2829 * to the same array starting at position target
2830 * @param target If target is negative, it is treated as length+target where length is the
2831 * length of the array.
2832 * @param start If start is negative, it is treated as length+start. If end is negative, it
2833 * is treated as length+end.
2834 * @param end If not specified, length of the this object is used as its default value.
2835 */
2836 copyWithin(target: number, start: number, end?: number): Int8Array;
2837
2838 /**
2839 * Determines whether all the members of an array satisfy the specified test.
2840 * @param callbackfn A function that accepts up to three arguments. The every method calls
2841 * the callbackfn function for each element in array1 until the callbackfn returns false,
2842 * or until the end of the array.
2843 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
2844 * If thisArg is omitted, undefined is used as the this value.
2845 */
2846 every(callbackfn: (value: number, index: number, array: Int8Array) => boolean, thisArg?: any): boolean;
2847
2848 /**
2849 * Returns the this object after filling the section identified by start and end with value
2850 * @param value value to fill array section with
2851 * @param start index to start filling the array at. If start is negative, it is treated as
2852 * length+start where length is the length of the array.
2853 * @param end index to stop filling the array at. If end is negative, it is treated as
2854 * length+end.
2855 */
2856 fill(value: number, start?: number, end?: number): Int8Array;
2857
2858 /**
2859 * Returns the elements of an array that meet the condition specified in a callback function.
2860 * @param callbackfn A function that accepts up to three arguments. The filter method calls
2861 * the callbackfn function one time for each element in the array.
2862 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
2863 * If thisArg is omitted, undefined is used as the this value.
2864 */
2865 filter(callbackfn: (value: number, index: number, array: Int8Array) => boolean, thisArg?: any): Int8Array;
2866
2867 /**
2868 * Returns the value of the first element in the array where predicate is true, and undefined
2869 * otherwise.
2870 * @param predicate find calls predicate once for each element of the array, in ascending
2871 * order, until it finds one where predicate returns true. If such an element is found, find
2872 * immediately returns that element value. Otherwise, find returns undefined.
2873 * @param thisArg If provided, it will be used as the this value for each invocation of
2874 * predicate. If it is not provided, undefined is used instead.
2875 */
2876 find(predicate: (value: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number;
2877
2878 /**
2879 * Returns the index of the first element in the array where predicate is true, and undefined
2880 * otherwise.
2881 * @param predicate find calls predicate once for each element of the array, in ascending
2882 * order, until it finds one where predicate returns true. If such an element is found, find
2883 * immediately returns that element value. Otherwise, find returns undefined.
2884 * @param thisArg If provided, it will be used as the this value for each invocation of
2885 * predicate. If it is not provided, undefined is used instead.
2886 */
2887 findIndex(predicate: (value: number) => boolean, thisArg?: any): number;
2888
2889 /**
2890 * Performs the specified action for each element in an array.
2891 * @param callbackfn A function that accepts up to three arguments. forEach calls the
2892 * callbackfn function one time for each element in the array.
2893 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
2894 * If thisArg is omitted, undefined is used as the this value.
2895 */
2896 forEach(callbackfn: (value: number, index: number, array: Int8Array) => void, thisArg?: any): void;
2897
2898 /**
2899 * Returns the index of the first occurrence of a value in an array.
2900 * @param searchElement The value to locate in the array.
2901 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
2902 * search starts at index 0.
2903 */
2904 indexOf(searchElement: number, fromIndex?: number): number;
2905
2906 /**
2907 * Adds all the elements of an array separated by the specified separator string.
2908 * @param separator A string used to separate one element of an array from the next in the
2909 * resulting String. If omitted, the array elements are separated with a comma.
2910 */
2911 join(separator?: string): string;
2912
2913 /**
2914 * Returns the index of the last occurrence of a value in an array.
2915 * @param searchElement The value to locate in the array.
2916 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
2917 * search starts at index 0.
2918 */
2919 lastIndexOf(searchElement: number, fromIndex?: number): number;
2920
2921 /**
2922 * The length of the array.
2923 */
2924 readonly length: number;
2925
2926 /**
2927 * Calls a defined callback function on each element of an array, and returns an array that
2928 * contains the results.
2929 * @param callbackfn A function that accepts up to three arguments. The map method calls the
2930 * callbackfn function one time for each element in 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 map(callbackfn: (value: number, index: number, array: Int8Array) => number, thisArg?: any): Int8Array;
2935
2936 /**
2937 * Calls the specified callback function for all the elements in an array. The return value of
2938 * the callback function is the accumulated result, and is provided as an argument in the next
2939 * call to the callback function.
2940 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
2941 * callbackfn function one time for each element in the array.
2942 * @param initialValue If initialValue is specified, it is used as the initial value to start
2943 * the accumulation. The first call to the callbackfn function provides this value as an argument
2944 * instead of an array value.
2945 */
2946 reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue?: number): number;
2947
2948 /**
2949 * Calls the specified callback function for all the elements in an array. The return value of
2950 * the callback function is the accumulated result, and is provided as an argument in the next
2951 * call to the callback function.
2952 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
2953 * callbackfn function one time for each element in the array.
2954 * @param initialValue If initialValue is specified, it is used as the initial value to start
2955 * the accumulation. The first call to the callbackfn function provides this value as an argument
2956 * instead of an array value.
2957 */
2958 reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;
2959
2960 /**
2961 * Calls the specified callback function for all the elements in an array, in descending order.
2962 * The return value of the callback function is the accumulated result, and is provided as an
2963 * argument in the next call to the callback function.
2964 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
2965 * the callbackfn function one time for each element in the array.
2966 * @param initialValue If initialValue is specified, it is used as the initial value to start
2967 * the accumulation. The first call to the callbackfn function provides this value as an
2968 * argument instead of an array value.
2969 */
2970 reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue?: number): number;
2971
2972 /**
2973 * Calls the specified callback function for all the elements in an array, in descending order.
2974 * The return value of the callback function is the accumulated result, and is provided as an
2975 * argument in the next call to the callback function.
2976 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
2977 * the callbackfn function one time for each element in the array.
2978 * @param initialValue If initialValue is specified, it is used as the initial value to start
2979 * the accumulation. The first call to the callbackfn function provides this value as an argument
2980 * instead of an array value.
2981 */
2982 reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;
2983
2984 /**
2985 * Reverses the elements in an Array.
2986 */
2987 reverse(): Int8Array;
2988
2989 /**
2990 * Sets a value or an array of values.
2991 * @param index The index of the location to set.
2992 * @param value The value to set.
2993 */
2994 set(index: number, value: number): void;
2995
2996 /**
2997 * Sets a value or an array of values.
2998 * @param array A typed or untyped array of values to set.
2999 * @param offset The index in the current array at which the values are to be written.
3000 */
3001 set(array: ArrayLike<number>, offset?: number): void;
3002
3003 /**
3004 * Returns a section of an array.
3005 * @param start The beginning of the specified portion of the array.
3006 * @param end The end of the specified portion of the array.
3007 */
3008 slice(start?: number, end?: number): Int8Array;
3009
3010 /**
3011 * Determines whether the specified callback function returns true for any element of an array.
3012 * @param callbackfn A function that accepts up to three arguments. The some method calls the
3013 * callbackfn function for each element in array1 until the callbackfn returns true, or until
3014 * the end of the array.
3015 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3016 * If thisArg is omitted, undefined is used as the this value.
3017 */
3018 some(callbackfn: (value: number, index: number, array: Int8Array) => boolean, thisArg?: any): boolean;
3019
3020 /**
3021 * Sorts an array.
3022 * @param compareFn The name of the function used to determine the order of the elements. If
3023 * omitted, the elements are sorted in ascending, ASCII character order.
3024 */
3025 sort(compareFn?: (a: number, b: number) => number): Int8Array;
3026
3027 /**
3028 * Gets a new Int8Array view of the ArrayBuffer store for this array, referencing the elements
3029 * at begin, inclusive, up to end, exclusive.
3030 * @param begin The index of the beginning of the array.
3031 * @param end The index of the end of the array.
3032 */
3033 subarray(begin: number, end?: number): Int8Array;
3034
3035 /**
3036 * Converts a number to a string by using the current locale.
3037 */
3038 toLocaleString(): string;
3039
3040 /**
3041 * Returns a string representation of an array.
3042 */
3043 toString(): string;
3044
3045 [index: number]: number;
3046}
3047interface Int8ArrayConstructor {
3048 readonly prototype: Int8Array;
3049 new (length: number): Int8Array;
3050 new (array: ArrayLike<number>): Int8Array;
3051 new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int8Array;
3052
3053 /**
3054 * The size in bytes of each element in the array.
3055 */
3056 readonly BYTES_PER_ELEMENT: number;
3057
3058 /**
3059 * Returns a new array from a set of elements.
3060 * @param items A set of elements to include in the new array object.
3061 */
3062 of(...items: number[]): Int8Array;
3063
3064 /**
3065 * Creates an array from an array-like or iterable object.
3066 * @param arrayLike An array-like or iterable object to convert to an array.
3067 * @param mapfn A mapping function to call on every element of the array.
3068 * @param thisArg Value of 'this' used to invoke the mapfn.
3069 */
3070 from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int8Array;
3071
3072}
3073declare const Int8Array: Int8ArrayConstructor;
3074
3075/**
3076 * A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the
3077 * requested number of bytes could not be allocated an exception is raised.
3078 */
3079interface Uint8Array {
3080 /**
3081 * The size in bytes of each element in the array.
3082 */
3083 readonly BYTES_PER_ELEMENT: number;
3084
3085 /**
3086 * The ArrayBuffer instance referenced by the array.
3087 */
3088 readonly buffer: ArrayBuffer;
3089
3090 /**
3091 * The length in bytes of the array.
3092 */
3093 readonly byteLength: number;
3094
3095 /**
3096 * The offset in bytes of the array.
3097 */
3098 readonly byteOffset: number;
3099
3100 /**
3101 * Returns the this object after copying a section of the array identified by start and end
3102 * to the same array starting at position target
3103 * @param target If target is negative, it is treated as length+target where length is the
3104 * length of the array.
3105 * @param start If start is negative, it is treated as length+start. If end is negative, it
3106 * is treated as length+end.
3107 * @param end If not specified, length of the this object is used as its default value.
3108 */
3109 copyWithin(target: number, start: number, end?: number): Uint8Array;
3110
3111 /**
3112 * Determines whether all the members of an array satisfy the specified test.
3113 * @param callbackfn A function that accepts up to three arguments. The every method calls
3114 * the callbackfn function for each element in array1 until the callbackfn returns false,
3115 * or until the end of the array.
3116 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3117 * If thisArg is omitted, undefined is used as the this value.
3118 */
3119 every(callbackfn: (value: number, index: number, array: Uint8Array) => boolean, thisArg?: any): boolean;
3120
3121 /**
3122 * Returns the this object after filling the section identified by start and end with value
3123 * @param value value to fill array section with
3124 * @param start index to start filling the array at. If start is negative, it is treated as
3125 * length+start where length is the length of the array.
3126 * @param end index to stop filling the array at. If end is negative, it is treated as
3127 * length+end.
3128 */
3129 fill(value: number, start?: number, end?: number): Uint8Array;
3130
3131 /**
3132 * Returns the elements of an array that meet the condition specified in a callback function.
3133 * @param callbackfn A function that accepts up to three arguments. The filter method calls
3134 * the callbackfn function one time for each element in the array.
3135 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3136 * If thisArg is omitted, undefined is used as the this value.
3137 */
3138 filter(callbackfn: (value: number, index: number, array: Uint8Array) => boolean, thisArg?: any): Uint8Array;
3139
3140 /**
3141 * Returns the value of the first element in the array where predicate is true, and undefined
3142 * otherwise.
3143 * @param predicate find calls predicate once for each element of the array, in ascending
3144 * order, until it finds one where predicate returns true. If such an element is found, find
3145 * immediately returns that element value. Otherwise, find returns undefined.
3146 * @param thisArg If provided, it will be used as the this value for each invocation of
3147 * predicate. If it is not provided, undefined is used instead.
3148 */
3149 find(predicate: (value: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number;
3150
3151 /**
3152 * Returns the index of the first element in the array where predicate is true, and undefined
3153 * otherwise.
3154 * @param predicate find calls predicate once for each element of the array, in ascending
3155 * order, until it finds one where predicate returns true. If such an element is found, find
3156 * immediately returns that element value. Otherwise, find returns undefined.
3157 * @param thisArg If provided, it will be used as the this value for each invocation of
3158 * predicate. If it is not provided, undefined is used instead.
3159 */
3160 findIndex(predicate: (value: number) => boolean, thisArg?: any): number;
3161
3162 /**
3163 * Performs the specified action for each element in an array.
3164 * @param callbackfn A function that accepts up to three arguments. forEach calls the
3165 * callbackfn function one time for each element in the array.
3166 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3167 * If thisArg is omitted, undefined is used as the this value.
3168 */
3169 forEach(callbackfn: (value: number, index: number, array: Uint8Array) => void, thisArg?: any): void;
3170
3171 /**
3172 * Returns the index of the first occurrence of a value in an array.
3173 * @param searchElement The value to locate in the array.
3174 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
3175 * search starts at index 0.
3176 */
3177 indexOf(searchElement: number, fromIndex?: number): number;
3178
3179 /**
3180 * Adds all the elements of an array separated by the specified separator string.
3181 * @param separator A string used to separate one element of an array from the next in the
3182 * resulting String. If omitted, the array elements are separated with a comma.
3183 */
3184 join(separator?: string): string;
3185
3186 /**
3187 * Returns the index of the last occurrence of a value in an array.
3188 * @param searchElement The value to locate in the array.
3189 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
3190 * search starts at index 0.
3191 */
3192 lastIndexOf(searchElement: number, fromIndex?: number): number;
3193
3194 /**
3195 * The length of the array.
3196 */
3197 readonly length: number;
3198
3199 /**
3200 * Calls a defined callback function on each element of an array, and returns an array that
3201 * contains the results.
3202 * @param callbackfn A function that accepts up to three arguments. The map method calls the
3203 * callbackfn function one time for each element in 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 map(callbackfn: (value: number, index: number, array: Uint8Array) => number, thisArg?: any): Uint8Array;
3208
3209 /**
3210 * Calls the specified callback function for all the elements in an array. The return value of
3211 * the callback function is the accumulated result, and is provided as an argument in the next
3212 * call to the callback function.
3213 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
3214 * callbackfn function one time for each element in the array.
3215 * @param initialValue If initialValue is specified, it is used as the initial value to start
3216 * the accumulation. The first call to the callbackfn function provides this value as an argument
3217 * instead of an array value.
3218 */
3219 reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue?: number): number;
3220
3221 /**
3222 * Calls the specified callback function for all the elements in an array. The return value of
3223 * the callback function is the accumulated result, and is provided as an argument in the next
3224 * call to the callback function.
3225 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
3226 * callbackfn function one time for each element in the array.
3227 * @param initialValue If initialValue is specified, it is used as the initial value to start
3228 * the accumulation. The first call to the callbackfn function provides this value as an argument
3229 * instead of an array value.
3230 */
3231 reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;
3232
3233 /**
3234 * Calls the specified callback function for all the elements in an array, in descending order.
3235 * The return value of the callback function is the accumulated result, and is provided as an
3236 * argument in the next call to the callback function.
3237 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
3238 * the callbackfn function one time for each element in the array.
3239 * @param initialValue If initialValue is specified, it is used as the initial value to start
3240 * the accumulation. The first call to the callbackfn function provides this value as an
3241 * argument instead of an array value.
3242 */
3243 reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue?: number): number;
3244
3245 /**
3246 * Calls the specified callback function for all the elements in an array, in descending order.
3247 * The return value of the callback function is the accumulated result, and is provided as an
3248 * argument in the next call to the callback function.
3249 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
3250 * the callbackfn function one time for each element in the array.
3251 * @param initialValue If initialValue is specified, it is used as the initial value to start
3252 * the accumulation. The first call to the callbackfn function provides this value as an argument
3253 * instead of an array value.
3254 */
3255 reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;
3256
3257 /**
3258 * Reverses the elements in an Array.
3259 */
3260 reverse(): Uint8Array;
3261
3262 /**
3263 * Sets a value or an array of values.
3264 * @param index The index of the location to set.
3265 * @param value The value to set.
3266 */
3267 set(index: number, value: number): void;
3268
3269 /**
3270 * Sets a value or an array of values.
3271 * @param array A typed or untyped array of values to set.
3272 * @param offset The index in the current array at which the values are to be written.
3273 */
3274 set(array: ArrayLike<number>, offset?: number): void;
3275
3276 /**
3277 * Returns a section of an array.
3278 * @param start The beginning of the specified portion of the array.
3279 * @param end The end of the specified portion of the array.
3280 */
3281 slice(start?: number, end?: number): Uint8Array;
3282
3283 /**
3284 * Determines whether the specified callback function returns true for any element of an array.
3285 * @param callbackfn A function that accepts up to three arguments. The some method calls the
3286 * callbackfn function for each element in array1 until the callbackfn returns true, or until
3287 * the end of the array.
3288 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3289 * If thisArg is omitted, undefined is used as the this value.
3290 */
3291 some(callbackfn: (value: number, index: number, array: Uint8Array) => boolean, thisArg?: any): boolean;
3292
3293 /**
3294 * Sorts an array.
3295 * @param compareFn The name of the function used to determine the order of the elements. If
3296 * omitted, the elements are sorted in ascending, ASCII character order.
3297 */
3298 sort(compareFn?: (a: number, b: number) => number): Uint8Array;
3299
3300 /**
3301 * Gets a new Uint8Array view of the ArrayBuffer store for this array, referencing the elements
3302 * at begin, inclusive, up to end, exclusive.
3303 * @param begin The index of the beginning of the array.
3304 * @param end The index of the end of the array.
3305 */
3306 subarray(begin: number, end?: number): Uint8Array;
3307
3308 /**
3309 * Converts a number to a string by using the current locale.
3310 */
3311 toLocaleString(): string;
3312
3313 /**
3314 * Returns a string representation of an array.
3315 */
3316 toString(): string;
3317
3318 [index: number]: number;
3319}
3320
3321interface Uint8ArrayConstructor {
3322 readonly prototype: Uint8Array;
3323 new (length: number): Uint8Array;
3324 new (array: ArrayLike<number>): Uint8Array;
3325 new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint8Array;
3326
3327 /**
3328 * The size in bytes of each element in the array.
3329 */
3330 readonly BYTES_PER_ELEMENT: number;
3331
3332 /**
3333 * Returns a new array from a set of elements.
3334 * @param items A set of elements to include in the new array object.
3335 */
3336 of(...items: number[]): Uint8Array;
3337
3338 /**
3339 * Creates an array from an array-like or iterable object.
3340 * @param arrayLike An array-like or iterable object to convert to an array.
3341 * @param mapfn A mapping function to call on every element of the array.
3342 * @param thisArg Value of 'this' used to invoke the mapfn.
3343 */
3344 from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8Array;
3345
3346}
3347declare const Uint8Array: Uint8ArrayConstructor;
3348
3349/**
3350 * A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0.
3351 * If the requested number of bytes could not be allocated an exception is raised.
3352 */
3353interface Uint8ClampedArray {
3354 /**
3355 * The size in bytes of each element in the array.
3356 */
3357 readonly BYTES_PER_ELEMENT: number;
3358
3359 /**
3360 * The ArrayBuffer instance referenced by the array.
3361 */
3362 readonly buffer: ArrayBuffer;
3363
3364 /**
3365 * The length in bytes of the array.
3366 */
3367 readonly byteLength: number;
3368
3369 /**
3370 * The offset in bytes of the array.
3371 */
3372 readonly byteOffset: number;
3373
3374 /**
3375 * Returns the this object after copying a section of the array identified by start and end
3376 * to the same array starting at position target
3377 * @param target If target is negative, it is treated as length+target where length is the
3378 * length of the array.
3379 * @param start If start is negative, it is treated as length+start. If end is negative, it
3380 * is treated as length+end.
3381 * @param end If not specified, length of the this object is used as its default value.
3382 */
3383 copyWithin(target: number, start: number, end?: number): Uint8ClampedArray;
3384
3385 /**
3386 * Determines whether all the members of an array satisfy the specified test.
3387 * @param callbackfn A function that accepts up to three arguments. The every method calls
3388 * the callbackfn function for each element in array1 until the callbackfn returns false,
3389 * or until the end of the array.
3390 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3391 * If thisArg is omitted, undefined is used as the this value.
3392 */
3393 every(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => boolean, thisArg?: any): boolean;
3394
3395 /**
3396 * Returns the this object after filling the section identified by start and end with value
3397 * @param value value to fill array section with
3398 * @param start index to start filling the array at. If start is negative, it is treated as
3399 * length+start where length is the length of the array.
3400 * @param end index to stop filling the array at. If end is negative, it is treated as
3401 * length+end.
3402 */
3403 fill(value: number, start?: number, end?: number): Uint8ClampedArray;
3404
3405 /**
3406 * Returns the elements of an array that meet the condition specified in a callback function.
3407 * @param callbackfn A function that accepts up to three arguments. The filter method calls
3408 * the callbackfn function one time for each element in the array.
3409 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3410 * If thisArg is omitted, undefined is used as the this value.
3411 */
3412 filter(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => boolean, thisArg?: any): Uint8ClampedArray;
3413
3414 /**
3415 * Returns the value of the first element in the array where predicate is true, and undefined
3416 * otherwise.
3417 * @param predicate find calls predicate once for each element of the array, in ascending
3418 * order, until it finds one where predicate returns true. If such an element is found, find
3419 * immediately returns that element value. Otherwise, find returns undefined.
3420 * @param thisArg If provided, it will be used as the this value for each invocation of
3421 * predicate. If it is not provided, undefined is used instead.
3422 */
3423 find(predicate: (value: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number;
3424
3425 /**
3426 * Returns the index of the first element in the array where predicate is true, and undefined
3427 * otherwise.
3428 * @param predicate find calls predicate once for each element of the array, in ascending
3429 * order, until it finds one where predicate returns true. If such an element is found, find
3430 * immediately returns that element value. Otherwise, find returns undefined.
3431 * @param thisArg If provided, it will be used as the this value for each invocation of
3432 * predicate. If it is not provided, undefined is used instead.
3433 */
3434 findIndex(predicate: (value: number) => boolean, thisArg?: any): number;
3435
3436 /**
3437 * Performs the specified action for each element in an array.
3438 * @param callbackfn A function that accepts up to three arguments. forEach calls the
3439 * callbackfn function one time for each element in the array.
3440 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3441 * If thisArg is omitted, undefined is used as the this value.
3442 */
3443 forEach(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => void, thisArg?: any): void;
3444
3445 /**
3446 * Returns the index of the first occurrence of a value in an array.
3447 * @param searchElement The value to locate in the array.
3448 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
3449 * search starts at index 0.
3450 */
3451 indexOf(searchElement: number, fromIndex?: number): number;
3452
3453 /**
3454 * Adds all the elements of an array separated by the specified separator string.
3455 * @param separator A string used to separate one element of an array from the next in the
3456 * resulting String. If omitted, the array elements are separated with a comma.
3457 */
3458 join(separator?: string): string;
3459
3460 /**
3461 * Returns the index of the last occurrence of a value in an array.
3462 * @param searchElement The value to locate in the array.
3463 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
3464 * search starts at index 0.
3465 */
3466 lastIndexOf(searchElement: number, fromIndex?: number): number;
3467
3468 /**
3469 * The length of the array.
3470 */
3471 readonly length: number;
3472
3473 /**
3474 * Calls a defined callback function on each element of an array, and returns an array that
3475 * contains the results.
3476 * @param callbackfn A function that accepts up to three arguments. The map method calls the
3477 * callbackfn function one time for each element in 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 map(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => number, thisArg?: any): Uint8ClampedArray;
3482
3483 /**
3484 * Calls the specified callback function for all the elements in an array. The return value of
3485 * the callback function is the accumulated result, and is provided as an argument in the next
3486 * call to the callback function.
3487 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
3488 * callbackfn function one time for each element in the array.
3489 * @param initialValue If initialValue is specified, it is used as the initial value to start
3490 * the accumulation. The first call to the callbackfn function provides this value as an argument
3491 * instead of an array value.
3492 */
3493 reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue?: number): number;
3494
3495 /**
3496 * Calls the specified callback function for all the elements in an array. The return value of
3497 * the callback function is the accumulated result, and is provided as an argument in the next
3498 * call to the callback function.
3499 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
3500 * callbackfn function one time for each element in the array.
3501 * @param initialValue If initialValue is specified, it is used as the initial value to start
3502 * the accumulation. The first call to the callbackfn function provides this value as an argument
3503 * instead of an array value.
3504 */
3505 reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;
3506
3507 /**
3508 * Calls the specified callback function for all the elements in an array, in descending order.
3509 * The return value of the callback function is the accumulated result, and is provided as an
3510 * argument in the next call to the callback function.
3511 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
3512 * the callbackfn function one time for each element in the array.
3513 * @param initialValue If initialValue is specified, it is used as the initial value to start
3514 * the accumulation. The first call to the callbackfn function provides this value as an
3515 * argument instead of an array value.
3516 */
3517 reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue?: number): number;
3518
3519 /**
3520 * Calls the specified callback function for all the elements in an array, in descending order.
3521 * The return value of the callback function is the accumulated result, and is provided as an
3522 * argument in the next call to the callback function.
3523 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
3524 * the callbackfn function one time for each element in the array.
3525 * @param initialValue If initialValue is specified, it is used as the initial value to start
3526 * the accumulation. The first call to the callbackfn function provides this value as an argument
3527 * instead of an array value.
3528 */
3529 reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;
3530
3531 /**
3532 * Reverses the elements in an Array.
3533 */
3534 reverse(): Uint8ClampedArray;
3535
3536 /**
3537 * Sets a value or an array of values.
3538 * @param index The index of the location to set.
3539 * @param value The value to set.
3540 */
3541 set(index: number, value: number): void;
3542
3543 /**
3544 * Sets a value or an array of values.
3545 * @param array A typed or untyped array of values to set.
3546 * @param offset The index in the current array at which the values are to be written.
3547 */
3548 set(array: Uint8ClampedArray, offset?: number): void;
3549
3550 /**
3551 * Returns a section of an array.
3552 * @param start The beginning of the specified portion of the array.
3553 * @param end The end of the specified portion of the array.
3554 */
3555 slice(start?: number, end?: number): Uint8ClampedArray;
3556
3557 /**
3558 * Determines whether the specified callback function returns true for any element of an array.
3559 * @param callbackfn A function that accepts up to three arguments. The some method calls the
3560 * callbackfn function for each element in array1 until the callbackfn returns true, or until
3561 * the end of the array.
3562 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3563 * If thisArg is omitted, undefined is used as the this value.
3564 */
3565 some(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => boolean, thisArg?: any): boolean;
3566
3567 /**
3568 * Sorts an array.
3569 * @param compareFn The name of the function used to determine the order of the elements. If
3570 * omitted, the elements are sorted in ascending, ASCII character order.
3571 */
3572 sort(compareFn?: (a: number, b: number) => number): Uint8ClampedArray;
3573
3574 /**
3575 * Gets a new Uint8ClampedArray view of the ArrayBuffer store for this array, referencing the elements
3576 * at begin, inclusive, up to end, exclusive.
3577 * @param begin The index of the beginning of the array.
3578 * @param end The index of the end of the array.
3579 */
3580 subarray(begin: number, end?: number): Uint8ClampedArray;
3581
3582 /**
3583 * Converts a number to a string by using the current locale.
3584 */
3585 toLocaleString(): string;
3586
3587 /**
3588 * Returns a string representation of an array.
3589 */
3590 toString(): string;
3591
3592 [index: number]: number;
3593}
3594
3595interface Uint8ClampedArrayConstructor {
3596 readonly prototype: Uint8ClampedArray;
3597 new (length: number): Uint8ClampedArray;
3598 new (array: ArrayLike<number>): Uint8ClampedArray;
3599 new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint8ClampedArray;
3600
3601 /**
3602 * The size in bytes of each element in the array.
3603 */
3604 readonly BYTES_PER_ELEMENT: number;
3605
3606 /**
3607 * Returns a new array from a set of elements.
3608 * @param items A set of elements to include in the new array object.
3609 */
3610 of(...items: number[]): Uint8ClampedArray;
3611
3612 /**
3613 * Creates an array from an array-like or iterable object.
3614 * @param arrayLike An array-like or iterable object to convert to an array.
3615 * @param mapfn A mapping function to call on every element of the array.
3616 * @param thisArg Value of 'this' used to invoke the mapfn.
3617 */
3618 from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8ClampedArray;
3619}
3620declare const Uint8ClampedArray: Uint8ClampedArrayConstructor;
3621
3622/**
3623 * A typed array of 16-bit signed integer values. The contents are initialized to 0. If the
3624 * requested number of bytes could not be allocated an exception is raised.
3625 */
3626interface Int16Array {
3627 /**
3628 * The size in bytes of each element in the array.
3629 */
3630 readonly BYTES_PER_ELEMENT: number;
3631
3632 /**
3633 * The ArrayBuffer instance referenced by the array.
3634 */
3635 readonly buffer: ArrayBuffer;
3636
3637 /**
3638 * The length in bytes of the array.
3639 */
3640 readonly byteLength: number;
3641
3642 /**
3643 * The offset in bytes of the array.
3644 */
3645 readonly byteOffset: number;
3646
3647 /**
3648 * Returns the this object after copying a section of the array identified by start and end
3649 * to the same array starting at position target
3650 * @param target If target is negative, it is treated as length+target where length is the
3651 * length of the array.
3652 * @param start If start is negative, it is treated as length+start. If end is negative, it
3653 * is treated as length+end.
3654 * @param end If not specified, length of the this object is used as its default value.
3655 */
3656 copyWithin(target: number, start: number, end?: number): Int16Array;
3657
3658 /**
3659 * Determines whether all the members of an array satisfy the specified test.
3660 * @param callbackfn A function that accepts up to three arguments. The every method calls
3661 * the callbackfn function for each element in array1 until the callbackfn returns false,
3662 * or until the end of the array.
3663 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3664 * If thisArg is omitted, undefined is used as the this value.
3665 */
3666 every(callbackfn: (value: number, index: number, array: Int16Array) => boolean, thisArg?: any): boolean;
3667
3668 /**
3669 * Returns the this object after filling the section identified by start and end with value
3670 * @param value value to fill array section with
3671 * @param start index to start filling the array at. If start is negative, it is treated as
3672 * length+start where length is the length of the array.
3673 * @param end index to stop filling the array at. If end is negative, it is treated as
3674 * length+end.
3675 */
3676 fill(value: number, start?: number, end?: number): Int16Array;
3677
3678 /**
3679 * Returns the elements of an array that meet the condition specified in a callback function.
3680 * @param callbackfn A function that accepts up to three arguments. The filter method calls
3681 * the callbackfn function one time for each element in the array.
3682 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3683 * If thisArg is omitted, undefined is used as the this value.
3684 */
3685 filter(callbackfn: (value: number, index: number, array: Int16Array) => boolean, thisArg?: any): Int16Array;
3686
3687 /**
3688 * Returns the value of the first element in the array where predicate is true, and undefined
3689 * otherwise.
3690 * @param predicate find calls predicate once for each element of the array, in ascending
3691 * order, until it finds one where predicate returns true. If such an element is found, find
3692 * immediately returns that element value. Otherwise, find returns undefined.
3693 * @param thisArg If provided, it will be used as the this value for each invocation of
3694 * predicate. If it is not provided, undefined is used instead.
3695 */
3696 find(predicate: (value: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number;
3697
3698 /**
3699 * Returns the index of the first element in the array where predicate is true, and undefined
3700 * otherwise.
3701 * @param predicate find calls predicate once for each element of the array, in ascending
3702 * order, until it finds one where predicate returns true. If such an element is found, find
3703 * immediately returns that element value. Otherwise, find returns undefined.
3704 * @param thisArg If provided, it will be used as the this value for each invocation of
3705 * predicate. If it is not provided, undefined is used instead.
3706 */
3707 findIndex(predicate: (value: number) => boolean, thisArg?: any): number;
3708
3709 /**
3710 * Performs the specified action for each element in an array.
3711 * @param callbackfn A function that accepts up to three arguments. forEach calls the
3712 * callbackfn function one time for each element in the array.
3713 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3714 * If thisArg is omitted, undefined is used as the this value.
3715 */
3716 forEach(callbackfn: (value: number, index: number, array: Int16Array) => void, thisArg?: any): void;
3717
3718 /**
3719 * Returns the index of the first occurrence of a value in an array.
3720 * @param searchElement The value to locate in the array.
3721 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
3722 * search starts at index 0.
3723 */
3724 indexOf(searchElement: number, fromIndex?: number): number;
3725
3726 /**
3727 * Adds all the elements of an array separated by the specified separator string.
3728 * @param separator A string used to separate one element of an array from the next in the
3729 * resulting String. If omitted, the array elements are separated with a comma.
3730 */
3731 join(separator?: string): string;
3732
3733 /**
3734 * Returns the index of the last occurrence of a value in an array.
3735 * @param searchElement The value to locate in the array.
3736 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
3737 * search starts at index 0.
3738 */
3739 lastIndexOf(searchElement: number, fromIndex?: number): number;
3740
3741 /**
3742 * The length of the array.
3743 */
3744 readonly length: number;
3745
3746 /**
3747 * Calls a defined callback function on each element of an array, and returns an array that
3748 * contains the results.
3749 * @param callbackfn A function that accepts up to three arguments. The map method calls the
3750 * callbackfn function one time for each element in 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 map(callbackfn: (value: number, index: number, array: Int16Array) => number, thisArg?: any): Int16Array;
3755
3756 /**
3757 * Calls the specified callback function for all the elements in an array. The return value of
3758 * the callback function is the accumulated result, and is provided as an argument in the next
3759 * call to the callback function.
3760 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
3761 * callbackfn function one time for each element in the array.
3762 * @param initialValue If initialValue is specified, it is used as the initial value to start
3763 * the accumulation. The first call to the callbackfn function provides this value as an argument
3764 * instead of an array value.
3765 */
3766 reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue?: number): number;
3767
3768 /**
3769 * Calls the specified callback function for all the elements in an array. The return value of
3770 * the callback function is the accumulated result, and is provided as an argument in the next
3771 * call to the callback function.
3772 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
3773 * callbackfn function one time for each element in the array.
3774 * @param initialValue If initialValue is specified, it is used as the initial value to start
3775 * the accumulation. The first call to the callbackfn function provides this value as an argument
3776 * instead of an array value.
3777 */
3778 reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;
3779
3780 /**
3781 * Calls the specified callback function for all the elements in an array, in descending order.
3782 * The return value of the callback function is the accumulated result, and is provided as an
3783 * argument in the next call to the callback function.
3784 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
3785 * the callbackfn function one time for each element in the array.
3786 * @param initialValue If initialValue is specified, it is used as the initial value to start
3787 * the accumulation. The first call to the callbackfn function provides this value as an
3788 * argument instead of an array value.
3789 */
3790 reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue?: number): number;
3791
3792 /**
3793 * Calls the specified callback function for all the elements in an array, in descending order.
3794 * The return value of the callback function is the accumulated result, and is provided as an
3795 * argument in the next call to the callback function.
3796 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
3797 * the callbackfn function one time for each element in the array.
3798 * @param initialValue If initialValue is specified, it is used as the initial value to start
3799 * the accumulation. The first call to the callbackfn function provides this value as an argument
3800 * instead of an array value.
3801 */
3802 reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;
3803
3804 /**
3805 * Reverses the elements in an Array.
3806 */
3807 reverse(): Int16Array;
3808
3809 /**
3810 * Sets a value or an array of values.
3811 * @param index The index of the location to set.
3812 * @param value The value to set.
3813 */
3814 set(index: number, value: number): void;
3815
3816 /**
3817 * Sets a value or an array of values.
3818 * @param array A typed or untyped array of values to set.
3819 * @param offset The index in the current array at which the values are to be written.
3820 */
3821 set(array: ArrayLike<number>, offset?: number): void;
3822
3823 /**
3824 * Returns a section of an array.
3825 * @param start The beginning of the specified portion of the array.
3826 * @param end The end of the specified portion of the array.
3827 */
3828 slice(start?: number, end?: number): Int16Array;
3829
3830 /**
3831 * Determines whether the specified callback function returns true for any element of an array.
3832 * @param callbackfn A function that accepts up to three arguments. The some method calls the
3833 * callbackfn function for each element in array1 until the callbackfn returns true, or until
3834 * the end of the array.
3835 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3836 * If thisArg is omitted, undefined is used as the this value.
3837 */
3838 some(callbackfn: (value: number, index: number, array: Int16Array) => boolean, thisArg?: any): boolean;
3839
3840 /**
3841 * Sorts an array.
3842 * @param compareFn The name of the function used to determine the order of the elements. If
3843 * omitted, the elements are sorted in ascending, ASCII character order.
3844 */
3845 sort(compareFn?: (a: number, b: number) => number): Int16Array;
3846
3847 /**
3848 * Gets a new Int16Array view of the ArrayBuffer store for this array, referencing the elements
3849 * at begin, inclusive, up to end, exclusive.
3850 * @param begin The index of the beginning of the array.
3851 * @param end The index of the end of the array.
3852 */
3853 subarray(begin: number, end?: number): Int16Array;
3854
3855 /**
3856 * Converts a number to a string by using the current locale.
3857 */
3858 toLocaleString(): string;
3859
3860 /**
3861 * Returns a string representation of an array.
3862 */
3863 toString(): string;
3864
3865 [index: number]: number;
3866}
3867
3868interface Int16ArrayConstructor {
3869 readonly prototype: Int16Array;
3870 new (length: number): Int16Array;
3871 new (array: ArrayLike<number>): Int16Array;
3872 new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int16Array;
3873
3874 /**
3875 * The size in bytes of each element in the array.
3876 */
3877 readonly BYTES_PER_ELEMENT: number;
3878
3879 /**
3880 * Returns a new array from a set of elements.
3881 * @param items A set of elements to include in the new array object.
3882 */
3883 of(...items: number[]): Int16Array;
3884
3885 /**
3886 * Creates an array from an array-like or iterable object.
3887 * @param arrayLike An array-like or iterable object to convert to an array.
3888 * @param mapfn A mapping function to call on every element of the array.
3889 * @param thisArg Value of 'this' used to invoke the mapfn.
3890 */
3891 from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int16Array;
3892
3893}
3894declare const Int16Array: Int16ArrayConstructor;
3895
3896/**
3897 * A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the
3898 * requested number of bytes could not be allocated an exception is raised.
3899 */
3900interface Uint16Array {
3901 /**
3902 * The size in bytes of each element in the array.
3903 */
3904 readonly BYTES_PER_ELEMENT: number;
3905
3906 /**
3907 * The ArrayBuffer instance referenced by the array.
3908 */
3909 readonly buffer: ArrayBuffer;
3910
3911 /**
3912 * The length in bytes of the array.
3913 */
3914 readonly byteLength: number;
3915
3916 /**
3917 * The offset in bytes of the array.
3918 */
3919 readonly byteOffset: number;
3920
3921 /**
3922 * Returns the this object after copying a section of the array identified by start and end
3923 * to the same array starting at position target
3924 * @param target If target is negative, it is treated as length+target where length is the
3925 * length of the array.
3926 * @param start If start is negative, it is treated as length+start. If end is negative, it
3927 * is treated as length+end.
3928 * @param end If not specified, length of the this object is used as its default value.
3929 */
3930 copyWithin(target: number, start: number, end?: number): Uint16Array;
3931
3932 /**
3933 * Determines whether all the members of an array satisfy the specified test.
3934 * @param callbackfn A function that accepts up to three arguments. The every method calls
3935 * the callbackfn function for each element in array1 until the callbackfn returns false,
3936 * or until the end of the array.
3937 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3938 * If thisArg is omitted, undefined is used as the this value.
3939 */
3940 every(callbackfn: (value: number, index: number, array: Uint16Array) => boolean, thisArg?: any): boolean;
3941
3942 /**
3943 * Returns the this object after filling the section identified by start and end with value
3944 * @param value value to fill array section with
3945 * @param start index to start filling the array at. If start is negative, it is treated as
3946 * length+start where length is the length of the array.
3947 * @param end index to stop filling the array at. If end is negative, it is treated as
3948 * length+end.
3949 */
3950 fill(value: number, start?: number, end?: number): Uint16Array;
3951
3952 /**
3953 * Returns the elements of an array that meet the condition specified in a callback function.
3954 * @param callbackfn A function that accepts up to three arguments. The filter method calls
3955 * the callbackfn function one time for each element in the array.
3956 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3957 * If thisArg is omitted, undefined is used as the this value.
3958 */
3959 filter(callbackfn: (value: number, index: number, array: Uint16Array) => boolean, thisArg?: any): Uint16Array;
3960
3961 /**
3962 * Returns the value of the first element in the array where predicate is true, and undefined
3963 * otherwise.
3964 * @param predicate find calls predicate once for each element of the array, in ascending
3965 * order, until it finds one where predicate returns true. If such an element is found, find
3966 * immediately returns that element value. Otherwise, find returns undefined.
3967 * @param thisArg If provided, it will be used as the this value for each invocation of
3968 * predicate. If it is not provided, undefined is used instead.
3969 */
3970 find(predicate: (value: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number;
3971
3972 /**
3973 * Returns the index of the first element in the array where predicate is true, and undefined
3974 * otherwise.
3975 * @param predicate find calls predicate once for each element of the array, in ascending
3976 * order, until it finds one where predicate returns true. If such an element is found, find
3977 * immediately returns that element value. Otherwise, find returns undefined.
3978 * @param thisArg If provided, it will be used as the this value for each invocation of
3979 * predicate. If it is not provided, undefined is used instead.
3980 */
3981 findIndex(predicate: (value: number) => boolean, thisArg?: any): number;
3982
3983 /**
3984 * Performs the specified action for each element in an array.
3985 * @param callbackfn A function that accepts up to three arguments. forEach calls the
3986 * callbackfn function one time for each element in the array.
3987 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3988 * If thisArg is omitted, undefined is used as the this value.
3989 */
3990 forEach(callbackfn: (value: number, index: number, array: Uint16Array) => void, thisArg?: any): void;
3991
3992 /**
3993 * Returns the index of the first occurrence of a value in an array.
3994 * @param searchElement The value to locate in the array.
3995 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
3996 * search starts at index 0.
3997 */
3998 indexOf(searchElement: number, fromIndex?: number): number;
3999
4000 /**
4001 * Adds all the elements of an array separated by the specified separator string.
4002 * @param separator A string used to separate one element of an array from the next in the
4003 * resulting String. If omitted, the array elements are separated with a comma.
4004 */
4005 join(separator?: string): string;
4006
4007 /**
4008 * Returns the index of the last occurrence of a value in an array.
4009 * @param searchElement The value to locate in the array.
4010 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
4011 * search starts at index 0.
4012 */
4013 lastIndexOf(searchElement: number, fromIndex?: number): number;
4014
4015 /**
4016 * The length of the array.
4017 */
4018 readonly length: number;
4019
4020 /**
4021 * Calls a defined callback function on each element of an array, and returns an array that
4022 * contains the results.
4023 * @param callbackfn A function that accepts up to three arguments. The map method calls the
4024 * callbackfn function one time for each element in 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 map(callbackfn: (value: number, index: number, array: Uint16Array) => number, thisArg?: any): Uint16Array;
4029
4030 /**
4031 * Calls the specified callback function for all the elements in an array. The return value of
4032 * the callback function is the accumulated result, and is provided as an argument in the next
4033 * call to the callback function.
4034 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
4035 * callbackfn function one time for each element in the array.
4036 * @param initialValue If initialValue is specified, it is used as the initial value to start
4037 * the accumulation. The first call to the callbackfn function provides this value as an argument
4038 * instead of an array value.
4039 */
4040 reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue?: number): number;
4041
4042 /**
4043 * Calls the specified callback function for all the elements in an array. The return value of
4044 * the callback function is the accumulated result, and is provided as an argument in the next
4045 * call to the callback function.
4046 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
4047 * callbackfn function one time for each element in the array.
4048 * @param initialValue If initialValue is specified, it is used as the initial value to start
4049 * the accumulation. The first call to the callbackfn function provides this value as an argument
4050 * instead of an array value.
4051 */
4052 reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;
4053
4054 /**
4055 * Calls the specified callback function for all the elements in an array, in descending order.
4056 * The return value of the callback function is the accumulated result, and is provided as an
4057 * argument in the next call to the callback function.
4058 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
4059 * the callbackfn function one time for each element in the array.
4060 * @param initialValue If initialValue is specified, it is used as the initial value to start
4061 * the accumulation. The first call to the callbackfn function provides this value as an
4062 * argument instead of an array value.
4063 */
4064 reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue?: number): number;
4065
4066 /**
4067 * Calls the specified callback function for all the elements in an array, in descending order.
4068 * The return value of the callback function is the accumulated result, and is provided as an
4069 * argument in the next call to the callback function.
4070 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
4071 * the callbackfn function one time for each element in the array.
4072 * @param initialValue If initialValue is specified, it is used as the initial value to start
4073 * the accumulation. The first call to the callbackfn function provides this value as an argument
4074 * instead of an array value.
4075 */
4076 reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;
4077
4078 /**
4079 * Reverses the elements in an Array.
4080 */
4081 reverse(): Uint16Array;
4082
4083 /**
4084 * Sets a value or an array of values.
4085 * @param index The index of the location to set.
4086 * @param value The value to set.
4087 */
4088 set(index: number, value: number): void;
4089
4090 /**
4091 * Sets a value or an array of values.
4092 * @param array A typed or untyped array of values to set.
4093 * @param offset The index in the current array at which the values are to be written.
4094 */
4095 set(array: ArrayLike<number>, offset?: number): void;
4096
4097 /**
4098 * Returns a section of an array.
4099 * @param start The beginning of the specified portion of the array.
4100 * @param end The end of the specified portion of the array.
4101 */
4102 slice(start?: number, end?: number): Uint16Array;
4103
4104 /**
4105 * Determines whether the specified callback function returns true for any element of an array.
4106 * @param callbackfn A function that accepts up to three arguments. The some method calls the
4107 * callbackfn function for each element in array1 until the callbackfn returns true, or until
4108 * the end of the array.
4109 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
4110 * If thisArg is omitted, undefined is used as the this value.
4111 */
4112 some(callbackfn: (value: number, index: number, array: Uint16Array) => boolean, thisArg?: any): boolean;
4113
4114 /**
4115 * Sorts an array.
4116 * @param compareFn The name of the function used to determine the order of the elements. If
4117 * omitted, the elements are sorted in ascending, ASCII character order.
4118 */
4119 sort(compareFn?: (a: number, b: number) => number): Uint16Array;
4120
4121 /**
4122 * Gets a new Uint16Array view of the ArrayBuffer store for this array, referencing the elements
4123 * at begin, inclusive, up to end, exclusive.
4124 * @param begin The index of the beginning of the array.
4125 * @param end The index of the end of the array.
4126 */
4127 subarray(begin: number, end?: number): Uint16Array;
4128
4129 /**
4130 * Converts a number to a string by using the current locale.
4131 */
4132 toLocaleString(): string;
4133
4134 /**
4135 * Returns a string representation of an array.
4136 */
4137 toString(): string;
4138
4139 [index: number]: number;
4140}
4141
4142interface Uint16ArrayConstructor {
4143 readonly prototype: Uint16Array;
4144 new (length: number): Uint16Array;
4145 new (array: ArrayLike<number>): Uint16Array;
4146 new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint16Array;
4147
4148 /**
4149 * The size in bytes of each element in the array.
4150 */
4151 readonly BYTES_PER_ELEMENT: number;
4152
4153 /**
4154 * Returns a new array from a set of elements.
4155 * @param items A set of elements to include in the new array object.
4156 */
4157 of(...items: number[]): Uint16Array;
4158
4159 /**
4160 * Creates an array from an array-like or iterable object.
4161 * @param arrayLike An array-like or iterable object to convert to an array.
4162 * @param mapfn A mapping function to call on every element of the array.
4163 * @param thisArg Value of 'this' used to invoke the mapfn.
4164 */
4165 from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint16Array;
4166
4167}
4168declare const Uint16Array: Uint16ArrayConstructor;
4169/**
4170 * A typed array of 32-bit signed integer values. The contents are initialized to 0. If the
4171 * requested number of bytes could not be allocated an exception is raised.
4172 */
4173interface Int32Array {
4174 /**
4175 * The size in bytes of each element in the array.
4176 */
4177 readonly BYTES_PER_ELEMENT: number;
4178
4179 /**
4180 * The ArrayBuffer instance referenced by the array.
4181 */
4182 readonly buffer: ArrayBuffer;
4183
4184 /**
4185 * The length in bytes of the array.
4186 */
4187 readonly byteLength: number;
4188
4189 /**
4190 * The offset in bytes of the array.
4191 */
4192 readonly byteOffset: number;
4193
4194 /**
4195 * Returns the this object after copying a section of the array identified by start and end
4196 * to the same array starting at position target
4197 * @param target If target is negative, it is treated as length+target where length is the
4198 * length of the array.
4199 * @param start If start is negative, it is treated as length+start. If end is negative, it
4200 * is treated as length+end.
4201 * @param end If not specified, length of the this object is used as its default value.
4202 */
4203 copyWithin(target: number, start: number, end?: number): Int32Array;
4204
4205 /**
4206 * Determines whether all the members of an array satisfy the specified test.
4207 * @param callbackfn A function that accepts up to three arguments. The every method calls
4208 * the callbackfn function for each element in array1 until the callbackfn returns false,
4209 * or until the end of the array.
4210 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
4211 * If thisArg is omitted, undefined is used as the this value.
4212 */
4213 every(callbackfn: (value: number, index: number, array: Int32Array) => boolean, thisArg?: any): boolean;
4214
4215 /**
4216 * Returns the this object after filling the section identified by start and end with value
4217 * @param value value to fill array section with
4218 * @param start index to start filling the array at. If start is negative, it is treated as
4219 * length+start where length is the length of the array.
4220 * @param end index to stop filling the array at. If end is negative, it is treated as
4221 * length+end.
4222 */
4223 fill(value: number, start?: number, end?: number): Int32Array;
4224
4225 /**
4226 * Returns the elements of an array that meet the condition specified in a callback function.
4227 * @param callbackfn A function that accepts up to three arguments. The filter method calls
4228 * the callbackfn function one time for each element in the array.
4229 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
4230 * If thisArg is omitted, undefined is used as the this value.
4231 */
4232 filter(callbackfn: (value: number, index: number, array: Int32Array) => boolean, thisArg?: any): Int32Array;
4233
4234 /**
4235 * Returns the value of the first element in the array where predicate is true, and undefined
4236 * otherwise.
4237 * @param predicate find calls predicate once for each element of the array, in ascending
4238 * order, until it finds one where predicate returns true. If such an element is found, find
4239 * immediately returns that element value. Otherwise, find returns undefined.
4240 * @param thisArg If provided, it will be used as the this value for each invocation of
4241 * predicate. If it is not provided, undefined is used instead.
4242 */
4243 find(predicate: (value: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number;
4244
4245 /**
4246 * Returns the index of the first element in the array where predicate is true, and undefined
4247 * otherwise.
4248 * @param predicate find calls predicate once for each element of the array, in ascending
4249 * order, until it finds one where predicate returns true. If such an element is found, find
4250 * immediately returns that element value. Otherwise, find returns undefined.
4251 * @param thisArg If provided, it will be used as the this value for each invocation of
4252 * predicate. If it is not provided, undefined is used instead.
4253 */
4254 findIndex(predicate: (value: number) => boolean, thisArg?: any): number;
4255
4256 /**
4257 * Performs the specified action for each element in an array.
4258 * @param callbackfn A function that accepts up to three arguments. forEach calls the
4259 * callbackfn function one time for each element in the array.
4260 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
4261 * If thisArg is omitted, undefined is used as the this value.
4262 */
4263 forEach(callbackfn: (value: number, index: number, array: Int32Array) => void, thisArg?: any): void;
4264
4265 /**
4266 * Returns the index of the first occurrence of a value in an array.
4267 * @param searchElement The value to locate in the array.
4268 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
4269 * search starts at index 0.
4270 */
4271 indexOf(searchElement: number, fromIndex?: number): number;
4272
4273 /**
4274 * Adds all the elements of an array separated by the specified separator string.
4275 * @param separator A string used to separate one element of an array from the next in the
4276 * resulting String. If omitted, the array elements are separated with a comma.
4277 */
4278 join(separator?: string): string;
4279
4280 /**
4281 * Returns the index of the last occurrence of a value in an array.
4282 * @param searchElement The value to locate in the array.
4283 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
4284 * search starts at index 0.
4285 */
4286 lastIndexOf(searchElement: number, fromIndex?: number): number;
4287
4288 /**
4289 * The length of the array.
4290 */
4291 readonly length: number;
4292
4293 /**
4294 * Calls a defined callback function on each element of an array, and returns an array that
4295 * contains the results.
4296 * @param callbackfn A function that accepts up to three arguments. The map method calls the
4297 * callbackfn function one time for each element in 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 map(callbackfn: (value: number, index: number, array: Int32Array) => number, thisArg?: any): Int32Array;
4302
4303 /**
4304 * Calls the specified callback function for all the elements in an array. The return value of
4305 * the callback function is the accumulated result, and is provided as an argument in the next
4306 * call to the callback function.
4307 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
4308 * callbackfn function one time for each element in the array.
4309 * @param initialValue If initialValue is specified, it is used as the initial value to start
4310 * the accumulation. The first call to the callbackfn function provides this value as an argument
4311 * instead of an array value.
4312 */
4313 reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue?: number): number;
4314
4315 /**
4316 * Calls the specified callback function for all the elements in an array. The return value of
4317 * the callback function is the accumulated result, and is provided as an argument in the next
4318 * call to the callback function.
4319 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
4320 * callbackfn function one time for each element in the array.
4321 * @param initialValue If initialValue is specified, it is used as the initial value to start
4322 * the accumulation. The first call to the callbackfn function provides this value as an argument
4323 * instead of an array value.
4324 */
4325 reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;
4326
4327 /**
4328 * Calls the specified callback function for all the elements in an array, in descending order.
4329 * The return value of the callback function is the accumulated result, and is provided as an
4330 * argument in the next call to the callback function.
4331 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
4332 * the callbackfn function one time for each element in the array.
4333 * @param initialValue If initialValue is specified, it is used as the initial value to start
4334 * the accumulation. The first call to the callbackfn function provides this value as an
4335 * argument instead of an array value.
4336 */
4337 reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue?: number): number;
4338
4339 /**
4340 * Calls the specified callback function for all the elements in an array, in descending order.
4341 * The return value of the callback function is the accumulated result, and is provided as an
4342 * argument in the next call to the callback function.
4343 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
4344 * the callbackfn function one time for each element in the array.
4345 * @param initialValue If initialValue is specified, it is used as the initial value to start
4346 * the accumulation. The first call to the callbackfn function provides this value as an argument
4347 * instead of an array value.
4348 */
4349 reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;
4350
4351 /**
4352 * Reverses the elements in an Array.
4353 */
4354 reverse(): Int32Array;
4355
4356 /**
4357 * Sets a value or an array of values.
4358 * @param index The index of the location to set.
4359 * @param value The value to set.
4360 */
4361 set(index: number, value: number): void;
4362
4363 /**
4364 * Sets a value or an array of values.
4365 * @param array A typed or untyped array of values to set.
4366 * @param offset The index in the current array at which the values are to be written.
4367 */
4368 set(array: ArrayLike<number>, offset?: number): void;
4369
4370 /**
4371 * Returns a section of an array.
4372 * @param start The beginning of the specified portion of the array.
4373 * @param end The end of the specified portion of the array.
4374 */
4375 slice(start?: number, end?: number): Int32Array;
4376
4377 /**
4378 * Determines whether the specified callback function returns true for any element of an array.
4379 * @param callbackfn A function that accepts up to three arguments. The some method calls the
4380 * callbackfn function for each element in array1 until the callbackfn returns true, or until
4381 * the end of the array.
4382 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
4383 * If thisArg is omitted, undefined is used as the this value.
4384 */
4385 some(callbackfn: (value: number, index: number, array: Int32Array) => boolean, thisArg?: any): boolean;
4386
4387 /**
4388 * Sorts an array.
4389 * @param compareFn The name of the function used to determine the order of the elements. If
4390 * omitted, the elements are sorted in ascending, ASCII character order.
4391 */
4392 sort(compareFn?: (a: number, b: number) => number): Int32Array;
4393
4394 /**
4395 * Gets a new Int32Array view of the ArrayBuffer store for this array, referencing the elements
4396 * at begin, inclusive, up to end, exclusive.
4397 * @param begin The index of the beginning of the array.
4398 * @param end The index of the end of the array.
4399 */
4400 subarray(begin: number, end?: number): Int32Array;
4401
4402 /**
4403 * Converts a number to a string by using the current locale.
4404 */
4405 toLocaleString(): string;
4406
4407 /**
4408 * Returns a string representation of an array.
4409 */
4410 toString(): string;
4411
4412 [index: number]: number;
4413}
4414
4415interface Int32ArrayConstructor {
4416 readonly prototype: Int32Array;
4417 new (length: number): Int32Array;
4418 new (array: ArrayLike<number>): Int32Array;
4419 new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int32Array;
4420
4421 /**
4422 * The size in bytes of each element in the array.
4423 */
4424 readonly BYTES_PER_ELEMENT: number;
4425
4426 /**
4427 * Returns a new array from a set of elements.
4428 * @param items A set of elements to include in the new array object.
4429 */
4430 of(...items: number[]): Int32Array;
4431
4432 /**
4433 * Creates an array from an array-like or iterable object.
4434 * @param arrayLike An array-like or iterable object to convert to an array.
4435 * @param mapfn A mapping function to call on every element of the array.
4436 * @param thisArg Value of 'this' used to invoke the mapfn.
4437 */
4438 from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int32Array;
4439}
4440declare const Int32Array: Int32ArrayConstructor;
4441
4442/**
4443 * A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the
4444 * requested number of bytes could not be allocated an exception is raised.
4445 */
4446interface Uint32Array {
4447 /**
4448 * The size in bytes of each element in the array.
4449 */
4450 readonly BYTES_PER_ELEMENT: number;
4451
4452 /**
4453 * The ArrayBuffer instance referenced by the array.
4454 */
4455 readonly buffer: ArrayBuffer;
4456
4457 /**
4458 * The length in bytes of the array.
4459 */
4460 readonly byteLength: number;
4461
4462 /**
4463 * The offset in bytes of the array.
4464 */
4465 readonly byteOffset: number;
4466
4467 /**
4468 * Returns the this object after copying a section of the array identified by start and end
4469 * to the same array starting at position target
4470 * @param target If target is negative, it is treated as length+target where length is the
4471 * length of the array.
4472 * @param start If start is negative, it is treated as length+start. If end is negative, it
4473 * is treated as length+end.
4474 * @param end If not specified, length of the this object is used as its default value.
4475 */
4476 copyWithin(target: number, start: number, end?: number): Uint32Array;
4477
4478 /**
4479 * Determines whether all the members of an array satisfy the specified test.
4480 * @param callbackfn A function that accepts up to three arguments. The every method calls
4481 * the callbackfn function for each element in array1 until the callbackfn returns false,
4482 * or until the end of the array.
4483 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
4484 * If thisArg is omitted, undefined is used as the this value.
4485 */
4486 every(callbackfn: (value: number, index: number, array: Uint32Array) => boolean, thisArg?: any): boolean;
4487
4488 /**
4489 * Returns the this object after filling the section identified by start and end with value
4490 * @param value value to fill array section with
4491 * @param start index to start filling the array at. If start is negative, it is treated as
4492 * length+start where length is the length of the array.
4493 * @param end index to stop filling the array at. If end is negative, it is treated as
4494 * length+end.
4495 */
4496 fill(value: number, start?: number, end?: number): Uint32Array;
4497
4498 /**
4499 * Returns the elements of an array that meet the condition specified in a callback function.
4500 * @param callbackfn A function that accepts up to three arguments. The filter method calls
4501 * the callbackfn function one time for each element in the array.
4502 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
4503 * If thisArg is omitted, undefined is used as the this value.
4504 */
4505 filter(callbackfn: (value: number, index: number, array: Uint32Array) => boolean, thisArg?: any): Uint32Array;
4506
4507 /**
4508 * Returns the value of the first element in the array where predicate is true, and undefined
4509 * otherwise.
4510 * @param predicate find calls predicate once for each element of the array, in ascending
4511 * order, until it finds one where predicate returns true. If such an element is found, find
4512 * immediately returns that element value. Otherwise, find returns undefined.
4513 * @param thisArg If provided, it will be used as the this value for each invocation of
4514 * predicate. If it is not provided, undefined is used instead.
4515 */
4516 find(predicate: (value: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number;
4517
4518 /**
4519 * Returns the index of the first element in the array where predicate is true, and undefined
4520 * otherwise.
4521 * @param predicate find calls predicate once for each element of the array, in ascending
4522 * order, until it finds one where predicate returns true. If such an element is found, find
4523 * immediately returns that element value. Otherwise, find returns undefined.
4524 * @param thisArg If provided, it will be used as the this value for each invocation of
4525 * predicate. If it is not provided, undefined is used instead.
4526 */
4527 findIndex(predicate: (value: number) => boolean, thisArg?: any): number;
4528
4529 /**
4530 * Performs the specified action for each element in an array.
4531 * @param callbackfn A function that accepts up to three arguments. forEach calls the
4532 * callbackfn function one time for each element in the array.
4533 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
4534 * If thisArg is omitted, undefined is used as the this value.
4535 */
4536 forEach(callbackfn: (value: number, index: number, array: Uint32Array) => void, thisArg?: any): void;
4537
4538 /**
4539 * Returns the index of the first occurrence of a value in an array.
4540 * @param searchElement The value to locate in the array.
4541 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
4542 * search starts at index 0.
4543 */
4544 indexOf(searchElement: number, fromIndex?: number): number;
4545
4546 /**
4547 * Adds all the elements of an array separated by the specified separator string.
4548 * @param separator A string used to separate one element of an array from the next in the
4549 * resulting String. If omitted, the array elements are separated with a comma.
4550 */
4551 join(separator?: string): string;
4552
4553 /**
4554 * Returns the index of the last occurrence of a value in an array.
4555 * @param searchElement The value to locate in the array.
4556 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
4557 * search starts at index 0.
4558 */
4559 lastIndexOf(searchElement: number, fromIndex?: number): number;
4560
4561 /**
4562 * The length of the array.
4563 */
4564 readonly length: number;
4565
4566 /**
4567 * Calls a defined callback function on each element of an array, and returns an array that
4568 * contains the results.
4569 * @param callbackfn A function that accepts up to three arguments. The map method calls the
4570 * callbackfn function one time for each element in 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 map(callbackfn: (value: number, index: number, array: Uint32Array) => number, thisArg?: any): Uint32Array;
4575
4576 /**
4577 * Calls the specified callback function for all the elements in an array. The return value of
4578 * the callback function is the accumulated result, and is provided as an argument in the next
4579 * call to the callback function.
4580 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
4581 * callbackfn function one time for each element in the array.
4582 * @param initialValue If initialValue is specified, it is used as the initial value to start
4583 * the accumulation. The first call to the callbackfn function provides this value as an argument
4584 * instead of an array value.
4585 */
4586 reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue?: number): number;
4587
4588 /**
4589 * Calls the specified callback function for all the elements in an array. The return value of
4590 * the callback function is the accumulated result, and is provided as an argument in the next
4591 * call to the callback function.
4592 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
4593 * callbackfn function one time for each element in the array.
4594 * @param initialValue If initialValue is specified, it is used as the initial value to start
4595 * the accumulation. The first call to the callbackfn function provides this value as an argument
4596 * instead of an array value.
4597 */
4598 reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;
4599
4600 /**
4601 * Calls the specified callback function for all the elements in an array, in descending order.
4602 * The return value of the callback function is the accumulated result, and is provided as an
4603 * argument in the next call to the callback function.
4604 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
4605 * the callbackfn function one time for each element in the array.
4606 * @param initialValue If initialValue is specified, it is used as the initial value to start
4607 * the accumulation. The first call to the callbackfn function provides this value as an
4608 * argument instead of an array value.
4609 */
4610 reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue?: number): number;
4611
4612 /**
4613 * Calls the specified callback function for all the elements in an array, in descending order.
4614 * The return value of the callback function is the accumulated result, and is provided as an
4615 * argument in the next call to the callback function.
4616 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
4617 * the callbackfn function one time for each element in the array.
4618 * @param initialValue If initialValue is specified, it is used as the initial value to start
4619 * the accumulation. The first call to the callbackfn function provides this value as an argument
4620 * instead of an array value.
4621 */
4622 reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;
4623
4624 /**
4625 * Reverses the elements in an Array.
4626 */
4627 reverse(): Uint32Array;
4628
4629 /**
4630 * Sets a value or an array of values.
4631 * @param index The index of the location to set.
4632 * @param value The value to set.
4633 */
4634 set(index: number, value: number): void;
4635
4636 /**
4637 * Sets a value or an array of values.
4638 * @param array A typed or untyped array of values to set.
4639 * @param offset The index in the current array at which the values are to be written.
4640 */
4641 set(array: ArrayLike<number>, offset?: number): void;
4642
4643 /**
4644 * Returns a section of an array.
4645 * @param start The beginning of the specified portion of the array.
4646 * @param end The end of the specified portion of the array.
4647 */
4648 slice(start?: number, end?: number): Uint32Array;
4649
4650 /**
4651 * Determines whether the specified callback function returns true for any element of an array.
4652 * @param callbackfn A function that accepts up to three arguments. The some method calls the
4653 * callbackfn function for each element in array1 until the callbackfn returns true, or until
4654 * the end of the array.
4655 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
4656 * If thisArg is omitted, undefined is used as the this value.
4657 */
4658 some(callbackfn: (value: number, index: number, array: Uint32Array) => boolean, thisArg?: any): boolean;
4659
4660 /**
4661 * Sorts an array.
4662 * @param compareFn The name of the function used to determine the order of the elements. If
4663 * omitted, the elements are sorted in ascending, ASCII character order.
4664 */
4665 sort(compareFn?: (a: number, b: number) => number): Uint32Array;
4666
4667 /**
4668 * Gets a new Uint32Array view of the ArrayBuffer store for this array, referencing the elements
4669 * at begin, inclusive, up to end, exclusive.
4670 * @param begin The index of the beginning of the array.
4671 * @param end The index of the end of the array.
4672 */
4673 subarray(begin: number, end?: number): Uint32Array;
4674
4675 /**
4676 * Converts a number to a string by using the current locale.
4677 */
4678 toLocaleString(): string;
4679
4680 /**
4681 * Returns a string representation of an array.
4682 */
4683 toString(): string;
4684
4685 [index: number]: number;
4686}
4687
4688interface Uint32ArrayConstructor {
4689 readonly prototype: Uint32Array;
4690 new (length: number): Uint32Array;
4691 new (array: ArrayLike<number>): Uint32Array;
4692 new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint32Array;
4693
4694 /**
4695 * The size in bytes of each element in the array.
4696 */
4697 readonly BYTES_PER_ELEMENT: number;
4698
4699 /**
4700 * Returns a new array from a set of elements.
4701 * @param items A set of elements to include in the new array object.
4702 */
4703 of(...items: number[]): Uint32Array;
4704
4705 /**
4706 * Creates an array from an array-like or iterable object.
4707 * @param arrayLike An array-like or iterable object to convert to an array.
4708 * @param mapfn A mapping function to call on every element of the array.
4709 * @param thisArg Value of 'this' used to invoke the mapfn.
4710 */
4711 from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint32Array;
4712}
4713declare const Uint32Array: Uint32ArrayConstructor;
4714
4715/**
4716 * A typed array of 32-bit float values. The contents are initialized to 0. If the requested number
4717 * of bytes could not be allocated an exception is raised.
4718 */
4719interface Float32Array {
4720 /**
4721 * The size in bytes of each element in the array.
4722 */
4723 readonly BYTES_PER_ELEMENT: number;
4724
4725 /**
4726 * The ArrayBuffer instance referenced by the array.
4727 */
4728 readonly buffer: ArrayBuffer;
4729
4730 /**
4731 * The length in bytes of the array.
4732 */
4733 readonly byteLength: number;
4734
4735 /**
4736 * The offset in bytes of the array.
4737 */
4738 readonly byteOffset: number;
4739
4740 /**
4741 * Returns the this object after copying a section of the array identified by start and end
4742 * to the same array starting at position target
4743 * @param target If target is negative, it is treated as length+target where length is the
4744 * length of the array.
4745 * @param start If start is negative, it is treated as length+start. If end is negative, it
4746 * is treated as length+end.
4747 * @param end If not specified, length of the this object is used as its default value.
4748 */
4749 copyWithin(target: number, start: number, end?: number): Float32Array;
4750
4751 /**
4752 * Determines whether all the members of an array satisfy the specified test.
4753 * @param callbackfn A function that accepts up to three arguments. The every method calls
4754 * the callbackfn function for each element in array1 until the callbackfn returns false,
4755 * or until the end of the array.
4756 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
4757 * If thisArg is omitted, undefined is used as the this value.
4758 */
4759 every(callbackfn: (value: number, index: number, array: Float32Array) => boolean, thisArg?: any): boolean;
4760
4761 /**
4762 * Returns the this object after filling the section identified by start and end with value
4763 * @param value value to fill array section with
4764 * @param start index to start filling the array at. If start is negative, it is treated as
4765 * length+start where length is the length of the array.
4766 * @param end index to stop filling the array at. If end is negative, it is treated as
4767 * length+end.
4768 */
4769 fill(value: number, start?: number, end?: number): Float32Array;
4770
4771 /**
4772 * Returns the elements of an array that meet the condition specified in a callback function.
4773 * @param callbackfn A function that accepts up to three arguments. The filter method calls
4774 * the callbackfn function one time for each element in the array.
4775 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
4776 * If thisArg is omitted, undefined is used as the this value.
4777 */
4778 filter(callbackfn: (value: number, index: number, array: Float32Array) => boolean, thisArg?: any): Float32Array;
4779
4780 /**
4781 * Returns the value of the first element in the array where predicate is true, and undefined
4782 * otherwise.
4783 * @param predicate find calls predicate once for each element of the array, in ascending
4784 * order, until it finds one where predicate returns true. If such an element is found, find
4785 * immediately returns that element value. Otherwise, find returns undefined.
4786 * @param thisArg If provided, it will be used as the this value for each invocation of
4787 * predicate. If it is not provided, undefined is used instead.
4788 */
4789 find(predicate: (value: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number;
4790
4791 /**
4792 * Returns the index of the first element in the array where predicate is true, and undefined
4793 * otherwise.
4794 * @param predicate find calls predicate once for each element of the array, in ascending
4795 * order, until it finds one where predicate returns true. If such an element is found, find
4796 * immediately returns that element value. Otherwise, find returns undefined.
4797 * @param thisArg If provided, it will be used as the this value for each invocation of
4798 * predicate. If it is not provided, undefined is used instead.
4799 */
4800 findIndex(predicate: (value: number) => boolean, thisArg?: any): number;
4801
4802 /**
4803 * Performs the specified action for each element in an array.
4804 * @param callbackfn A function that accepts up to three arguments. forEach calls the
4805 * callbackfn function one time for each element in the array.
4806 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
4807 * If thisArg is omitted, undefined is used as the this value.
4808 */
4809 forEach(callbackfn: (value: number, index: number, array: Float32Array) => void, thisArg?: any): void;
4810
4811 /**
4812 * Returns the index of the first occurrence of a value in an array.
4813 * @param searchElement The value to locate in the array.
4814 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
4815 * search starts at index 0.
4816 */
4817 indexOf(searchElement: number, fromIndex?: number): number;
4818
4819 /**
4820 * Adds all the elements of an array separated by the specified separator string.
4821 * @param separator A string used to separate one element of an array from the next in the
4822 * resulting String. If omitted, the array elements are separated with a comma.
4823 */
4824 join(separator?: string): string;
4825
4826 /**
4827 * Returns the index of the last occurrence of a value in an array.
4828 * @param searchElement The value to locate in the array.
4829 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
4830 * search starts at index 0.
4831 */
4832 lastIndexOf(searchElement: number, fromIndex?: number): number;
4833
4834 /**
4835 * The length of the array.
4836 */
4837 readonly length: number;
4838
4839 /**
4840 * Calls a defined callback function on each element of an array, and returns an array that
4841 * contains the results.
4842 * @param callbackfn A function that accepts up to three arguments. The map method calls the
4843 * callbackfn function one time for each element in 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 map(callbackfn: (value: number, index: number, array: Float32Array) => number, thisArg?: any): Float32Array;
4848
4849 /**
4850 * Calls the specified callback function for all the elements in an array. The return value of
4851 * the callback function is the accumulated result, and is provided as an argument in the next
4852 * call to the callback function.
4853 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
4854 * callbackfn function one time for each element in the array.
4855 * @param initialValue If initialValue is specified, it is used as the initial value to start
4856 * the accumulation. The first call to the callbackfn function provides this value as an argument
4857 * instead of an array value.
4858 */
4859 reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue?: number): number;
4860
4861 /**
4862 * Calls the specified callback function for all the elements in an array. The return value of
4863 * the callback function is the accumulated result, and is provided as an argument in the next
4864 * call to the callback function.
4865 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
4866 * callbackfn function one time for each element in the array.
4867 * @param initialValue If initialValue is specified, it is used as the initial value to start
4868 * the accumulation. The first call to the callbackfn function provides this value as an argument
4869 * instead of an array value.
4870 */
4871 reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;
4872
4873 /**
4874 * Calls the specified callback function for all the elements in an array, in descending order.
4875 * The return value of the callback function is the accumulated result, and is provided as an
4876 * argument in the next call to the callback function.
4877 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
4878 * the callbackfn function one time for each element in the array.
4879 * @param initialValue If initialValue is specified, it is used as the initial value to start
4880 * the accumulation. The first call to the callbackfn function provides this value as an
4881 * argument instead of an array value.
4882 */
4883 reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue?: number): number;
4884
4885 /**
4886 * Calls the specified callback function for all the elements in an array, in descending order.
4887 * The return value of the callback function is the accumulated result, and is provided as an
4888 * argument in the next call to the callback function.
4889 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
4890 * the callbackfn function one time for each element in the array.
4891 * @param initialValue If initialValue is specified, it is used as the initial value to start
4892 * the accumulation. The first call to the callbackfn function provides this value as an argument
4893 * instead of an array value.
4894 */
4895 reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;
4896
4897 /**
4898 * Reverses the elements in an Array.
4899 */
4900 reverse(): Float32Array;
4901
4902 /**
4903 * Sets a value or an array of values.
4904 * @param index The index of the location to set.
4905 * @param value The value to set.
4906 */
4907 set(index: number, value: number): void;
4908
4909 /**
4910 * Sets a value or an array of values.
4911 * @param array A typed or untyped array of values to set.
4912 * @param offset The index in the current array at which the values are to be written.
4913 */
4914 set(array: ArrayLike<number>, offset?: number): void;
4915
4916 /**
4917 * Returns a section of an array.
4918 * @param start The beginning of the specified portion of the array.
4919 * @param end The end of the specified portion of the array.
4920 */
4921 slice(start?: number, end?: number): Float32Array;
4922
4923 /**
4924 * Determines whether the specified callback function returns true for any element of an array.
4925 * @param callbackfn A function that accepts up to three arguments. The some method calls the
4926 * callbackfn function for each element in array1 until the callbackfn returns true, or until
4927 * the end of the array.
4928 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
4929 * If thisArg is omitted, undefined is used as the this value.
4930 */
4931 some(callbackfn: (value: number, index: number, array: Float32Array) => boolean, thisArg?: any): boolean;
4932
4933 /**
4934 * Sorts an array.
4935 * @param compareFn The name of the function used to determine the order of the elements. If
4936 * omitted, the elements are sorted in ascending, ASCII character order.
4937 */
4938 sort(compareFn?: (a: number, b: number) => number): Float32Array;
4939
4940 /**
4941 * Gets a new Float32Array view of the ArrayBuffer store for this array, referencing the elements
4942 * at begin, inclusive, up to end, exclusive.
4943 * @param begin The index of the beginning of the array.
4944 * @param end The index of the end of the array.
4945 */
4946 subarray(begin: number, end?: number): Float32Array;
4947
4948 /**
4949 * Converts a number to a string by using the current locale.
4950 */
4951 toLocaleString(): string;
4952
4953 /**
4954 * Returns a string representation of an array.
4955 */
4956 toString(): string;
4957
4958 [index: number]: number;
4959}
4960
4961interface Float32ArrayConstructor {
4962 readonly prototype: Float32Array;
4963 new (length: number): Float32Array;
4964 new (array: ArrayLike<number>): Float32Array;
4965 new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Float32Array;
4966
4967 /**
4968 * The size in bytes of each element in the array.
4969 */
4970 readonly BYTES_PER_ELEMENT: number;
4971
4972 /**
4973 * Returns a new array from a set of elements.
4974 * @param items A set of elements to include in the new array object.
4975 */
4976 of(...items: number[]): Float32Array;
4977
4978 /**
4979 * Creates an array from an array-like or iterable object.
4980 * @param arrayLike An array-like or iterable object to convert to an array.
4981 * @param mapfn A mapping function to call on every element of the array.
4982 * @param thisArg Value of 'this' used to invoke the mapfn.
4983 */
4984 from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float32Array;
4985
4986}
4987declare const Float32Array: Float32ArrayConstructor;
4988
4989/**
4990 * A typed array of 64-bit float values. The contents are initialized to 0. If the requested
4991 * number of bytes could not be allocated an exception is raised.
4992 */
4993interface Float64Array {
4994 /**
4995 * The size in bytes of each element in the array.
4996 */
4997 readonly BYTES_PER_ELEMENT: number;
4998
4999 /**
5000 * The ArrayBuffer instance referenced by the array.
5001 */
5002 readonly buffer: ArrayBuffer;
5003
5004 /**
5005 * The length in bytes of the array.
5006 */
5007 readonly byteLength: number;
5008
5009 /**
5010 * The offset in bytes of the array.
5011 */
5012 readonly byteOffset: number;
5013
5014 /**
5015 * Returns the this object after copying a section of the array identified by start and end
5016 * to the same array starting at position target
5017 * @param target If target is negative, it is treated as length+target where length is the
5018 * length of the array.
5019 * @param start If start is negative, it is treated as length+start. If end is negative, it
5020 * is treated as length+end.
5021 * @param end If not specified, length of the this object is used as its default value.
5022 */
5023 copyWithin(target: number, start: number, end?: number): Float64Array;
5024
5025 /**
5026 * Determines whether all the members of an array satisfy the specified test.
5027 * @param callbackfn A function that accepts up to three arguments. The every method calls
5028 * the callbackfn function for each element in array1 until the callbackfn returns false,
5029 * or until the end of the array.
5030 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
5031 * If thisArg is omitted, undefined is used as the this value.
5032 */
5033 every(callbackfn: (value: number, index: number, array: Float64Array) => boolean, thisArg?: any): boolean;
5034
5035 /**
5036 * Returns the this object after filling the section identified by start and end with value
5037 * @param value value to fill array section with
5038 * @param start index to start filling the array at. If start is negative, it is treated as
5039 * length+start where length is the length of the array.
5040 * @param end index to stop filling the array at. If end is negative, it is treated as
5041 * length+end.
5042 */
5043 fill(value: number, start?: number, end?: number): Float64Array;
5044
5045 /**
5046 * Returns the elements of an array that meet the condition specified in a callback function.
5047 * @param callbackfn A function that accepts up to three arguments. The filter method calls
5048 * the callbackfn function one time for each element in the array.
5049 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
5050 * If thisArg is omitted, undefined is used as the this value.
5051 */
5052 filter(callbackfn: (value: number, index: number, array: Float64Array) => boolean, thisArg?: any): Float64Array;
5053
5054 /**
5055 * Returns the value of the first element in the array where predicate is true, and undefined
5056 * otherwise.
5057 * @param predicate find calls predicate once for each element of the array, in ascending
5058 * order, until it finds one where predicate returns true. If such an element is found, find
5059 * immediately returns that element value. Otherwise, find returns undefined.
5060 * @param thisArg If provided, it will be used as the this value for each invocation of
5061 * predicate. If it is not provided, undefined is used instead.
5062 */
5063 find(predicate: (value: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number;
5064
5065 /**
5066 * Returns the index of the first element in the array where predicate is true, and undefined
5067 * otherwise.
5068 * @param predicate find calls predicate once for each element of the array, in ascending
5069 * order, until it finds one where predicate returns true. If such an element is found, find
5070 * immediately returns that element value. Otherwise, find returns undefined.
5071 * @param thisArg If provided, it will be used as the this value for each invocation of
5072 * predicate. If it is not provided, undefined is used instead.
5073 */
5074 findIndex(predicate: (value: number) => boolean, thisArg?: any): number;
5075
5076 /**
5077 * Performs the specified action for each element in an array.
5078 * @param callbackfn A function that accepts up to three arguments. forEach calls the
5079 * callbackfn function one time for each element in the array.
5080 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
5081 * If thisArg is omitted, undefined is used as the this value.
5082 */
5083 forEach(callbackfn: (value: number, index: number, array: Float64Array) => void, thisArg?: any): void;
5084
5085 /**
5086 * Returns the index of the first occurrence of a value in an array.
5087 * @param searchElement The value to locate in the array.
5088 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
5089 * search starts at index 0.
5090 */
5091 indexOf(searchElement: number, fromIndex?: number): number;
5092
5093 /**
5094 * Adds all the elements of an array separated by the specified separator string.
5095 * @param separator A string used to separate one element of an array from the next in the
5096 * resulting String. If omitted, the array elements are separated with a comma.
5097 */
5098 join(separator?: string): string;
5099
5100 /**
5101 * Returns the index of the last occurrence of a value in an array.
5102 * @param searchElement The value to locate in the array.
5103 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
5104 * search starts at index 0.
5105 */
5106 lastIndexOf(searchElement: number, fromIndex?: number): number;
5107
5108 /**
5109 * The length of the array.
5110 */
5111 readonly length: number;
5112
5113 /**
5114 * Calls a defined callback function on each element of an array, and returns an array that
5115 * contains the results.
5116 * @param callbackfn A function that accepts up to three arguments. The map method calls the
5117 * callbackfn function one time for each element in 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 map(callbackfn: (value: number, index: number, array: Float64Array) => number, thisArg?: any): Float64Array;
5122
5123 /**
5124 * Calls the specified callback function for all the elements in an array. The return value of
5125 * the callback function is the accumulated result, and is provided as an argument in the next
5126 * call to the callback function.
5127 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
5128 * callbackfn function one time for each element in the array.
5129 * @param initialValue If initialValue is specified, it is used as the initial value to start
5130 * the accumulation. The first call to the callbackfn function provides this value as an argument
5131 * instead of an array value.
5132 */
5133 reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue?: number): number;
5134
5135 /**
5136 * Calls the specified callback function for all the elements in an array. The return value of
5137 * the callback function is the accumulated result, and is provided as an argument in the next
5138 * call to the callback function.
5139 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
5140 * callbackfn function one time for each element in the array.
5141 * @param initialValue If initialValue is specified, it is used as the initial value to start
5142 * the accumulation. The first call to the callbackfn function provides this value as an argument
5143 * instead of an array value.
5144 */
5145 reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;
5146
5147 /**
5148 * Calls the specified callback function for all the elements in an array, in descending order.
5149 * The return value of the callback function is the accumulated result, and is provided as an
5150 * argument in the next call to the callback function.
5151 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
5152 * the callbackfn function one time for each element in the array.
5153 * @param initialValue If initialValue is specified, it is used as the initial value to start
5154 * the accumulation. The first call to the callbackfn function provides this value as an
5155 * argument instead of an array value.
5156 */
5157 reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue?: number): number;
5158
5159 /**
5160 * Calls the specified callback function for all the elements in an array, in descending order.
5161 * The return value of the callback function is the accumulated result, and is provided as an
5162 * argument in the next call to the callback function.
5163 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
5164 * the callbackfn function one time for each element in the array.
5165 * @param initialValue If initialValue is specified, it is used as the initial value to start
5166 * the accumulation. The first call to the callbackfn function provides this value as an argument
5167 * instead of an array value.
5168 */
5169 reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;
5170
5171 /**
5172 * Reverses the elements in an Array.
5173 */
5174 reverse(): Float64Array;
5175
5176 /**
5177 * Sets a value or an array of values.
5178 * @param index The index of the location to set.
5179 * @param value The value to set.
5180 */
5181 set(index: number, value: number): void;
5182
5183 /**
5184 * Sets a value or an array of values.
5185 * @param array A typed or untyped array of values to set.
5186 * @param offset The index in the current array at which the values are to be written.
5187 */
5188 set(array: ArrayLike<number>, offset?: number): void;
5189
5190 /**
5191 * Returns a section of an array.
5192 * @param start The beginning of the specified portion of the array.
5193 * @param end The end of the specified portion of the array.
5194 */
5195 slice(start?: number, end?: number): Float64Array;
5196
5197 /**
5198 * Determines whether the specified callback function returns true for any element of an array.
5199 * @param callbackfn A function that accepts up to three arguments. The some method calls the
5200 * callbackfn function for each element in array1 until the callbackfn returns true, or until
5201 * the end of the array.
5202 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
5203 * If thisArg is omitted, undefined is used as the this value.
5204 */
5205 some(callbackfn: (value: number, index: number, array: Float64Array) => boolean, thisArg?: any): boolean;
5206
5207 /**
5208 * Sorts an array.
5209 * @param compareFn The name of the function used to determine the order of the elements. If
5210 * omitted, the elements are sorted in ascending, ASCII character order.
5211 */
5212 sort(compareFn?: (a: number, b: number) => number): Float64Array;
5213
5214 /**
5215 * Gets a new Float64Array view of the ArrayBuffer store for this array, referencing the elements
5216 * at begin, inclusive, up to end, exclusive.
5217 * @param begin The index of the beginning of the array.
5218 * @param end The index of the end of the array.
5219 */
5220 subarray(begin: number, end?: number): Float64Array;
5221
5222 /**
5223 * Converts a number to a string by using the current locale.
5224 */
5225 toLocaleString(): string;
5226
5227 /**
5228 * Returns a string representation of an array.
5229 */
5230 toString(): string;
5231
5232 [index: number]: number;
5233}
5234
5235interface Float64ArrayConstructor {
5236 readonly prototype: Float64Array;
5237 new (length: number): Float64Array;
5238 new (array: ArrayLike<number>): Float64Array;
5239 new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Float64Array;
5240
5241 /**
5242 * The size in bytes of each element in the array.
5243 */
5244 readonly BYTES_PER_ELEMENT: number;
5245
5246 /**
5247 * Returns a new array from a set of elements.
5248 * @param items A set of elements to include in the new array object.
5249 */
5250 of(...items: number[]): Float64Array;
5251
5252 /**
5253 * Creates an array from an array-like or iterable object.
5254 * @param arrayLike An array-like or iterable object to convert to an array.
5255 * @param mapfn A mapping function to call on every element of the array.
5256 * @param thisArg Value of 'this' used to invoke the mapfn.
5257 */
5258 from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float64Array;
5259}
5260declare const Float64Array: Float64ArrayConstructor;
5261/////////////////////////////
5262/// ECMAScript Internationalization API
5263/////////////////////////////
5264
5265declare module Intl {
5266 interface CollatorOptions {
5267 usage?: string;
5268 localeMatcher?: string;
5269 numeric?: boolean;
5270 caseFirst?: string;
5271 sensitivity?: string;
5272 ignorePunctuation?: boolean;
5273 }
5274
5275 interface ResolvedCollatorOptions {
5276 locale: string;
5277 usage: string;
5278 sensitivity: string;
5279 ignorePunctuation: boolean;
5280 collation: string;
5281 caseFirst: string;
5282 numeric: boolean;
5283 }
5284
5285 interface Collator {
5286 compare(x: string, y: string): number;
5287 resolvedOptions(): ResolvedCollatorOptions;
5288 }
5289 var Collator: {
5290 new (locales?: string[], options?: CollatorOptions): Collator;
5291 new (locale?: string, options?: CollatorOptions): Collator;
5292 (locales?: string[], options?: CollatorOptions): Collator;
5293 (locale?: string, options?: CollatorOptions): Collator;
5294 supportedLocalesOf(locales: string[], options?: CollatorOptions): string[];
5295 supportedLocalesOf(locale: string, options?: CollatorOptions): string[];
5296 }
5297
5298 interface NumberFormatOptions {
5299 localeMatcher?: string;
5300 style?: string;
5301 currency?: string;
5302 currencyDisplay?: string;
5303 useGrouping?: boolean;
5304 minimumIntegerDigits?: number;
5305 minimumFractionDigits?: number;
5306 maximumFractionDigits?: number;
5307 minimumSignificantDigits?: number;
5308 maximumSignificantDigits?: number;
5309 }
5310
5311 interface ResolvedNumberFormatOptions {
5312 locale: string;
5313 numberingSystem: string;
5314 style: string;
5315 currency?: string;
5316 currencyDisplay?: string;
5317 minimumIntegerDigits: number;
5318 minimumFractionDigits: number;
5319 maximumFractionDigits: number;
5320 minimumSignificantDigits?: number;
5321 maximumSignificantDigits?: number;
5322 useGrouping: boolean;
5323 }
5324
5325 interface NumberFormat {
5326 format(value: number): string;
5327 resolvedOptions(): ResolvedNumberFormatOptions;
5328 }
5329 var NumberFormat: {
5330 new (locales?: string[], options?: NumberFormatOptions): NumberFormat;
5331 new (locale?: string, options?: NumberFormatOptions): NumberFormat;
5332 (locales?: string[], options?: NumberFormatOptions): NumberFormat;
5333 (locale?: string, options?: NumberFormatOptions): NumberFormat;
5334 supportedLocalesOf(locales: string[], options?: NumberFormatOptions): string[];
5335 supportedLocalesOf(locale: string, options?: NumberFormatOptions): string[];
5336 }
5337
5338 interface DateTimeFormatOptions {
5339 localeMatcher?: string;
5340 weekday?: string;
5341 era?: string;
5342 year?: string;
5343 month?: string;
5344 day?: string;
5345 hour?: string;
5346 minute?: string;
5347 second?: string;
5348 timeZoneName?: string;
5349 formatMatcher?: string;
5350 hour12?: boolean;
5351 timeZone?: string;
5352 }
5353
5354 interface ResolvedDateTimeFormatOptions {
5355 locale: string;
5356 calendar: string;
5357 numberingSystem: string;
5358 timeZone: string;
5359 hour12?: boolean;
5360 weekday?: string;
5361 era?: string;
5362 year?: string;
5363 month?: string;
5364 day?: string;
5365 hour?: string;
5366 minute?: string;
5367 second?: string;
5368 timeZoneName?: string;
5369 }
5370
5371 interface DateTimeFormat {
5372 format(date?: Date | number): string;
5373 resolvedOptions(): ResolvedDateTimeFormatOptions;
5374 }
5375 var DateTimeFormat: {
5376 new (locales?: string[], options?: DateTimeFormatOptions): DateTimeFormat;
5377 new (locale?: string, options?: DateTimeFormatOptions): DateTimeFormat;
5378 (locales?: string[], options?: DateTimeFormatOptions): DateTimeFormat;
5379 (locale?: string, options?: DateTimeFormatOptions): DateTimeFormat;
5380 supportedLocalesOf(locales: string[], options?: DateTimeFormatOptions): string[];
5381 supportedLocalesOf(locale: string, options?: DateTimeFormatOptions): string[];
5382 }
5383}
5384
5385interface String {
5386 /**
5387 * Determines whether two strings are equivalent in the current locale.
5388 * @param that String to compare to target string
5389 * @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.
5390 * @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.
5391 */
5392 localeCompare(that: string, locales: string[], options?: Intl.CollatorOptions): number;
5393
5394 /**
5395 * Determines whether two strings are equivalent in the current locale.
5396 * @param that String to compare to target string
5397 * @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.
5398 * @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.
5399 */
5400 localeCompare(that: string, locale: string, options?: Intl.CollatorOptions): number;
5401}
5402
5403interface Number {
5404 /**
5405 * Converts a number to a string by using the current or specified locale.
5406 * @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.
5407 * @param options An object that contains one or more properties that specify comparison options.
5408 */
5409 toLocaleString(locales?: string[], options?: Intl.NumberFormatOptions): string;
5410
5411 /**
5412 * Converts a number to a string by using the current or specified locale.
5413 * @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used.
5414 * @param options An object that contains one or more properties that specify comparison options.
5415 */
5416 toLocaleString(locale?: string, options?: Intl.NumberFormatOptions): string;
5417}
5418
5419interface Date {
5420 /**
5421 * Converts a date and time to a string by using the current or specified locale.
5422 * @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.
5423 * @param options An object that contains one or more properties that specify comparison options.
5424 */
5425 toLocaleString(locales?: string[], options?: Intl.DateTimeFormatOptions): string;
5426 /**
5427 * Converts a date to a string by using the current or specified locale.
5428 * @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.
5429 * @param options An object that contains one or more properties that specify comparison options.
5430 */
5431 toLocaleDateString(locales?: string[], options?: Intl.DateTimeFormatOptions): string;
5432
5433 /**
5434 * Converts a time to a string by using the current or specified locale.
5435 * @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used.
5436 * @param options An object that contains one or more properties that specify comparison options.
5437 */
5438 toLocaleTimeString(locale?: string[], options?: Intl.DateTimeFormatOptions): string;
5439
5440 /**
5441 * Converts a date and time to a string by using the current or specified locale.
5442 * @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used.
5443 * @param options An object that contains one or more properties that specify comparison options.
5444 */
5445 toLocaleString(locale?: string, options?: Intl.DateTimeFormatOptions): string;
5446
5447 /**
5448 * Converts a date to a string by using the current or specified locale.
5449 * @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used.
5450 * @param options An object that contains one or more properties that specify comparison options.
5451 */
5452 toLocaleDateString(locale?: string, options?: Intl.DateTimeFormatOptions): string;
5453
5454 /**
5455 * Converts a time to a string by using the current or specified locale.
5456 * @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used.
5457 * @param options An object that contains one or more properties that specify comparison options.
5458 */
5459 toLocaleTimeString(locale?: string, options?: Intl.DateTimeFormatOptions): string;
5460}
5461
5462
5463/////////////////////////////
5464/// IE DOM APIs
5465/////////////////////////////
5466
5467interface Algorithm {
5468 name?: string;
5469}
5470
5471interface AriaRequestEventInit extends EventInit {
5472 attributeName?: string;
5473 attributeValue?: string;
5474}
5475
5476interface ClipboardEventInit extends EventInit {
5477 data?: string;
5478 dataType?: string;
5479}
5480
5481interface CommandEventInit extends EventInit {
5482 commandName?: string;
5483 detail?: string;
5484}
5485
5486interface CompositionEventInit extends UIEventInit {
5487 data?: string;
5488}
5489
5490interface ConfirmSiteSpecificExceptionsInformation extends ExceptionInformation {
5491 arrayOfDomainStrings?: string[];
5492}
5493
5494interface CustomEventInit extends EventInit {
5495 detail?: any;
5496}
5497
5498interface DeviceAccelerationDict {
5499 x?: number;
5500 y?: number;
5501 z?: number;
5502}
5503
5504interface DeviceRotationRateDict {
5505 alpha?: number;
5506 beta?: number;
5507 gamma?: number;
5508}
5509
5510interface EventInit {
5511 bubbles?: boolean;
5512 cancelable?: boolean;
5513}
5514
5515interface ExceptionInformation {
5516 domain?: string;
5517}
5518
5519interface FocusEventInit extends UIEventInit {
5520 relatedTarget?: EventTarget;
5521}
5522
5523interface HashChangeEventInit extends EventInit {
5524 newURL?: string;
5525 oldURL?: string;
5526}
5527
5528interface KeyAlgorithm {
5529 name?: string;
5530}
5531
5532interface KeyboardEventInit extends SharedKeyboardAndMouseEventInit {
5533 key?: string;
5534 location?: number;
5535 repeat?: boolean;
5536}
5537
5538interface MouseEventInit extends SharedKeyboardAndMouseEventInit {
5539 screenX?: number;
5540 screenY?: number;
5541 clientX?: number;
5542 clientY?: number;
5543 button?: number;
5544 buttons?: number;
5545 relatedTarget?: EventTarget;
5546}
5547
5548interface MsZoomToOptions {
5549 contentX?: number;
5550 contentY?: number;
5551 viewportX?: string;
5552 viewportY?: string;
5553 scaleFactor?: number;
5554 animate?: string;
5555}
5556
5557interface MutationObserverInit {
5558 childList?: boolean;
5559 attributes?: boolean;
5560 characterData?: boolean;
5561 subtree?: boolean;
5562 attributeOldValue?: boolean;
5563 characterDataOldValue?: boolean;
5564 attributeFilter?: string[];
5565}
5566
5567interface ObjectURLOptions {
5568 oneTimeOnly?: boolean;
5569}
5570
5571interface PointerEventInit extends MouseEventInit {
5572 pointerId?: number;
5573 width?: number;
5574 height?: number;
5575 pressure?: number;
5576 tiltX?: number;
5577 tiltY?: number;
5578 pointerType?: string;
5579 isPrimary?: boolean;
5580}
5581
5582interface PositionOptions {
5583 enableHighAccuracy?: boolean;
5584 timeout?: number;
5585 maximumAge?: number;
5586}
5587
5588interface SharedKeyboardAndMouseEventInit extends UIEventInit {
5589 ctrlKey?: boolean;
5590 shiftKey?: boolean;
5591 altKey?: boolean;
5592 metaKey?: boolean;
5593 keyModifierStateAltGraph?: boolean;
5594 keyModifierStateCapsLock?: boolean;
5595 keyModifierStateFn?: boolean;
5596 keyModifierStateFnLock?: boolean;
5597 keyModifierStateHyper?: boolean;
5598 keyModifierStateNumLock?: boolean;
5599 keyModifierStateOS?: boolean;
5600 keyModifierStateScrollLock?: boolean;
5601 keyModifierStateSuper?: boolean;
5602 keyModifierStateSymbol?: boolean;
5603 keyModifierStateSymbolLock?: boolean;
5604}
5605
5606interface StoreExceptionsInformation extends ExceptionInformation {
5607 siteName?: string;
5608 explanationString?: string;
5609 detailURI?: string;
5610}
5611
5612interface StoreSiteSpecificExceptionsInformation extends StoreExceptionsInformation {
5613 arrayOfDomainStrings?: string[];
5614}
5615
5616interface UIEventInit extends EventInit {
5617 view?: Window;
5618 detail?: number;
5619}
5620
5621interface WebGLContextAttributes {
5622 alpha?: boolean;
5623 depth?: boolean;
5624 stencil?: boolean;
5625 antialias?: boolean;
5626 premultipliedAlpha?: boolean;
5627 preserveDrawingBuffer?: boolean;
5628}
5629
5630interface WebGLContextEventInit extends EventInit {
5631 statusMessage?: string;
5632}
5633
5634interface WheelEventInit extends MouseEventInit {
5635 deltaX?: number;
5636 deltaY?: number;
5637 deltaZ?: number;
5638 deltaMode?: number;
5639}
5640
5641interface EventListener {
5642 (evt: Event): void;
5643}
5644
5645interface ANGLE_instanced_arrays {
5646 drawArraysInstancedANGLE(mode: number, first: number, count: number, primcount: number): void;
5647 drawElementsInstancedANGLE(mode: number, count: number, type: number, offset: number, primcount: number): void;
5648 vertexAttribDivisorANGLE(index: number, divisor: number): void;
5649 VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: number;
5650}
5651
5652declare var ANGLE_instanced_arrays: {
5653 prototype: ANGLE_instanced_arrays;
5654 new(): ANGLE_instanced_arrays;
5655 VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: number;
5656}
5657
5658interface AnalyserNode extends AudioNode {
5659 fftSize: number;
5660 frequencyBinCount: number;
5661 maxDecibels: number;
5662 minDecibels: number;
5663 smoothingTimeConstant: number;
5664 getByteFrequencyData(array: Uint8Array): void;
5665 getByteTimeDomainData(array: Uint8Array): void;
5666 getFloatFrequencyData(array: Float32Array): void;
5667 getFloatTimeDomainData(array: Float32Array): void;
5668}
5669
5670declare var AnalyserNode: {
5671 prototype: AnalyserNode;
5672 new(): AnalyserNode;
5673}
5674
5675interface AnimationEvent extends Event {
5676 animationName: string;
5677 elapsedTime: number;
5678 initAnimationEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, animationNameArg: string, elapsedTimeArg: number): void;
5679}
5680
5681declare var AnimationEvent: {
5682 prototype: AnimationEvent;
5683 new(): AnimationEvent;
5684}
5685
5686interface ApplicationCache extends EventTarget {
5687 oncached: (ev: Event) => any;
5688 onchecking: (ev: Event) => any;
5689 ondownloading: (ev: Event) => any;
5690 onerror: (ev: Event) => any;
5691 onnoupdate: (ev: Event) => any;
5692 onobsolete: (ev: Event) => any;
5693 onprogress: (ev: ProgressEvent) => any;
5694 onupdateready: (ev: Event) => any;
5695 status: number;
5696 abort(): void;
5697 swapCache(): void;
5698 update(): void;
5699 CHECKING: number;
5700 DOWNLOADING: number;
5701 IDLE: number;
5702 OBSOLETE: number;
5703 UNCACHED: number;
5704 UPDATEREADY: number;
5705 addEventListener(type: "cached", listener: (ev: Event) => any, useCapture?: boolean): void;
5706 addEventListener(type: "checking", listener: (ev: Event) => any, useCapture?: boolean): void;
5707 addEventListener(type: "downloading", listener: (ev: Event) => any, useCapture?: boolean): void;
5708 addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
5709 addEventListener(type: "noupdate", listener: (ev: Event) => any, useCapture?: boolean): void;
5710 addEventListener(type: "obsolete", listener: (ev: Event) => any, useCapture?: boolean): void;
5711 addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
5712 addEventListener(type: "updateready", listener: (ev: Event) => any, useCapture?: boolean): void;
5713 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
5714}
5715
5716declare var ApplicationCache: {
5717 prototype: ApplicationCache;
5718 new(): ApplicationCache;
5719 CHECKING: number;
5720 DOWNLOADING: number;
5721 IDLE: number;
5722 OBSOLETE: number;
5723 UNCACHED: number;
5724 UPDATEREADY: number;
5725}
5726
5727interface AriaRequestEvent extends Event {
5728 attributeName: string;
5729 attributeValue: string;
5730}
5731
5732declare var AriaRequestEvent: {
5733 prototype: AriaRequestEvent;
5734 new(type: string, eventInitDict?: AriaRequestEventInit): AriaRequestEvent;
5735}
5736
5737interface Attr extends Node {
5738 name: string;
5739 ownerElement: Element;
5740 specified: boolean;
5741 value: string;
5742}
5743
5744declare var Attr: {
5745 prototype: Attr;
5746 new(): Attr;
5747}
5748
5749interface AudioBuffer {
5750 duration: number;
5751 length: number;
5752 numberOfChannels: number;
5753 sampleRate: number;
5754 getChannelData(channel: number): Float32Array;
5755}
5756
5757declare var AudioBuffer: {
5758 prototype: AudioBuffer;
5759 new(): AudioBuffer;
5760}
5761
5762interface AudioBufferSourceNode extends AudioNode {
5763 buffer: AudioBuffer;
5764 loop: boolean;
5765 loopEnd: number;
5766 loopStart: number;
5767 onended: (ev: Event) => any;
5768 playbackRate: AudioParam;
5769 start(when?: number, offset?: number, duration?: number): void;
5770 stop(when?: number): void;
5771 addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void;
5772 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
5773}
5774
5775declare var AudioBufferSourceNode: {
5776 prototype: AudioBufferSourceNode;
5777 new(): AudioBufferSourceNode;
5778}
5779
5780interface AudioContext extends EventTarget {
5781 currentTime: number;
5782 destination: AudioDestinationNode;
5783 listener: AudioListener;
5784 sampleRate: number;
5785 state: string;
5786 createAnalyser(): AnalyserNode;
5787 createBiquadFilter(): BiquadFilterNode;
5788 createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer;
5789 createBufferSource(): AudioBufferSourceNode;
5790 createChannelMerger(numberOfInputs?: number): ChannelMergerNode;
5791 createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode;
5792 createConvolver(): ConvolverNode;
5793 createDelay(maxDelayTime?: number): DelayNode;
5794 createDynamicsCompressor(): DynamicsCompressorNode;
5795 createGain(): GainNode;
5796 createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode;
5797 createOscillator(): OscillatorNode;
5798 createPanner(): PannerNode;
5799 createPeriodicWave(real: Float32Array, imag: Float32Array): PeriodicWave;
5800 createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode;
5801 createStereoPanner(): StereoPannerNode;
5802 createWaveShaper(): WaveShaperNode;
5803 decodeAudioData(audioData: ArrayBuffer, successCallback: DecodeSuccessCallback, errorCallback?: DecodeErrorCallback): void;
5804}
5805
5806declare var AudioContext: {
5807 prototype: AudioContext;
5808 new(): AudioContext;
5809}
5810
5811interface AudioDestinationNode extends AudioNode {
5812 maxChannelCount: number;
5813}
5814
5815declare var AudioDestinationNode: {
5816 prototype: AudioDestinationNode;
5817 new(): AudioDestinationNode;
5818}
5819
5820interface AudioListener {
5821 dopplerFactor: number;
5822 speedOfSound: number;
5823 setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, zUp: number): void;
5824 setPosition(x: number, y: number, z: number): void;
5825 setVelocity(x: number, y: number, z: number): void;
5826}
5827
5828declare var AudioListener: {
5829 prototype: AudioListener;
5830 new(): AudioListener;
5831}
5832
5833interface AudioNode extends EventTarget {
5834 channelCount: number;
5835 channelCountMode: string;
5836 channelInterpretation: string;
5837 context: AudioContext;
5838 numberOfInputs: number;
5839 numberOfOutputs: number;
5840 connect(destination: AudioNode, output?: number, input?: number): void;
5841 disconnect(output?: number): void;
5842}
5843
5844declare var AudioNode: {
5845 prototype: AudioNode;
5846 new(): AudioNode;
5847}
5848
5849interface AudioParam {
5850 defaultValue: number;
5851 value: number;
5852 cancelScheduledValues(startTime: number): void;
5853 exponentialRampToValueAtTime(value: number, endTime: number): void;
5854 linearRampToValueAtTime(value: number, endTime: number): void;
5855 setTargetAtTime(target: number, startTime: number, timeConstant: number): void;
5856 setValueAtTime(value: number, startTime: number): void;
5857 setValueCurveAtTime(values: Float32Array, startTime: number, duration: number): void;
5858}
5859
5860declare var AudioParam: {
5861 prototype: AudioParam;
5862 new(): AudioParam;
5863}
5864
5865interface AudioProcessingEvent extends Event {
5866 inputBuffer: AudioBuffer;
5867 outputBuffer: AudioBuffer;
5868 playbackTime: number;
5869}
5870
5871declare var AudioProcessingEvent: {
5872 prototype: AudioProcessingEvent;
5873 new(): AudioProcessingEvent;
5874}
5875
5876interface AudioTrack {
5877 enabled: boolean;
5878 id: string;
5879 kind: string;
5880 label: string;
5881 language: string;
5882 sourceBuffer: SourceBuffer;
5883}
5884
5885declare var AudioTrack: {
5886 prototype: AudioTrack;
5887 new(): AudioTrack;
5888}
5889
5890interface AudioTrackList extends EventTarget {
5891 length: number;
5892 onaddtrack: (ev: TrackEvent) => any;
5893 onchange: (ev: Event) => any;
5894 onremovetrack: (ev: TrackEvent) => any;
5895 getTrackById(id: string): AudioTrack;
5896 item(index: number): AudioTrack;
5897 addEventListener(type: "addtrack", listener: (ev: TrackEvent) => any, useCapture?: boolean): void;
5898 addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void;
5899 addEventListener(type: "removetrack", listener: (ev: TrackEvent) => any, useCapture?: boolean): void;
5900 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
5901 [index: number]: AudioTrack;
5902}
5903
5904declare var AudioTrackList: {
5905 prototype: AudioTrackList;
5906 new(): AudioTrackList;
5907}
5908
5909interface BarProp {
5910 visible: boolean;
5911}
5912
5913declare var BarProp: {
5914 prototype: BarProp;
5915 new(): BarProp;
5916}
5917
5918interface BeforeUnloadEvent extends Event {
5919 returnValue: any;
5920}
5921
5922declare var BeforeUnloadEvent: {
5923 prototype: BeforeUnloadEvent;
5924 new(): BeforeUnloadEvent;
5925}
5926
5927interface BiquadFilterNode extends AudioNode {
5928 Q: AudioParam;
5929 detune: AudioParam;
5930 frequency: AudioParam;
5931 gain: AudioParam;
5932 type: string;
5933 getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;
5934}
5935
5936declare var BiquadFilterNode: {
5937 prototype: BiquadFilterNode;
5938 new(): BiquadFilterNode;
5939}
5940
5941interface Blob {
5942 size: number;
5943 type: string;
5944 msClose(): void;
5945 msDetachStream(): any;
5946 slice(start?: number, end?: number, contentType?: string): Blob;
5947}
5948
5949declare var Blob: {
5950 prototype: Blob;
5951 new (blobParts?: any[], options?: BlobPropertyBag): Blob;
5952}
5953
5954interface CDATASection extends Text {
5955}
5956
5957declare var CDATASection: {
5958 prototype: CDATASection;
5959 new(): CDATASection;
5960}
5961
5962interface CSS {
5963 supports(property: string, value?: string): boolean;
5964}
5965declare var CSS: CSS;
5966
5967interface CSSConditionRule extends CSSGroupingRule {
5968 conditionText: string;
5969}
5970
5971declare var CSSConditionRule: {
5972 prototype: CSSConditionRule;
5973 new(): CSSConditionRule;
5974}
5975
5976interface CSSFontFaceRule extends CSSRule {
5977 style: CSSStyleDeclaration;
5978}
5979
5980declare var CSSFontFaceRule: {
5981 prototype: CSSFontFaceRule;
5982 new(): CSSFontFaceRule;
5983}
5984
5985interface CSSGroupingRule extends CSSRule {
5986 cssRules: CSSRuleList;
5987 deleteRule(index?: number): void;
5988 insertRule(rule: string, index?: number): number;
5989}
5990
5991declare var CSSGroupingRule: {
5992 prototype: CSSGroupingRule;
5993 new(): CSSGroupingRule;
5994}
5995
5996interface CSSImportRule extends CSSRule {
5997 href: string;
5998 media: MediaList;
5999 styleSheet: CSSStyleSheet;
6000}
6001
6002declare var CSSImportRule: {
6003 prototype: CSSImportRule;
6004 new(): CSSImportRule;
6005}
6006
6007interface CSSKeyframeRule extends CSSRule {
6008 keyText: string;
6009 style: CSSStyleDeclaration;
6010}
6011
6012declare var CSSKeyframeRule: {
6013 prototype: CSSKeyframeRule;
6014 new(): CSSKeyframeRule;
6015}
6016
6017interface CSSKeyframesRule extends CSSRule {
6018 cssRules: CSSRuleList;
6019 name: string;
6020 appendRule(rule: string): void;
6021 deleteRule(rule: string): void;
6022 findRule(rule: string): CSSKeyframeRule;
6023}
6024
6025declare var CSSKeyframesRule: {
6026 prototype: CSSKeyframesRule;
6027 new(): CSSKeyframesRule;
6028}
6029
6030interface CSSMediaRule extends CSSConditionRule {
6031 media: MediaList;
6032}
6033
6034declare var CSSMediaRule: {
6035 prototype: CSSMediaRule;
6036 new(): CSSMediaRule;
6037}
6038
6039interface CSSNamespaceRule extends CSSRule {
6040 namespaceURI: string;
6041 prefix: string;
6042}
6043
6044declare var CSSNamespaceRule: {
6045 prototype: CSSNamespaceRule;
6046 new(): CSSNamespaceRule;
6047}
6048
6049interface CSSPageRule extends CSSRule {
6050 pseudoClass: string;
6051 selector: string;
6052 selectorText: string;
6053 style: CSSStyleDeclaration;
6054}
6055
6056declare var CSSPageRule: {
6057 prototype: CSSPageRule;
6058 new(): CSSPageRule;
6059}
6060
6061interface CSSRule {
6062 cssText: string;
6063 parentRule: CSSRule;
6064 parentStyleSheet: CSSStyleSheet;
6065 type: number;
6066 CHARSET_RULE: number;
6067 FONT_FACE_RULE: number;
6068 IMPORT_RULE: number;
6069 KEYFRAMES_RULE: number;
6070 KEYFRAME_RULE: number;
6071 MEDIA_RULE: number;
6072 NAMESPACE_RULE: number;
6073 PAGE_RULE: number;
6074 STYLE_RULE: number;
6075 SUPPORTS_RULE: number;
6076 UNKNOWN_RULE: number;
6077 VIEWPORT_RULE: number;
6078}
6079
6080declare var CSSRule: {
6081 prototype: CSSRule;
6082 new(): CSSRule;
6083 CHARSET_RULE: number;
6084 FONT_FACE_RULE: number;
6085 IMPORT_RULE: number;
6086 KEYFRAMES_RULE: number;
6087 KEYFRAME_RULE: number;
6088 MEDIA_RULE: number;
6089 NAMESPACE_RULE: number;
6090 PAGE_RULE: number;
6091 STYLE_RULE: number;
6092 SUPPORTS_RULE: number;
6093 UNKNOWN_RULE: number;
6094 VIEWPORT_RULE: number;
6095}
6096
6097interface CSSRuleList {
6098 length: number;
6099 item(index: number): CSSRule;
6100 [index: number]: CSSRule;
6101}
6102
6103declare var CSSRuleList: {
6104 prototype: CSSRuleList;
6105 new(): CSSRuleList;
6106}
6107
6108interface CSSStyleDeclaration {
6109 alignContent: string;
6110 alignItems: string;
6111 alignSelf: string;
6112 alignmentBaseline: string;
6113 animation: string;
6114 animationDelay: string;
6115 animationDirection: string;
6116 animationDuration: string;
6117 animationFillMode: string;
6118 animationIterationCount: string;
6119 animationName: string;
6120 animationPlayState: string;
6121 animationTimingFunction: string;
6122 backfaceVisibility: string;
6123 background: string;
6124 backgroundAttachment: string;
6125 backgroundClip: string;
6126 backgroundColor: string;
6127 backgroundImage: string;
6128 backgroundOrigin: string;
6129 backgroundPosition: string;
6130 backgroundPositionX: string;
6131 backgroundPositionY: string;
6132 backgroundRepeat: string;
6133 backgroundSize: string;
6134 baselineShift: string;
6135 border: string;
6136 borderBottom: string;
6137 borderBottomColor: string;
6138 borderBottomLeftRadius: string;
6139 borderBottomRightRadius: string;
6140 borderBottomStyle: string;
6141 borderBottomWidth: string;
6142 borderCollapse: string;
6143 borderColor: string;
6144 borderImage: string;
6145 borderImageOutset: string;
6146 borderImageRepeat: string;
6147 borderImageSlice: string;
6148 borderImageSource: string;
6149 borderImageWidth: string;
6150 borderLeft: string;
6151 borderLeftColor: string;
6152 borderLeftStyle: string;
6153 borderLeftWidth: string;
6154 borderRadius: string;
6155 borderRight: string;
6156 borderRightColor: string;
6157 borderRightStyle: string;
6158 borderRightWidth: string;
6159 borderSpacing: string;
6160 borderStyle: string;
6161 borderTop: string;
6162 borderTopColor: string;
6163 borderTopLeftRadius: string;
6164 borderTopRightRadius: string;
6165 borderTopStyle: string;
6166 borderTopWidth: string;
6167 borderWidth: string;
6168 bottom: string;
6169 boxShadow: string;
6170 boxSizing: string;
6171 breakAfter: string;
6172 breakBefore: string;
6173 breakInside: string;
6174 captionSide: string;
6175 clear: string;
6176 clip: string;
6177 clipPath: string;
6178 clipRule: string;
6179 color: string;
6180 colorInterpolationFilters: string;
6181 columnCount: any;
6182 columnFill: string;
6183 columnGap: any;
6184 columnRule: string;
6185 columnRuleColor: any;
6186 columnRuleStyle: string;
6187 columnRuleWidth: any;
6188 columnSpan: string;
6189 columnWidth: any;
6190 columns: string;
6191 content: string;
6192 counterIncrement: string;
6193 counterReset: string;
6194 cssFloat: string;
6195 cssText: string;
6196 cursor: string;
6197 direction: string;
6198 display: string;
6199 dominantBaseline: string;
6200 emptyCells: string;
6201 enableBackground: string;
6202 fill: string;
6203 fillOpacity: string;
6204 fillRule: string;
6205 filter: string;
6206 flex: string;
6207 flexBasis: string;
6208 flexDirection: string;
6209 flexFlow: string;
6210 flexGrow: string;
6211 flexShrink: string;
6212 flexWrap: string;
6213 floodColor: string;
6214 floodOpacity: string;
6215 font: string;
6216 fontFamily: string;
6217 fontFeatureSettings: string;
6218 fontSize: string;
6219 fontSizeAdjust: string;
6220 fontStretch: string;
6221 fontStyle: string;
6222 fontVariant: string;
6223 fontWeight: string;
6224 glyphOrientationHorizontal: string;
6225 glyphOrientationVertical: string;
6226 height: string;
6227 imeMode: string;
6228 justifyContent: string;
6229 kerning: string;
6230 left: string;
6231 length: number;
6232 letterSpacing: string;
6233 lightingColor: string;
6234 lineHeight: string;
6235 listStyle: string;
6236 listStyleImage: string;
6237 listStylePosition: string;
6238 listStyleType: string;
6239 margin: string;
6240 marginBottom: string;
6241 marginLeft: string;
6242 marginRight: string;
6243 marginTop: string;
6244 marker: string;
6245 markerEnd: string;
6246 markerMid: string;
6247 markerStart: string;
6248 mask: string;
6249 maxHeight: string;
6250 maxWidth: string;
6251 minHeight: string;
6252 minWidth: string;
6253 msContentZoomChaining: string;
6254 msContentZoomLimit: string;
6255 msContentZoomLimitMax: any;
6256 msContentZoomLimitMin: any;
6257 msContentZoomSnap: string;
6258 msContentZoomSnapPoints: string;
6259 msContentZoomSnapType: string;
6260 msContentZooming: string;
6261 msFlowFrom: string;
6262 msFlowInto: string;
6263 msFontFeatureSettings: string;
6264 msGridColumn: any;
6265 msGridColumnAlign: string;
6266 msGridColumnSpan: any;
6267 msGridColumns: string;
6268 msGridRow: any;
6269 msGridRowAlign: string;
6270 msGridRowSpan: any;
6271 msGridRows: string;
6272 msHighContrastAdjust: string;
6273 msHyphenateLimitChars: string;
6274 msHyphenateLimitLines: any;
6275 msHyphenateLimitZone: any;
6276 msHyphens: string;
6277 msImeAlign: string;
6278 msOverflowStyle: string;
6279 msScrollChaining: string;
6280 msScrollLimit: string;
6281 msScrollLimitXMax: any;
6282 msScrollLimitXMin: any;
6283 msScrollLimitYMax: any;
6284 msScrollLimitYMin: any;
6285 msScrollRails: string;
6286 msScrollSnapPointsX: string;
6287 msScrollSnapPointsY: string;
6288 msScrollSnapType: string;
6289 msScrollSnapX: string;
6290 msScrollSnapY: string;
6291 msScrollTranslation: string;
6292 msTextCombineHorizontal: string;
6293 msTextSizeAdjust: any;
6294 msTouchAction: string;
6295 msTouchSelect: string;
6296 msUserSelect: string;
6297 msWrapFlow: string;
6298 msWrapMargin: any;
6299 msWrapThrough: string;
6300 opacity: string;
6301 order: string;
6302 orphans: string;
6303 outline: string;
6304 outlineColor: string;
6305 outlineStyle: string;
6306 outlineWidth: string;
6307 overflow: string;
6308 overflowX: string;
6309 overflowY: string;
6310 padding: string;
6311 paddingBottom: string;
6312 paddingLeft: string;
6313 paddingRight: string;
6314 paddingTop: string;
6315 pageBreakAfter: string;
6316 pageBreakBefore: string;
6317 pageBreakInside: string;
6318 parentRule: CSSRule;
6319 perspective: string;
6320 perspectiveOrigin: string;
6321 pointerEvents: string;
6322 position: string;
6323 quotes: string;
6324 right: string;
6325 rubyAlign: string;
6326 rubyOverhang: string;
6327 rubyPosition: string;
6328 stopColor: string;
6329 stopOpacity: string;
6330 stroke: string;
6331 strokeDasharray: string;
6332 strokeDashoffset: string;
6333 strokeLinecap: string;
6334 strokeLinejoin: string;
6335 strokeMiterlimit: string;
6336 strokeOpacity: string;
6337 strokeWidth: string;
6338 tableLayout: string;
6339 textAlign: string;
6340 textAlignLast: string;
6341 textAnchor: string;
6342 textDecoration: string;
6343 textFillColor: string;
6344 textIndent: string;
6345 textJustify: string;
6346 textKashida: string;
6347 textKashidaSpace: string;
6348 textOverflow: string;
6349 textShadow: string;
6350 textTransform: string;
6351 textUnderlinePosition: string;
6352 top: string;
6353 touchAction: string;
6354 transform: string;
6355 transformOrigin: string;
6356 transformStyle: string;
6357 transition: string;
6358 transitionDelay: string;
6359 transitionDuration: string;
6360 transitionProperty: string;
6361 transitionTimingFunction: string;
6362 unicodeBidi: string;
6363 verticalAlign: string;
6364 visibility: string;
6365 webkitAlignContent: string;
6366 webkitAlignItems: string;
6367 webkitAlignSelf: string;
6368 webkitAnimation: string;
6369 webkitAnimationDelay: string;
6370 webkitAnimationDirection: string;
6371 webkitAnimationDuration: string;
6372 webkitAnimationFillMode: string;
6373 webkitAnimationIterationCount: string;
6374 webkitAnimationName: string;
6375 webkitAnimationPlayState: string;
6376 webkitAnimationTimingFunction: string;
6377 webkitAppearance: string;
6378 webkitBackfaceVisibility: string;
6379 webkitBackground: string;
6380 webkitBackgroundAttachment: string;
6381 webkitBackgroundClip: string;
6382 webkitBackgroundColor: string;
6383 webkitBackgroundImage: string;
6384 webkitBackgroundOrigin: string;
6385 webkitBackgroundPosition: string;
6386 webkitBackgroundPositionX: string;
6387 webkitBackgroundPositionY: string;
6388 webkitBackgroundRepeat: string;
6389 webkitBackgroundSize: string;
6390 webkitBorderBottomLeftRadius: string;
6391 webkitBorderBottomRightRadius: string;
6392 webkitBorderImage: string;
6393 webkitBorderImageOutset: string;
6394 webkitBorderImageRepeat: string;
6395 webkitBorderImageSlice: string;
6396 webkitBorderImageSource: string;
6397 webkitBorderImageWidth: string;
6398 webkitBorderRadius: string;
6399 webkitBorderTopLeftRadius: string;
6400 webkitBorderTopRightRadius: string;
6401 webkitBoxAlign: string;
6402 webkitBoxDirection: string;
6403 webkitBoxFlex: string;
6404 webkitBoxOrdinalGroup: string;
6405 webkitBoxOrient: string;
6406 webkitBoxPack: string;
6407 webkitBoxSizing: string;
6408 webkitColumnBreakAfter: string;
6409 webkitColumnBreakBefore: string;
6410 webkitColumnBreakInside: string;
6411 webkitColumnCount: any;
6412 webkitColumnGap: any;
6413 webkitColumnRule: string;
6414 webkitColumnRuleColor: any;
6415 webkitColumnRuleStyle: string;
6416 webkitColumnRuleWidth: any;
6417 webkitColumnSpan: string;
6418 webkitColumnWidth: any;
6419 webkitColumns: string;
6420 webkitFilter: string;
6421 webkitFlex: string;
6422 webkitFlexBasis: string;
6423 webkitFlexDirection: string;
6424 webkitFlexFlow: string;
6425 webkitFlexGrow: string;
6426 webkitFlexShrink: string;
6427 webkitFlexWrap: string;
6428 webkitJustifyContent: string;
6429 webkitOrder: string;
6430 webkitPerspective: string;
6431 webkitPerspectiveOrigin: string;
6432 webkitTapHighlightColor: string;
6433 webkitTextFillColor: string;
6434 webkitTextSizeAdjust: any;
6435 webkitTransform: string;
6436 webkitTransformOrigin: string;
6437 webkitTransformStyle: string;
6438 webkitTransition: string;
6439 webkitTransitionDelay: string;
6440 webkitTransitionDuration: string;
6441 webkitTransitionProperty: string;
6442 webkitTransitionTimingFunction: string;
6443 webkitUserSelect: string;
6444 webkitWritingMode: string;
6445 whiteSpace: string;
6446 widows: string;
6447 width: string;
6448 wordBreak: string;
6449 wordSpacing: string;
6450 wordWrap: string;
6451 writingMode: string;
6452 zIndex: string;
6453 zoom: string;
6454 getPropertyPriority(propertyName: string): string;
6455 getPropertyValue(propertyName: string): string;
6456 item(index: number): string;
6457 removeProperty(propertyName: string): string;
6458 setProperty(propertyName: string, value: string, priority?: string): void;
6459 [index: number]: string;
6460}
6461
6462declare var CSSStyleDeclaration: {
6463 prototype: CSSStyleDeclaration;
6464 new(): CSSStyleDeclaration;
6465}
6466
6467interface CSSStyleRule extends CSSRule {
6468 readOnly: boolean;
6469 selectorText: string;
6470 style: CSSStyleDeclaration;
6471}
6472
6473declare var CSSStyleRule: {
6474 prototype: CSSStyleRule;
6475 new(): CSSStyleRule;
6476}
6477
6478interface CSSStyleSheet extends StyleSheet {
6479 cssRules: CSSRuleList;
6480 cssText: string;
6481 href: string;
6482 id: string;
6483 imports: StyleSheetList;
6484 isAlternate: boolean;
6485 isPrefAlternate: boolean;
6486 ownerRule: CSSRule;
6487 owningElement: Element;
6488 pages: StyleSheetPageList;
6489 readOnly: boolean;
6490 rules: CSSRuleList;
6491 addImport(bstrURL: string, lIndex?: number): number;
6492 addPageRule(bstrSelector: string, bstrStyle: string, lIndex?: number): number;
6493 addRule(bstrSelector: string, bstrStyle?: string, lIndex?: number): number;
6494 deleteRule(index?: number): void;
6495 insertRule(rule: string, index?: number): number;
6496 removeImport(lIndex: number): void;
6497 removeRule(lIndex: number): void;
6498}
6499
6500declare var CSSStyleSheet: {
6501 prototype: CSSStyleSheet;
6502 new(): CSSStyleSheet;
6503}
6504
6505interface CSSSupportsRule extends CSSConditionRule {
6506}
6507
6508declare var CSSSupportsRule: {
6509 prototype: CSSSupportsRule;
6510 new(): CSSSupportsRule;
6511}
6512
6513interface CanvasGradient {
6514 addColorStop(offset: number, color: string): void;
6515}
6516
6517declare var CanvasGradient: {
6518 prototype: CanvasGradient;
6519 new(): CanvasGradient;
6520}
6521
6522interface CanvasPattern {
6523}
6524
6525declare var CanvasPattern: {
6526 prototype: CanvasPattern;
6527 new(): CanvasPattern;
6528}
6529
6530interface CanvasRenderingContext2D {
6531 canvas: HTMLCanvasElement;
6532 fillStyle: string | CanvasGradient | CanvasPattern;
6533 font: string;
6534 globalAlpha: number;
6535 globalCompositeOperation: string;
6536 lineCap: string;
6537 lineDashOffset: number;
6538 lineJoin: string;
6539 lineWidth: number;
6540 miterLimit: number;
6541 msFillRule: string;
6542 msImageSmoothingEnabled: boolean;
6543 shadowBlur: number;
6544 shadowColor: string;
6545 shadowOffsetX: number;
6546 shadowOffsetY: number;
6547 strokeStyle: string | CanvasGradient | CanvasPattern;
6548 textAlign: string;
6549 textBaseline: string;
6550 arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, anticlockwise?: boolean): void;
6551 arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;
6552 beginPath(): void;
6553 bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;
6554 clearRect(x: number, y: number, w: number, h: number): void;
6555 clip(fillRule?: string): void;
6556 closePath(): void;
6557 createImageData(imageDataOrSw: number | ImageData, sh?: number): ImageData;
6558 createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;
6559 createPattern(image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement, repetition: string): CanvasPattern;
6560 createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;
6561 drawImage(image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement, offsetX: number, offsetY: number, width?: number, height?: number, canvasOffsetX?: number, canvasOffsetY?: number, canvasImageWidth?: number, canvasImageHeight?: number): void;
6562 fill(fillRule?: string): void;
6563 fillRect(x: number, y: number, w: number, h: number): void;
6564 fillText(text: string, x: number, y: number, maxWidth?: number): void;
6565 getImageData(sx: number, sy: number, sw: number, sh: number): ImageData;
6566 getLineDash(): number[];
6567 isPointInPath(x: number, y: number, fillRule?: string): boolean;
6568 lineTo(x: number, y: number): void;
6569 measureText(text: string): TextMetrics;
6570 moveTo(x: number, y: number): void;
6571 putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX?: number, dirtyY?: number, dirtyWidth?: number, dirtyHeight?: number): void;
6572 quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
6573 rect(x: number, y: number, w: number, h: number): void;
6574 restore(): void;
6575 rotate(angle: number): void;
6576 save(): void;
6577 scale(x: number, y: number): void;
6578 setLineDash(segments: number[]): void;
6579 setTransform(m11: number, m12: number, m21: number, m22: number, dx: number, dy: number): void;
6580 stroke(): void;
6581 strokeRect(x: number, y: number, w: number, h: number): void;
6582 strokeText(text: string, x: number, y: number, maxWidth?: number): void;
6583 transform(m11: number, m12: number, m21: number, m22: number, dx: number, dy: number): void;
6584 translate(x: number, y: number): void;
6585}
6586
6587declare var CanvasRenderingContext2D: {
6588 prototype: CanvasRenderingContext2D;
6589 new(): CanvasRenderingContext2D;
6590}
6591
6592interface ChannelMergerNode extends AudioNode {
6593}
6594
6595declare var ChannelMergerNode: {
6596 prototype: ChannelMergerNode;
6597 new(): ChannelMergerNode;
6598}
6599
6600interface ChannelSplitterNode extends AudioNode {
6601}
6602
6603declare var ChannelSplitterNode: {
6604 prototype: ChannelSplitterNode;
6605 new(): ChannelSplitterNode;
6606}
6607
6608interface CharacterData extends Node, ChildNode {
6609 data: string;
6610 length: number;
6611 appendData(arg: string): void;
6612 deleteData(offset: number, count: number): void;
6613 insertData(offset: number, arg: string): void;
6614 replaceData(offset: number, count: number, arg: string): void;
6615 substringData(offset: number, count: number): string;
6616 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
6617}
6618
6619declare var CharacterData: {
6620 prototype: CharacterData;
6621 new(): CharacterData;
6622}
6623
6624interface ClientRect {
6625 bottom: number;
6626 height: number;
6627 left: number;
6628 right: number;
6629 top: number;
6630 width: number;
6631}
6632
6633declare var ClientRect: {
6634 prototype: ClientRect;
6635 new(): ClientRect;
6636}
6637
6638interface ClientRectList {
6639 length: number;
6640 item(index: number): ClientRect;
6641 [index: number]: ClientRect;
6642}
6643
6644declare var ClientRectList: {
6645 prototype: ClientRectList;
6646 new(): ClientRectList;
6647}
6648
6649interface ClipboardEvent extends Event {
6650 clipboardData: DataTransfer;
6651}
6652
6653declare var ClipboardEvent: {
6654 prototype: ClipboardEvent;
6655 new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent;
6656}
6657
6658interface CloseEvent extends Event {
6659 code: number;
6660 reason: string;
6661 wasClean: boolean;
6662 initCloseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, wasCleanArg: boolean, codeArg: number, reasonArg: string): void;
6663}
6664
6665declare var CloseEvent: {
6666 prototype: CloseEvent;
6667 new(): CloseEvent;
6668}
6669
6670interface CommandEvent extends Event {
6671 commandName: string;
6672 detail: string;
6673}
6674
6675declare var CommandEvent: {
6676 prototype: CommandEvent;
6677 new(type: string, eventInitDict?: CommandEventInit): CommandEvent;
6678}
6679
6680interface Comment extends CharacterData {
6681 text: string;
6682}
6683
6684declare var Comment: {
6685 prototype: Comment;
6686 new(): Comment;
6687}
6688
6689interface CompositionEvent extends UIEvent {
6690 data: string;
6691 locale: string;
6692 initCompositionEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, dataArg: string, locale: string): void;
6693}
6694
6695declare var CompositionEvent: {
6696 prototype: CompositionEvent;
6697 new(typeArg: string, eventInitDict?: CompositionEventInit): CompositionEvent;
6698}
6699
6700interface Console {
6701 assert(test?: boolean, message?: string, ...optionalParams: any[]): void;
6702 clear(): void;
6703 count(countTitle?: string): void;
6704 debug(message?: string, ...optionalParams: any[]): void;
6705 dir(value?: any, ...optionalParams: any[]): void;
6706 dirxml(value: any): void;
6707 error(message?: any, ...optionalParams: any[]): void;
6708 group(groupTitle?: string): void;
6709 groupCollapsed(groupTitle?: string): void;
6710 groupEnd(): void;
6711 info(message?: any, ...optionalParams: any[]): void;
6712 log(message?: any, ...optionalParams: any[]): void;
6713 msIsIndependentlyComposed(element: Element): boolean;
6714 profile(reportName?: string): void;
6715 profileEnd(): void;
6716 select(element: Element): void;
6717 time(timerName?: string): void;
6718 timeEnd(timerName?: string): void;
6719 trace(message?: any, ...optionalParams: any[]): void;
6720 warn(message?: any, ...optionalParams: any[]): void;
6721}
6722
6723declare var Console: {
6724 prototype: Console;
6725 new(): Console;
6726}
6727
6728interface ConvolverNode extends AudioNode {
6729 buffer: AudioBuffer;
6730 normalize: boolean;
6731}
6732
6733declare var ConvolverNode: {
6734 prototype: ConvolverNode;
6735 new(): ConvolverNode;
6736}
6737
6738interface Coordinates {
6739 accuracy: number;
6740 altitude: number;
6741 altitudeAccuracy: number;
6742 heading: number;
6743 latitude: number;
6744 longitude: number;
6745 speed: number;
6746}
6747
6748declare var Coordinates: {
6749 prototype: Coordinates;
6750 new(): Coordinates;
6751}
6752
6753interface Crypto extends Object, RandomSource {
6754 subtle: SubtleCrypto;
6755}
6756
6757declare var Crypto: {
6758 prototype: Crypto;
6759 new(): Crypto;
6760}
6761
6762interface CryptoKey {
6763 algorithm: KeyAlgorithm;
6764 extractable: boolean;
6765 type: string;
6766 usages: string[];
6767}
6768
6769declare var CryptoKey: {
6770 prototype: CryptoKey;
6771 new(): CryptoKey;
6772}
6773
6774interface CryptoKeyPair {
6775 privateKey: CryptoKey;
6776 publicKey: CryptoKey;
6777}
6778
6779declare var CryptoKeyPair: {
6780 prototype: CryptoKeyPair;
6781 new(): CryptoKeyPair;
6782}
6783
6784interface CustomEvent extends Event {
6785 detail: any;
6786 initCustomEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, detailArg: any): void;
6787}
6788
6789declare var CustomEvent: {
6790 prototype: CustomEvent;
6791 new(typeArg: string, eventInitDict?: CustomEventInit): CustomEvent;
6792}
6793
6794interface DOMError {
6795 name: string;
6796 toString(): string;
6797}
6798
6799declare var DOMError: {
6800 prototype: DOMError;
6801 new(): DOMError;
6802}
6803
6804interface DOMException {
6805 code: number;
6806 message: string;
6807 name: string;
6808 toString(): string;
6809 ABORT_ERR: number;
6810 DATA_CLONE_ERR: number;
6811 DOMSTRING_SIZE_ERR: number;
6812 HIERARCHY_REQUEST_ERR: number;
6813 INDEX_SIZE_ERR: number;
6814 INUSE_ATTRIBUTE_ERR: number;
6815 INVALID_ACCESS_ERR: number;
6816 INVALID_CHARACTER_ERR: number;
6817 INVALID_MODIFICATION_ERR: number;
6818 INVALID_NODE_TYPE_ERR: number;
6819 INVALID_STATE_ERR: number;
6820 NAMESPACE_ERR: number;
6821 NETWORK_ERR: number;
6822 NOT_FOUND_ERR: number;
6823 NOT_SUPPORTED_ERR: number;
6824 NO_DATA_ALLOWED_ERR: number;
6825 NO_MODIFICATION_ALLOWED_ERR: number;
6826 PARSE_ERR: number;
6827 QUOTA_EXCEEDED_ERR: number;
6828 SECURITY_ERR: number;
6829 SERIALIZE_ERR: number;
6830 SYNTAX_ERR: number;
6831 TIMEOUT_ERR: number;
6832 TYPE_MISMATCH_ERR: number;
6833 URL_MISMATCH_ERR: number;
6834 VALIDATION_ERR: number;
6835 WRONG_DOCUMENT_ERR: number;
6836}
6837
6838declare var DOMException: {
6839 prototype: DOMException;
6840 new(): DOMException;
6841 ABORT_ERR: number;
6842 DATA_CLONE_ERR: number;
6843 DOMSTRING_SIZE_ERR: number;
6844 HIERARCHY_REQUEST_ERR: number;
6845 INDEX_SIZE_ERR: number;
6846 INUSE_ATTRIBUTE_ERR: number;
6847 INVALID_ACCESS_ERR: number;
6848 INVALID_CHARACTER_ERR: number;
6849 INVALID_MODIFICATION_ERR: number;
6850 INVALID_NODE_TYPE_ERR: number;
6851 INVALID_STATE_ERR: number;
6852 NAMESPACE_ERR: number;
6853 NETWORK_ERR: number;
6854 NOT_FOUND_ERR: number;
6855 NOT_SUPPORTED_ERR: number;
6856 NO_DATA_ALLOWED_ERR: number;
6857 NO_MODIFICATION_ALLOWED_ERR: number;
6858 PARSE_ERR: number;
6859 QUOTA_EXCEEDED_ERR: number;
6860 SECURITY_ERR: number;
6861 SERIALIZE_ERR: number;
6862 SYNTAX_ERR: number;
6863 TIMEOUT_ERR: number;
6864 TYPE_MISMATCH_ERR: number;
6865 URL_MISMATCH_ERR: number;
6866 VALIDATION_ERR: number;
6867 WRONG_DOCUMENT_ERR: number;
6868}
6869
6870interface DOMImplementation {
6871 createDocument(namespaceURI: string, qualifiedName: string, doctype: DocumentType): Document;
6872 createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType;
6873 createHTMLDocument(title: string): Document;
6874 hasFeature(feature: string, version: string): boolean;
6875}
6876
6877declare var DOMImplementation: {
6878 prototype: DOMImplementation;
6879 new(): DOMImplementation;
6880}
6881
6882interface DOMParser {
6883 parseFromString(source: string, mimeType: string): Document;
6884}
6885
6886declare var DOMParser: {
6887 prototype: DOMParser;
6888 new(): DOMParser;
6889}
6890
6891interface DOMSettableTokenList extends DOMTokenList {
6892 value: string;
6893}
6894
6895declare var DOMSettableTokenList: {
6896 prototype: DOMSettableTokenList;
6897 new(): DOMSettableTokenList;
6898}
6899
6900interface DOMStringList {
6901 length: number;
6902 contains(str: string): boolean;
6903 item(index: number): string;
6904 [index: number]: string;
6905}
6906
6907declare var DOMStringList: {
6908 prototype: DOMStringList;
6909 new(): DOMStringList;
6910}
6911
6912interface DOMStringMap {
6913 [name: string]: string;
6914}
6915
6916declare var DOMStringMap: {
6917 prototype: DOMStringMap;
6918 new(): DOMStringMap;
6919}
6920
6921interface DOMTokenList {
6922 length: number;
6923 add(...token: string[]): void;
6924 contains(token: string): boolean;
6925 item(index: number): string;
6926 remove(...token: string[]): void;
6927 toString(): string;
6928 toggle(token: string, force?: boolean): boolean;
6929 [index: number]: string;
6930}
6931
6932declare var DOMTokenList: {
6933 prototype: DOMTokenList;
6934 new(): DOMTokenList;
6935}
6936
6937interface DataCue extends TextTrackCue {
6938 data: ArrayBuffer;
6939}
6940
6941declare var DataCue: {
6942 prototype: DataCue;
6943 new(): DataCue;
6944}
6945
6946interface DataTransfer {
6947 dropEffect: string;
6948 effectAllowed: string;
6949 files: FileList;
6950 items: DataTransferItemList;
6951 types: DOMStringList;
6952 clearData(format?: string): boolean;
6953 getData(format: string): string;
6954 setData(format: string, data: string): boolean;
6955}
6956
6957declare var DataTransfer: {
6958 prototype: DataTransfer;
6959 new(): DataTransfer;
6960}
6961
6962interface DataTransferItem {
6963 kind: string;
6964 type: string;
6965 getAsFile(): File;
6966 getAsString(_callback: FunctionStringCallback): void;
6967}
6968
6969declare var DataTransferItem: {
6970 prototype: DataTransferItem;
6971 new(): DataTransferItem;
6972}
6973
6974interface DataTransferItemList {
6975 length: number;
6976 add(data: File): DataTransferItem;
6977 clear(): void;
6978 item(index: number): DataTransferItem;
6979 remove(index: number): void;
6980 [index: number]: DataTransferItem;
6981}
6982
6983declare var DataTransferItemList: {
6984 prototype: DataTransferItemList;
6985 new(): DataTransferItemList;
6986}
6987
6988interface DeferredPermissionRequest {
6989 id: number;
6990 type: string;
6991 uri: string;
6992 allow(): void;
6993 deny(): void;
6994}
6995
6996declare var DeferredPermissionRequest: {
6997 prototype: DeferredPermissionRequest;
6998 new(): DeferredPermissionRequest;
6999}
7000
7001interface DelayNode extends AudioNode {
7002 delayTime: AudioParam;
7003}
7004
7005declare var DelayNode: {
7006 prototype: DelayNode;
7007 new(): DelayNode;
7008}
7009
7010interface DeviceAcceleration {
7011 x: number;
7012 y: number;
7013 z: number;
7014}
7015
7016declare var DeviceAcceleration: {
7017 prototype: DeviceAcceleration;
7018 new(): DeviceAcceleration;
7019}
7020
7021interface DeviceMotionEvent extends Event {
7022 acceleration: DeviceAcceleration;
7023 accelerationIncludingGravity: DeviceAcceleration;
7024 interval: number;
7025 rotationRate: DeviceRotationRate;
7026 initDeviceMotionEvent(type: string, bubbles: boolean, cancelable: boolean, acceleration: DeviceAccelerationDict, accelerationIncludingGravity: DeviceAccelerationDict, rotationRate: DeviceRotationRateDict, interval: number): void;
7027}
7028
7029declare var DeviceMotionEvent: {
7030 prototype: DeviceMotionEvent;
7031 new(): DeviceMotionEvent;
7032}
7033
7034interface DeviceOrientationEvent extends Event {
7035 absolute: boolean;
7036 alpha: number;
7037 beta: number;
7038 gamma: number;
7039 initDeviceOrientationEvent(type: string, bubbles: boolean, cancelable: boolean, alpha: number, beta: number, gamma: number, absolute: boolean): void;
7040}
7041
7042declare var DeviceOrientationEvent: {
7043 prototype: DeviceOrientationEvent;
7044 new(): DeviceOrientationEvent;
7045}
7046
7047interface DeviceRotationRate {
7048 alpha: number;
7049 beta: number;
7050 gamma: number;
7051}
7052
7053declare var DeviceRotationRate: {
7054 prototype: DeviceRotationRate;
7055 new(): DeviceRotationRate;
7056}
7057
7058interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEvent {
7059 /**
7060 * Sets or gets the URL for the current document.
7061 */
7062 URL: string;
7063 /**
7064 * Gets the URL for the document, stripped of any character encoding.
7065 */
7066 URLUnencoded: string;
7067 /**
7068 * Gets the object that has the focus when the parent document has focus.
7069 */
7070 activeElement: Element;
7071 /**
7072 * Sets or gets the color of all active links in the document.
7073 */
7074 alinkColor: string;
7075 /**
7076 * Returns a reference to the collection of elements contained by the object.
7077 */
7078 all: HTMLCollection;
7079 /**
7080 * Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order.
7081 */
7082 anchors: HTMLCollection;
7083 /**
7084 * Retrieves a collection of all applet objects in the document.
7085 */
7086 applets: HTMLCollection;
7087 /**
7088 * Deprecated. Sets or retrieves a value that indicates the background color behind the object.
7089 */
7090 bgColor: string;
7091 /**
7092 * Specifies the beginning and end of the document body.
7093 */
7094 body: HTMLElement;
7095 characterSet: string;
7096 /**
7097 * Gets or sets the character set used to encode the object.
7098 */
7099 charset: string;
7100 /**
7101 * Gets a value that indicates whether standards-compliant mode is switched on for the object.
7102 */
7103 compatMode: string;
7104 cookie: string;
7105 /**
7106 * Gets the default character set from the current regional language settings.
7107 */
7108 defaultCharset: string;
7109 defaultView: Window;
7110 /**
7111 * Sets or gets a value that indicates whether the document can be edited.
7112 */
7113 designMode: string;
7114 /**
7115 * Sets or retrieves a value that indicates the reading order of the object.
7116 */
7117 dir: string;
7118 /**
7119 * Gets an object representing the document type declaration associated with the current document.
7120 */
7121 doctype: DocumentType;
7122 /**
7123 * Gets a reference to the root node of the document.
7124 */
7125 documentElement: HTMLElement;
7126 /**
7127 * Sets or gets the security domain of the document.
7128 */
7129 domain: string;
7130 /**
7131 * Retrieves a collection of all embed objects in the document.
7132 */
7133 embeds: HTMLCollection;
7134 /**
7135 * Sets or gets the foreground (text) color of the document.
7136 */
7137 fgColor: string;
7138 /**
7139 * Retrieves a collection, in source order, of all form objects in the document.
7140 */
7141 forms: HTMLCollection;
7142 fullscreenElement: Element;
7143 fullscreenEnabled: boolean;
7144 head: HTMLHeadElement;
7145 hidden: boolean;
7146 /**
7147 * Retrieves a collection, in source order, of img objects in the document.
7148 */
7149 images: HTMLCollection;
7150 /**
7151 * Gets the implementation object of the current document.
7152 */
7153 implementation: DOMImplementation;
7154 /**
7155 * Returns the character encoding used to create the webpage that is loaded into the document object.
7156 */
7157 inputEncoding: string;
7158 /**
7159 * Gets the date that the page was last modified, if the page supplies one.
7160 */
7161 lastModified: string;
7162 /**
7163 * Sets or gets the color of the document links.
7164 */
7165 linkColor: string;
7166 /**
7167 * Retrieves a collection of all a objects that specify the href property and all area objects in the document.
7168 */
7169 links: HTMLCollection;
7170 /**
7171 * Contains information about the current URL.
7172 */
7173 location: Location;
7174 media: string;
7175 msCSSOMElementFloatMetrics: boolean;
7176 msCapsLockWarningOff: boolean;
7177 msHidden: boolean;
7178 msVisibilityState: string;
7179 /**
7180 * Fires when the user aborts the download.
7181 * @param ev The event.
7182 */
7183 onabort: (ev: Event) => any;
7184 /**
7185 * Fires when the object is set as the active element.
7186 * @param ev The event.
7187 */
7188 onactivate: (ev: UIEvent) => any;
7189 /**
7190 * Fires immediately before the object is set as the active element.
7191 * @param ev The event.
7192 */
7193 onbeforeactivate: (ev: UIEvent) => any;
7194 /**
7195 * Fires immediately before the activeElement is changed from the current object to another object in the parent document.
7196 * @param ev The event.
7197 */
7198 onbeforedeactivate: (ev: UIEvent) => any;
7199 /**
7200 * Fires when the object loses the input focus.
7201 * @param ev The focus event.
7202 */
7203 onblur: (ev: FocusEvent) => any;
7204 /**
7205 * Occurs when playback is possible, but would require further buffering.
7206 * @param ev The event.
7207 */
7208 oncanplay: (ev: Event) => any;
7209 oncanplaythrough: (ev: Event) => any;
7210 /**
7211 * Fires when the contents of the object or selection have changed.
7212 * @param ev The event.
7213 */
7214 onchange: (ev: Event) => any;
7215 /**
7216 * Fires when the user clicks the left mouse button on the object
7217 * @param ev The mouse event.
7218 */
7219 onclick: (ev: MouseEvent) => any;
7220 /**
7221 * Fires when the user clicks the right mouse button in the client area, opening the context menu.
7222 * @param ev The mouse event.
7223 */
7224 oncontextmenu: (ev: PointerEvent) => any;
7225 /**
7226 * Fires when the user double-clicks the object.
7227 * @param ev The mouse event.
7228 */
7229 ondblclick: (ev: MouseEvent) => any;
7230 /**
7231 * Fires when the activeElement is changed from the current object to another object in the parent document.
7232 * @param ev The UI Event
7233 */
7234 ondeactivate: (ev: UIEvent) => any;
7235 /**
7236 * Fires on the source object continuously during a drag operation.
7237 * @param ev The event.
7238 */
7239 ondrag: (ev: DragEvent) => any;
7240 /**
7241 * Fires on the source object when the user releases the mouse at the close of a drag operation.
7242 * @param ev The event.
7243 */
7244 ondragend: (ev: DragEvent) => any;
7245 /**
7246 * Fires on the target element when the user drags the object to a valid drop target.
7247 * @param ev The drag event.
7248 */
7249 ondragenter: (ev: DragEvent) => any;
7250 /**
7251 * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
7252 * @param ev The drag event.
7253 */
7254 ondragleave: (ev: DragEvent) => any;
7255 /**
7256 * Fires on the target element continuously while the user drags the object over a valid drop target.
7257 * @param ev The event.
7258 */
7259 ondragover: (ev: DragEvent) => any;
7260 /**
7261 * Fires on the source object when the user starts to drag a text selection or selected object.
7262 * @param ev The event.
7263 */
7264 ondragstart: (ev: DragEvent) => any;
7265 ondrop: (ev: DragEvent) => any;
7266 /**
7267 * Occurs when the duration attribute is updated.
7268 * @param ev The event.
7269 */
7270 ondurationchange: (ev: Event) => any;
7271 /**
7272 * Occurs when the media element is reset to its initial state.
7273 * @param ev The event.
7274 */
7275 onemptied: (ev: Event) => any;
7276 /**
7277 * Occurs when the end of playback is reached.
7278 * @param ev The event
7279 */
7280 onended: (ev: Event) => any;
7281 /**
7282 * Fires when an error occurs during object loading.
7283 * @param ev The event.
7284 */
7285 onerror: (ev: Event) => any;
7286 /**
7287 * Fires when the object receives focus.
7288 * @param ev The event.
7289 */
7290 onfocus: (ev: FocusEvent) => any;
7291 onfullscreenchange: (ev: Event) => any;
7292 onfullscreenerror: (ev: Event) => any;
7293 oninput: (ev: Event) => any;
7294 /**
7295 * Fires when the user presses a key.
7296 * @param ev The keyboard event
7297 */
7298 onkeydown: (ev: KeyboardEvent) => any;
7299 /**
7300 * Fires when the user presses an alphanumeric key.
7301 * @param ev The event.
7302 */
7303 onkeypress: (ev: KeyboardEvent) => any;
7304 /**
7305 * Fires when the user releases a key.
7306 * @param ev The keyboard event
7307 */
7308 onkeyup: (ev: KeyboardEvent) => any;
7309 /**
7310 * Fires immediately after the browser loads the object.
7311 * @param ev The event.
7312 */
7313 onload: (ev: Event) => any;
7314 /**
7315 * Occurs when media data is loaded at the current playback position.
7316 * @param ev The event.
7317 */
7318 onloadeddata: (ev: Event) => any;
7319 /**
7320 * Occurs when the duration and dimensions of the media have been determined.
7321 * @param ev The event.
7322 */
7323 onloadedmetadata: (ev: Event) => any;
7324 /**
7325 * Occurs when Internet Explorer begins looking for media data.
7326 * @param ev The event.
7327 */
7328 onloadstart: (ev: Event) => any;
7329 /**
7330 * Fires when the user clicks the object with either mouse button.
7331 * @param ev The mouse event.
7332 */
7333 onmousedown: (ev: MouseEvent) => any;
7334 /**
7335 * Fires when the user moves the mouse over the object.
7336 * @param ev The mouse event.
7337 */
7338 onmousemove: (ev: MouseEvent) => any;
7339 /**
7340 * Fires when the user moves the mouse pointer outside the boundaries of the object.
7341 * @param ev The mouse event.
7342 */
7343 onmouseout: (ev: MouseEvent) => any;
7344 /**
7345 * Fires when the user moves the mouse pointer into the object.
7346 * @param ev The mouse event.
7347 */
7348 onmouseover: (ev: MouseEvent) => any;
7349 /**
7350 * Fires when the user releases a mouse button while the mouse is over the object.
7351 * @param ev The mouse event.
7352 */
7353 onmouseup: (ev: MouseEvent) => any;
7354 /**
7355 * Fires when the wheel button is rotated.
7356 * @param ev The mouse event
7357 */
7358 onmousewheel: (ev: MouseWheelEvent) => any;
7359 onmscontentzoom: (ev: UIEvent) => any;
7360 onmsgesturechange: (ev: MSGestureEvent) => any;
7361 onmsgesturedoubletap: (ev: MSGestureEvent) => any;
7362 onmsgestureend: (ev: MSGestureEvent) => any;
7363 onmsgesturehold: (ev: MSGestureEvent) => any;
7364 onmsgesturestart: (ev: MSGestureEvent) => any;
7365 onmsgesturetap: (ev: MSGestureEvent) => any;
7366 onmsinertiastart: (ev: MSGestureEvent) => any;
7367 onmsmanipulationstatechanged: (ev: MSManipulationEvent) => any;
7368 onmspointercancel: (ev: MSPointerEvent) => any;
7369 onmspointerdown: (ev: MSPointerEvent) => any;
7370 onmspointerenter: (ev: MSPointerEvent) => any;
7371 onmspointerleave: (ev: MSPointerEvent) => any;
7372 onmspointermove: (ev: MSPointerEvent) => any;
7373 onmspointerout: (ev: MSPointerEvent) => any;
7374 onmspointerover: (ev: MSPointerEvent) => any;
7375 onmspointerup: (ev: MSPointerEvent) => any;
7376 /**
7377 * Occurs when an item is removed from a Jump List of a webpage running in Site Mode.
7378 * @param ev The event.
7379 */
7380 onmssitemodejumplistitemremoved: (ev: MSSiteModeEvent) => any;
7381 /**
7382 * Occurs when a user clicks a button in a Thumbnail Toolbar of a webpage running in Site Mode.
7383 * @param ev The event.
7384 */
7385 onmsthumbnailclick: (ev: MSSiteModeEvent) => any;
7386 /**
7387 * Occurs when playback is paused.
7388 * @param ev The event.
7389 */
7390 onpause: (ev: Event) => any;
7391 /**
7392 * Occurs when the play method is requested.
7393 * @param ev The event.
7394 */
7395 onplay: (ev: Event) => any;
7396 /**
7397 * Occurs when the audio or video has started playing.
7398 * @param ev The event.
7399 */
7400 onplaying: (ev: Event) => any;
7401 onpointerlockchange: (ev: Event) => any;
7402 onpointerlockerror: (ev: Event) => any;
7403 /**
7404 * Occurs to indicate progress while downloading media data.
7405 * @param ev The event.
7406 */
7407 onprogress: (ev: ProgressEvent) => any;
7408 /**
7409 * Occurs when the playback rate is increased or decreased.
7410 * @param ev The event.
7411 */
7412 onratechange: (ev: Event) => any;
7413 /**
7414 * Fires when the state of the object has changed.
7415 * @param ev The event
7416 */
7417 onreadystatechange: (ev: ProgressEvent) => any;
7418 /**
7419 * Fires when the user resets a form.
7420 * @param ev The event.
7421 */
7422 onreset: (ev: Event) => any;
7423 /**
7424 * Fires when the user repositions the scroll box in the scroll bar on the object.
7425 * @param ev The event.
7426 */
7427 onscroll: (ev: UIEvent) => any;
7428 /**
7429 * Occurs when the seek operation ends.
7430 * @param ev The event.
7431 */
7432 onseeked: (ev: Event) => any;
7433 /**
7434 * Occurs when the current playback position is moved.
7435 * @param ev The event.
7436 */
7437 onseeking: (ev: Event) => any;
7438 /**
7439 * Fires when the current selection changes.
7440 * @param ev The event.
7441 */
7442 onselect: (ev: UIEvent) => any;
7443 onselectstart: (ev: Event) => any;
7444 /**
7445 * Occurs when the download has stopped.
7446 * @param ev The event.
7447 */
7448 onstalled: (ev: Event) => any;
7449 /**
7450 * Fires when the user clicks the Stop button or leaves the Web page.
7451 * @param ev The event.
7452 */
7453 onstop: (ev: Event) => any;
7454 onsubmit: (ev: Event) => any;
7455 /**
7456 * Occurs if the load operation has been intentionally halted.
7457 * @param ev The event.
7458 */
7459 onsuspend: (ev: Event) => any;
7460 /**
7461 * Occurs to indicate the current playback position.
7462 * @param ev The event.
7463 */
7464 ontimeupdate: (ev: Event) => any;
7465 ontouchcancel: (ev: TouchEvent) => any;
7466 ontouchend: (ev: TouchEvent) => any;
7467 ontouchmove: (ev: TouchEvent) => any;
7468 ontouchstart: (ev: TouchEvent) => any;
7469 /**
7470 * Occurs when the volume is changed, or playback is muted or unmuted.
7471 * @param ev The event.
7472 */
7473 onvolumechange: (ev: Event) => any;
7474 /**
7475 * Occurs when playback stops because the next frame of a video resource is not available.
7476 * @param ev The event.
7477 */
7478 onwaiting: (ev: Event) => any;
7479 onwebkitfullscreenchange: (ev: Event) => any;
7480 onwebkitfullscreenerror: (ev: Event) => any;
7481 plugins: HTMLCollection;
7482 pointerLockElement: Element;
7483 /**
7484 * Retrieves a value that indicates the current state of the object.
7485 */
7486 readyState: string;
7487 /**
7488 * Gets the URL of the location that referred the user to the current page.
7489 */
7490 referrer: string;
7491 /**
7492 * Gets the root svg element in the document hierarchy.
7493 */
7494 rootElement: SVGSVGElement;
7495 /**
7496 * Retrieves a collection of all script objects in the document.
7497 */
7498 scripts: HTMLCollection;
7499 security: string;
7500 /**
7501 * Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document.
7502 */
7503 styleSheets: StyleSheetList;
7504 /**
7505 * Contains the title of the document.
7506 */
7507 title: string;
7508 visibilityState: string;
7509 /**
7510 * Sets or gets the color of the links that the user has visited.
7511 */
7512 vlinkColor: string;
7513 webkitCurrentFullScreenElement: Element;
7514 webkitFullscreenElement: Element;
7515 webkitFullscreenEnabled: boolean;
7516 webkitIsFullScreen: boolean;
7517 xmlEncoding: string;
7518 xmlStandalone: boolean;
7519 /**
7520 * Gets or sets the version attribute specified in the declaration of an XML document.
7521 */
7522 xmlVersion: string;
7523 currentScript: HTMLScriptElement;
7524 adoptNode(source: Node): Node;
7525 captureEvents(): void;
7526 clear(): void;
7527 /**
7528 * Closes an output stream and forces the sent data to display.
7529 */
7530 close(): void;
7531 /**
7532 * Creates an attribute object with a specified name.
7533 * @param name String that sets the attribute object's name.
7534 */
7535 createAttribute(name: string): Attr;
7536 createAttributeNS(namespaceURI: string, qualifiedName: string): Attr;
7537 createCDATASection(data: string): CDATASection;
7538 /**
7539 * Creates a comment object with the specified data.
7540 * @param data Sets the comment object's data.
7541 */
7542 createComment(data: string): Comment;
7543 /**
7544 * Creates a new document.
7545 */
7546 createDocumentFragment(): DocumentFragment;
7547 /**
7548 * Creates an instance of the element for the specified tag.
7549 * @param tagName The name of an element.
7550 */
7551 createElement(tagName: "a"): HTMLAnchorElement;
7552 createElement(tagName: "abbr"): HTMLPhraseElement;
7553 createElement(tagName: "acronym"): HTMLPhraseElement;
7554 createElement(tagName: "address"): HTMLBlockElement;
7555 createElement(tagName: "applet"): HTMLAppletElement;
7556 createElement(tagName: "area"): HTMLAreaElement;
7557 createElement(tagName: "audio"): HTMLAudioElement;
7558 createElement(tagName: "b"): HTMLPhraseElement;
7559 createElement(tagName: "base"): HTMLBaseElement;
7560 createElement(tagName: "basefont"): HTMLBaseFontElement;
7561 createElement(tagName: "bdo"): HTMLPhraseElement;
7562 createElement(tagName: "big"): HTMLPhraseElement;
7563 createElement(tagName: "blockquote"): HTMLBlockElement;
7564 createElement(tagName: "body"): HTMLBodyElement;
7565 createElement(tagName: "br"): HTMLBRElement;
7566 createElement(tagName: "button"): HTMLButtonElement;
7567 createElement(tagName: "canvas"): HTMLCanvasElement;
7568 createElement(tagName: "caption"): HTMLTableCaptionElement;
7569 createElement(tagName: "center"): HTMLBlockElement;
7570 createElement(tagName: "cite"): HTMLPhraseElement;
7571 createElement(tagName: "code"): HTMLPhraseElement;
7572 createElement(tagName: "col"): HTMLTableColElement;
7573 createElement(tagName: "colgroup"): HTMLTableColElement;
7574 createElement(tagName: "datalist"): HTMLDataListElement;
7575 createElement(tagName: "dd"): HTMLDDElement;
7576 createElement(tagName: "del"): HTMLModElement;
7577 createElement(tagName: "dfn"): HTMLPhraseElement;
7578 createElement(tagName: "dir"): HTMLDirectoryElement;
7579 createElement(tagName: "div"): HTMLDivElement;
7580 createElement(tagName: "dl"): HTMLDListElement;
7581 createElement(tagName: "dt"): HTMLDTElement;
7582 createElement(tagName: "em"): HTMLPhraseElement;
7583 createElement(tagName: "embed"): HTMLEmbedElement;
7584 createElement(tagName: "fieldset"): HTMLFieldSetElement;
7585 createElement(tagName: "font"): HTMLFontElement;
7586 createElement(tagName: "form"): HTMLFormElement;
7587 createElement(tagName: "frame"): HTMLFrameElement;
7588 createElement(tagName: "frameset"): HTMLFrameSetElement;
7589 createElement(tagName: "h1"): HTMLHeadingElement;
7590 createElement(tagName: "h2"): HTMLHeadingElement;
7591 createElement(tagName: "h3"): HTMLHeadingElement;
7592 createElement(tagName: "h4"): HTMLHeadingElement;
7593 createElement(tagName: "h5"): HTMLHeadingElement;
7594 createElement(tagName: "h6"): HTMLHeadingElement;
7595 createElement(tagName: "head"): HTMLHeadElement;
7596 createElement(tagName: "hr"): HTMLHRElement;
7597 createElement(tagName: "html"): HTMLHtmlElement;
7598 createElement(tagName: "i"): HTMLPhraseElement;
7599 createElement(tagName: "iframe"): HTMLIFrameElement;
7600 createElement(tagName: "img"): HTMLImageElement;
7601 createElement(tagName: "input"): HTMLInputElement;
7602 createElement(tagName: "ins"): HTMLModElement;
7603 createElement(tagName: "isindex"): HTMLIsIndexElement;
7604 createElement(tagName: "kbd"): HTMLPhraseElement;
7605 createElement(tagName: "keygen"): HTMLBlockElement;
7606 createElement(tagName: "label"): HTMLLabelElement;
7607 createElement(tagName: "legend"): HTMLLegendElement;
7608 createElement(tagName: "li"): HTMLLIElement;
7609 createElement(tagName: "link"): HTMLLinkElement;
7610 createElement(tagName: "listing"): HTMLBlockElement;
7611 createElement(tagName: "map"): HTMLMapElement;
7612 createElement(tagName: "marquee"): HTMLMarqueeElement;
7613 createElement(tagName: "menu"): HTMLMenuElement;
7614 createElement(tagName: "meta"): HTMLMetaElement;
7615 createElement(tagName: "nextid"): HTMLNextIdElement;
7616 createElement(tagName: "nobr"): HTMLPhraseElement;
7617 createElement(tagName: "object"): HTMLObjectElement;
7618 createElement(tagName: "ol"): HTMLOListElement;
7619 createElement(tagName: "optgroup"): HTMLOptGroupElement;
7620 createElement(tagName: "option"): HTMLOptionElement;
7621 createElement(tagName: "p"): HTMLParagraphElement;
7622 createElement(tagName: "param"): HTMLParamElement;
7623 createElement(tagName: "plaintext"): HTMLBlockElement;
7624 createElement(tagName: "pre"): HTMLPreElement;
7625 createElement(tagName: "progress"): HTMLProgressElement;
7626 createElement(tagName: "q"): HTMLQuoteElement;
7627 createElement(tagName: "rt"): HTMLPhraseElement;
7628 createElement(tagName: "ruby"): HTMLPhraseElement;
7629 createElement(tagName: "s"): HTMLPhraseElement;
7630 createElement(tagName: "samp"): HTMLPhraseElement;
7631 createElement(tagName: "script"): HTMLScriptElement;
7632 createElement(tagName: "select"): HTMLSelectElement;
7633 createElement(tagName: "small"): HTMLPhraseElement;
7634 createElement(tagName: "source"): HTMLSourceElement;
7635 createElement(tagName: "span"): HTMLSpanElement;
7636 createElement(tagName: "strike"): HTMLPhraseElement;
7637 createElement(tagName: "strong"): HTMLPhraseElement;
7638 createElement(tagName: "style"): HTMLStyleElement;
7639 createElement(tagName: "sub"): HTMLPhraseElement;
7640 createElement(tagName: "sup"): HTMLPhraseElement;
7641 createElement(tagName: "table"): HTMLTableElement;
7642 createElement(tagName: "tbody"): HTMLTableSectionElement;
7643 createElement(tagName: "td"): HTMLTableDataCellElement;
7644 createElement(tagName: "textarea"): HTMLTextAreaElement;
7645 createElement(tagName: "tfoot"): HTMLTableSectionElement;
7646 createElement(tagName: "th"): HTMLTableHeaderCellElement;
7647 createElement(tagName: "thead"): HTMLTableSectionElement;
7648 createElement(tagName: "title"): HTMLTitleElement;
7649 createElement(tagName: "tr"): HTMLTableRowElement;
7650 createElement(tagName: "track"): HTMLTrackElement;
7651 createElement(tagName: "tt"): HTMLPhraseElement;
7652 createElement(tagName: "u"): HTMLPhraseElement;
7653 createElement(tagName: "ul"): HTMLUListElement;
7654 createElement(tagName: "var"): HTMLPhraseElement;
7655 createElement(tagName: "video"): HTMLVideoElement;
7656 createElement(tagName: "x-ms-webview"): MSHTMLWebViewElement;
7657 createElement(tagName: "xmp"): HTMLBlockElement;
7658 createElement(tagName: string): HTMLElement;
7659 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "a"): SVGAElement
7660 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "circle"): SVGCircleElement
7661 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "clipPath"): SVGClipPathElement
7662 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "componentTransferFunction"): SVGComponentTransferFunctionElement
7663 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "defs"): SVGDefsElement
7664 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "desc"): SVGDescElement
7665 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "ellipse"): SVGEllipseElement
7666 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feBlend"): SVGFEBlendElement
7667 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feColorMatrix"): SVGFEColorMatrixElement
7668 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feComponentTransfer"): SVGFEComponentTransferElement
7669 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feComposite"): SVGFECompositeElement
7670 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feConvolveMatrix"): SVGFEConvolveMatrixElement
7671 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feDiffuseLighting"): SVGFEDiffuseLightingElement
7672 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feDisplacementMap"): SVGFEDisplacementMapElement
7673 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feDistantLight"): SVGFEDistantLightElement
7674 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFlood"): SVGFEFloodElement
7675 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncA"): SVGFEFuncAElement
7676 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncB"): SVGFEFuncBElement
7677 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncG"): SVGFEFuncGElement
7678 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncR"): SVGFEFuncRElement
7679 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feGaussianBlur"): SVGFEGaussianBlurElement
7680 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feImage"): SVGFEImageElement
7681 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feMerge"): SVGFEMergeElement
7682 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feMergeNode"): SVGFEMergeNodeElement
7683 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feMorphology"): SVGFEMorphologyElement
7684 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feOffset"): SVGFEOffsetElement
7685 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "fePointLight"): SVGFEPointLightElement
7686 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feSpecularLighting"): SVGFESpecularLightingElement
7687 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feSpotLight"): SVGFESpotLightElement
7688 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feTile"): SVGFETileElement
7689 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feTurbulence"): SVGFETurbulenceElement
7690 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "filter"): SVGFilterElement
7691 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "foreignObject"): SVGForeignObjectElement
7692 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "g"): SVGGElement
7693 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "image"): SVGImageElement
7694 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "gradient"): SVGGradientElement
7695 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "line"): SVGLineElement
7696 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "linearGradient"): SVGLinearGradientElement
7697 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "marker"): SVGMarkerElement
7698 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "mask"): SVGMaskElement
7699 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "path"): SVGPathElement
7700 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "metadata"): SVGMetadataElement
7701 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "pattern"): SVGPatternElement
7702 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "polygon"): SVGPolygonElement
7703 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "polyline"): SVGPolylineElement
7704 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "radialGradient"): SVGRadialGradientElement
7705 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "rect"): SVGRectElement
7706 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "svg"): SVGSVGElement
7707 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "script"): SVGScriptElement
7708 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "stop"): SVGStopElement
7709 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "style"): SVGStyleElement
7710 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "switch"): SVGSwitchElement
7711 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "symbol"): SVGSymbolElement
7712 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "tspan"): SVGTSpanElement
7713 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "textContent"): SVGTextContentElement
7714 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "text"): SVGTextElement
7715 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "textPath"): SVGTextPathElement
7716 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "textPositioning"): SVGTextPositioningElement
7717 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "title"): SVGTitleElement
7718 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "use"): SVGUseElement
7719 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "view"): SVGViewElement
7720 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement
7721 createElementNS(namespaceURI: string, qualifiedName: string): Element;
7722 createExpression(expression: string, resolver: XPathNSResolver): XPathExpression;
7723 createNSResolver(nodeResolver: Node): XPathNSResolver;
7724 /**
7725 * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.
7726 * @param root The root element or node to start traversing on.
7727 * @param whatToShow The type of nodes or elements to appear in the node list
7728 * @param filter A custom NodeFilter function to use. For more information, see filter. Use null for no filter.
7729 * @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded.
7730 */
7731 createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter, entityReferenceExpansion?: boolean): NodeIterator;
7732 createProcessingInstruction(target: string, data: string): ProcessingInstruction;
7733 /**
7734 * Returns an empty range object that has both of its boundary points positioned at the beginning of the document.
7735 */
7736 createRange(): Range;
7737 /**
7738 * Creates a text string from the specified value.
7739 * @param data String that specifies the nodeValue property of the text node.
7740 */
7741 createTextNode(data: string): Text;
7742 createTouch(view: any, target: EventTarget, identifier: number, pageX: number, pageY: number, screenX: number, screenY: number): Touch;
7743 createTouchList(...touches: Touch[]): TouchList;
7744 /**
7745 * Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document.
7746 * @param root The root element or node to start traversing on.
7747 * @param whatToShow The type of nodes or elements to appear in the node list. For more information, see whatToShow.
7748 * @param filter A custom NodeFilter function to use.
7749 * @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded.
7750 */
7751 createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter, entityReferenceExpansion?: boolean): TreeWalker;
7752 /**
7753 * Returns the element for the specified x coordinate and the specified y coordinate.
7754 * @param x The x-offset
7755 * @param y The y-offset
7756 */
7757 elementFromPoint(x: number, y: number): Element;
7758 evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver, type: number, result: XPathResult): XPathResult;
7759 /**
7760 * Executes a command on the current document, current selection, or the given range.
7761 * @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script.
7762 * @param showUI Display the user interface, defaults to false.
7763 * @param value Value to assign.
7764 */
7765 execCommand(commandId: string, showUI?: boolean, value?: any): boolean;
7766 /**
7767 * Displays help information for the given command identifier.
7768 * @param commandId Displays help information for the given command identifier.
7769 */
7770 execCommandShowHelp(commandId: string): boolean;
7771 exitFullscreen(): void;
7772 exitPointerLock(): void;
7773 /**
7774 * Causes the element to receive the focus and executes the code specified by the onfocus event.
7775 */
7776 focus(): void;
7777 /**
7778 * Returns a reference to the first object with the specified value of the ID or NAME attribute.
7779 * @param elementId String that specifies the ID value. Case-insensitive.
7780 */
7781 getElementById(elementId: string): HTMLElement;
7782 getElementsByClassName(classNames: string): NodeListOf<Element>;
7783 /**
7784 * Gets a collection of objects based on the value of the NAME or ID attribute.
7785 * @param elementName Gets a collection of objects based on the value of the NAME or ID attribute.
7786 */
7787 getElementsByName(elementName: string): NodeListOf<Element>;
7788 /**
7789 * Retrieves a collection of objects based on the specified element name.
7790 * @param name Specifies the name of an element.
7791 */
7792 getElementsByTagName(tagname: "a"): NodeListOf<HTMLAnchorElement>;
7793 getElementsByTagName(tagname: "abbr"): NodeListOf<HTMLPhraseElement>;
7794 getElementsByTagName(tagname: "acronym"): NodeListOf<HTMLPhraseElement>;
7795 getElementsByTagName(tagname: "address"): NodeListOf<HTMLBlockElement>;
7796 getElementsByTagName(tagname: "applet"): NodeListOf<HTMLAppletElement>;
7797 getElementsByTagName(tagname: "area"): NodeListOf<HTMLAreaElement>;
7798 getElementsByTagName(tagname: "article"): NodeListOf<HTMLElement>;
7799 getElementsByTagName(tagname: "aside"): NodeListOf<HTMLElement>;
7800 getElementsByTagName(tagname: "audio"): NodeListOf<HTMLAudioElement>;
7801 getElementsByTagName(tagname: "b"): NodeListOf<HTMLPhraseElement>;
7802 getElementsByTagName(tagname: "base"): NodeListOf<HTMLBaseElement>;
7803 getElementsByTagName(tagname: "basefont"): NodeListOf<HTMLBaseFontElement>;
7804 getElementsByTagName(tagname: "bdo"): NodeListOf<HTMLPhraseElement>;
7805 getElementsByTagName(tagname: "big"): NodeListOf<HTMLPhraseElement>;
7806 getElementsByTagName(tagname: "blockquote"): NodeListOf<HTMLBlockElement>;
7807 getElementsByTagName(tagname: "body"): NodeListOf<HTMLBodyElement>;
7808 getElementsByTagName(tagname: "br"): NodeListOf<HTMLBRElement>;
7809 getElementsByTagName(tagname: "button"): NodeListOf<HTMLButtonElement>;
7810 getElementsByTagName(tagname: "canvas"): NodeListOf<HTMLCanvasElement>;
7811 getElementsByTagName(tagname: "caption"): NodeListOf<HTMLTableCaptionElement>;
7812 getElementsByTagName(tagname: "center"): NodeListOf<HTMLBlockElement>;
7813 getElementsByTagName(tagname: "circle"): NodeListOf<SVGCircleElement>;
7814 getElementsByTagName(tagname: "cite"): NodeListOf<HTMLPhraseElement>;
7815 getElementsByTagName(tagname: "clippath"): NodeListOf<SVGClipPathElement>;
7816 getElementsByTagName(tagname: "code"): NodeListOf<HTMLPhraseElement>;
7817 getElementsByTagName(tagname: "col"): NodeListOf<HTMLTableColElement>;
7818 getElementsByTagName(tagname: "colgroup"): NodeListOf<HTMLTableColElement>;
7819 getElementsByTagName(tagname: "datalist"): NodeListOf<HTMLDataListElement>;
7820 getElementsByTagName(tagname: "dd"): NodeListOf<HTMLDDElement>;
7821 getElementsByTagName(tagname: "defs"): NodeListOf<SVGDefsElement>;
7822 getElementsByTagName(tagname: "del"): NodeListOf<HTMLModElement>;
7823 getElementsByTagName(tagname: "desc"): NodeListOf<SVGDescElement>;
7824 getElementsByTagName(tagname: "dfn"): NodeListOf<HTMLPhraseElement>;
7825 getElementsByTagName(tagname: "dir"): NodeListOf<HTMLDirectoryElement>;
7826 getElementsByTagName(tagname: "div"): NodeListOf<HTMLDivElement>;
7827 getElementsByTagName(tagname: "dl"): NodeListOf<HTMLDListElement>;
7828 getElementsByTagName(tagname: "dt"): NodeListOf<HTMLDTElement>;
7829 getElementsByTagName(tagname: "ellipse"): NodeListOf<SVGEllipseElement>;
7830 getElementsByTagName(tagname: "em"): NodeListOf<HTMLPhraseElement>;
7831 getElementsByTagName(tagname: "embed"): NodeListOf<HTMLEmbedElement>;
7832 getElementsByTagName(tagname: "feblend"): NodeListOf<SVGFEBlendElement>;
7833 getElementsByTagName(tagname: "fecolormatrix"): NodeListOf<SVGFEColorMatrixElement>;
7834 getElementsByTagName(tagname: "fecomponenttransfer"): NodeListOf<SVGFEComponentTransferElement>;
7835 getElementsByTagName(tagname: "fecomposite"): NodeListOf<SVGFECompositeElement>;
7836 getElementsByTagName(tagname: "feconvolvematrix"): NodeListOf<SVGFEConvolveMatrixElement>;
7837 getElementsByTagName(tagname: "fediffuselighting"): NodeListOf<SVGFEDiffuseLightingElement>;
7838 getElementsByTagName(tagname: "fedisplacementmap"): NodeListOf<SVGFEDisplacementMapElement>;
7839 getElementsByTagName(tagname: "fedistantlight"): NodeListOf<SVGFEDistantLightElement>;
7840 getElementsByTagName(tagname: "feflood"): NodeListOf<SVGFEFloodElement>;
7841 getElementsByTagName(tagname: "fefunca"): NodeListOf<SVGFEFuncAElement>;
7842 getElementsByTagName(tagname: "fefuncb"): NodeListOf<SVGFEFuncBElement>;
7843 getElementsByTagName(tagname: "fefuncg"): NodeListOf<SVGFEFuncGElement>;
7844 getElementsByTagName(tagname: "fefuncr"): NodeListOf<SVGFEFuncRElement>;
7845 getElementsByTagName(tagname: "fegaussianblur"): NodeListOf<SVGFEGaussianBlurElement>;
7846 getElementsByTagName(tagname: "feimage"): NodeListOf<SVGFEImageElement>;
7847 getElementsByTagName(tagname: "femerge"): NodeListOf<SVGFEMergeElement>;
7848 getElementsByTagName(tagname: "femergenode"): NodeListOf<SVGFEMergeNodeElement>;
7849 getElementsByTagName(tagname: "femorphology"): NodeListOf<SVGFEMorphologyElement>;
7850 getElementsByTagName(tagname: "feoffset"): NodeListOf<SVGFEOffsetElement>;
7851 getElementsByTagName(tagname: "fepointlight"): NodeListOf<SVGFEPointLightElement>;
7852 getElementsByTagName(tagname: "fespecularlighting"): NodeListOf<SVGFESpecularLightingElement>;
7853 getElementsByTagName(tagname: "fespotlight"): NodeListOf<SVGFESpotLightElement>;
7854 getElementsByTagName(tagname: "fetile"): NodeListOf<SVGFETileElement>;
7855 getElementsByTagName(tagname: "feturbulence"): NodeListOf<SVGFETurbulenceElement>;
7856 getElementsByTagName(tagname: "fieldset"): NodeListOf<HTMLFieldSetElement>;
7857 getElementsByTagName(tagname: "figcaption"): NodeListOf<HTMLElement>;
7858 getElementsByTagName(tagname: "figure"): NodeListOf<HTMLElement>;
7859 getElementsByTagName(tagname: "filter"): NodeListOf<SVGFilterElement>;
7860 getElementsByTagName(tagname: "font"): NodeListOf<HTMLFontElement>;
7861 getElementsByTagName(tagname: "footer"): NodeListOf<HTMLElement>;
7862 getElementsByTagName(tagname: "foreignobject"): NodeListOf<SVGForeignObjectElement>;
7863 getElementsByTagName(tagname: "form"): NodeListOf<HTMLFormElement>;
7864 getElementsByTagName(tagname: "frame"): NodeListOf<HTMLFrameElement>;
7865 getElementsByTagName(tagname: "frameset"): NodeListOf<HTMLFrameSetElement>;
7866 getElementsByTagName(tagname: "g"): NodeListOf<SVGGElement>;
7867 getElementsByTagName(tagname: "h1"): NodeListOf<HTMLHeadingElement>;
7868 getElementsByTagName(tagname: "h2"): NodeListOf<HTMLHeadingElement>;
7869 getElementsByTagName(tagname: "h3"): NodeListOf<HTMLHeadingElement>;
7870 getElementsByTagName(tagname: "h4"): NodeListOf<HTMLHeadingElement>;
7871 getElementsByTagName(tagname: "h5"): NodeListOf<HTMLHeadingElement>;
7872 getElementsByTagName(tagname: "h6"): NodeListOf<HTMLHeadingElement>;
7873 getElementsByTagName(tagname: "head"): NodeListOf<HTMLHeadElement>;
7874 getElementsByTagName(tagname: "header"): NodeListOf<HTMLElement>;
7875 getElementsByTagName(tagname: "hgroup"): NodeListOf<HTMLElement>;
7876 getElementsByTagName(tagname: "hr"): NodeListOf<HTMLHRElement>;
7877 getElementsByTagName(tagname: "html"): NodeListOf<HTMLHtmlElement>;
7878 getElementsByTagName(tagname: "i"): NodeListOf<HTMLPhraseElement>;
7879 getElementsByTagName(tagname: "iframe"): NodeListOf<HTMLIFrameElement>;
7880 getElementsByTagName(tagname: "image"): NodeListOf<SVGImageElement>;
7881 getElementsByTagName(tagname: "img"): NodeListOf<HTMLImageElement>;
7882 getElementsByTagName(tagname: "input"): NodeListOf<HTMLInputElement>;
7883 getElementsByTagName(tagname: "ins"): NodeListOf<HTMLModElement>;
7884 getElementsByTagName(tagname: "isindex"): NodeListOf<HTMLIsIndexElement>;
7885 getElementsByTagName(tagname: "kbd"): NodeListOf<HTMLPhraseElement>;
7886 getElementsByTagName(tagname: "keygen"): NodeListOf<HTMLBlockElement>;
7887 getElementsByTagName(tagname: "label"): NodeListOf<HTMLLabelElement>;
7888 getElementsByTagName(tagname: "legend"): NodeListOf<HTMLLegendElement>;
7889 getElementsByTagName(tagname: "li"): NodeListOf<HTMLLIElement>;
7890 getElementsByTagName(tagname: "line"): NodeListOf<SVGLineElement>;
7891 getElementsByTagName(tagname: "lineargradient"): NodeListOf<SVGLinearGradientElement>;
7892 getElementsByTagName(tagname: "link"): NodeListOf<HTMLLinkElement>;
7893 getElementsByTagName(tagname: "listing"): NodeListOf<HTMLBlockElement>;
7894 getElementsByTagName(tagname: "map"): NodeListOf<HTMLMapElement>;
7895 getElementsByTagName(tagname: "mark"): NodeListOf<HTMLElement>;
7896 getElementsByTagName(tagname: "marker"): NodeListOf<SVGMarkerElement>;
7897 getElementsByTagName(tagname: "marquee"): NodeListOf<HTMLMarqueeElement>;
7898 getElementsByTagName(tagname: "mask"): NodeListOf<SVGMaskElement>;
7899 getElementsByTagName(tagname: "menu"): NodeListOf<HTMLMenuElement>;
7900 getElementsByTagName(tagname: "meta"): NodeListOf<HTMLMetaElement>;
7901 getElementsByTagName(tagname: "metadata"): NodeListOf<SVGMetadataElement>;
7902 getElementsByTagName(tagname: "nav"): NodeListOf<HTMLElement>;
7903 getElementsByTagName(tagname: "nextid"): NodeListOf<HTMLNextIdElement>;
7904 getElementsByTagName(tagname: "nobr"): NodeListOf<HTMLPhraseElement>;
7905 getElementsByTagName(tagname: "noframes"): NodeListOf<HTMLElement>;
7906 getElementsByTagName(tagname: "noscript"): NodeListOf<HTMLElement>;
7907 getElementsByTagName(tagname: "object"): NodeListOf<HTMLObjectElement>;
7908 getElementsByTagName(tagname: "ol"): NodeListOf<HTMLOListElement>;
7909 getElementsByTagName(tagname: "optgroup"): NodeListOf<HTMLOptGroupElement>;
7910 getElementsByTagName(tagname: "option"): NodeListOf<HTMLOptionElement>;
7911 getElementsByTagName(tagname: "p"): NodeListOf<HTMLParagraphElement>;
7912 getElementsByTagName(tagname: "param"): NodeListOf<HTMLParamElement>;
7913 getElementsByTagName(tagname: "path"): NodeListOf<SVGPathElement>;
7914 getElementsByTagName(tagname: "pattern"): NodeListOf<SVGPatternElement>;
7915 getElementsByTagName(tagname: "plaintext"): NodeListOf<HTMLBlockElement>;
7916 getElementsByTagName(tagname: "polygon"): NodeListOf<SVGPolygonElement>;
7917 getElementsByTagName(tagname: "polyline"): NodeListOf<SVGPolylineElement>;
7918 getElementsByTagName(tagname: "pre"): NodeListOf<HTMLPreElement>;
7919 getElementsByTagName(tagname: "progress"): NodeListOf<HTMLProgressElement>;
7920 getElementsByTagName(tagname: "q"): NodeListOf<HTMLQuoteElement>;
7921 getElementsByTagName(tagname: "radialgradient"): NodeListOf<SVGRadialGradientElement>;
7922 getElementsByTagName(tagname: "rect"): NodeListOf<SVGRectElement>;
7923 getElementsByTagName(tagname: "rt"): NodeListOf<HTMLPhraseElement>;
7924 getElementsByTagName(tagname: "ruby"): NodeListOf<HTMLPhraseElement>;
7925 getElementsByTagName(tagname: "s"): NodeListOf<HTMLPhraseElement>;
7926 getElementsByTagName(tagname: "samp"): NodeListOf<HTMLPhraseElement>;
7927 getElementsByTagName(tagname: "script"): NodeListOf<HTMLScriptElement>;
7928 getElementsByTagName(tagname: "section"): NodeListOf<HTMLElement>;
7929 getElementsByTagName(tagname: "select"): NodeListOf<HTMLSelectElement>;
7930 getElementsByTagName(tagname: "small"): NodeListOf<HTMLPhraseElement>;
7931 getElementsByTagName(tagname: "source"): NodeListOf<HTMLSourceElement>;
7932 getElementsByTagName(tagname: "span"): NodeListOf<HTMLSpanElement>;
7933 getElementsByTagName(tagname: "stop"): NodeListOf<SVGStopElement>;
7934 getElementsByTagName(tagname: "strike"): NodeListOf<HTMLPhraseElement>;
7935 getElementsByTagName(tagname: "strong"): NodeListOf<HTMLPhraseElement>;
7936 getElementsByTagName(tagname: "style"): NodeListOf<HTMLStyleElement>;
7937 getElementsByTagName(tagname: "sub"): NodeListOf<HTMLPhraseElement>;
7938 getElementsByTagName(tagname: "sup"): NodeListOf<HTMLPhraseElement>;
7939 getElementsByTagName(tagname: "svg"): NodeListOf<SVGSVGElement>;
7940 getElementsByTagName(tagname: "switch"): NodeListOf<SVGSwitchElement>;
7941 getElementsByTagName(tagname: "symbol"): NodeListOf<SVGSymbolElement>;
7942 getElementsByTagName(tagname: "table"): NodeListOf<HTMLTableElement>;
7943 getElementsByTagName(tagname: "tbody"): NodeListOf<HTMLTableSectionElement>;
7944 getElementsByTagName(tagname: "td"): NodeListOf<HTMLTableDataCellElement>;
7945 getElementsByTagName(tagname: "text"): NodeListOf<SVGTextElement>;
7946 getElementsByTagName(tagname: "textpath"): NodeListOf<SVGTextPathElement>;
7947 getElementsByTagName(tagname: "textarea"): NodeListOf<HTMLTextAreaElement>;
7948 getElementsByTagName(tagname: "tfoot"): NodeListOf<HTMLTableSectionElement>;
7949 getElementsByTagName(tagname: "th"): NodeListOf<HTMLTableHeaderCellElement>;
7950 getElementsByTagName(tagname: "thead"): NodeListOf<HTMLTableSectionElement>;
7951 getElementsByTagName(tagname: "title"): NodeListOf<HTMLTitleElement>;
7952 getElementsByTagName(tagname: "tr"): NodeListOf<HTMLTableRowElement>;
7953 getElementsByTagName(tagname: "track"): NodeListOf<HTMLTrackElement>;
7954 getElementsByTagName(tagname: "tspan"): NodeListOf<SVGTSpanElement>;
7955 getElementsByTagName(tagname: "tt"): NodeListOf<HTMLPhraseElement>;
7956 getElementsByTagName(tagname: "u"): NodeListOf<HTMLPhraseElement>;
7957 getElementsByTagName(tagname: "ul"): NodeListOf<HTMLUListElement>;
7958 getElementsByTagName(tagname: "use"): NodeListOf<SVGUseElement>;
7959 getElementsByTagName(tagname: "var"): NodeListOf<HTMLPhraseElement>;
7960 getElementsByTagName(tagname: "video"): NodeListOf<HTMLVideoElement>;
7961 getElementsByTagName(tagname: "view"): NodeListOf<SVGViewElement>;
7962 getElementsByTagName(tagname: "wbr"): NodeListOf<HTMLElement>;
7963 getElementsByTagName(tagname: "x-ms-webview"): NodeListOf<MSHTMLWebViewElement>;
7964 getElementsByTagName(tagname: "xmp"): NodeListOf<HTMLBlockElement>;
7965 getElementsByTagName(tagname: string): NodeListOf<Element>;
7966 getElementsByTagNameNS(namespaceURI: string, localName: string): NodeListOf<Element>;
7967 /**
7968 * Returns an object representing the current selection of the document that is loaded into the object displaying a webpage.
7969 */
7970 getSelection(): Selection;
7971 /**
7972 * Gets a value indicating whether the object currently has focus.
7973 */
7974 hasFocus(): boolean;
7975 importNode(importedNode: Node, deep: boolean): Node;
7976 msElementsFromPoint(x: number, y: number): NodeList;
7977 msElementsFromRect(left: number, top: number, width: number, height: number): NodeList;
7978 /**
7979 * 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.
7980 * @param url Specifies a MIME type for the document.
7981 * @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.
7982 * @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.
7983 * @param replace Specifies whether the existing entry for the document is replaced in the history list.
7984 */
7985 open(url?: string, name?: string, features?: string, replace?: boolean): Document;
7986 /**
7987 * Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document.
7988 * @param commandId Specifies a command identifier.
7989 */
7990 queryCommandEnabled(commandId: string): boolean;
7991 /**
7992 * Returns a Boolean value that indicates whether the specified command is in the indeterminate state.
7993 * @param commandId String that specifies a command identifier.
7994 */
7995 queryCommandIndeterm(commandId: string): boolean;
7996 /**
7997 * Returns a Boolean value that indicates the current state of the command.
7998 * @param commandId String that specifies a command identifier.
7999 */
8000 queryCommandState(commandId: string): boolean;
8001 /**
8002 * Returns a Boolean value that indicates whether the current command is supported on the current range.
8003 * @param commandId Specifies a command identifier.
8004 */
8005 queryCommandSupported(commandId: string): boolean;
8006 /**
8007 * Retrieves the string associated with a command.
8008 * @param commandId String that contains the identifier of a command. This can be any command identifier given in the list of Command Identifiers.
8009 */
8010 queryCommandText(commandId: string): string;
8011 /**
8012 * Returns the current value of the document, range, or current selection for the given command.
8013 * @param commandId String that specifies a command identifier.
8014 */
8015 queryCommandValue(commandId: string): string;
8016 releaseEvents(): void;
8017 /**
8018 * Allows updating the print settings for the page.
8019 */
8020 updateSettings(): void;
8021 webkitCancelFullScreen(): void;
8022 webkitExitFullscreen(): void;
8023 /**
8024 * Writes one or more HTML expressions to a document in the specified window.
8025 * @param content Specifies the text and HTML tags to write.
8026 */
8027 write(...content: string[]): void;
8028 /**
8029 * Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window.
8030 * @param content The text and HTML tags to write.
8031 */
8032 writeln(...content: string[]): void;
8033 createElement(tagName: "picture"): HTMLPictureElement;
8034 getElementsByTagName(tagname: "picture"): NodeListOf<HTMLPictureElement>;
8035 addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8036 addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8037 addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8038 addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8039 addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8040 addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8041 addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8042 addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8043 addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void;
8044 addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8045 addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8046 addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8047 addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8048 addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8049 addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8050 addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8051 addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8052 addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8053 addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8054 addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8055 addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8056 addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
8057 addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void;
8058 addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void;
8059 addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void;
8060 addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8061 addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8062 addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8063 addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8064 addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8065 addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8066 addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8067 addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8068 addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8069 addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8070 addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8071 addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void;
8072 addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void;
8073 addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void;
8074 addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
8075 addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
8076 addEventListener(type: "fullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void;
8077 addEventListener(type: "fullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void;
8078 addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void;
8079 addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
8080 addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
8081 addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
8082 addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
8083 addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void;
8084 addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void;
8085 addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void;
8086 addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8087 addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8088 addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8089 addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8090 addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8091 addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void;
8092 addEventListener(type: "mssitemodejumplistitemremoved", listener: (ev: MSSiteModeEvent) => any, useCapture?: boolean): void;
8093 addEventListener(type: "msthumbnailclick", listener: (ev: MSSiteModeEvent) => any, useCapture?: boolean): void;
8094 addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void;
8095 addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void;
8096 addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void;
8097 addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8098 addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8099 addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8100 addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8101 addEventListener(type: "pointerlockchange", listener: (ev: Event) => any, useCapture?: boolean): void;
8102 addEventListener(type: "pointerlockerror", listener: (ev: Event) => any, useCapture?: boolean): void;
8103 addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8104 addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8105 addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8106 addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8107 addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
8108 addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void;
8109 addEventListener(type: "readystatechange", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
8110 addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void;
8111 addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8112 addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void;
8113 addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void;
8114 addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8115 addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void;
8116 addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void;
8117 addEventListener(type: "stop", listener: (ev: Event) => any, useCapture?: boolean): void;
8118 addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void;
8119 addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void;
8120 addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void;
8121 addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
8122 addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
8123 addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
8124 addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
8125 addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void;
8126 addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void;
8127 addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void;
8128 addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void;
8129 addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void;
8130 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
8131}
8132
8133declare var Document: {
8134 prototype: Document;
8135 new(): Document;
8136}
8137
8138interface DocumentFragment extends Node, NodeSelector {
8139 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
8140}
8141
8142declare var DocumentFragment: {
8143 prototype: DocumentFragment;
8144 new(): DocumentFragment;
8145}
8146
8147interface DocumentType extends Node, ChildNode {
8148 entities: NamedNodeMap;
8149 internalSubset: string;
8150 name: string;
8151 notations: NamedNodeMap;
8152 publicId: string;
8153 systemId: string;
8154 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
8155}
8156
8157declare var DocumentType: {
8158 prototype: DocumentType;
8159 new(): DocumentType;
8160}
8161
8162interface DragEvent extends MouseEvent {
8163 dataTransfer: DataTransfer;
8164 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;
8165 msConvertURL(file: File, targetType: string, targetURL?: string): void;
8166}
8167
8168declare var DragEvent: {
8169 prototype: DragEvent;
8170 new(): DragEvent;
8171}
8172
8173interface DynamicsCompressorNode extends AudioNode {
8174 attack: AudioParam;
8175 knee: AudioParam;
8176 ratio: AudioParam;
8177 reduction: AudioParam;
8178 release: AudioParam;
8179 threshold: AudioParam;
8180}
8181
8182declare var DynamicsCompressorNode: {
8183 prototype: DynamicsCompressorNode;
8184 new(): DynamicsCompressorNode;
8185}
8186
8187interface EXT_texture_filter_anisotropic {
8188 MAX_TEXTURE_MAX_ANISOTROPY_EXT: number;
8189 TEXTURE_MAX_ANISOTROPY_EXT: number;
8190}
8191
8192declare var EXT_texture_filter_anisotropic: {
8193 prototype: EXT_texture_filter_anisotropic;
8194 new(): EXT_texture_filter_anisotropic;
8195 MAX_TEXTURE_MAX_ANISOTROPY_EXT: number;
8196 TEXTURE_MAX_ANISOTROPY_EXT: number;
8197}
8198
8199interface Element extends Node, GlobalEventHandlers, ElementTraversal, NodeSelector, ChildNode {
8200 classList: DOMTokenList;
8201 clientHeight: number;
8202 clientLeft: number;
8203 clientTop: number;
8204 clientWidth: number;
8205 msContentZoomFactor: number;
8206 msRegionOverflow: string;
8207 onariarequest: (ev: AriaRequestEvent) => any;
8208 oncommand: (ev: CommandEvent) => any;
8209 ongotpointercapture: (ev: PointerEvent) => any;
8210 onlostpointercapture: (ev: PointerEvent) => any;
8211 onmsgesturechange: (ev: MSGestureEvent) => any;
8212 onmsgesturedoubletap: (ev: MSGestureEvent) => any;
8213 onmsgestureend: (ev: MSGestureEvent) => any;
8214 onmsgesturehold: (ev: MSGestureEvent) => any;
8215 onmsgesturestart: (ev: MSGestureEvent) => any;
8216 onmsgesturetap: (ev: MSGestureEvent) => any;
8217 onmsgotpointercapture: (ev: MSPointerEvent) => any;
8218 onmsinertiastart: (ev: MSGestureEvent) => any;
8219 onmslostpointercapture: (ev: MSPointerEvent) => any;
8220 onmspointercancel: (ev: MSPointerEvent) => any;
8221 onmspointerdown: (ev: MSPointerEvent) => any;
8222 onmspointerenter: (ev: MSPointerEvent) => any;
8223 onmspointerleave: (ev: MSPointerEvent) => any;
8224 onmspointermove: (ev: MSPointerEvent) => any;
8225 onmspointerout: (ev: MSPointerEvent) => any;
8226 onmspointerover: (ev: MSPointerEvent) => any;
8227 onmspointerup: (ev: MSPointerEvent) => any;
8228 ontouchcancel: (ev: TouchEvent) => any;
8229 ontouchend: (ev: TouchEvent) => any;
8230 ontouchmove: (ev: TouchEvent) => any;
8231 ontouchstart: (ev: TouchEvent) => any;
8232 onwebkitfullscreenchange: (ev: Event) => any;
8233 onwebkitfullscreenerror: (ev: Event) => any;
8234 scrollHeight: number;
8235 scrollLeft: number;
8236 scrollTop: number;
8237 scrollWidth: number;
8238 tagName: string;
8239 id: string;
8240 className: string;
8241 innerHTML: string;
8242 getAttribute(name?: string): string;
8243 getAttributeNS(namespaceURI: string, localName: string): string;
8244 getAttributeNode(name: string): Attr;
8245 getAttributeNodeNS(namespaceURI: string, localName: string): Attr;
8246 getBoundingClientRect(): ClientRect;
8247 getClientRects(): ClientRectList;
8248 getElementsByTagName(name: "a"): NodeListOf<HTMLAnchorElement>;
8249 getElementsByTagName(name: "abbr"): NodeListOf<HTMLPhraseElement>;
8250 getElementsByTagName(name: "acronym"): NodeListOf<HTMLPhraseElement>;
8251 getElementsByTagName(name: "address"): NodeListOf<HTMLBlockElement>;
8252 getElementsByTagName(name: "applet"): NodeListOf<HTMLAppletElement>;
8253 getElementsByTagName(name: "area"): NodeListOf<HTMLAreaElement>;
8254 getElementsByTagName(name: "article"): NodeListOf<HTMLElement>;
8255 getElementsByTagName(name: "aside"): NodeListOf<HTMLElement>;
8256 getElementsByTagName(name: "audio"): NodeListOf<HTMLAudioElement>;
8257 getElementsByTagName(name: "b"): NodeListOf<HTMLPhraseElement>;
8258 getElementsByTagName(name: "base"): NodeListOf<HTMLBaseElement>;
8259 getElementsByTagName(name: "basefont"): NodeListOf<HTMLBaseFontElement>;
8260 getElementsByTagName(name: "bdo"): NodeListOf<HTMLPhraseElement>;
8261 getElementsByTagName(name: "big"): NodeListOf<HTMLPhraseElement>;
8262 getElementsByTagName(name: "blockquote"): NodeListOf<HTMLBlockElement>;
8263 getElementsByTagName(name: "body"): NodeListOf<HTMLBodyElement>;
8264 getElementsByTagName(name: "br"): NodeListOf<HTMLBRElement>;
8265 getElementsByTagName(name: "button"): NodeListOf<HTMLButtonElement>;
8266 getElementsByTagName(name: "canvas"): NodeListOf<HTMLCanvasElement>;
8267 getElementsByTagName(name: "caption"): NodeListOf<HTMLTableCaptionElement>;
8268 getElementsByTagName(name: "center"): NodeListOf<HTMLBlockElement>;
8269 getElementsByTagName(name: "circle"): NodeListOf<SVGCircleElement>;
8270 getElementsByTagName(name: "cite"): NodeListOf<HTMLPhraseElement>;
8271 getElementsByTagName(name: "clippath"): NodeListOf<SVGClipPathElement>;
8272 getElementsByTagName(name: "code"): NodeListOf<HTMLPhraseElement>;
8273 getElementsByTagName(name: "col"): NodeListOf<HTMLTableColElement>;
8274 getElementsByTagName(name: "colgroup"): NodeListOf<HTMLTableColElement>;
8275 getElementsByTagName(name: "datalist"): NodeListOf<HTMLDataListElement>;
8276 getElementsByTagName(name: "dd"): NodeListOf<HTMLDDElement>;
8277 getElementsByTagName(name: "defs"): NodeListOf<SVGDefsElement>;
8278 getElementsByTagName(name: "del"): NodeListOf<HTMLModElement>;
8279 getElementsByTagName(name: "desc"): NodeListOf<SVGDescElement>;
8280 getElementsByTagName(name: "dfn"): NodeListOf<HTMLPhraseElement>;
8281 getElementsByTagName(name: "dir"): NodeListOf<HTMLDirectoryElement>;
8282 getElementsByTagName(name: "div"): NodeListOf<HTMLDivElement>;
8283 getElementsByTagName(name: "dl"): NodeListOf<HTMLDListElement>;
8284 getElementsByTagName(name: "dt"): NodeListOf<HTMLDTElement>;
8285 getElementsByTagName(name: "ellipse"): NodeListOf<SVGEllipseElement>;
8286 getElementsByTagName(name: "em"): NodeListOf<HTMLPhraseElement>;
8287 getElementsByTagName(name: "embed"): NodeListOf<HTMLEmbedElement>;
8288 getElementsByTagName(name: "feblend"): NodeListOf<SVGFEBlendElement>;
8289 getElementsByTagName(name: "fecolormatrix"): NodeListOf<SVGFEColorMatrixElement>;
8290 getElementsByTagName(name: "fecomponenttransfer"): NodeListOf<SVGFEComponentTransferElement>;
8291 getElementsByTagName(name: "fecomposite"): NodeListOf<SVGFECompositeElement>;
8292 getElementsByTagName(name: "feconvolvematrix"): NodeListOf<SVGFEConvolveMatrixElement>;
8293 getElementsByTagName(name: "fediffuselighting"): NodeListOf<SVGFEDiffuseLightingElement>;
8294 getElementsByTagName(name: "fedisplacementmap"): NodeListOf<SVGFEDisplacementMapElement>;
8295 getElementsByTagName(name: "fedistantlight"): NodeListOf<SVGFEDistantLightElement>;
8296 getElementsByTagName(name: "feflood"): NodeListOf<SVGFEFloodElement>;
8297 getElementsByTagName(name: "fefunca"): NodeListOf<SVGFEFuncAElement>;
8298 getElementsByTagName(name: "fefuncb"): NodeListOf<SVGFEFuncBElement>;
8299 getElementsByTagName(name: "fefuncg"): NodeListOf<SVGFEFuncGElement>;
8300 getElementsByTagName(name: "fefuncr"): NodeListOf<SVGFEFuncRElement>;
8301 getElementsByTagName(name: "fegaussianblur"): NodeListOf<SVGFEGaussianBlurElement>;
8302 getElementsByTagName(name: "feimage"): NodeListOf<SVGFEImageElement>;
8303 getElementsByTagName(name: "femerge"): NodeListOf<SVGFEMergeElement>;
8304 getElementsByTagName(name: "femergenode"): NodeListOf<SVGFEMergeNodeElement>;
8305 getElementsByTagName(name: "femorphology"): NodeListOf<SVGFEMorphologyElement>;
8306 getElementsByTagName(name: "feoffset"): NodeListOf<SVGFEOffsetElement>;
8307 getElementsByTagName(name: "fepointlight"): NodeListOf<SVGFEPointLightElement>;
8308 getElementsByTagName(name: "fespecularlighting"): NodeListOf<SVGFESpecularLightingElement>;
8309 getElementsByTagName(name: "fespotlight"): NodeListOf<SVGFESpotLightElement>;
8310 getElementsByTagName(name: "fetile"): NodeListOf<SVGFETileElement>;
8311 getElementsByTagName(name: "feturbulence"): NodeListOf<SVGFETurbulenceElement>;
8312 getElementsByTagName(name: "fieldset"): NodeListOf<HTMLFieldSetElement>;
8313 getElementsByTagName(name: "figcaption"): NodeListOf<HTMLElement>;
8314 getElementsByTagName(name: "figure"): NodeListOf<HTMLElement>;
8315 getElementsByTagName(name: "filter"): NodeListOf<SVGFilterElement>;
8316 getElementsByTagName(name: "font"): NodeListOf<HTMLFontElement>;
8317 getElementsByTagName(name: "footer"): NodeListOf<HTMLElement>;
8318 getElementsByTagName(name: "foreignobject"): NodeListOf<SVGForeignObjectElement>;
8319 getElementsByTagName(name: "form"): NodeListOf<HTMLFormElement>;
8320 getElementsByTagName(name: "frame"): NodeListOf<HTMLFrameElement>;
8321 getElementsByTagName(name: "frameset"): NodeListOf<HTMLFrameSetElement>;
8322 getElementsByTagName(name: "g"): NodeListOf<SVGGElement>;
8323 getElementsByTagName(name: "h1"): NodeListOf<HTMLHeadingElement>;
8324 getElementsByTagName(name: "h2"): NodeListOf<HTMLHeadingElement>;
8325 getElementsByTagName(name: "h3"): NodeListOf<HTMLHeadingElement>;
8326 getElementsByTagName(name: "h4"): NodeListOf<HTMLHeadingElement>;
8327 getElementsByTagName(name: "h5"): NodeListOf<HTMLHeadingElement>;
8328 getElementsByTagName(name: "h6"): NodeListOf<HTMLHeadingElement>;
8329 getElementsByTagName(name: "head"): NodeListOf<HTMLHeadElement>;
8330 getElementsByTagName(name: "header"): NodeListOf<HTMLElement>;
8331 getElementsByTagName(name: "hgroup"): NodeListOf<HTMLElement>;
8332 getElementsByTagName(name: "hr"): NodeListOf<HTMLHRElement>;
8333 getElementsByTagName(name: "html"): NodeListOf<HTMLHtmlElement>;
8334 getElementsByTagName(name: "i"): NodeListOf<HTMLPhraseElement>;
8335 getElementsByTagName(name: "iframe"): NodeListOf<HTMLIFrameElement>;
8336 getElementsByTagName(name: "image"): NodeListOf<SVGImageElement>;
8337 getElementsByTagName(name: "img"): NodeListOf<HTMLImageElement>;
8338 getElementsByTagName(name: "input"): NodeListOf<HTMLInputElement>;
8339 getElementsByTagName(name: "ins"): NodeListOf<HTMLModElement>;
8340 getElementsByTagName(name: "isindex"): NodeListOf<HTMLIsIndexElement>;
8341 getElementsByTagName(name: "kbd"): NodeListOf<HTMLPhraseElement>;
8342 getElementsByTagName(name: "keygen"): NodeListOf<HTMLBlockElement>;
8343 getElementsByTagName(name: "label"): NodeListOf<HTMLLabelElement>;
8344 getElementsByTagName(name: "legend"): NodeListOf<HTMLLegendElement>;
8345 getElementsByTagName(name: "li"): NodeListOf<HTMLLIElement>;
8346 getElementsByTagName(name: "line"): NodeListOf<SVGLineElement>;
8347 getElementsByTagName(name: "lineargradient"): NodeListOf<SVGLinearGradientElement>;
8348 getElementsByTagName(name: "link"): NodeListOf<HTMLLinkElement>;
8349 getElementsByTagName(name: "listing"): NodeListOf<HTMLBlockElement>;
8350 getElementsByTagName(name: "map"): NodeListOf<HTMLMapElement>;
8351 getElementsByTagName(name: "mark"): NodeListOf<HTMLElement>;
8352 getElementsByTagName(name: "marker"): NodeListOf<SVGMarkerElement>;
8353 getElementsByTagName(name: "marquee"): NodeListOf<HTMLMarqueeElement>;
8354 getElementsByTagName(name: "mask"): NodeListOf<SVGMaskElement>;
8355 getElementsByTagName(name: "menu"): NodeListOf<HTMLMenuElement>;
8356 getElementsByTagName(name: "meta"): NodeListOf<HTMLMetaElement>;
8357 getElementsByTagName(name: "metadata"): NodeListOf<SVGMetadataElement>;
8358 getElementsByTagName(name: "nav"): NodeListOf<HTMLElement>;
8359 getElementsByTagName(name: "nextid"): NodeListOf<HTMLNextIdElement>;
8360 getElementsByTagName(name: "nobr"): NodeListOf<HTMLPhraseElement>;
8361 getElementsByTagName(name: "noframes"): NodeListOf<HTMLElement>;
8362 getElementsByTagName(name: "noscript"): NodeListOf<HTMLElement>;
8363 getElementsByTagName(name: "object"): NodeListOf<HTMLObjectElement>;
8364 getElementsByTagName(name: "ol"): NodeListOf<HTMLOListElement>;
8365 getElementsByTagName(name: "optgroup"): NodeListOf<HTMLOptGroupElement>;
8366 getElementsByTagName(name: "option"): NodeListOf<HTMLOptionElement>;
8367 getElementsByTagName(name: "p"): NodeListOf<HTMLParagraphElement>;
8368 getElementsByTagName(name: "param"): NodeListOf<HTMLParamElement>;
8369 getElementsByTagName(name: "path"): NodeListOf<SVGPathElement>;
8370 getElementsByTagName(name: "pattern"): NodeListOf<SVGPatternElement>;
8371 getElementsByTagName(name: "plaintext"): NodeListOf<HTMLBlockElement>;
8372 getElementsByTagName(name: "polygon"): NodeListOf<SVGPolygonElement>;
8373 getElementsByTagName(name: "polyline"): NodeListOf<SVGPolylineElement>;
8374 getElementsByTagName(name: "pre"): NodeListOf<HTMLPreElement>;
8375 getElementsByTagName(name: "progress"): NodeListOf<HTMLProgressElement>;
8376 getElementsByTagName(name: "q"): NodeListOf<HTMLQuoteElement>;
8377 getElementsByTagName(name: "radialgradient"): NodeListOf<SVGRadialGradientElement>;
8378 getElementsByTagName(name: "rect"): NodeListOf<SVGRectElement>;
8379 getElementsByTagName(name: "rt"): NodeListOf<HTMLPhraseElement>;
8380 getElementsByTagName(name: "ruby"): NodeListOf<HTMLPhraseElement>;
8381 getElementsByTagName(name: "s"): NodeListOf<HTMLPhraseElement>;
8382 getElementsByTagName(name: "samp"): NodeListOf<HTMLPhraseElement>;
8383 getElementsByTagName(name: "script"): NodeListOf<HTMLScriptElement>;
8384 getElementsByTagName(name: "section"): NodeListOf<HTMLElement>;
8385 getElementsByTagName(name: "select"): NodeListOf<HTMLSelectElement>;
8386 getElementsByTagName(name: "small"): NodeListOf<HTMLPhraseElement>;
8387 getElementsByTagName(name: "source"): NodeListOf<HTMLSourceElement>;
8388 getElementsByTagName(name: "span"): NodeListOf<HTMLSpanElement>;
8389 getElementsByTagName(name: "stop"): NodeListOf<SVGStopElement>;
8390 getElementsByTagName(name: "strike"): NodeListOf<HTMLPhraseElement>;
8391 getElementsByTagName(name: "strong"): NodeListOf<HTMLPhraseElement>;
8392 getElementsByTagName(name: "style"): NodeListOf<HTMLStyleElement>;
8393 getElementsByTagName(name: "sub"): NodeListOf<HTMLPhraseElement>;
8394 getElementsByTagName(name: "sup"): NodeListOf<HTMLPhraseElement>;
8395 getElementsByTagName(name: "svg"): NodeListOf<SVGSVGElement>;
8396 getElementsByTagName(name: "switch"): NodeListOf<SVGSwitchElement>;
8397 getElementsByTagName(name: "symbol"): NodeListOf<SVGSymbolElement>;
8398 getElementsByTagName(name: "table"): NodeListOf<HTMLTableElement>;
8399 getElementsByTagName(name: "tbody"): NodeListOf<HTMLTableSectionElement>;
8400 getElementsByTagName(name: "td"): NodeListOf<HTMLTableDataCellElement>;
8401 getElementsByTagName(name: "text"): NodeListOf<SVGTextElement>;
8402 getElementsByTagName(name: "textpath"): NodeListOf<SVGTextPathElement>;
8403 getElementsByTagName(name: "textarea"): NodeListOf<HTMLTextAreaElement>;
8404 getElementsByTagName(name: "tfoot"): NodeListOf<HTMLTableSectionElement>;
8405 getElementsByTagName(name: "th"): NodeListOf<HTMLTableHeaderCellElement>;
8406 getElementsByTagName(name: "thead"): NodeListOf<HTMLTableSectionElement>;
8407 getElementsByTagName(name: "title"): NodeListOf<HTMLTitleElement>;
8408 getElementsByTagName(name: "tr"): NodeListOf<HTMLTableRowElement>;
8409 getElementsByTagName(name: "track"): NodeListOf<HTMLTrackElement>;
8410 getElementsByTagName(name: "tspan"): NodeListOf<SVGTSpanElement>;
8411 getElementsByTagName(name: "tt"): NodeListOf<HTMLPhraseElement>;
8412 getElementsByTagName(name: "u"): NodeListOf<HTMLPhraseElement>;
8413 getElementsByTagName(name: "ul"): NodeListOf<HTMLUListElement>;
8414 getElementsByTagName(name: "use"): NodeListOf<SVGUseElement>;
8415 getElementsByTagName(name: "var"): NodeListOf<HTMLPhraseElement>;
8416 getElementsByTagName(name: "video"): NodeListOf<HTMLVideoElement>;
8417 getElementsByTagName(name: "view"): NodeListOf<SVGViewElement>;
8418 getElementsByTagName(name: "wbr"): NodeListOf<HTMLElement>;
8419 getElementsByTagName(name: "x-ms-webview"): NodeListOf<MSHTMLWebViewElement>;
8420 getElementsByTagName(name: "xmp"): NodeListOf<HTMLBlockElement>;
8421 getElementsByTagName(name: string): NodeListOf<Element>;
8422 getElementsByTagNameNS(namespaceURI: string, localName: string): NodeListOf<Element>;
8423 hasAttribute(name: string): boolean;
8424 hasAttributeNS(namespaceURI: string, localName: string): boolean;
8425 msGetRegionContent(): MSRangeCollection;
8426 msGetUntransformedBounds(): ClientRect;
8427 msMatchesSelector(selectors: string): boolean;
8428 msReleasePointerCapture(pointerId: number): void;
8429 msSetPointerCapture(pointerId: number): void;
8430 msZoomTo(args: MsZoomToOptions): void;
8431 releasePointerCapture(pointerId: number): void;
8432 removeAttribute(name?: string): void;
8433 removeAttributeNS(namespaceURI: string, localName: string): void;
8434 removeAttributeNode(oldAttr: Attr): Attr;
8435 requestFullscreen(): void;
8436 requestPointerLock(): void;
8437 setAttribute(name: string, value: string): void;
8438 setAttributeNS(namespaceURI: string, qualifiedName: string, value: string): void;
8439 setAttributeNode(newAttr: Attr): Attr;
8440 setAttributeNodeNS(newAttr: Attr): Attr;
8441 setPointerCapture(pointerId: number): void;
8442 webkitMatchesSelector(selectors: string): boolean;
8443 webkitRequestFullScreen(): void;
8444 webkitRequestFullscreen(): void;
8445 getElementsByClassName(classNames: string): NodeListOf<Element>;
8446 matches(selector: string): boolean;
8447 getElementsByTagName(tagname: "picture"): NodeListOf<HTMLPictureElement>;
8448 addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8449 addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8450 addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8451 addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8452 addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8453 addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8454 addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8455 addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8456 addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8457 addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8458 addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8459 addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8460 addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8461 addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8462 addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8463 addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8464 addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8465 addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void;
8466 addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void;
8467 addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8468 addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8469 addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8470 addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8471 addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8472 addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8473 addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8474 addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8475 addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8476 addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8477 addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
8478 addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
8479 addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
8480 addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
8481 addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void;
8482 addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void;
8483 addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void;
8484 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
8485}
8486
8487declare var Element: {
8488 prototype: Element;
8489 new(): Element;
8490}
8491
8492interface ErrorEvent extends Event {
8493 colno: number;
8494 error: any;
8495 filename: string;
8496 lineno: number;
8497 message: string;
8498 initErrorEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, messageArg: string, filenameArg: string, linenoArg: number): void;
8499}
8500
8501declare var ErrorEvent: {
8502 prototype: ErrorEvent;
8503 new(): ErrorEvent;
8504}
8505
8506interface Event {
8507 bubbles: boolean;
8508 cancelBubble: boolean;
8509 cancelable: boolean;
8510 currentTarget: EventTarget;
8511 defaultPrevented: boolean;
8512 eventPhase: number;
8513 isTrusted: boolean;
8514 returnValue: boolean;
8515 srcElement: Element;
8516 target: EventTarget;
8517 timeStamp: number;
8518 type: string;
8519 initEvent(eventTypeArg: string, canBubbleArg: boolean, cancelableArg: boolean): void;
8520 preventDefault(): void;
8521 stopImmediatePropagation(): void;
8522 stopPropagation(): void;
8523 AT_TARGET: number;
8524 BUBBLING_PHASE: number;
8525 CAPTURING_PHASE: number;
8526}
8527
8528declare var Event: {
8529 prototype: Event;
8530 new(type: string, eventInitDict?: EventInit): Event;
8531 AT_TARGET: number;
8532 BUBBLING_PHASE: number;
8533 CAPTURING_PHASE: number;
8534}
8535
8536interface EventTarget {
8537 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
8538 dispatchEvent(evt: Event): boolean;
8539 removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
8540}
8541
8542declare var EventTarget: {
8543 prototype: EventTarget;
8544 new(): EventTarget;
8545}
8546
8547interface External {
8548}
8549
8550declare var External: {
8551 prototype: External;
8552 new(): External;
8553}
8554
8555interface File extends Blob {
8556 lastModifiedDate: any;
8557 name: string;
8558}
8559
8560declare var File: {
8561 prototype: File;
8562 new (parts: (ArrayBuffer | ArrayBufferView | Blob | string)[], filename: string, properties?: FilePropertyBag): File;
8563}
8564
8565interface FileList {
8566 length: number;
8567 item(index: number): File;
8568 [index: number]: File;
8569}
8570
8571declare var FileList: {
8572 prototype: FileList;
8573 new(): FileList;
8574}
8575
8576interface FileReader extends EventTarget, MSBaseReader {
8577 error: DOMError;
8578 readAsArrayBuffer(blob: Blob): void;
8579 readAsBinaryString(blob: Blob): void;
8580 readAsDataURL(blob: Blob): void;
8581 readAsText(blob: Blob, encoding?: string): void;
8582 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
8583}
8584
8585declare var FileReader: {
8586 prototype: FileReader;
8587 new(): FileReader;
8588}
8589
8590interface FocusEvent extends UIEvent {
8591 relatedTarget: EventTarget;
8592 initFocusEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, relatedTargetArg: EventTarget): void;
8593}
8594
8595declare var FocusEvent: {
8596 prototype: FocusEvent;
8597 new(typeArg: string, eventInitDict?: FocusEventInit): FocusEvent;
8598}
8599
8600interface FormData {
8601 append(name: any, value: any, blobName?: string): void;
8602}
8603
8604declare var FormData: {
8605 prototype: FormData;
8606 new (form?: HTMLFormElement): FormData;
8607}
8608
8609interface GainNode extends AudioNode {
8610 gain: AudioParam;
8611}
8612
8613declare var GainNode: {
8614 prototype: GainNode;
8615 new(): GainNode;
8616}
8617
8618interface Gamepad {
8619 axes: number[];
8620 buttons: GamepadButton[];
8621 connected: boolean;
8622 id: string;
8623 index: number;
8624 mapping: string;
8625 timestamp: number;
8626}
8627
8628declare var Gamepad: {
8629 prototype: Gamepad;
8630 new(): Gamepad;
8631}
8632
8633interface GamepadButton {
8634 pressed: boolean;
8635 value: number;
8636}
8637
8638declare var GamepadButton: {
8639 prototype: GamepadButton;
8640 new(): GamepadButton;
8641}
8642
8643interface GamepadEvent extends Event {
8644 gamepad: Gamepad;
8645}
8646
8647declare var GamepadEvent: {
8648 prototype: GamepadEvent;
8649 new(): GamepadEvent;
8650}
8651
8652interface Geolocation {
8653 clearWatch(watchId: number): void;
8654 getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback, options?: PositionOptions): void;
8655 watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback, options?: PositionOptions): number;
8656}
8657
8658declare var Geolocation: {
8659 prototype: Geolocation;
8660 new(): Geolocation;
8661}
8662
8663interface HTMLAllCollection extends HTMLCollection {
8664 namedItem(name: string): Element;
8665}
8666
8667declare var HTMLAllCollection: {
8668 prototype: HTMLAllCollection;
8669 new(): HTMLAllCollection;
8670}
8671
8672interface HTMLAnchorElement extends HTMLElement {
8673 Methods: string;
8674 /**
8675 * Sets or retrieves the character set used to encode the object.
8676 */
8677 charset: string;
8678 /**
8679 * Sets or retrieves the coordinates of the object.
8680 */
8681 coords: string;
8682 /**
8683 * Contains the anchor portion of the URL including the hash sign (#).
8684 */
8685 hash: string;
8686 /**
8687 * Contains the hostname and port values of the URL.
8688 */
8689 host: string;
8690 /**
8691 * Contains the hostname of a URL.
8692 */
8693 hostname: string;
8694 /**
8695 * Sets or retrieves a destination URL or an anchor point.
8696 */
8697 href: string;
8698 /**
8699 * Sets or retrieves the language code of the object.
8700 */
8701 hreflang: string;
8702 mimeType: string;
8703 /**
8704 * Sets or retrieves the shape of the object.
8705 */
8706 name: string;
8707 nameProp: string;
8708 /**
8709 * Contains the pathname of the URL.
8710 */
8711 pathname: string;
8712 /**
8713 * Sets or retrieves the port number associated with a URL.
8714 */
8715 port: string;
8716 /**
8717 * Contains the protocol of the URL.
8718 */
8719 protocol: string;
8720 protocolLong: string;
8721 /**
8722 * Sets or retrieves the relationship between the object and the destination of the link.
8723 */
8724 rel: string;
8725 /**
8726 * Sets or retrieves the relationship between the object and the destination of the link.
8727 */
8728 rev: string;
8729 /**
8730 * Sets or retrieves the substring of the href property that follows the question mark.
8731 */
8732 search: string;
8733 /**
8734 * Sets or retrieves the shape of the object.
8735 */
8736 shape: string;
8737 /**
8738 * Sets or retrieves the window or frame at which to target content.
8739 */
8740 target: string;
8741 /**
8742 * Retrieves or sets the text of the object as a string.
8743 */
8744 text: string;
8745 type: string;
8746 urn: string;
8747 /**
8748 * Returns a string representation of an object.
8749 */
8750 toString(): string;
8751}
8752
8753declare var HTMLAnchorElement: {
8754 prototype: HTMLAnchorElement;
8755 new(): HTMLAnchorElement;
8756}
8757
8758interface HTMLAppletElement extends HTMLElement {
8759 /**
8760 * 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.
8761 */
8762 BaseHref: string;
8763 align: string;
8764 /**
8765 * Sets or retrieves a text alternative to the graphic.
8766 */
8767 alt: string;
8768 /**
8769 * Gets or sets the optional alternative HTML script to execute if the object fails to load.
8770 */
8771 altHtml: string;
8772 /**
8773 * Sets or retrieves a character string that can be used to implement your own archive functionality for the object.
8774 */
8775 archive: string;
8776 border: string;
8777 code: string;
8778 /**
8779 * Sets or retrieves the URL of the component.
8780 */
8781 codeBase: string;
8782 /**
8783 * Sets or retrieves the Internet media type for the code associated with the object.
8784 */
8785 codeType: string;
8786 /**
8787 * Address of a pointer to the document this page or frame contains. If there is no document, then null will be returned.
8788 */
8789 contentDocument: Document;
8790 /**
8791 * Sets or retrieves the URL that references the data of the object.
8792 */
8793 data: string;
8794 /**
8795 * Sets or retrieves a character string that can be used to implement your own declare functionality for the object.
8796 */
8797 declare: boolean;
8798 form: HTMLFormElement;
8799 /**
8800 * Sets or retrieves the height of the object.
8801 */
8802 height: string;
8803 hspace: number;
8804 /**
8805 * Sets or retrieves the shape of the object.
8806 */
8807 name: string;
8808 object: string;
8809 /**
8810 * Sets or retrieves a message to be displayed while an object is loading.
8811 */
8812 standby: string;
8813 /**
8814 * Returns the content type of the object.
8815 */
8816 type: string;
8817 /**
8818 * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
8819 */
8820 useMap: string;
8821 vspace: number;
8822 width: number;
8823}
8824
8825declare var HTMLAppletElement: {
8826 prototype: HTMLAppletElement;
8827 new(): HTMLAppletElement;
8828}
8829
8830interface HTMLAreaElement extends HTMLElement {
8831 /**
8832 * Sets or retrieves a text alternative to the graphic.
8833 */
8834 alt: string;
8835 /**
8836 * Sets or retrieves the coordinates of the object.
8837 */
8838 coords: string;
8839 /**
8840 * Sets or retrieves the subsection of the href property that follows the number sign (#).
8841 */
8842 hash: string;
8843 /**
8844 * Sets or retrieves the hostname and port number of the location or URL.
8845 */
8846 host: string;
8847 /**
8848 * Sets or retrieves the host name part of the location or URL.
8849 */
8850 hostname: string;
8851 /**
8852 * Sets or retrieves a destination URL or an anchor point.
8853 */
8854 href: string;
8855 /**
8856 * Sets or gets whether clicks in this region cause action.
8857 */
8858 noHref: boolean;
8859 /**
8860 * Sets or retrieves the file name or path specified by the object.
8861 */
8862 pathname: string;
8863 /**
8864 * Sets or retrieves the port number associated with a URL.
8865 */
8866 port: string;
8867 /**
8868 * Sets or retrieves the protocol portion of a URL.
8869 */
8870 protocol: string;
8871 rel: string;
8872 /**
8873 * Sets or retrieves the substring of the href property that follows the question mark.
8874 */
8875 search: string;
8876 /**
8877 * Sets or retrieves the shape of the object.
8878 */
8879 shape: string;
8880 /**
8881 * Sets or retrieves the window or frame at which to target content.
8882 */
8883 target: string;
8884 /**
8885 * Returns a string representation of an object.
8886 */
8887 toString(): string;
8888}
8889
8890declare var HTMLAreaElement: {
8891 prototype: HTMLAreaElement;
8892 new(): HTMLAreaElement;
8893}
8894
8895interface HTMLAreasCollection extends HTMLCollection {
8896 /**
8897 * Adds an element to the areas, controlRange, or options collection.
8898 */
8899 add(element: HTMLElement, before?: HTMLElement | number): void;
8900 /**
8901 * Removes an element from the collection.
8902 */
8903 remove(index?: number): void;
8904}
8905
8906declare var HTMLAreasCollection: {
8907 prototype: HTMLAreasCollection;
8908 new(): HTMLAreasCollection;
8909}
8910
8911interface HTMLAudioElement extends HTMLMediaElement {
8912}
8913
8914declare var HTMLAudioElement: {
8915 prototype: HTMLAudioElement;
8916 new(): HTMLAudioElement;
8917}
8918
8919interface HTMLBRElement extends HTMLElement {
8920 /**
8921 * Sets or retrieves the side on which floating objects are not to be positioned when any IHTMLBlockElement is inserted into the document.
8922 */
8923 clear: string;
8924}
8925
8926declare var HTMLBRElement: {
8927 prototype: HTMLBRElement;
8928 new(): HTMLBRElement;
8929}
8930
8931interface HTMLBaseElement extends HTMLElement {
8932 /**
8933 * Gets or sets the baseline URL on which relative links are based.
8934 */
8935 href: string;
8936 /**
8937 * Sets or retrieves the window or frame at which to target content.
8938 */
8939 target: string;
8940}
8941
8942declare var HTMLBaseElement: {
8943 prototype: HTMLBaseElement;
8944 new(): HTMLBaseElement;
8945}
8946
8947interface HTMLBaseFontElement extends HTMLElement, DOML2DeprecatedColorProperty {
8948 /**
8949 * Sets or retrieves the current typeface family.
8950 */
8951 face: string;
8952 /**
8953 * Sets or retrieves the font size of the object.
8954 */
8955 size: number;
8956 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
8957}
8958
8959declare var HTMLBaseFontElement: {
8960 prototype: HTMLBaseFontElement;
8961 new(): HTMLBaseFontElement;
8962}
8963
8964interface HTMLBlockElement extends HTMLElement {
8965 /**
8966 * Sets or retrieves reference information about the object.
8967 */
8968 cite: string;
8969 clear: string;
8970 /**
8971 * Sets or retrieves the width of the object.
8972 */
8973 width: number;
8974}
8975
8976declare var HTMLBlockElement: {
8977 prototype: HTMLBlockElement;
8978 new(): HTMLBlockElement;
8979}
8980
8981interface HTMLBodyElement extends HTMLElement {
8982 aLink: any;
8983 background: string;
8984 bgColor: any;
8985 bgProperties: string;
8986 link: any;
8987 noWrap: boolean;
8988 onafterprint: (ev: Event) => any;
8989 onbeforeprint: (ev: Event) => any;
8990 onbeforeunload: (ev: BeforeUnloadEvent) => any;
8991 onblur: (ev: FocusEvent) => any;
8992 onerror: (ev: Event) => any;
8993 onfocus: (ev: FocusEvent) => any;
8994 onhashchange: (ev: HashChangeEvent) => any;
8995 onload: (ev: Event) => any;
8996 onmessage: (ev: MessageEvent) => any;
8997 onoffline: (ev: Event) => any;
8998 ononline: (ev: Event) => any;
8999 onorientationchange: (ev: Event) => any;
9000 onpagehide: (ev: PageTransitionEvent) => any;
9001 onpageshow: (ev: PageTransitionEvent) => any;
9002 onpopstate: (ev: PopStateEvent) => any;
9003 onresize: (ev: UIEvent) => any;
9004 onstorage: (ev: StorageEvent) => any;
9005 onunload: (ev: Event) => any;
9006 text: any;
9007 vLink: any;
9008 createTextRange(): TextRange;
9009 addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9010 addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9011 addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9012 addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9013 addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9014 addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9015 addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9016 addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9017 addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9018 addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9019 addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void;
9020 addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9021 addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9022 addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9023 addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9024 addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9025 addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9026 addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9027 addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9028 addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9029 addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9030 addEventListener(type: "afterprint", listener: (ev: Event) => any, useCapture?: boolean): void;
9031 addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void;
9032 addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9033 addEventListener(type: "beforecopy", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9034 addEventListener(type: "beforecut", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9035 addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9036 addEventListener(type: "beforepaste", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9037 addEventListener(type: "beforeprint", listener: (ev: Event) => any, useCapture?: boolean): void;
9038 addEventListener(type: "beforeunload", listener: (ev: BeforeUnloadEvent) => any, useCapture?: boolean): void;
9039 addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
9040 addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
9041 addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void;
9042 addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void;
9043 addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void;
9044 addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9045 addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void;
9046 addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9047 addEventListener(type: "copy", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9048 addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void;
9049 addEventListener(type: "cut", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9050 addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9051 addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9052 addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9053 addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9054 addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9055 addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9056 addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9057 addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9058 addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9059 addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void;
9060 addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void;
9061 addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void;
9062 addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
9063 addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
9064 addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
9065 addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
9066 addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9067 addEventListener(type: "hashchange", listener: (ev: HashChangeEvent) => any, useCapture?: boolean): void;
9068 addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void;
9069 addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
9070 addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
9071 addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
9072 addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
9073 addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
9074 addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void;
9075 addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void;
9076 addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void;
9077 addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9078 addEventListener(type: "message", listener: (ev: MessageEvent) => any, useCapture?: boolean): void;
9079 addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9080 addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9081 addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9082 addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9083 addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9084 addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9085 addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9086 addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void;
9087 addEventListener(type: "offline", listener: (ev: Event) => any, useCapture?: boolean): void;
9088 addEventListener(type: "online", listener: (ev: Event) => any, useCapture?: boolean): void;
9089 addEventListener(type: "orientationchange", listener: (ev: Event) => any, useCapture?: boolean): void;
9090 addEventListener(type: "pagehide", listener: (ev: PageTransitionEvent) => any, useCapture?: boolean): void;
9091 addEventListener(type: "pageshow", listener: (ev: PageTransitionEvent) => any, useCapture?: boolean): void;
9092 addEventListener(type: "paste", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9093 addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void;
9094 addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void;
9095 addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void;
9096 addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9097 addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9098 addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9099 addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9100 addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9101 addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9102 addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9103 addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9104 addEventListener(type: "popstate", listener: (ev: PopStateEvent) => any, useCapture?: boolean): void;
9105 addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
9106 addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void;
9107 addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void;
9108 addEventListener(type: "resize", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9109 addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9110 addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void;
9111 addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void;
9112 addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9113 addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void;
9114 addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void;
9115 addEventListener(type: "storage", listener: (ev: StorageEvent) => any, useCapture?: boolean): void;
9116 addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void;
9117 addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void;
9118 addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void;
9119 addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
9120 addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
9121 addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
9122 addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
9123 addEventListener(type: "unload", listener: (ev: Event) => any, useCapture?: boolean): void;
9124 addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void;
9125 addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void;
9126 addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void;
9127 addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void;
9128 addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void;
9129 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
9130}
9131
9132declare var HTMLBodyElement: {
9133 prototype: HTMLBodyElement;
9134 new(): HTMLBodyElement;
9135}
9136
9137interface HTMLButtonElement extends HTMLElement {
9138 /**
9139 * 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.
9140 */
9141 autofocus: boolean;
9142 disabled: boolean;
9143 /**
9144 * Retrieves a reference to the form that the object is embedded in.
9145 */
9146 form: HTMLFormElement;
9147 /**
9148 * Overrides the action attribute (where the data on a form is sent) on the parent form element.
9149 */
9150 formAction: string;
9151 /**
9152 * Used to override the encoding (formEnctype attribute) specified on the form element.
9153 */
9154 formEnctype: string;
9155 /**
9156 * Overrides the submit method attribute previously specified on a form element.
9157 */
9158 formMethod: string;
9159 /**
9160 * 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.
9161 */
9162 formNoValidate: string;
9163 /**
9164 * Overrides the target attribute on a form element.
9165 */
9166 formTarget: string;
9167 /**
9168 * Sets or retrieves the name of the object.
9169 */
9170 name: string;
9171 status: any;
9172 /**
9173 * Gets the classification and default behavior of the button.
9174 */
9175 type: string;
9176 /**
9177 * 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.
9178 */
9179 validationMessage: string;
9180 /**
9181 * Returns a ValidityState object that represents the validity states of an element.
9182 */
9183 validity: ValidityState;
9184 /**
9185 * Sets or retrieves the default or selected value of the control.
9186 */
9187 value: string;
9188 /**
9189 * Returns whether an element will successfully validate based on forms validation rules and constraints.
9190 */
9191 willValidate: boolean;
9192 /**
9193 * Returns whether a form will validate when it is submitted, without having to submit it.
9194 */
9195 checkValidity(): boolean;
9196 /**
9197 * Creates a TextRange object for the element.
9198 */
9199 createTextRange(): TextRange;
9200 /**
9201 * Sets a custom error message that is displayed when a form is submitted.
9202 * @param error Sets a custom error message that is displayed when a form is submitted.
9203 */
9204 setCustomValidity(error: string): void;
9205}
9206
9207declare var HTMLButtonElement: {
9208 prototype: HTMLButtonElement;
9209 new(): HTMLButtonElement;
9210}
9211
9212interface HTMLCanvasElement extends HTMLElement {
9213 /**
9214 * Gets or sets the height of a canvas element on a document.
9215 */
9216 height: number;
9217 /**
9218 * Gets or sets the width of a canvas element on a document.
9219 */
9220 width: number;
9221 /**
9222 * 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.
9223 * @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");
9224 */
9225 getContext(contextId: "2d"): CanvasRenderingContext2D;
9226 getContext(contextId: "experimental-webgl"): WebGLRenderingContext;
9227 getContext(contextId: string, ...args: any[]): CanvasRenderingContext2D | WebGLRenderingContext;
9228 /**
9229 * Returns a blob object encoded as a Portable Network Graphics (PNG) format from a canvas image or drawing.
9230 */
9231 msToBlob(): Blob;
9232 /**
9233 * Returns the content of the current canvas as an image that you can use as a source for another canvas or an HTML element.
9234 * @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.
9235 */
9236 toDataURL(type?: string, ...args: any[]): string;
9237 toBlob(): Blob;
9238}
9239
9240declare var HTMLCanvasElement: {
9241 prototype: HTMLCanvasElement;
9242 new(): HTMLCanvasElement;
9243}
9244
9245interface HTMLCollection {
9246 /**
9247 * Sets or retrieves the number of objects in a collection.
9248 */
9249 length: number;
9250 /**
9251 * Retrieves an object from various collections.
9252 */
9253 item(nameOrIndex?: any, optionalIndex?: any): Element;
9254 /**
9255 * Retrieves a select object or an object from an options collection.
9256 */
9257 namedItem(name: string): Element;
9258 [index: number]: Element;
9259}
9260
9261declare var HTMLCollection: {
9262 prototype: HTMLCollection;
9263 new(): HTMLCollection;
9264}
9265
9266interface HTMLDDElement extends HTMLElement {
9267 /**
9268 * Sets or retrieves whether the browser automatically performs wordwrap.
9269 */
9270 noWrap: boolean;
9271}
9272
9273declare var HTMLDDElement: {
9274 prototype: HTMLDDElement;
9275 new(): HTMLDDElement;
9276}
9277
9278interface HTMLDListElement extends HTMLElement {
9279 compact: boolean;
9280}
9281
9282declare var HTMLDListElement: {
9283 prototype: HTMLDListElement;
9284 new(): HTMLDListElement;
9285}
9286
9287interface HTMLDTElement extends HTMLElement {
9288 /**
9289 * Sets or retrieves whether the browser automatically performs wordwrap.
9290 */
9291 noWrap: boolean;
9292}
9293
9294declare var HTMLDTElement: {
9295 prototype: HTMLDTElement;
9296 new(): HTMLDTElement;
9297}
9298
9299interface HTMLDataListElement extends HTMLElement {
9300 options: HTMLCollection;
9301}
9302
9303declare var HTMLDataListElement: {
9304 prototype: HTMLDataListElement;
9305 new(): HTMLDataListElement;
9306}
9307
9308interface HTMLDirectoryElement extends HTMLElement {
9309 compact: boolean;
9310}
9311
9312declare var HTMLDirectoryElement: {
9313 prototype: HTMLDirectoryElement;
9314 new(): HTMLDirectoryElement;
9315}
9316
9317interface HTMLDivElement extends HTMLElement {
9318 /**
9319 * Sets or retrieves how the object is aligned with adjacent text.
9320 */
9321 align: string;
9322 /**
9323 * Sets or retrieves whether the browser automatically performs wordwrap.
9324 */
9325 noWrap: boolean;
9326}
9327
9328declare var HTMLDivElement: {
9329 prototype: HTMLDivElement;
9330 new(): HTMLDivElement;
9331}
9332
9333interface HTMLDocument extends Document {
9334}
9335
9336declare var HTMLDocument: {
9337 prototype: HTMLDocument;
9338 new(): HTMLDocument;
9339}
9340
9341interface HTMLElement extends Element {
9342 accessKey: string;
9343 children: HTMLCollection;
9344 contentEditable: string;
9345 dataset: DOMStringMap;
9346 dir: string;
9347 draggable: boolean;
9348 hidden: boolean;
9349 hideFocus: boolean;
9350 innerHTML: string;
9351 innerText: string;
9352 isContentEditable: boolean;
9353 lang: string;
9354 offsetHeight: number;
9355 offsetLeft: number;
9356 offsetParent: Element;
9357 offsetTop: number;
9358 offsetWidth: number;
9359 onabort: (ev: Event) => any;
9360 onactivate: (ev: UIEvent) => any;
9361 onbeforeactivate: (ev: UIEvent) => any;
9362 onbeforecopy: (ev: DragEvent) => any;
9363 onbeforecut: (ev: DragEvent) => any;
9364 onbeforedeactivate: (ev: UIEvent) => any;
9365 onbeforepaste: (ev: DragEvent) => any;
9366 onblur: (ev: FocusEvent) => any;
9367 oncanplay: (ev: Event) => any;
9368 oncanplaythrough: (ev: Event) => any;
9369 onchange: (ev: Event) => any;
9370 onclick: (ev: MouseEvent) => any;
9371 oncontextmenu: (ev: PointerEvent) => any;
9372 oncopy: (ev: DragEvent) => any;
9373 oncuechange: (ev: Event) => any;
9374 oncut: (ev: DragEvent) => any;
9375 ondblclick: (ev: MouseEvent) => any;
9376 ondeactivate: (ev: UIEvent) => any;
9377 ondrag: (ev: DragEvent) => any;
9378 ondragend: (ev: DragEvent) => any;
9379 ondragenter: (ev: DragEvent) => any;
9380 ondragleave: (ev: DragEvent) => any;
9381 ondragover: (ev: DragEvent) => any;
9382 ondragstart: (ev: DragEvent) => any;
9383 ondrop: (ev: DragEvent) => any;
9384 ondurationchange: (ev: Event) => any;
9385 onemptied: (ev: Event) => any;
9386 onended: (ev: Event) => any;
9387 onerror: (ev: Event) => any;
9388 onfocus: (ev: FocusEvent) => any;
9389 oninput: (ev: Event) => any;
9390 onkeydown: (ev: KeyboardEvent) => any;
9391 onkeypress: (ev: KeyboardEvent) => any;
9392 onkeyup: (ev: KeyboardEvent) => any;
9393 onload: (ev: Event) => any;
9394 onloadeddata: (ev: Event) => any;
9395 onloadedmetadata: (ev: Event) => any;
9396 onloadstart: (ev: Event) => any;
9397 onmousedown: (ev: MouseEvent) => any;
9398 onmouseenter: (ev: MouseEvent) => any;
9399 onmouseleave: (ev: MouseEvent) => any;
9400 onmousemove: (ev: MouseEvent) => any;
9401 onmouseout: (ev: MouseEvent) => any;
9402 onmouseover: (ev: MouseEvent) => any;
9403 onmouseup: (ev: MouseEvent) => any;
9404 onmousewheel: (ev: MouseWheelEvent) => any;
9405 onmscontentzoom: (ev: UIEvent) => any;
9406 onmsmanipulationstatechanged: (ev: MSManipulationEvent) => any;
9407 onpaste: (ev: DragEvent) => any;
9408 onpause: (ev: Event) => any;
9409 onplay: (ev: Event) => any;
9410 onplaying: (ev: Event) => any;
9411 onprogress: (ev: ProgressEvent) => any;
9412 onratechange: (ev: Event) => any;
9413 onreset: (ev: Event) => any;
9414 onscroll: (ev: UIEvent) => any;
9415 onseeked: (ev: Event) => any;
9416 onseeking: (ev: Event) => any;
9417 onselect: (ev: UIEvent) => any;
9418 onselectstart: (ev: Event) => any;
9419 onstalled: (ev: Event) => any;
9420 onsubmit: (ev: Event) => any;
9421 onsuspend: (ev: Event) => any;
9422 ontimeupdate: (ev: Event) => any;
9423 onvolumechange: (ev: Event) => any;
9424 onwaiting: (ev: Event) => any;
9425 outerHTML: string;
9426 outerText: string;
9427 spellcheck: boolean;
9428 style: CSSStyleDeclaration;
9429 tabIndex: number;
9430 title: string;
9431 blur(): void;
9432 click(): void;
9433 dragDrop(): boolean;
9434 focus(): void;
9435 insertAdjacentElement(position: string, insertedElement: Element): Element;
9436 insertAdjacentHTML(where: string, html: string): void;
9437 insertAdjacentText(where: string, text: string): void;
9438 msGetInputContext(): MSInputMethodContext;
9439 scrollIntoView(top?: boolean): void;
9440 setActive(): void;
9441 addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9442 addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9443 addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9444 addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9445 addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9446 addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9447 addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9448 addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9449 addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9450 addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9451 addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void;
9452 addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9453 addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9454 addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9455 addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9456 addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9457 addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9458 addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9459 addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9460 addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9461 addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9462 addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void;
9463 addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9464 addEventListener(type: "beforecopy", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9465 addEventListener(type: "beforecut", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9466 addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9467 addEventListener(type: "beforepaste", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9468 addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
9469 addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void;
9470 addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void;
9471 addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void;
9472 addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9473 addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void;
9474 addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9475 addEventListener(type: "copy", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9476 addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void;
9477 addEventListener(type: "cut", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9478 addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9479 addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9480 addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9481 addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9482 addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9483 addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9484 addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9485 addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9486 addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9487 addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void;
9488 addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void;
9489 addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void;
9490 addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
9491 addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
9492 addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9493 addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void;
9494 addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
9495 addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
9496 addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
9497 addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
9498 addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void;
9499 addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void;
9500 addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void;
9501 addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9502 addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9503 addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9504 addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9505 addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9506 addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9507 addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9508 addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9509 addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void;
9510 addEventListener(type: "paste", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9511 addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void;
9512 addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void;
9513 addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void;
9514 addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9515 addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9516 addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9517 addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9518 addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9519 addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9520 addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9521 addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9522 addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
9523 addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void;
9524 addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void;
9525 addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9526 addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void;
9527 addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void;
9528 addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9529 addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void;
9530 addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void;
9531 addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void;
9532 addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void;
9533 addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void;
9534 addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
9535 addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
9536 addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
9537 addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
9538 addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void;
9539 addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void;
9540 addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void;
9541 addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void;
9542 addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void;
9543 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
9544}
9545
9546declare var HTMLElement: {
9547 prototype: HTMLElement;
9548 new(): HTMLElement;
9549}
9550
9551interface HTMLEmbedElement extends HTMLElement, GetSVGDocument {
9552 /**
9553 * Sets or retrieves the height of the object.
9554 */
9555 height: string;
9556 hidden: any;
9557 /**
9558 * Gets or sets whether the DLNA PlayTo device is available.
9559 */
9560 msPlayToDisabled: boolean;
9561 /**
9562 * 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.
9563 */
9564 msPlayToPreferredSourceUri: string;
9565 /**
9566 * Gets or sets the primary DLNA PlayTo device.
9567 */
9568 msPlayToPrimary: boolean;
9569 /**
9570 * Gets the source associated with the media element for use by the PlayToManager.
9571 */
9572 msPlayToSource: any;
9573 /**
9574 * Sets or retrieves the name of the object.
9575 */
9576 name: string;
9577 /**
9578 * Retrieves the palette used for the embedded document.
9579 */
9580 palette: string;
9581 /**
9582 * Retrieves the URL of the plug-in used to view an embedded document.
9583 */
9584 pluginspage: string;
9585 readyState: string;
9586 /**
9587 * Sets or retrieves a URL to be loaded by the object.
9588 */
9589 src: string;
9590 /**
9591 * Sets or retrieves the height and width units of the embed object.
9592 */
9593 units: string;
9594 /**
9595 * Sets or retrieves the width of the object.
9596 */
9597 width: string;
9598 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
9599}
9600
9601declare var HTMLEmbedElement: {
9602 prototype: HTMLEmbedElement;
9603 new(): HTMLEmbedElement;
9604}
9605
9606interface HTMLFieldSetElement extends HTMLElement {
9607 /**
9608 * Sets or retrieves how the object is aligned with adjacent text.
9609 */
9610 align: string;
9611 disabled: boolean;
9612 /**
9613 * Retrieves a reference to the form that the object is embedded in.
9614 */
9615 form: HTMLFormElement;
9616 /**
9617 * 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.
9618 */
9619 validationMessage: string;
9620 /**
9621 * Returns a ValidityState object that represents the validity states of an element.
9622 */
9623 validity: ValidityState;
9624 /**
9625 * Returns whether an element will successfully validate based on forms validation rules and constraints.
9626 */
9627 willValidate: boolean;
9628 /**
9629 * Returns whether a form will validate when it is submitted, without having to submit it.
9630 */
9631 checkValidity(): boolean;
9632 /**
9633 * Sets a custom error message that is displayed when a form is submitted.
9634 * @param error Sets a custom error message that is displayed when a form is submitted.
9635 */
9636 setCustomValidity(error: string): void;
9637}
9638
9639declare var HTMLFieldSetElement: {
9640 prototype: HTMLFieldSetElement;
9641 new(): HTMLFieldSetElement;
9642}
9643
9644interface HTMLFontElement extends HTMLElement, DOML2DeprecatedColorProperty, DOML2DeprecatedSizeProperty {
9645 /**
9646 * Sets or retrieves the current typeface family.
9647 */
9648 face: string;
9649 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
9650}
9651
9652declare var HTMLFontElement: {
9653 prototype: HTMLFontElement;
9654 new(): HTMLFontElement;
9655}
9656
9657interface HTMLFormElement extends HTMLElement {
9658 /**
9659 * Sets or retrieves a list of character encodings for input data that must be accepted by the server processing the form.
9660 */
9661 acceptCharset: string;
9662 /**
9663 * Sets or retrieves the URL to which the form content is sent for processing.
9664 */
9665 action: string;
9666 /**
9667 * Specifies whether autocomplete is applied to an editable text field.
9668 */
9669 autocomplete: string;
9670 /**
9671 * Retrieves a collection, in source order, of all controls in a given form.
9672 */
9673 elements: HTMLCollection;
9674 /**
9675 * Sets or retrieves the MIME encoding for the form.
9676 */
9677 encoding: string;
9678 /**
9679 * Sets or retrieves the encoding type for the form.
9680 */
9681 enctype: string;
9682 /**
9683 * Sets or retrieves the number of objects in a collection.
9684 */
9685 length: number;
9686 /**
9687 * Sets or retrieves how to send the form data to the server.
9688 */
9689 method: string;
9690 /**
9691 * Sets or retrieves the name of the object.
9692 */
9693 name: string;
9694 /**
9695 * Designates a form that is not validated when submitted.
9696 */
9697 noValidate: boolean;
9698 /**
9699 * Sets or retrieves the window or frame at which to target content.
9700 */
9701 target: string;
9702 /**
9703 * Returns whether a form will validate when it is submitted, without having to submit it.
9704 */
9705 checkValidity(): boolean;
9706 /**
9707 * Retrieves a form object or an object from an elements collection.
9708 * @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.
9709 * @param index Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned.
9710 */
9711 item(name?: any, index?: any): any;
9712 /**
9713 * Retrieves a form object or an object from an elements collection.
9714 */
9715 namedItem(name: string): any;
9716 /**
9717 * Fires when the user resets a form.
9718 */
9719 reset(): void;
9720 /**
9721 * Fires when a FORM is about to be submitted.
9722 */
9723 submit(): void;
9724 [name: string]: any;
9725}
9726
9727declare var HTMLFormElement: {
9728 prototype: HTMLFormElement;
9729 new(): HTMLFormElement;
9730}
9731
9732interface HTMLFrameElement extends HTMLElement, GetSVGDocument {
9733 /**
9734 * Specifies the properties of a border drawn around an object.
9735 */
9736 border: string;
9737 /**
9738 * Sets or retrieves the border color of the object.
9739 */
9740 borderColor: any;
9741 /**
9742 * Retrieves the document object of the page or frame.
9743 */
9744 contentDocument: Document;
9745 /**
9746 * Retrieves the object of the specified.
9747 */
9748 contentWindow: Window;
9749 /**
9750 * Sets or retrieves whether to display a border for the frame.
9751 */
9752 frameBorder: string;
9753 /**
9754 * Sets or retrieves the amount of additional space between the frames.
9755 */
9756 frameSpacing: any;
9757 /**
9758 * Sets or retrieves the height of the object.
9759 */
9760 height: string | number;
9761 /**
9762 * Sets or retrieves a URI to a long description of the object.
9763 */
9764 longDesc: string;
9765 /**
9766 * Sets or retrieves the top and bottom margin heights before displaying the text in a frame.
9767 */
9768 marginHeight: string;
9769 /**
9770 * Sets or retrieves the left and right margin widths before displaying the text in a frame.
9771 */
9772 marginWidth: string;
9773 /**
9774 * Sets or retrieves the frame name.
9775 */
9776 name: string;
9777 /**
9778 * Sets or retrieves whether the user can resize the frame.
9779 */
9780 noResize: boolean;
9781 /**
9782 * Raised when the object has been completely received from the server.
9783 */
9784 onload: (ev: Event) => any;
9785 /**
9786 * Sets or retrieves whether the frame can be scrolled.
9787 */
9788 scrolling: string;
9789 /**
9790 * Sets the value indicating whether the source file of a frame or iframe has specific security restrictions applied.
9791 */
9792 security: any;
9793 /**
9794 * Sets or retrieves a URL to be loaded by the object.
9795 */
9796 src: string;
9797 /**
9798 * Sets or retrieves the width of the object.
9799 */
9800 width: string | number;
9801 addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9802 addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9803 addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9804 addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9805 addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9806 addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9807 addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9808 addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9809 addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9810 addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9811 addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void;
9812 addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9813 addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9814 addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9815 addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9816 addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9817 addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9818 addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9819 addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9820 addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9821 addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9822 addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void;
9823 addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9824 addEventListener(type: "beforecopy", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9825 addEventListener(type: "beforecut", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9826 addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9827 addEventListener(type: "beforepaste", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9828 addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
9829 addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void;
9830 addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void;
9831 addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void;
9832 addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9833 addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void;
9834 addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9835 addEventListener(type: "copy", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9836 addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void;
9837 addEventListener(type: "cut", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9838 addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9839 addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9840 addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9841 addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9842 addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9843 addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9844 addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9845 addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9846 addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9847 addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void;
9848 addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void;
9849 addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void;
9850 addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
9851 addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
9852 addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9853 addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void;
9854 addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
9855 addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
9856 addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
9857 addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
9858 addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
9859 addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void;
9860 addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void;
9861 addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void;
9862 addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9863 addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9864 addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9865 addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9866 addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9867 addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9868 addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9869 addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9870 addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void;
9871 addEventListener(type: "paste", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9872 addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void;
9873 addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void;
9874 addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void;
9875 addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9876 addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9877 addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9878 addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9879 addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9880 addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9881 addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9882 addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9883 addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
9884 addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void;
9885 addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void;
9886 addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9887 addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void;
9888 addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void;
9889 addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9890 addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void;
9891 addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void;
9892 addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void;
9893 addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void;
9894 addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void;
9895 addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
9896 addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
9897 addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
9898 addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
9899 addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void;
9900 addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void;
9901 addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void;
9902 addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void;
9903 addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void;
9904 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
9905}
9906
9907declare var HTMLFrameElement: {
9908 prototype: HTMLFrameElement;
9909 new(): HTMLFrameElement;
9910}
9911
9912interface HTMLFrameSetElement extends HTMLElement {
9913 border: string;
9914 /**
9915 * Sets or retrieves the border color of the object.
9916 */
9917 borderColor: any;
9918 /**
9919 * Sets or retrieves the frame widths of the object.
9920 */
9921 cols: string;
9922 /**
9923 * Sets or retrieves whether to display a border for the frame.
9924 */
9925 frameBorder: string;
9926 /**
9927 * Sets or retrieves the amount of additional space between the frames.
9928 */
9929 frameSpacing: any;
9930 name: string;
9931 onafterprint: (ev: Event) => any;
9932 onbeforeprint: (ev: Event) => any;
9933 onbeforeunload: (ev: BeforeUnloadEvent) => any;
9934 /**
9935 * Fires when the object loses the input focus.
9936 */
9937 onblur: (ev: FocusEvent) => any;
9938 onerror: (ev: Event) => any;
9939 /**
9940 * Fires when the object receives focus.
9941 */
9942 onfocus: (ev: FocusEvent) => any;
9943 onhashchange: (ev: HashChangeEvent) => any;
9944 onload: (ev: Event) => any;
9945 onmessage: (ev: MessageEvent) => any;
9946 onoffline: (ev: Event) => any;
9947 ononline: (ev: Event) => any;
9948 onorientationchange: (ev: Event) => any;
9949 onpagehide: (ev: PageTransitionEvent) => any;
9950 onpageshow: (ev: PageTransitionEvent) => any;
9951 onresize: (ev: UIEvent) => any;
9952 onstorage: (ev: StorageEvent) => any;
9953 onunload: (ev: Event) => any;
9954 /**
9955 * Sets or retrieves the frame heights of the object.
9956 */
9957 rows: string;
9958 addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9959 addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9960 addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9961 addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9962 addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9963 addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9964 addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9965 addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9966 addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9967 addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9968 addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void;
9969 addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9970 addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9971 addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9972 addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9973 addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9974 addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9975 addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9976 addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9977 addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9978 addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9979 addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void;
9980 addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9981 addEventListener(type: "beforecopy", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9982 addEventListener(type: "beforecut", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9983 addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9984 addEventListener(type: "beforepaste", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9985 addEventListener(type: "beforeprint", listener: (ev: Event) => any, useCapture?: boolean): void;
9986 addEventListener(type: "beforeunload", listener: (ev: BeforeUnloadEvent) => any, useCapture?: boolean): void;
9987 addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
9988 addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
9989 addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void;
9990 addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void;
9991 addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void;
9992 addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9993 addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void;
9994 addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9995 addEventListener(type: "copy", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9996 addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void;
9997 addEventListener(type: "cut", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9998 addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9999 addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10000 addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10001 addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10002 addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10003 addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10004 addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10005 addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10006 addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10007 addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void;
10008 addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void;
10009 addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void;
10010 addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
10011 addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
10012 addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
10013 addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
10014 addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10015 addEventListener(type: "hashchange", listener: (ev: HashChangeEvent) => any, useCapture?: boolean): void;
10016 addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void;
10017 addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
10018 addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
10019 addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
10020 addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
10021 addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
10022 addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void;
10023 addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void;
10024 addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void;
10025 addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10026 addEventListener(type: "message", listener: (ev: MessageEvent) => any, useCapture?: boolean): void;
10027 addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10028 addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10029 addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10030 addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10031 addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10032 addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10033 addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10034 addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void;
10035 addEventListener(type: "offline", listener: (ev: Event) => any, useCapture?: boolean): void;
10036 addEventListener(type: "online", listener: (ev: Event) => any, useCapture?: boolean): void;
10037 addEventListener(type: "orientationchange", listener: (ev: Event) => any, useCapture?: boolean): void;
10038 addEventListener(type: "pagehide", listener: (ev: PageTransitionEvent) => any, useCapture?: boolean): void;
10039 addEventListener(type: "pageshow", listener: (ev: PageTransitionEvent) => any, useCapture?: boolean): void;
10040 addEventListener(type: "paste", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10041 addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void;
10042 addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void;
10043 addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void;
10044 addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10045 addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10046 addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10047 addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10048 addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10049 addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10050 addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10051 addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10052 addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
10053 addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void;
10054 addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void;
10055 addEventListener(type: "resize", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10056 addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10057 addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void;
10058 addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void;
10059 addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10060 addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void;
10061 addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void;
10062 addEventListener(type: "storage", listener: (ev: StorageEvent) => any, useCapture?: boolean): void;
10063 addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void;
10064 addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void;
10065 addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void;
10066 addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
10067 addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
10068 addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
10069 addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
10070 addEventListener(type: "unload", listener: (ev: Event) => any, useCapture?: boolean): void;
10071 addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void;
10072 addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void;
10073 addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void;
10074 addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void;
10075 addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void;
10076 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
10077}
10078
10079declare var HTMLFrameSetElement: {
10080 prototype: HTMLFrameSetElement;
10081 new(): HTMLFrameSetElement;
10082}
10083
10084interface HTMLHRElement extends HTMLElement, DOML2DeprecatedColorProperty, DOML2DeprecatedSizeProperty {
10085 /**
10086 * Sets or retrieves how the object is aligned with adjacent text.
10087 */
10088 align: string;
10089 /**
10090 * Sets or retrieves whether the horizontal rule is drawn with 3-D shading.
10091 */
10092 noShade: boolean;
10093 /**
10094 * Sets or retrieves the width of the object.
10095 */
10096 width: number;
10097 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
10098}
10099
10100declare var HTMLHRElement: {
10101 prototype: HTMLHRElement;
10102 new(): HTMLHRElement;
10103}
10104
10105interface HTMLHeadElement extends HTMLElement {
10106 profile: string;
10107}
10108
10109declare var HTMLHeadElement: {
10110 prototype: HTMLHeadElement;
10111 new(): HTMLHeadElement;
10112}
10113
10114interface HTMLHeadingElement extends HTMLElement {
10115 /**
10116 * Sets or retrieves a value that indicates the table alignment.
10117 */
10118 align: string;
10119 clear: string;
10120}
10121
10122declare var HTMLHeadingElement: {
10123 prototype: HTMLHeadingElement;
10124 new(): HTMLHeadingElement;
10125}
10126
10127interface HTMLHtmlElement extends HTMLElement {
10128 /**
10129 * Sets or retrieves the DTD version that governs the current document.
10130 */
10131 version: string;
10132}
10133
10134declare var HTMLHtmlElement: {
10135 prototype: HTMLHtmlElement;
10136 new(): HTMLHtmlElement;
10137}
10138
10139interface HTMLIFrameElement extends HTMLElement, GetSVGDocument {
10140 /**
10141 * Sets or retrieves how the object is aligned with adjacent text.
10142 */
10143 align: string;
10144 allowFullscreen: boolean;
10145 /**
10146 * Specifies the properties of a border drawn around an object.
10147 */
10148 border: string;
10149 /**
10150 * Retrieves the document object of the page or frame.
10151 */
10152 contentDocument: Document;
10153 /**
10154 * Retrieves the object of the specified.
10155 */
10156 contentWindow: Window;
10157 /**
10158 * Sets or retrieves whether to display a border for the frame.
10159 */
10160 frameBorder: string;
10161 /**
10162 * Sets or retrieves the amount of additional space between the frames.
10163 */
10164 frameSpacing: any;
10165 /**
10166 * Sets or retrieves the height of the object.
10167 */
10168 height: string;
10169 /**
10170 * Sets or retrieves the horizontal margin for the object.
10171 */
10172 hspace: number;
10173 /**
10174 * Sets or retrieves a URI to a long description of the object.
10175 */
10176 longDesc: string;
10177 /**
10178 * Sets or retrieves the top and bottom margin heights before displaying the text in a frame.
10179 */
10180 marginHeight: string;
10181 /**
10182 * Sets or retrieves the left and right margin widths before displaying the text in a frame.
10183 */
10184 marginWidth: string;
10185 /**
10186 * Sets or retrieves the frame name.
10187 */
10188 name: string;
10189 /**
10190 * Sets or retrieves whether the user can resize the frame.
10191 */
10192 noResize: boolean;
10193 /**
10194 * Raised when the object has been completely received from the server.
10195 */
10196 onload: (ev: Event) => any;
10197 sandbox: DOMSettableTokenList;
10198 /**
10199 * Sets or retrieves whether the frame can be scrolled.
10200 */
10201 scrolling: string;
10202 /**
10203 * Sets the value indicating whether the source file of a frame or iframe has specific security restrictions applied.
10204 */
10205 security: any;
10206 /**
10207 * Sets or retrieves a URL to be loaded by the object.
10208 */
10209 src: string;
10210 /**
10211 * Sets or retrieves the vertical margin for the object.
10212 */
10213 vspace: number;
10214 /**
10215 * Sets or retrieves the width of the object.
10216 */
10217 width: string;
10218 addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10219 addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
10220 addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
10221 addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
10222 addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
10223 addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
10224 addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
10225 addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10226 addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
10227 addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10228 addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void;
10229 addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10230 addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10231 addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10232 addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10233 addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10234 addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10235 addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10236 addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10237 addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10238 addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10239 addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void;
10240 addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10241 addEventListener(type: "beforecopy", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10242 addEventListener(type: "beforecut", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10243 addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10244 addEventListener(type: "beforepaste", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10245 addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
10246 addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void;
10247 addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void;
10248 addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void;
10249 addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10250 addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void;
10251 addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10252 addEventListener(type: "copy", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10253 addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void;
10254 addEventListener(type: "cut", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10255 addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10256 addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10257 addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10258 addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10259 addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10260 addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10261 addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10262 addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10263 addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10264 addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void;
10265 addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void;
10266 addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void;
10267 addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
10268 addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
10269 addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10270 addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void;
10271 addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
10272 addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
10273 addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
10274 addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
10275 addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
10276 addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void;
10277 addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void;
10278 addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void;
10279 addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10280 addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10281 addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10282 addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10283 addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10284 addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10285 addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10286 addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10287 addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void;
10288 addEventListener(type: "paste", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10289 addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void;
10290 addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void;
10291 addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void;
10292 addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10293 addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10294 addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10295 addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10296 addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10297 addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10298 addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10299 addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10300 addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
10301 addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void;
10302 addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void;
10303 addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10304 addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void;
10305 addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void;
10306 addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10307 addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void;
10308 addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void;
10309 addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void;
10310 addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void;
10311 addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void;
10312 addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
10313 addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
10314 addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
10315 addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
10316 addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void;
10317 addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void;
10318 addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void;
10319 addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void;
10320 addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void;
10321 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
10322}
10323
10324declare var HTMLIFrameElement: {
10325 prototype: HTMLIFrameElement;
10326 new(): HTMLIFrameElement;
10327}
10328
10329interface HTMLImageElement extends HTMLElement {
10330 /**
10331 * Sets or retrieves how the object is aligned with adjacent text.
10332 */
10333 align: string;
10334 /**
10335 * Sets or retrieves a text alternative to the graphic.
10336 */
10337 alt: string;
10338 /**
10339 * Specifies the properties of a border drawn around an object.
10340 */
10341 border: string;
10342 /**
10343 * Retrieves whether the object is fully loaded.
10344 */
10345 complete: boolean;
10346 crossOrigin: string;
10347 currentSrc: string;
10348 /**
10349 * Sets or retrieves the height of the object.
10350 */
10351 height: number;
10352 /**
10353 * Sets or retrieves the width of the border to draw around the object.
10354 */
10355 hspace: number;
10356 /**
10357 * Sets or retrieves whether the image is a server-side image map.
10358 */
10359 isMap: boolean;
10360 /**
10361 * Sets or retrieves a Uniform Resource Identifier (URI) to a long description of the object.
10362 */
10363 longDesc: string;
10364 /**
10365 * Gets or sets whether the DLNA PlayTo device is available.
10366 */
10367 msPlayToDisabled: boolean;
10368 msPlayToPreferredSourceUri: string;
10369 /**
10370 * Gets or sets the primary DLNA PlayTo device.
10371 */
10372 msPlayToPrimary: boolean;
10373 /**
10374 * Gets the source associated with the media element for use by the PlayToManager.
10375 */
10376 msPlayToSource: any;
10377 /**
10378 * Sets or retrieves the name of the object.
10379 */
10380 name: string;
10381 /**
10382 * The original height of the image resource before sizing.
10383 */
10384 naturalHeight: number;
10385 /**
10386 * The original width of the image resource before sizing.
10387 */
10388 naturalWidth: number;
10389 /**
10390 * The address or URL of the a media resource that is to be considered.
10391 */
10392 src: string;
10393 srcset: string;
10394 /**
10395 * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
10396 */
10397 useMap: string;
10398 /**
10399 * Sets or retrieves the vertical margin for the object.
10400 */
10401 vspace: number;
10402 /**
10403 * Sets or retrieves the width of the object.
10404 */
10405 width: number;
10406 x: number;
10407 y: number;
10408 msGetAsCastingSource(): any;
10409}
10410
10411declare var HTMLImageElement: {
10412 prototype: HTMLImageElement;
10413 new(): HTMLImageElement;
10414 create(): HTMLImageElement;
10415}
10416
10417interface HTMLInputElement extends HTMLElement {
10418 /**
10419 * Sets or retrieves a comma-separated list of content types.
10420 */
10421 accept: string;
10422 /**
10423 * Sets or retrieves how the object is aligned with adjacent text.
10424 */
10425 align: string;
10426 /**
10427 * Sets or retrieves a text alternative to the graphic.
10428 */
10429 alt: string;
10430 /**
10431 * Specifies whether autocomplete is applied to an editable text field.
10432 */
10433 autocomplete: string;
10434 /**
10435 * 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.
10436 */
10437 autofocus: boolean;
10438 /**
10439 * Sets or retrieves the width of the border to draw around the object.
10440 */
10441 border: string;
10442 /**
10443 * Sets or retrieves the state of the check box or radio button.
10444 */
10445 checked: boolean;
10446 /**
10447 * Retrieves whether the object is fully loaded.
10448 */
10449 complete: boolean;
10450 /**
10451 * Sets or retrieves the state of the check box or radio button.
10452 */
10453 defaultChecked: boolean;
10454 /**
10455 * Sets or retrieves the initial contents of the object.
10456 */
10457 defaultValue: string;
10458 disabled: boolean;
10459 /**
10460 * Returns a FileList object on a file type input object.
10461 */
10462 files: FileList;
10463 /**
10464 * Retrieves a reference to the form that the object is embedded in.
10465 */
10466 form: HTMLFormElement;
10467 /**
10468 * Overrides the action attribute (where the data on a form is sent) on the parent form element.
10469 */
10470 formAction: string;
10471 /**
10472 * Used to override the encoding (formEnctype attribute) specified on the form element.
10473 */
10474 formEnctype: string;
10475 /**
10476 * Overrides the submit method attribute previously specified on a form element.
10477 */
10478 formMethod: string;
10479 /**
10480 * 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.
10481 */
10482 formNoValidate: string;
10483 /**
10484 * Overrides the target attribute on a form element.
10485 */
10486 formTarget: string;
10487 /**
10488 * Sets or retrieves the height of the object.
10489 */
10490 height: string;
10491 /**
10492 * Sets or retrieves the width of the border to draw around the object.
10493 */
10494 hspace: number;
10495 indeterminate: boolean;
10496 /**
10497 * Specifies the ID of a pre-defined datalist of options for an input element.
10498 */
10499 list: HTMLElement;
10500 /**
10501 * 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.
10502 */
10503 max: string;
10504 /**
10505 * Sets or retrieves the maximum number of characters that the user can enter in a text control.
10506 */
10507 maxLength: number;
10508 /**
10509 * 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.
10510 */
10511 min: string;
10512 /**
10513 * Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.
10514 */
10515 multiple: boolean;
10516 /**
10517 * Sets or retrieves the name of the object.
10518 */
10519 name: string;
10520 /**
10521 * Gets or sets a string containing a regular expression that the user's input must match.
10522 */
10523 pattern: string;
10524 /**
10525 * 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.
10526 */
10527 placeholder: string;
10528 readOnly: boolean;
10529 /**
10530 * When present, marks an element that can't be submitted without a value.
10531 */
10532 required: boolean;
10533 /**
10534 * Gets or sets the end position or offset of a text selection.
10535 */
10536 selectionEnd: number;
10537 /**
10538 * Gets or sets the starting position or offset of a text selection.
10539 */
10540 selectionStart: number;
10541 size: number;
10542 /**
10543 * The address or URL of the a media resource that is to be considered.
10544 */
10545 src: string;
10546 status: boolean;
10547 /**
10548 * 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.
10549 */
10550 step: string;
10551 /**
10552 * Returns the content type of the object.
10553 */
10554 type: string;
10555 /**
10556 * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
10557 */
10558 useMap: string;
10559 /**
10560 * 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.
10561 */
10562 validationMessage: string;
10563 /**
10564 * Returns a ValidityState object that represents the validity states of an element.
10565 */
10566 validity: ValidityState;
10567 /**
10568 * Returns the value of the data at the cursor's current position.
10569 */
10570 value: string;
10571 valueAsDate: Date;
10572 /**
10573 * Returns the input field value as a number.
10574 */
10575 valueAsNumber: number;
10576 /**
10577 * Sets or retrieves the vertical margin for the object.
10578 */
10579 vspace: number;
10580 /**
10581 * Sets or retrieves the width of the object.
10582 */
10583 width: string;
10584 /**
10585 * Returns whether an element will successfully validate based on forms validation rules and constraints.
10586 */
10587 willValidate: boolean;
10588 /**
10589 * Returns whether a form will validate when it is submitted, without having to submit it.
10590 */
10591 checkValidity(): boolean;
10592 /**
10593 * Creates a TextRange object for the element.
10594 */
10595 createTextRange(): TextRange;
10596 /**
10597 * Makes the selection equal to the current object.
10598 */
10599 select(): void;
10600 /**
10601 * Sets a custom error message that is displayed when a form is submitted.
10602 * @param error Sets a custom error message that is displayed when a form is submitted.
10603 */
10604 setCustomValidity(error: string): void;
10605 /**
10606 * Sets the start and end positions of a selection in a text field.
10607 * @param start The offset into the text field for the start of the selection.
10608 * @param end The offset into the text field for the end of the selection.
10609 */
10610 setSelectionRange(start: number, end: number): void;
10611 /**
10612 * 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.
10613 * @param n Value to decrement the value by.
10614 */
10615 stepDown(n?: number): void;
10616 /**
10617 * 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.
10618 * @param n Value to increment the value by.
10619 */
10620 stepUp(n?: number): void;
10621}
10622
10623declare var HTMLInputElement: {
10624 prototype: HTMLInputElement;
10625 new(): HTMLInputElement;
10626}
10627
10628interface HTMLIsIndexElement extends HTMLElement {
10629 /**
10630 * Sets or retrieves the URL to which the form content is sent for processing.
10631 */
10632 action: string;
10633 /**
10634 * Retrieves a reference to the form that the object is embedded in.
10635 */
10636 form: HTMLFormElement;
10637 prompt: string;
10638}
10639
10640declare var HTMLIsIndexElement: {
10641 prototype: HTMLIsIndexElement;
10642 new(): HTMLIsIndexElement;
10643}
10644
10645interface HTMLLIElement extends HTMLElement {
10646 type: string;
10647 /**
10648 * Sets or retrieves the value of a list item.
10649 */
10650 value: number;
10651}
10652
10653declare var HTMLLIElement: {
10654 prototype: HTMLLIElement;
10655 new(): HTMLLIElement;
10656}
10657
10658interface HTMLLabelElement extends HTMLElement {
10659 /**
10660 * Retrieves a reference to the form that the object is embedded in.
10661 */
10662 form: HTMLFormElement;
10663 /**
10664 * Sets or retrieves the object to which the given label object is assigned.
10665 */
10666 htmlFor: string;
10667}
10668
10669declare var HTMLLabelElement: {
10670 prototype: HTMLLabelElement;
10671 new(): HTMLLabelElement;
10672}
10673
10674interface HTMLLegendElement extends HTMLElement {
10675 /**
10676 * Retrieves a reference to the form that the object is embedded in.
10677 */
10678 align: string;
10679 /**
10680 * Retrieves a reference to the form that the object is embedded in.
10681 */
10682 form: HTMLFormElement;
10683}
10684
10685declare var HTMLLegendElement: {
10686 prototype: HTMLLegendElement;
10687 new(): HTMLLegendElement;
10688}
10689
10690interface HTMLLinkElement extends HTMLElement, LinkStyle {
10691 /**
10692 * Sets or retrieves the character set used to encode the object.
10693 */
10694 charset: string;
10695 disabled: boolean;
10696 /**
10697 * Sets or retrieves a destination URL or an anchor point.
10698 */
10699 href: string;
10700 /**
10701 * Sets or retrieves the language code of the object.
10702 */
10703 hreflang: string;
10704 /**
10705 * Sets or retrieves the media type.
10706 */
10707 media: string;
10708 /**
10709 * Sets or retrieves the relationship between the object and the destination of the link.
10710 */
10711 rel: string;
10712 /**
10713 * Sets or retrieves the relationship between the object and the destination of the link.
10714 */
10715 rev: string;
10716 /**
10717 * Sets or retrieves the window or frame at which to target content.
10718 */
10719 target: string;
10720 /**
10721 * Sets or retrieves the MIME type of the object.
10722 */
10723 type: string;
10724 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
10725}
10726
10727declare var HTMLLinkElement: {
10728 prototype: HTMLLinkElement;
10729 new(): HTMLLinkElement;
10730}
10731
10732interface HTMLMapElement extends HTMLElement {
10733 /**
10734 * Retrieves a collection of the area objects defined for the given map object.
10735 */
10736 areas: HTMLAreasCollection;
10737 /**
10738 * Sets or retrieves the name of the object.
10739 */
10740 name: string;
10741}
10742
10743declare var HTMLMapElement: {
10744 prototype: HTMLMapElement;
10745 new(): HTMLMapElement;
10746}
10747
10748interface HTMLMarqueeElement extends HTMLElement {
10749 behavior: string;
10750 bgColor: any;
10751 direction: string;
10752 height: string;
10753 hspace: number;
10754 loop: number;
10755 onbounce: (ev: Event) => any;
10756 onfinish: (ev: Event) => any;
10757 onstart: (ev: Event) => any;
10758 scrollAmount: number;
10759 scrollDelay: number;
10760 trueSpeed: boolean;
10761 vspace: number;
10762 width: string;
10763 start(): void;
10764 stop(): void;
10765 addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10766 addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
10767 addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
10768 addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
10769 addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
10770 addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
10771 addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
10772 addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10773 addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
10774 addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10775 addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void;
10776 addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10777 addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10778 addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10779 addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10780 addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10781 addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10782 addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10783 addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10784 addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10785 addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10786 addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void;
10787 addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10788 addEventListener(type: "beforecopy", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10789 addEventListener(type: "beforecut", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10790 addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10791 addEventListener(type: "beforepaste", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10792 addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
10793 addEventListener(type: "bounce", listener: (ev: Event) => any, useCapture?: boolean): void;
10794 addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void;
10795 addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void;
10796 addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void;
10797 addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10798 addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void;
10799 addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10800 addEventListener(type: "copy", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10801 addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void;
10802 addEventListener(type: "cut", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10803 addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10804 addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10805 addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10806 addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10807 addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10808 addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10809 addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10810 addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10811 addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10812 addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void;
10813 addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void;
10814 addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void;
10815 addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
10816 addEventListener(type: "finish", listener: (ev: Event) => any, useCapture?: boolean): void;
10817 addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
10818 addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10819 addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void;
10820 addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
10821 addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
10822 addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
10823 addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
10824 addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void;
10825 addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void;
10826 addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void;
10827 addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10828 addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10829 addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10830 addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10831 addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10832 addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10833 addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10834 addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10835 addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void;
10836 addEventListener(type: "paste", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10837 addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void;
10838 addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void;
10839 addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void;
10840 addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10841 addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10842 addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10843 addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10844 addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10845 addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10846 addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10847 addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10848 addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
10849 addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void;
10850 addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void;
10851 addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10852 addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void;
10853 addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void;
10854 addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10855 addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void;
10856 addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void;
10857 addEventListener(type: "start", listener: (ev: Event) => any, useCapture?: boolean): void;
10858 addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void;
10859 addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void;
10860 addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void;
10861 addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
10862 addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
10863 addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
10864 addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
10865 addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void;
10866 addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void;
10867 addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void;
10868 addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void;
10869 addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void;
10870 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
10871}
10872
10873declare var HTMLMarqueeElement: {
10874 prototype: HTMLMarqueeElement;
10875 new(): HTMLMarqueeElement;
10876}
10877
10878interface HTMLMediaElement extends HTMLElement {
10879 /**
10880 * Returns an AudioTrackList object with the audio tracks for a given video element.
10881 */
10882 audioTracks: AudioTrackList;
10883 /**
10884 * Gets or sets a value that indicates whether to start playing the media automatically.
10885 */
10886 autoplay: boolean;
10887 /**
10888 * Gets a collection of buffered time ranges.
10889 */
10890 buffered: TimeRanges;
10891 /**
10892 * 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).
10893 */
10894 controls: boolean;
10895 /**
10896 * Gets the address or URL of the current media resource that is selected by IHTMLMediaElement.
10897 */
10898 currentSrc: string;
10899 /**
10900 * Gets or sets the current playback position, in seconds.
10901 */
10902 currentTime: number;
10903 defaultMuted: boolean;
10904 /**
10905 * Gets or sets the default playback rate when the user is not using fast forward or reverse for a video or audio resource.
10906 */
10907 defaultPlaybackRate: number;
10908 /**
10909 * 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.
10910 */
10911 duration: number;
10912 /**
10913 * Gets information about whether the playback has ended or not.
10914 */
10915 ended: boolean;
10916 /**
10917 * Returns an object representing the current error state of the audio or video element.
10918 */
10919 error: MediaError;
10920 /**
10921 * Gets or sets a flag to specify whether playback should restart after it completes.
10922 */
10923 loop: boolean;
10924 /**
10925 * Specifies the purpose of the audio or video media, such as background audio or alerts.
10926 */
10927 msAudioCategory: string;
10928 /**
10929 * Specifies the output device id that the audio will be sent to.
10930 */
10931 msAudioDeviceType: string;
10932 msGraphicsTrustStatus: MSGraphicsTrust;
10933 /**
10934 * Gets the MSMediaKeys object, which is used for decrypting media data, that is associated with this media element.
10935 */
10936 msKeys: MSMediaKeys;
10937 /**
10938 * Gets or sets whether the DLNA PlayTo device is available.
10939 */
10940 msPlayToDisabled: boolean;
10941 /**
10942 * 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.
10943 */
10944 msPlayToPreferredSourceUri: string;
10945 /**
10946 * Gets or sets the primary DLNA PlayTo device.
10947 */
10948 msPlayToPrimary: boolean;
10949 /**
10950 * Gets the source associated with the media element for use by the PlayToManager.
10951 */
10952 msPlayToSource: any;
10953 /**
10954 * Specifies whether or not to enable low-latency playback on the media element.
10955 */
10956 msRealTime: boolean;
10957 /**
10958 * Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted.
10959 */
10960 muted: boolean;
10961 /**
10962 * Gets the current network activity for the element.
10963 */
10964 networkState: number;
10965 onmsneedkey: (ev: MSMediaKeyNeededEvent) => any;
10966 /**
10967 * Gets a flag that specifies whether playback is paused.
10968 */
10969 paused: boolean;
10970 /**
10971 * 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.
10972 */
10973 playbackRate: number;
10974 /**
10975 * Gets TimeRanges for the current media resource that has been played.
10976 */
10977 played: TimeRanges;
10978 /**
10979 * Gets or sets the current playback position, in seconds.
10980 */
10981 preload: string;
10982 readyState: number;
10983 /**
10984 * Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked.
10985 */
10986 seekable: TimeRanges;
10987 /**
10988 * Gets a flag that indicates whether the the client is currently moving to a new playback position in the media resource.
10989 */
10990 seeking: boolean;
10991 /**
10992 * The address or URL of the a media resource that is to be considered.
10993 */
10994 src: string;
10995 textTracks: TextTrackList;
10996 videoTracks: VideoTrackList;
10997 /**
10998 * Gets or sets the volume level for audio portions of the media element.
10999 */
11000 volume: number;
11001 addTextTrack(kind: string, label?: string, language?: string): TextTrack;
11002 /**
11003 * Returns a string that specifies whether the client can play a given media resource type.
11004 */
11005 canPlayType(type: string): string;
11006 /**
11007 * Fires immediately after the client loads the object.
11008 */
11009 load(): void;
11010 /**
11011 * Clears all effects from the media pipeline.
11012 */
11013 msClearEffects(): void;
11014 msGetAsCastingSource(): any;
11015 /**
11016 * Inserts the specified audio effect into media pipeline.
11017 */
11018 msInsertAudioEffect(activatableClassId: string, effectRequired: boolean, config?: any): void;
11019 msSetMediaKeys(mediaKeys: MSMediaKeys): void;
11020 /**
11021 * Specifies the media protection manager for a given media pipeline.
11022 */
11023 msSetMediaProtectionManager(mediaProtectionManager?: any): void;
11024 /**
11025 * 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.
11026 */
11027 pause(): void;
11028 /**
11029 * Loads and starts playback of a media resource.
11030 */
11031 play(): void;
11032 HAVE_CURRENT_DATA: number;
11033 HAVE_ENOUGH_DATA: number;
11034 HAVE_FUTURE_DATA: number;
11035 HAVE_METADATA: number;
11036 HAVE_NOTHING: number;
11037 NETWORK_EMPTY: number;
11038 NETWORK_IDLE: number;
11039 NETWORK_LOADING: number;
11040 NETWORK_NO_SOURCE: number;
11041 addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
11042 addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
11043 addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
11044 addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
11045 addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
11046 addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
11047 addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
11048 addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
11049 addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
11050 addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
11051 addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void;
11052 addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
11053 addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
11054 addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
11055 addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
11056 addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
11057 addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
11058 addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
11059 addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
11060 addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
11061 addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
11062 addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void;
11063 addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
11064 addEventListener(type: "beforecopy", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
11065 addEventListener(type: "beforecut", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
11066 addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
11067 addEventListener(type: "beforepaste", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
11068 addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
11069 addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void;
11070 addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void;
11071 addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void;
11072 addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
11073 addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void;
11074 addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
11075 addEventListener(type: "copy", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
11076 addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void;
11077 addEventListener(type: "cut", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
11078 addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
11079 addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
11080 addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
11081 addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
11082 addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
11083 addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
11084 addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
11085 addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
11086 addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
11087 addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void;
11088 addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void;
11089 addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void;
11090 addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
11091 addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
11092 addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
11093 addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void;
11094 addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
11095 addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
11096 addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
11097 addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
11098 addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void;
11099 addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void;
11100 addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void;
11101 addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
11102 addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
11103 addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
11104 addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
11105 addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
11106 addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
11107 addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
11108 addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
11109 addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void;
11110 addEventListener(type: "msneedkey", listener: (ev: MSMediaKeyNeededEvent) => any, useCapture?: boolean): void;
11111 addEventListener(type: "paste", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
11112 addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void;
11113 addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void;
11114 addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void;
11115 addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
11116 addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
11117 addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
11118 addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
11119 addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
11120 addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
11121 addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
11122 addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
11123 addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
11124 addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void;
11125 addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void;
11126 addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
11127 addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void;
11128 addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void;
11129 addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
11130 addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void;
11131 addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void;
11132 addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void;
11133 addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void;
11134 addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void;
11135 addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
11136 addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
11137 addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
11138 addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
11139 addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void;
11140 addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void;
11141 addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void;
11142 addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void;
11143 addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void;
11144 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
11145}
11146
11147declare var HTMLMediaElement: {
11148 prototype: HTMLMediaElement;
11149 new(): HTMLMediaElement;
11150 HAVE_CURRENT_DATA: number;
11151 HAVE_ENOUGH_DATA: number;
11152 HAVE_FUTURE_DATA: number;
11153 HAVE_METADATA: number;
11154 HAVE_NOTHING: number;
11155 NETWORK_EMPTY: number;
11156 NETWORK_IDLE: number;
11157 NETWORK_LOADING: number;
11158 NETWORK_NO_SOURCE: number;
11159}
11160
11161interface HTMLMenuElement extends HTMLElement {
11162 compact: boolean;
11163 type: string;
11164}
11165
11166declare var HTMLMenuElement: {
11167 prototype: HTMLMenuElement;
11168 new(): HTMLMenuElement;
11169}
11170
11171interface HTMLMetaElement extends HTMLElement {
11172 /**
11173 * Sets or retrieves the character set used to encode the object.
11174 */
11175 charset: string;
11176 /**
11177 * Gets or sets meta-information to associate with httpEquiv or name.
11178 */
11179 content: string;
11180 /**
11181 * Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header.
11182 */
11183 httpEquiv: string;
11184 /**
11185 * Sets or retrieves the value specified in the content attribute of the meta object.
11186 */
11187 name: string;
11188 /**
11189 * Sets or retrieves a scheme to be used in interpreting the value of a property specified for the object.
11190 */
11191 scheme: string;
11192 /**
11193 * Sets or retrieves the URL property that will be loaded after the specified time has elapsed.
11194 */
11195 url: string;
11196}
11197
11198declare var HTMLMetaElement: {
11199 prototype: HTMLMetaElement;
11200 new(): HTMLMetaElement;
11201}
11202
11203interface HTMLModElement extends HTMLElement {
11204 /**
11205 * Sets or retrieves reference information about the object.
11206 */
11207 cite: string;
11208 /**
11209 * Sets or retrieves the date and time of a modification to the object.
11210 */
11211 dateTime: string;
11212}
11213
11214declare var HTMLModElement: {
11215 prototype: HTMLModElement;
11216 new(): HTMLModElement;
11217}
11218
11219interface HTMLNextIdElement extends HTMLElement {
11220 n: string;
11221}
11222
11223declare var HTMLNextIdElement: {
11224 prototype: HTMLNextIdElement;
11225 new(): HTMLNextIdElement;
11226}
11227
11228interface HTMLOListElement extends HTMLElement {
11229 compact: boolean;
11230 /**
11231 * The starting number.
11232 */
11233 start: number;
11234 type: string;
11235}
11236
11237declare var HTMLOListElement: {
11238 prototype: HTMLOListElement;
11239 new(): HTMLOListElement;
11240}
11241
11242interface HTMLObjectElement extends HTMLElement, GetSVGDocument {
11243 /**
11244 * 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.
11245 */
11246 BaseHref: string;
11247 align: string;
11248 /**
11249 * Sets or retrieves a text alternative to the graphic.
11250 */
11251 alt: string;
11252 /**
11253 * Gets or sets the optional alternative HTML script to execute if the object fails to load.
11254 */
11255 altHtml: string;
11256 /**
11257 * Sets or retrieves a character string that can be used to implement your own archive functionality for the object.
11258 */
11259 archive: string;
11260 border: string;
11261 /**
11262 * Sets or retrieves the URL of the file containing the compiled Java class.
11263 */
11264 code: string;
11265 /**
11266 * Sets or retrieves the URL of the component.
11267 */
11268 codeBase: string;
11269 /**
11270 * Sets or retrieves the Internet media type for the code associated with the object.
11271 */
11272 codeType: string;
11273 /**
11274 * Retrieves the document object of the page or frame.
11275 */
11276 contentDocument: Document;
11277 /**
11278 * Sets or retrieves the URL that references the data of the object.
11279 */
11280 data: string;
11281 declare: boolean;
11282 /**
11283 * Retrieves a reference to the form that the object is embedded in.
11284 */
11285 form: HTMLFormElement;
11286 /**
11287 * Sets or retrieves the height of the object.
11288 */
11289 height: string;
11290 hspace: number;
11291 /**
11292 * Gets or sets whether the DLNA PlayTo device is available.
11293 */
11294 msPlayToDisabled: boolean;
11295 /**
11296 * 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.
11297 */
11298 msPlayToPreferredSourceUri: string;
11299 /**
11300 * Gets or sets the primary DLNA PlayTo device.
11301 */
11302 msPlayToPrimary: boolean;
11303 /**
11304 * Gets the source associated with the media element for use by the PlayToManager.
11305 */
11306 msPlayToSource: any;
11307 /**
11308 * Sets or retrieves the name of the object.
11309 */
11310 name: string;
11311 /**
11312 * Retrieves the contained object.
11313 */
11314 object: any;
11315 readyState: number;
11316 /**
11317 * Sets or retrieves a message to be displayed while an object is loading.
11318 */
11319 standby: string;
11320 /**
11321 * Sets or retrieves the MIME type of the object.
11322 */
11323 type: string;
11324 /**
11325 * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
11326 */
11327 useMap: string;
11328 /**
11329 * 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.
11330 */
11331 validationMessage: string;
11332 /**
11333 * Returns a ValidityState object that represents the validity states of an element.
11334 */
11335 validity: ValidityState;
11336 vspace: number;
11337 /**
11338 * Sets or retrieves the width of the object.
11339 */
11340 width: string;
11341 /**
11342 * Returns whether an element will successfully validate based on forms validation rules and constraints.
11343 */
11344 willValidate: boolean;
11345 /**
11346 * Returns whether a form will validate when it is submitted, without having to submit it.
11347 */
11348 checkValidity(): boolean;
11349 /**
11350 * Sets a custom error message that is displayed when a form is submitted.
11351 * @param error Sets a custom error message that is displayed when a form is submitted.
11352 */
11353 setCustomValidity(error: string): void;
11354 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
11355}
11356
11357declare var HTMLObjectElement: {
11358 prototype: HTMLObjectElement;
11359 new(): HTMLObjectElement;
11360}
11361
11362interface HTMLOptGroupElement extends HTMLElement {
11363 /**
11364 * Sets or retrieves the status of an option.
11365 */
11366 defaultSelected: boolean;
11367 disabled: boolean;
11368 /**
11369 * Retrieves a reference to the form that the object is embedded in.
11370 */
11371 form: HTMLFormElement;
11372 /**
11373 * Sets or retrieves the ordinal position of an option in a list box.
11374 */
11375 index: number;
11376 /**
11377 * Sets or retrieves a value that you can use to implement your own label functionality for the object.
11378 */
11379 label: string;
11380 /**
11381 * Sets or retrieves whether the option in the list box is the default item.
11382 */
11383 selected: boolean;
11384 /**
11385 * Sets or retrieves the text string specified by the option tag.
11386 */
11387 text: string;
11388 /**
11389 * Sets or retrieves the value which is returned to the server when the form control is submitted.
11390 */
11391 value: string;
11392}
11393
11394declare var HTMLOptGroupElement: {
11395 prototype: HTMLOptGroupElement;
11396 new(): HTMLOptGroupElement;
11397}
11398
11399interface HTMLOptionElement extends HTMLElement {
11400 /**
11401 * Sets or retrieves the status of an option.
11402 */
11403 defaultSelected: boolean;
11404 disabled: boolean;
11405 /**
11406 * Retrieves a reference to the form that the object is embedded in.
11407 */
11408 form: HTMLFormElement;
11409 /**
11410 * Sets or retrieves the ordinal position of an option in a list box.
11411 */
11412 index: number;
11413 /**
11414 * Sets or retrieves a value that you can use to implement your own label functionality for the object.
11415 */
11416 label: string;
11417 /**
11418 * Sets or retrieves whether the option in the list box is the default item.
11419 */
11420 selected: boolean;
11421 /**
11422 * Sets or retrieves the text string specified by the option tag.
11423 */
11424 text: string;
11425 /**
11426 * Sets or retrieves the value which is returned to the server when the form control is submitted.
11427 */
11428 value: string;
11429}
11430
11431declare var HTMLOptionElement: {
11432 prototype: HTMLOptionElement;
11433 new(): HTMLOptionElement;
11434 create(): HTMLOptionElement;
11435}
11436
11437interface HTMLParagraphElement extends HTMLElement {
11438 /**
11439 * Sets or retrieves how the object is aligned with adjacent text.
11440 */
11441 align: string;
11442 clear: string;
11443}
11444
11445declare var HTMLParagraphElement: {
11446 prototype: HTMLParagraphElement;
11447 new(): HTMLParagraphElement;
11448}
11449
11450interface HTMLParamElement extends HTMLElement {
11451 /**
11452 * Sets or retrieves the name of an input parameter for an element.
11453 */
11454 name: string;
11455 /**
11456 * Sets or retrieves the content type of the resource designated by the value attribute.
11457 */
11458 type: string;
11459 /**
11460 * Sets or retrieves the value of an input parameter for an element.
11461 */
11462 value: string;
11463 /**
11464 * Sets or retrieves the data type of the value attribute.
11465 */
11466 valueType: string;
11467}
11468
11469declare var HTMLParamElement: {
11470 prototype: HTMLParamElement;
11471 new(): HTMLParamElement;
11472}
11473
11474interface HTMLPhraseElement extends HTMLElement {
11475 /**
11476 * Sets or retrieves reference information about the object.
11477 */
11478 cite: string;
11479 /**
11480 * Sets or retrieves the date and time of a modification to the object.
11481 */
11482 dateTime: string;
11483}
11484
11485declare var HTMLPhraseElement: {
11486 prototype: HTMLPhraseElement;
11487 new(): HTMLPhraseElement;
11488}
11489
11490interface HTMLPreElement extends HTMLElement {
11491 /**
11492 * Indicates a citation by rendering text in italic type.
11493 */
11494 cite: string;
11495 clear: string;
11496 /**
11497 * Sets or gets a value that you can use to implement your own width functionality for the ob