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

11481lines · 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"/>
17/////////////////////////////
18/// ECMAScript APIs
19/////////////////////////////
20
21declare const NaN: number;
22declare const Infinity: number;
23
24/**
25 * Evaluates JavaScript code and executes it.
26 * @param x A String value that contains valid JavaScript code.
27 */
28declare function eval(x: string): any;
29
30/**
31 * Converts A string to an integer.
32 * @param s A string to convert into a number.
33 * @param radix A value between 2 and 36 that specifies the base of the number in numString.
34 * If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.
35 * All other strings are considered decimal.
36 */
37declare function parseInt(s: string, radix?: number): number;
38
39/**
40 * Converts a string to a floating-point number.
41 * @param string A string that contains a floating-point number.
42 */
43declare function parseFloat(string: string): number;
44
45/**
46 * Returns a Boolean value that indicates whether a value is the reserved value NaN (not a number).
47 * @param number A numeric value.
48 */
49declare function isNaN(number: number): boolean;
50
51/**
52 * Determines whether a supplied number is finite.
53 * @param number Any numeric value.
54 */
55declare function isFinite(number: number): boolean;
56
57/**
58 * Gets the unencoded version of an encoded Uniform Resource Identifier (URI).
59 * @param encodedURI A value representing an encoded URI.
60 */
61declare function decodeURI(encodedURI: string): string;
62
63/**
64 * Gets the unencoded version of an encoded component of a Uniform Resource Identifier (URI).
65 * @param encodedURIComponent A value representing an encoded URI component.
66 */
67declare function decodeURIComponent(encodedURIComponent: string): string;
68
69/**
70 * Encodes a text string as a valid Uniform Resource Identifier (URI)
71 * @param uri A value representing an encoded URI.
72 */
73declare function encodeURI(uri: string): string;
74
75/**
76 * Encodes a text string as a valid component of a Uniform Resource Identifier (URI).
77 * @param uriComponent A value representing an encoded URI component.
78 */
79declare function encodeURIComponent(uriComponent: string): string;
80
81interface PropertyDescriptor {
82 configurable?: boolean;
83 enumerable?: boolean;
84 value?: any;
85 writable?: boolean;
86 get? (): any;
87 set? (v: any): void;
88}
89
90interface PropertyDescriptorMap {
91 [s: string]: PropertyDescriptor;
92}
93
94interface Object {
95 /** The initial value of Object.prototype.constructor is the standard built-in Object constructor. */
96 constructor: Function;
97
98 /** Returns a string representation of an object. */
99 toString(): string;
100
101 /** Returns a date converted to a string using the current locale. */
102 toLocaleString(): string;
103
104 /** Returns the primitive value of the specified object. */
105 valueOf(): Object;
106
107 /**
108 * Determines whether an object has a property with the specified name.
109 * @param v A property name.
110 */
111 hasOwnProperty(v: string): boolean;
112
113 /**
114 * Determines whether an object exists in another object's prototype chain.
115 * @param v Another object whose prototype chain is to be checked.
116 */
117 isPrototypeOf(v: Object): boolean;
118
119 /**
120 * Determines whether a specified property is enumerable.
121 * @param v A property name.
122 */
123 propertyIsEnumerable(v: string): boolean;
124}
125
126interface ObjectConstructor {
127 new (value?: any): Object;
128 (): any;
129 (value: any): any;
130
131 /** A reference to the prototype for a class of objects. */
132 readonly prototype: Object;
133
134 /**
135 * Returns the prototype of an object.
136 * @param o The object that references the prototype.
137 */
138 getPrototypeOf(o: any): any;
139
140 /**
141 * Gets the own property descriptor of the specified object.
142 * An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.
143 * @param o Object that contains the property.
144 * @param p Name of the property.
145 */
146 getOwnPropertyDescriptor(o: any, p: string): PropertyDescriptor;
147
148 /**
149 * Returns the names of the own properties of an object. The own properties of an object are those that are defined directly
150 * on that object, and are not inherited from the object's prototype. The properties of an object include both fields (objects) and functions.
151 * @param o Object that contains the own properties.
152 */
153 getOwnPropertyNames(o: any): string[];
154
155 /**
156 * Creates an object that has the specified prototype, and that optionally contains specified properties.
157 * @param o Object to use as a prototype. May be null
158 * @param properties JavaScript object that contains one or more property descriptors.
159 */
160 create(o: any, properties?: PropertyDescriptorMap): any;
161
162 /**
163 * Adds a property to an object, or modifies attributes of an existing property.
164 * @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.
165 * @param p The property name.
166 * @param attributes Descriptor for the property. It can be for a data property or an accessor property.
167 */
168 defineProperty(o: any, p: string, attributes: PropertyDescriptor): any;
169
170 /**
171 * Adds one or more properties to an object, and/or modifies attributes of existing properties.
172 * @param o Object on which to add or modify the properties. This can be a native JavaScript object or a DOM object.
173 * @param properties JavaScript object that contains one or more descriptor objects. Each descriptor object describes a data property or an accessor property.
174 */
175 defineProperties(o: any, properties: PropertyDescriptorMap): any;
176
177 /**
178 * Prevents the modification of attributes of existing properties, and prevents the addition of new properties.
179 * @param o Object on which to lock the attributes.
180 */
181 seal<T>(o: T): T;
182
183 /**
184 * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
185 * @param o Object on which to lock the attributes.
186 */
187 freeze<T>(o: T): T;
188
189 /**
190 * Prevents the addition of new properties to an object.
191 * @param o Object to make non-extensible.
192 */
193 preventExtensions<T>(o: T): T;
194
195 /**
196 * Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object.
197 * @param o Object to test.
198 */
199 isSealed(o: any): boolean;
200
201 /**
202 * Returns true if existing property attributes and values cannot be modified in an object, and new properties cannot be added to the object.
203 * @param o Object to test.
204 */
205 isFrozen(o: any): boolean;
206
207 /**
208 * Returns a value that indicates whether new properties can be added to an object.
209 * @param o Object to test.
210 */
211 isExtensible(o: any): boolean;
212
213 /**
214 * Returns the names of the enumerable properties and methods of an object.
215 * @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.
216 */
217 keys(o: any): string[];
218}
219
220/**
221 * Provides functionality common to all JavaScript objects.
222 */
223declare const Object: ObjectConstructor;
224
225/**
226 * Creates a new function.
227 */
228interface Function {
229 /**
230 * Calls the function, substituting the specified object for the this value of the function, and the specified array for the arguments of the function.
231 * @param thisArg The object to be used as the this object.
232 * @param argArray A set of arguments to be passed to the function.
233 */
234 apply(thisArg: any, argArray?: any): any;
235
236 /**
237 * Calls a method of an object, substituting another object for the current object.
238 * @param thisArg The object to be used as the current object.
239 * @param argArray A list of arguments to be passed to the method.
240 */
241 call(thisArg: any, ...argArray: any[]): any;
242
243 /**
244 * For a given function, creates a bound function that has the same body as the original function.
245 * The this object of the bound function is associated with the specified object, and has the specified initial parameters.
246 * @param thisArg An object to which the this keyword can refer inside the new function.
247 * @param argArray A list of arguments to be passed to the new function.
248 */
249 bind(thisArg: any, ...argArray: any[]): any;
250
251 prototype: any;
252 readonly length: number;
253
254 // Non-standard extensions
255 arguments: any;
256 caller: Function;
257}
258
259interface FunctionConstructor {
260 /**
261 * Creates a new function.
262 * @param args A list of arguments the function accepts.
263 */
264 new (...args: string[]): Function;
265 (...args: string[]): Function;
266 readonly prototype: Function;
267}
268
269declare const Function: FunctionConstructor;
270
271interface IArguments {
272 [index: number]: any;
273 length: number;
274 callee: Function;
275}
276
277interface String {
278 /** Returns a string representation of a string. */
279 toString(): string;
280
281 /**
282 * Returns the character at the specified index.
283 * @param pos The zero-based index of the desired character.
284 */
285 charAt(pos: number): string;
286
287 /**
288 * Returns the Unicode value of the character at the specified location.
289 * @param index The zero-based index of the desired character. If there is no character at the specified index, NaN is returned.
290 */
291 charCodeAt(index: number): number;
292
293 /**
294 * Returns a string that contains the concatenation of two or more strings.
295 * @param strings The strings to append to the end of the string.
296 */
297 concat(...strings: string[]): string;
298
299 /**
300 * Returns the position of the first occurrence of a substring.
301 * @param searchString The substring to search for in the string
302 * @param position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string.
303 */
304 indexOf(searchString: string, position?: number): number;
305
306 /**
307 * Returns the last occurrence of a substring in the string.
308 * @param searchString The substring to search for.
309 * @param position The index at which to begin searching. If omitted, the search begins at the end of the string.
310 */
311 lastIndexOf(searchString: string, position?: number): number;
312
313 /**
314 * Determines whether two strings are equivalent in the current locale.
315 * @param that String to compare to target string
316 */
317 localeCompare(that: string): number;
318
319 /**
320 * Matches a string with a regular expression, and returns an array containing the results of that search.
321 * @param regexp A variable name or string literal containing the regular expression pattern and flags.
322 */
323 match(regexp: string): RegExpMatchArray;
324
325 /**
326 * Matches a string with a regular expression, and returns an array containing the results of that search.
327 * @param regexp A regular expression object that contains the regular expression pattern and applicable flags.
328 */
329 match(regexp: RegExp): RegExpMatchArray;
330
331 /**
332 * Replaces text in a string, using a regular expression or search string.
333 * @param searchValue A string that represents the regular expression.
334 * @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.
335 */
336 replace(searchValue: string, replaceValue: string): string;
337
338 /**
339 * Replaces text in a string, using a regular expression or search string.
340 * @param searchValue A string that represents the regular expression.
341 * @param replacer A function that returns the replacement text.
342 */
343 replace(searchValue: string, replacer: (substring: string, ...args: any[]) => string): string;
344
345 /**
346 * Replaces text in a string, using a regular expression or search string.
347 * @param searchValue A Regular Expression object containing the regular expression pattern and applicable flags.
348 * @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.
349 */
350 replace(searchValue: RegExp, replaceValue: string): string;
351
352 /**
353 * Replaces text in a string, using a regular expression or search string.
354 * @param searchValue A Regular Expression object containing the regular expression pattern and applicable flags
355 * @param replacer A function that returns the replacement text.
356 */
357 replace(searchValue: RegExp, replacer: (substring: string, ...args: any[]) => string): string;
358
359 /**
360 * Finds the first substring match in a regular expression search.
361 * @param regexp The regular expression pattern and applicable flags.
362 */
363 search(regexp: string): number;
364
365 /**
366 * Finds the first substring match in a regular expression search.
367 * @param regexp The regular expression pattern and applicable flags.
368 */
369 search(regexp: RegExp): number;
370
371 /**
372 * Returns a section of a string.
373 * @param start The index to the beginning of the specified portion of stringObj.
374 * @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.
375 * If this value is not specified, the substring continues to the end of stringObj.
376 */
377 slice(start?: number, end?: number): string;
378
379 /**
380 * Split a string into substrings using the specified separator and return them as an array.
381 * @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.
382 * @param limit A value used to limit the number of elements returned in the array.
383 */
384 split(separator: string, limit?: number): string[];
385
386 /**
387 * Split a string into substrings using the specified separator and return them as an array.
388 * @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.
389 * @param limit A value used to limit the number of elements returned in the array.
390 */
391 split(separator: RegExp, limit?: number): string[];
392
393 /**
394 * Returns the substring at the specified location within a String object.
395 * @param start The zero-based index number indicating the beginning of the substring.
396 * @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.
397 * If end is omitted, the characters from start through the end of the original string are returned.
398 */
399 substring(start: number, end?: number): string;
400
401 /** Converts all the alphabetic characters in a string to lowercase. */
402 toLowerCase(): string;
403
404 /** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */
405 toLocaleLowerCase(): string;
406
407 /** Converts all the alphabetic characters in a string to uppercase. */
408 toUpperCase(): string;
409
410 /** Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. */
411 toLocaleUpperCase(): string;
412
413 /** Removes the leading and trailing white space and line terminator characters from a string. */
414 trim(): string;
415
416 /** Returns the length of a String object. */
417 readonly length: number;
418
419 // IE extensions
420 /**
421 * Gets a substring beginning at the specified location and having the specified length.
422 * @param from The starting position of the desired substring. The index of the first character in the string is zero.
423 * @param length The number of characters to include in the returned substring.
424 */
425 substr(from: number, length?: number): string;
426
427 /** Returns the primitive value of the specified object. */
428 valueOf(): string;
429
430 readonly [index: number]: string;
431}
432
433interface StringConstructor {
434 new (value?: any): String;
435 (value?: any): string;
436 readonly prototype: String;
437 fromCharCode(...codes: number[]): string;
438}
439
440/**
441 * Allows manipulation and formatting of text strings and determination and location of substrings within strings.
442 */
443declare const String: StringConstructor;
444
445interface Boolean {
446 /** Returns the primitive value of the specified object. */
447 valueOf(): boolean;
448}
449
450interface BooleanConstructor {
451 new (value?: any): Boolean;
452 (value?: any): boolean;
453 readonly prototype: Boolean;
454}
455
456declare const Boolean: BooleanConstructor;
457
458interface Number {
459 /**
460 * Returns a string representation of an object.
461 * @param radix Specifies a radix for converting numeric values to strings. This value is only used for numbers.
462 */
463 toString(radix?: number): string;
464
465 /**
466 * Returns a string representing a number in fixed-point notation.
467 * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
468 */
469 toFixed(fractionDigits?: number): string;
470
471 /**
472 * Returns a string containing a number represented in exponential notation.
473 * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
474 */
475 toExponential(fractionDigits?: number): string;
476
477 /**
478 * Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits.
479 * @param precision Number of significant digits. Must be in the range 1 - 21, inclusive.
480 */
481 toPrecision(precision?: number): string;
482
483 /** Returns the primitive value of the specified object. */
484 valueOf(): number;
485}
486
487interface NumberConstructor {
488 new (value?: any): Number;
489 (value?: any): number;
490 readonly prototype: Number;
491
492 /** The largest number that can be represented in JavaScript. Equal to approximately 1.79E+308. */
493 readonly MAX_VALUE: number;
494
495 /** The closest number to zero that can be represented in JavaScript. Equal to approximately 5.00E-324. */
496 readonly MIN_VALUE: number;
497
498 /**
499 * A value that is not a number.
500 * In equality comparisons, NaN does not equal any value, including itself. To test whether a value is equivalent to NaN, use the isNaN function.
501 */
502 readonly NaN: number;
503
504 /**
505 * A value that is less than the largest negative number that can be represented in JavaScript.
506 * JavaScript displays NEGATIVE_INFINITY values as -infinity.
507 */
508 readonly NEGATIVE_INFINITY: number;
509
510 /**
511 * A value greater than the largest number that can be represented in JavaScript.
512 * JavaScript displays POSITIVE_INFINITY values as infinity.
513 */
514 readonly POSITIVE_INFINITY: number;
515}
516
517/** An object that represents a number of any kind. All JavaScript numbers are 64-bit floating-point numbers. */
518declare const Number: NumberConstructor;
519
520interface TemplateStringsArray extends Array<string> {
521 readonly raw: string[];
522}
523
524interface Math {
525 /** The mathematical constant e. This is Euler's number, the base of natural logarithms. */
526 readonly E: number;
527 /** The natural logarithm of 10. */
528 readonly LN10: number;
529 /** The natural logarithm of 2. */
530 readonly LN2: number;
531 /** The base-2 logarithm of e. */
532 readonly LOG2E: number;
533 /** The base-10 logarithm of e. */
534 readonly LOG10E: number;
535 /** Pi. This is the ratio of the circumference of a circle to its diameter. */
536 readonly PI: number;
537 /** The square root of 0.5, or, equivalently, one divided by the square root of 2. */
538 readonly SQRT1_2: number;
539 /** The square root of 2. */
540 readonly SQRT2: number;
541 /**
542 * Returns the absolute value of a number (the value without regard to whether it is positive or negative).
543 * For example, the absolute value of -5 is the same as the absolute value of 5.
544 * @param x A numeric expression for which the absolute value is needed.
545 */
546 abs(x: number): number;
547 /**
548 * Returns the arc cosine (or inverse cosine) of a number.
549 * @param x A numeric expression.
550 */
551 acos(x: number): number;
552 /**
553 * Returns the arcsine of a number.
554 * @param x A numeric expression.
555 */
556 asin(x: number): number;
557 /**
558 * Returns the arctangent of a number.
559 * @param x A numeric expression for which the arctangent is needed.
560 */
561 atan(x: number): number;
562 /**
563 * Returns the angle (in radians) from the X axis to a point.
564 * @param y A numeric expression representing the cartesian y-coordinate.
565 * @param x A numeric expression representing the cartesian x-coordinate.
566 */
567 atan2(y: number, x: number): number;
568 /**
569 * Returns the smallest number greater than or equal to its numeric argument.
570 * @param x A numeric expression.
571 */
572 ceil(x: number): number;
573 /**
574 * Returns the cosine of a number.
575 * @param x A numeric expression that contains an angle measured in radians.
576 */
577 cos(x: number): number;
578 /**
579 * Returns e (the base of natural logarithms) raised to a power.
580 * @param x A numeric expression representing the power of e.
581 */
582 exp(x: number): number;
583 /**
584 * Returns the greatest number less than or equal to its numeric argument.
585 * @param x A numeric expression.
586 */
587 floor(x: number): number;
588 /**
589 * Returns the natural logarithm (base e) of a number.
590 * @param x A numeric expression.
591 */
592 log(x: number): number;
593 /**
594 * Returns the larger of a set of supplied numeric expressions.
595 * @param values Numeric expressions to be evaluated.
596 */
597 max(...values: number[]): number;
598 /**
599 * Returns the smaller of a set of supplied numeric expressions.
600 * @param values Numeric expressions to be evaluated.
601 */
602 min(...values: number[]): number;
603 /**
604 * Returns the value of a base expression taken to a specified power.
605 * @param x The base value of the expression.
606 * @param y The exponent value of the expression.
607 */
608 pow(x: number, y: number): number;
609 /** Returns a pseudorandom number between 0 and 1. */
610 random(): number;
611 /**
612 * Returns a supplied numeric expression rounded to the nearest number.
613 * @param x The value to be rounded to the nearest number.
614 */
615 round(x: number): number;
616 /**
617 * Returns the sine of a number.
618 * @param x A numeric expression that contains an angle measured in radians.
619 */
620 sin(x: number): number;
621 /**
622 * Returns the square root of a number.
623 * @param x A numeric expression.
624 */
625 sqrt(x: number): number;
626 /**
627 * Returns the tangent of a number.
628 * @param x A numeric expression that contains an angle measured in radians.
629 */
630 tan(x: number): number;
631}
632/** An intrinsic object that provides basic mathematics functionality and constants. */
633declare const Math: Math;
634
635/** Enables basic storage and retrieval of dates and times. */
636interface Date {
637 /** Returns a string representation of a date. The format of the string depends on the locale. */
638 toString(): string;
639 /** Returns a date as a string value. */
640 toDateString(): string;
641 /** Returns a time as a string value. */
642 toTimeString(): string;
643 /** Returns a value as a string value appropriate to the host environment's current locale. */
644 toLocaleString(): string;
645 /** Returns a date as a string value appropriate to the host environment's current locale. */
646 toLocaleDateString(): string;
647 /** Returns a time as a string value appropriate to the host environment's current locale. */
648 toLocaleTimeString(): string;
649 /** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */
650 valueOf(): number;
651 /** Gets the time value in milliseconds. */
652 getTime(): number;
653 /** Gets the year, using local time. */
654 getFullYear(): number;
655 /** Gets the year using Universal Coordinated Time (UTC). */
656 getUTCFullYear(): number;
657 /** Gets the month, using local time. */
658 getMonth(): number;
659 /** Gets the month of a Date object using Universal Coordinated Time (UTC). */
660 getUTCMonth(): number;
661 /** Gets the day-of-the-month, using local time. */
662 getDate(): number;
663 /** Gets the day-of-the-month, using Universal Coordinated Time (UTC). */
664 getUTCDate(): number;
665 /** Gets the day of the week, using local time. */
666 getDay(): number;
667 /** Gets the day of the week using Universal Coordinated Time (UTC). */
668 getUTCDay(): number;
669 /** Gets the hours in a date, using local time. */
670 getHours(): number;
671 /** Gets the hours value in a Date object using Universal Coordinated Time (UTC). */
672 getUTCHours(): number;
673 /** Gets the minutes of a Date object, using local time. */
674 getMinutes(): number;
675 /** Gets the minutes of a Date object using Universal Coordinated Time (UTC). */
676 getUTCMinutes(): number;
677 /** Gets the seconds of a Date object, using local time. */
678 getSeconds(): number;
679 /** Gets the seconds of a Date object using Universal Coordinated Time (UTC). */
680 getUTCSeconds(): number;
681 /** Gets the milliseconds of a Date, using local time. */
682 getMilliseconds(): number;
683 /** Gets the milliseconds of a Date object using Universal Coordinated Time (UTC). */
684 getUTCMilliseconds(): number;
685 /** Gets the difference in minutes between the time on the local computer and Universal Coordinated Time (UTC). */
686 getTimezoneOffset(): number;
687 /**
688 * Sets the date and time value in the Date object.
689 * @param time A numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT.
690 */
691 setTime(time: number): number;
692 /**
693 * Sets the milliseconds value in the Date object using local time.
694 * @param ms A numeric value equal to the millisecond value.
695 */
696 setMilliseconds(ms: number): number;
697 /**
698 * Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC).
699 * @param ms A numeric value equal to the millisecond value.
700 */
701 setUTCMilliseconds(ms: number): number;
702
703 /**
704 * Sets the seconds value in the Date object using local time.
705 * @param sec A numeric value equal to the seconds value.
706 * @param ms A numeric value equal to the milliseconds value.
707 */
708 setSeconds(sec: number, ms?: number): number;
709 /**
710 * Sets the seconds value in the Date object using Universal Coordinated Time (UTC).
711 * @param sec A numeric value equal to the seconds value.
712 * @param ms A numeric value equal to the milliseconds value.
713 */
714 setUTCSeconds(sec: number, ms?: number): number;
715 /**
716 * Sets the minutes value in the Date object using local time.
717 * @param min A numeric value equal to the minutes value.
718 * @param sec A numeric value equal to the seconds value.
719 * @param ms A numeric value equal to the milliseconds value.
720 */
721 setMinutes(min: number, sec?: number, ms?: number): number;
722 /**
723 * Sets the minutes value in the Date object using Universal Coordinated Time (UTC).
724 * @param min A numeric value equal to the minutes value.
725 * @param sec A numeric value equal to the seconds value.
726 * @param ms A numeric value equal to the milliseconds value.
727 */
728 setUTCMinutes(min: number, sec?: number, ms?: number): number;
729 /**
730 * Sets the hour value in the Date object using local time.
731 * @param hours A numeric value equal to the hours value.
732 * @param min A numeric value equal to the minutes value.
733 * @param sec A numeric value equal to the seconds value.
734 * @param ms A numeric value equal to the milliseconds value.
735 */
736 setHours(hours: number, min?: number, sec?: number, ms?: number): number;
737 /**
738 * Sets the hours value in the Date object using Universal Coordinated Time (UTC).
739 * @param hours A numeric value equal to the hours value.
740 * @param min A numeric value equal to the minutes value.
741 * @param sec A numeric value equal to the seconds value.
742 * @param ms A numeric value equal to the milliseconds value.
743 */
744 setUTCHours(hours: number, min?: number, sec?: number, ms?: number): number;
745 /**
746 * Sets the numeric day-of-the-month value of the Date object using local time.
747 * @param date A numeric value equal to the day of the month.
748 */
749 setDate(date: number): number;
750 /**
751 * Sets the numeric day of the month in the Date object using Universal Coordinated Time (UTC).
752 * @param date A numeric value equal to the day of the month.
753 */
754 setUTCDate(date: number): number;
755 /**
756 * Sets the month value in the Date object using local time.
757 * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.
758 * @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.
759 */
760 setMonth(month: number, date?: number): number;
761 /**
762 * Sets the month value in the Date object using Universal Coordinated Time (UTC).
763 * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.
764 * @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.
765 */
766 setUTCMonth(month: number, date?: number): number;
767 /**
768 * Sets the year of the Date object using local time.
769 * @param year A numeric value for the year.
770 * @param month A zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified.
771 * @param date A numeric value equal for the day of the month.
772 */
773 setFullYear(year: number, month?: number, date?: number): number;
774 /**
775 * Sets the year value in the Date object using Universal Coordinated Time (UTC).
776 * @param year A numeric value equal to the year.
777 * @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.
778 * @param date A numeric value equal to the day of the month.
779 */
780 setUTCFullYear(year: number, month?: number, date?: number): number;
781 /** Returns a date converted to a string using Universal Coordinated Time (UTC). */
782 toUTCString(): string;
783 /** Returns a date as a string value in ISO format. */
784 toISOString(): string;
785 /** Used by the JSON.stringify method to enable the transformation of an object's data for JavaScript Object Notation (JSON) serialization. */
786 toJSON(key?: any): string;
787}
788
789interface DateConstructor {
790 new (): Date;
791 new (value: number): Date;
792 new (value: string): Date;
793 new (year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): Date;
794 (): string;
795 readonly prototype: Date;
796 /**
797 * Parses a string containing a date, and returns the number of milliseconds between that date and midnight, January 1, 1970.
798 * @param s A date string
799 */
800 parse(s: string): number;
801 /**
802 * Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date.
803 * @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.
804 * @param month The month as an number between 0 and 11 (January to December).
805 * @param date The date as an number between 1 and 31.
806 * @param hours Must be supplied if minutes is supplied. An number from 0 to 23 (midnight to 11pm) that specifies the hour.
807 * @param minutes Must be supplied if seconds is supplied. An number from 0 to 59 that specifies the minutes.
808 * @param seconds Must be supplied if milliseconds is supplied. An number from 0 to 59 that specifies the seconds.
809 * @param ms An number from 0 to 999 that specifies the milliseconds.
810 */
811 UTC(year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number;
812 now(): number;
813}
814
815declare const Date: DateConstructor;
816
817interface RegExpMatchArray extends Array<string> {
818 index?: number;
819 input?: string;
820}
821
822interface RegExpExecArray extends Array<string> {
823 index: number;
824 input: string;
825}
826
827interface RegExp {
828 /**
829 * Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search.
830 * @param string The String object or string literal on which to perform the search.
831 */
832 exec(string: string): RegExpExecArray;
833
834 /**
835 * Returns a Boolean value that indicates whether or not a pattern exists in a searched string.
836 * @param string String on which to perform the search.
837 */
838 test(string: string): boolean;
839
840 /** 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. */
841 readonly source: string;
842
843 /** Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. */
844 readonly global: boolean;
845
846 /** Returns a Boolean value indicating the state of the ignoreCase flag (i) used with a regular expression. Default is false. Read-only. */
847 readonly ignoreCase: boolean;
848
849 /** Returns a Boolean value indicating the state of the multiline flag (m) used with a regular expression. Default is false. Read-only. */
850 readonly multiline: boolean;
851
852 lastIndex: number;
853
854 // Non-standard extensions
855 compile(): RegExp;
856}
857
858interface RegExpConstructor {
859 new (pattern: string, flags?: string): RegExp;
860 (pattern: string, flags?: string): RegExp;
861 readonly prototype: RegExp;
862
863 // Non-standard extensions
864 $1: string;
865 $2: string;
866 $3: string;
867 $4: string;
868 $5: string;
869 $6: string;
870 $7: string;
871 $8: string;
872 $9: string;
873 lastMatch: string;
874}
875
876declare const RegExp: RegExpConstructor;
877
878interface Error {
879 name: string;
880 message: string;
881}
882
883interface ErrorConstructor {
884 new (message?: string): Error;
885 (message?: string): Error;
886 readonly prototype: Error;
887}
888
889declare const Error: ErrorConstructor;
890
891interface EvalError extends Error {
892}
893
894interface EvalErrorConstructor {
895 new (message?: string): EvalError;
896 (message?: string): EvalError;
897 readonly prototype: EvalError;
898}
899
900declare const EvalError: EvalErrorConstructor;
901
902interface RangeError extends Error {
903}
904
905interface RangeErrorConstructor {
906 new (message?: string): RangeError;
907 (message?: string): RangeError;
908 readonly prototype: RangeError;
909}
910
911declare const RangeError: RangeErrorConstructor;
912
913interface ReferenceError extends Error {
914}
915
916interface ReferenceErrorConstructor {
917 new (message?: string): ReferenceError;
918 (message?: string): ReferenceError;
919 readonly prototype: ReferenceError;
920}
921
922declare const ReferenceError: ReferenceErrorConstructor;
923
924interface SyntaxError extends Error {
925}
926
927interface SyntaxErrorConstructor {
928 new (message?: string): SyntaxError;
929 (message?: string): SyntaxError;
930 readonly prototype: SyntaxError;
931}
932
933declare const SyntaxError: SyntaxErrorConstructor;
934
935interface TypeError extends Error {
936}
937
938interface TypeErrorConstructor {
939 new (message?: string): TypeError;
940 (message?: string): TypeError;
941 readonly prototype: TypeError;
942}
943
944declare const TypeError: TypeErrorConstructor;
945
946interface URIError extends Error {
947}
948
949interface URIErrorConstructor {
950 new (message?: string): URIError;
951 (message?: string): URIError;
952 readonly prototype: URIError;
953}
954
955declare const URIError: URIErrorConstructor;
956
957interface JSON {
958 /**
959 * Converts a JavaScript Object Notation (JSON) string into an object.
960 * @param text A valid JSON string.
961 * @param reviver A function that transforms the results. This function is called for each member of the object.
962 * If a member contains nested objects, the nested objects are transformed before the parent object is.
963 */
964 parse(text: string, reviver?: (key: any, value: any) => any): any;
965 /**
966 * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
967 * @param value A JavaScript value, usually an object or array, to be converted.
968 */
969 stringify(value: any): string;
970 /**
971 * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
972 * @param value A JavaScript value, usually an object or array, to be converted.
973 * @param replacer A function that transforms the results.
974 */
975 stringify(value: any, replacer: (key: string, value: any) => any): string;
976 /**
977 * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
978 * @param value A JavaScript value, usually an object or array, to be converted.
979 * @param replacer Array that transforms the results.
980 */
981 stringify(value: any, replacer: any[]): string;
982 /**
983 * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
984 * @param value A JavaScript value, usually an object or array, to be converted.
985 * @param replacer A function that transforms the results.
986 * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
987 */
988 stringify(value: any, replacer: (key: string, value: any) => any, space: string | number): string;
989 /**
990 * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
991 * @param value A JavaScript value, usually an object or array, to be converted.
992 * @param replacer Array that transforms the results.
993 * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
994 */
995 stringify(value: any, replacer: any[], space: string | number): string;
996}
997/**
998 * An intrinsic object that provides functions to convert JavaScript values to and from the JavaScript Object Notation (JSON) format.
999 */
1000declare const JSON: JSON;
1001
1002
1003/////////////////////////////
1004/// ECMAScript Array API (specially handled by compiler)
1005/////////////////////////////
1006
1007interface ReadonlyArray<T> {
1008 /**
1009 * Gets the length of the array. This is a number one higher than the highest element defined in an array.
1010 */
1011 readonly length: number;
1012 /**
1013 * Returns a string representation of an array.
1014 */
1015 toString(): string;
1016 toLocaleString(): string;
1017 /**
1018 * Combines two or more arrays.
1019 * @param items Additional items to add to the end of array1.
1020 */
1021 concat<U extends ReadonlyArray<T>>(...items: U[]): T[];
1022 /**
1023 * Combines two or more arrays.
1024 * @param items Additional items to add to the end of array1.
1025 */
1026 concat(...items: T[]): T[];
1027 /**
1028 * Adds all the elements of an array separated by the specified separator string.
1029 * @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.
1030 */
1031 join(separator?: string): string;
1032 /**
1033 * Returns a section of an array.
1034 * @param start The beginning of the specified portion of the array.
1035 * @param end The end of the specified portion of the array.
1036 */
1037 slice(start?: number, end?: number): T[];
1038 /**
1039 * Returns the index of the first occurrence of a value in an array.
1040 * @param searchElement The value to locate in the array.
1041 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
1042 */
1043 indexOf(searchElement: T, fromIndex?: number): number;
1044
1045 /**
1046 * Returns the index of the last occurrence of a specified value in an array.
1047 * @param searchElement The value to locate in the array.
1048 * @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.
1049 */
1050 lastIndexOf(searchElement: T, fromIndex?: number): number;
1051 /**
1052 * Determines whether all the members of an array satisfy the specified test.
1053 * @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.
1054 * @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.
1055 */
1056 every(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => boolean, thisArg?: any): boolean;
1057 /**
1058 * Determines whether the specified callback function returns true for any element of an array.
1059 * @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.
1060 * @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.
1061 */
1062 some(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => boolean, thisArg?: any): boolean;
1063 /**
1064 * Performs the specified action for each element in an array.
1065 * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
1066 * @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.
1067 */
1068 forEach(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => void, thisArg?: any): void;
1069 /**
1070 * Calls a defined callback function on each element of an array, and returns an array that contains the results.
1071 * @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.
1072 * @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.
1073 */
1074 map<U>(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => U, thisArg?: any): U[];
1075 /**
1076 * Returns the elements of an array that meet the condition specified in a callback function.
1077 * @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.
1078 * @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.
1079 */
1080 filter(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => boolean, thisArg?: any): T[];
1081 /**
1082 * 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.
1083 * @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.
1084 * @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.
1085 */
1086 reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: ReadonlyArray<T>) => T, initialValue?: T): T;
1087 /**
1088 * 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.
1089 * @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.
1090 * @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.
1091 */
1092 reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: ReadonlyArray<T>) => U, initialValue: U): U;
1093 /**
1094 * 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.
1095 * @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.
1096 * @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.
1097 */
1098 reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: ReadonlyArray<T>) => T, initialValue?: T): T;
1099 /**
1100 * 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.
1101 * @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.
1102 * @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.
1103 */
1104 reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: ReadonlyArray<T>) => U, initialValue: U): U;
1105
1106 readonly [n: number]: T;
1107}
1108
1109interface Array<T> {
1110 /**
1111 * Gets or sets the length of the array. This is a number one higher than the highest element defined in an array.
1112 */
1113 length: number;
1114 /**
1115 * Returns a string representation of an array.
1116 */
1117 toString(): string;
1118 toLocaleString(): string;
1119 /**
1120 * Appends new elements to an array, and returns the new length of the array.
1121 * @param items New elements of the Array.
1122 */
1123 push(...items: T[]): number;
1124 /**
1125 * Removes the last element from an array and returns it.
1126 */
1127 pop(): T;
1128 /**
1129 * Combines two or more arrays.
1130 * @param items Additional items to add to the end of array1.
1131 */
1132 concat<U extends T[]>(...items: U[]): T[];
1133 /**
1134 * Combines two or more arrays.
1135 * @param items Additional items to add to the end of array1.
1136 */
1137 concat(...items: T[]): T[];
1138 /**
1139 * Adds all the elements of an array separated by the specified separator string.
1140 * @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.
1141 */
1142 join(separator?: string): string;
1143 /**
1144 * Reverses the elements in an Array.
1145 */
1146 reverse(): T[];
1147 /**
1148 * Removes the first element from an array and returns it.
1149 */
1150 shift(): T;
1151 /**
1152 * Returns a section of an array.
1153 * @param start The beginning of the specified portion of the array.
1154 * @param end The end of the specified portion of the array.
1155 */
1156 slice(start?: number, end?: number): T[];
1157 /**
1158 * Sorts an array.
1159 * @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.
1160 */
1161 sort(compareFn?: (a: T, b: T) => number): T[];
1162 /**
1163 * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
1164 * @param start The zero-based location in the array from which to start removing elements.
1165 */
1166 splice(start: number): T[];
1167 /**
1168 * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
1169 * @param start The zero-based location in the array from which to start removing elements.
1170 * @param deleteCount The number of elements to remove.
1171 * @param items Elements to insert into the array in place of the deleted elements.
1172 */
1173 splice(start: number, deleteCount: number, ...items: T[]): T[];
1174 /**
1175 * Inserts new elements at the start of an array.
1176 * @param items Elements to insert at the start of the Array.
1177 */
1178 unshift(...items: T[]): number;
1179 /**
1180 * Returns the index of the first occurrence of a value in an array.
1181 * @param searchElement The value to locate in the array.
1182 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
1183 */
1184 indexOf(searchElement: T, fromIndex?: number): number;
1185 /**
1186 * Returns the index of the last occurrence of a specified value in an array.
1187 * @param searchElement The value to locate in the array.
1188 * @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.
1189 */
1190 lastIndexOf(searchElement: T, fromIndex?: number): number;
1191 /**
1192 * Determines whether all the members of an array satisfy the specified test.
1193 * @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.
1194 * @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.
1195 */
1196 every(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): boolean;
1197 /**
1198 * Determines whether the specified callback function returns true for any element of an array.
1199 * @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.
1200 * @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.
1201 */
1202 some(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): boolean;
1203 /**
1204 * Performs the specified action for each element in an array.
1205 * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
1206 * @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.
1207 */
1208 forEach(callbackfn: (value: T, index: number, array: T[]) => void, thisArg?: any): void;
1209 /**
1210 * Calls a defined callback function on each element of an array, and returns an array that contains the results.
1211 * @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.
1212 * @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.
1213 */
1214 map<U>(callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): U[];
1215 /**
1216 * Returns the elements of an array that meet the condition specified in a callback function.
1217 * @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.
1218 * @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.
1219 */
1220 filter(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): T[];
1221 /**
1222 * 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.
1223 * @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.
1224 * @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.
1225 */
1226 reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue?: T): T;
1227 /**
1228 * 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.
1229 * @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.
1230 * @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.
1231 */
1232 reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
1233 /**
1234 * 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.
1235 * @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.
1236 * @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.
1237 */
1238 reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue?: T): T;
1239 /**
1240 * 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.
1241 * @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.
1242 * @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.
1243 */
1244 reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
1245
1246 [n: number]: T;
1247}
1248
1249interface ArrayConstructor {
1250 new (arrayLength?: number): any[];
1251 new <T>(arrayLength: number): T[];
1252 new <T>(...items: T[]): T[];
1253 (arrayLength?: number): any[];
1254 <T>(arrayLength: number): T[];
1255 <T>(...items: T[]): T[];
1256 isArray(arg: any): arg is Array<any>;
1257 readonly prototype: Array<any>;
1258}
1259
1260declare const Array: ArrayConstructor;
1261
1262interface TypedPropertyDescriptor<T> {
1263 enumerable?: boolean;
1264 configurable?: boolean;
1265 writable?: boolean;
1266 value?: T;
1267 get?: () => T;
1268 set?: (value: T) => void;
1269}
1270
1271declare type ClassDecorator = <TFunction extends Function>(target: TFunction) => TFunction | void;
1272declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void;
1273declare type MethodDecorator = <T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
1274declare type ParameterDecorator = (target: Object, propertyKey: string | symbol, parameterIndex: number) => void;
1275
1276declare type PromiseConstructorLike = new <T>(executor: (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void) => PromiseLike<T>;
1277
1278interface PromiseLike<T> {
1279 /**
1280 * Attaches callbacks for the resolution and/or rejection of the Promise.
1281 * @param onfulfilled The callback to execute when the Promise is resolved.
1282 * @param onrejected The callback to execute when the Promise is rejected.
1283 * @returns A Promise for the completion of which ever callback is executed.
1284 */
1285 then<TResult>(onfulfilled?: (value: T) => TResult | PromiseLike<TResult>, onrejected?: (reason: any) => TResult | PromiseLike<TResult>): PromiseLike<TResult>;
1286 then<TResult>(onfulfilled?: (value: T) => TResult | PromiseLike<TResult>, onrejected?: (reason: any) => void): PromiseLike<TResult>;
1287}
1288
1289interface ArrayLike<T> {
1290 readonly length: number;
1291 readonly [n: number]: T;
1292}
1293
1294/**
1295 * Represents a raw buffer of binary data, which is used to store data for the
1296 * different typed arrays. ArrayBuffers cannot be read from or written to directly,
1297 * but can be passed to a typed array or DataView Object to interpret the raw
1298 * buffer as needed.
1299 */
1300interface ArrayBuffer {
1301 /**
1302 * Read-only. The length of the ArrayBuffer (in bytes).
1303 */
1304 readonly byteLength: number;
1305
1306 /**
1307 * Returns a section of an ArrayBuffer.
1308 */
1309 slice(begin:number, end?:number): ArrayBuffer;
1310}
1311
1312interface ArrayBufferConstructor {
1313 readonly prototype: ArrayBuffer;
1314 new (byteLength: number): ArrayBuffer;
1315 isView(arg: any): arg is ArrayBufferView;
1316}
1317declare const ArrayBuffer: ArrayBufferConstructor;
1318
1319interface ArrayBufferView {
1320 /**
1321 * The ArrayBuffer instance referenced by the array.
1322 */
1323 buffer: ArrayBuffer;
1324
1325 /**
1326 * The length in bytes of the array.
1327 */
1328 byteLength: number;
1329
1330 /**
1331 * The offset in bytes of the array.
1332 */
1333 byteOffset: number;
1334}
1335
1336interface DataView {
1337 readonly buffer: ArrayBuffer;
1338 readonly byteLength: number;
1339 readonly byteOffset: number;
1340 /**
1341 * Gets the Float32 value at the specified byte offset from the start of the view. There is
1342 * no alignment constraint; multi-byte values may be fetched from any offset.
1343 * @param byteOffset The place in the buffer at which the value should be retrieved.
1344 */
1345 getFloat32(byteOffset: number, littleEndian?: boolean): number;
1346
1347 /**
1348 * Gets the Float64 value at the specified byte offset from the start of the view. There is
1349 * no alignment constraint; multi-byte values may be fetched from any offset.
1350 * @param byteOffset The place in the buffer at which the value should be retrieved.
1351 */
1352 getFloat64(byteOffset: number, littleEndian?: boolean): number;
1353
1354 /**
1355 * Gets the Int8 value at the specified byte offset from the start of the view. There is
1356 * no alignment constraint; multi-byte values may be fetched from any offset.
1357 * @param byteOffset The place in the buffer at which the value should be retrieved.
1358 */
1359 getInt8(byteOffset: number): number;
1360
1361 /**
1362 * Gets the Int16 value at the specified byte offset from the start of the view. There is
1363 * no alignment constraint; multi-byte values may be fetched from any offset.
1364 * @param byteOffset The place in the buffer at which the value should be retrieved.
1365 */
1366 getInt16(byteOffset: number, littleEndian?: boolean): number;
1367 /**
1368 * Gets the Int32 value at the specified byte offset from the start of the view. There is
1369 * no alignment constraint; multi-byte values may be fetched from any offset.
1370 * @param byteOffset The place in the buffer at which the value should be retrieved.
1371 */
1372 getInt32(byteOffset: number, littleEndian?: boolean): number;
1373
1374 /**
1375 * Gets the Uint8 value at the specified byte offset from the start of the view. There is
1376 * no alignment constraint; multi-byte values may be fetched from any offset.
1377 * @param byteOffset The place in the buffer at which the value should be retrieved.
1378 */
1379 getUint8(byteOffset: number): number;
1380
1381 /**
1382 * Gets the Uint16 value at the specified byte offset from the start of the view. There is
1383 * no alignment constraint; multi-byte values may be fetched from any offset.
1384 * @param byteOffset The place in the buffer at which the value should be retrieved.
1385 */
1386 getUint16(byteOffset: number, littleEndian?: boolean): number;
1387
1388 /**
1389 * Gets the Uint32 value at the specified byte offset from the start of the view. There is
1390 * no alignment constraint; multi-byte values may be fetched from any offset.
1391 * @param byteOffset The place in the buffer at which the value should be retrieved.
1392 */
1393 getUint32(byteOffset: number, littleEndian?: boolean): number;
1394
1395 /**
1396 * Stores an Float32 value at the specified byte offset from the start of the view.
1397 * @param byteOffset The place in the buffer at which the value should be set.
1398 * @param value The value to set.
1399 * @param littleEndian If false or undefined, a big-endian value should be written,
1400 * otherwise a little-endian value should be written.
1401 */
1402 setFloat32(byteOffset: number, value: number, littleEndian?: boolean): void;
1403
1404 /**
1405 * Stores an Float64 value at the specified byte offset from the start of the view.
1406 * @param byteOffset The place in the buffer at which the value should be set.
1407 * @param value The value to set.
1408 * @param littleEndian If false or undefined, a big-endian value should be written,
1409 * otherwise a little-endian value should be written.
1410 */
1411 setFloat64(byteOffset: number, value: number, littleEndian?: boolean): void;
1412
1413 /**
1414 * Stores an Int8 value at the specified byte offset from the start of the view.
1415 * @param byteOffset The place in the buffer at which the value should be set.
1416 * @param value The value to set.
1417 */
1418 setInt8(byteOffset: number, value: number): void;
1419
1420 /**
1421 * Stores an Int16 value at the specified byte offset from the start of the view.
1422 * @param byteOffset The place in the buffer at which the value should be set.
1423 * @param value The value to set.
1424 * @param littleEndian If false or undefined, a big-endian value should be written,
1425 * otherwise a little-endian value should be written.
1426 */
1427 setInt16(byteOffset: number, value: number, littleEndian?: boolean): void;
1428
1429 /**
1430 * Stores an Int32 value at the specified byte offset from the start of the view.
1431 * @param byteOffset The place in the buffer at which the value should be set.
1432 * @param value The value to set.
1433 * @param littleEndian If false or undefined, a big-endian value should be written,
1434 * otherwise a little-endian value should be written.
1435 */
1436 setInt32(byteOffset: number, value: number, littleEndian?: boolean): void;
1437
1438 /**
1439 * Stores an Uint8 value at the specified byte offset from the start of the view.
1440 * @param byteOffset The place in the buffer at which the value should be set.
1441 * @param value The value to set.
1442 */
1443 setUint8(byteOffset: number, value: number): void;
1444
1445 /**
1446 * Stores an Uint16 value at the specified byte offset from the start of the view.
1447 * @param byteOffset The place in the buffer at which the value should be set.
1448 * @param value The value to set.
1449 * @param littleEndian If false or undefined, a big-endian value should be written,
1450 * otherwise a little-endian value should be written.
1451 */
1452 setUint16(byteOffset: number, value: number, littleEndian?: boolean): void;
1453
1454 /**
1455 * Stores an Uint32 value at the specified byte offset from the start of the view.
1456 * @param byteOffset The place in the buffer at which the value should be set.
1457 * @param value The value to set.
1458 * @param littleEndian If false or undefined, a big-endian value should be written,
1459 * otherwise a little-endian value should be written.
1460 */
1461 setUint32(byteOffset: number, value: number, littleEndian?: boolean): void;
1462}
1463
1464interface DataViewConstructor {
1465 new (buffer: ArrayBuffer, byteOffset?: number, byteLength?: number): DataView;
1466}
1467declare const DataView: DataViewConstructor;
1468
1469/**
1470 * A typed array of 8-bit integer values. The contents are initialized to 0. If the requested
1471 * number of bytes could not be allocated an exception is raised.
1472 */
1473interface Int8Array {
1474 /**
1475 * The size in bytes of each element in the array.
1476 */
1477 readonly BYTES_PER_ELEMENT: number;
1478
1479 /**
1480 * The ArrayBuffer instance referenced by the array.
1481 */
1482 readonly buffer: ArrayBuffer;
1483
1484 /**
1485 * The length in bytes of the array.
1486 */
1487 readonly byteLength: number;
1488
1489 /**
1490 * The offset in bytes of the array.
1491 */
1492 readonly byteOffset: number;
1493
1494 /**
1495 * Returns the this object after copying a section of the array identified by start and end
1496 * to the same array starting at position target
1497 * @param target If target is negative, it is treated as length+target where length is the
1498 * length of the array.
1499 * @param start If start is negative, it is treated as length+start. If end is negative, it
1500 * is treated as length+end.
1501 * @param end If not specified, length of the this object is used as its default value.
1502 */
1503 copyWithin(target: number, start: number, end?: number): Int8Array;
1504
1505 /**
1506 * Determines whether all the members of an array satisfy the specified test.
1507 * @param callbackfn A function that accepts up to three arguments. The every method calls
1508 * the callbackfn function for each element in array1 until the callbackfn returns false,
1509 * or until the end of the array.
1510 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
1511 * If thisArg is omitted, undefined is used as the this value.
1512 */
1513 every(callbackfn: (value: number, index: number, array: Int8Array) => boolean, thisArg?: any): boolean;
1514
1515 /**
1516 * Returns the this object after filling the section identified by start and end with value
1517 * @param value value to fill array section with
1518 * @param start index to start filling the array at. If start is negative, it is treated as
1519 * length+start where length is the length of the array.
1520 * @param end index to stop filling the array at. If end is negative, it is treated as
1521 * length+end.
1522 */
1523 fill(value: number, start?: number, end?: number): Int8Array;
1524
1525 /**
1526 * Returns the elements of an array that meet the condition specified in a callback function.
1527 * @param callbackfn A function that accepts up to three arguments. The filter method calls
1528 * the callbackfn function one time for each element in the array.
1529 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
1530 * If thisArg is omitted, undefined is used as the this value.
1531 */
1532 filter(callbackfn: (value: number, index: number, array: Int8Array) => boolean, thisArg?: any): Int8Array;
1533
1534 /**
1535 * Returns the value of the first element in the array where predicate is true, and undefined
1536 * otherwise.
1537 * @param predicate find calls predicate once for each element of the array, in ascending
1538 * order, until it finds one where predicate returns true. If such an element is found, find
1539 * immediately returns that element value. Otherwise, find returns undefined.
1540 * @param thisArg If provided, it will be used as the this value for each invocation of
1541 * predicate. If it is not provided, undefined is used instead.
1542 */
1543 find(predicate: (value: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number;
1544
1545 /**
1546 * Returns the index of the first element in the array where predicate is true, and undefined
1547 * otherwise.
1548 * @param predicate find calls predicate once for each element of the array, in ascending
1549 * order, until it finds one where predicate returns true. If such an element is found, find
1550 * immediately returns that element value. Otherwise, find returns undefined.
1551 * @param thisArg If provided, it will be used as the this value for each invocation of
1552 * predicate. If it is not provided, undefined is used instead.
1553 */
1554 findIndex(predicate: (value: number) => boolean, thisArg?: any): number;
1555
1556 /**
1557 * Performs the specified action for each element in an array.
1558 * @param callbackfn A function that accepts up to three arguments. forEach calls the
1559 * callbackfn function one time for each element in the array.
1560 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
1561 * If thisArg is omitted, undefined is used as the this value.
1562 */
1563 forEach(callbackfn: (value: number, index: number, array: Int8Array) => void, thisArg?: any): void;
1564
1565 /**
1566 * Returns the index of the first occurrence of a value in an array.
1567 * @param searchElement The value to locate in the array.
1568 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
1569 * search starts at index 0.
1570 */
1571 indexOf(searchElement: number, fromIndex?: number): number;
1572
1573 /**
1574 * Adds all the elements of an array separated by the specified separator string.
1575 * @param separator A string used to separate one element of an array from the next in the
1576 * resulting String. If omitted, the array elements are separated with a comma.
1577 */
1578 join(separator?: string): string;
1579
1580 /**
1581 * Returns the index of the last occurrence of a value in an array.
1582 * @param searchElement The value to locate in the array.
1583 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
1584 * search starts at index 0.
1585 */
1586 lastIndexOf(searchElement: number, fromIndex?: number): number;
1587
1588 /**
1589 * The length of the array.
1590 */
1591 readonly length: number;
1592
1593 /**
1594 * Calls a defined callback function on each element of an array, and returns an array that
1595 * contains the results.
1596 * @param callbackfn A function that accepts up to three arguments. The map method calls the
1597 * callbackfn function one time for each element in the array.
1598 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
1599 * If thisArg is omitted, undefined is used as the this value.
1600 */
1601 map(callbackfn: (value: number, index: number, array: Int8Array) => number, thisArg?: any): Int8Array;
1602
1603 /**
1604 * Calls the specified callback function for all the elements in an array. The return value of
1605 * the callback function is the accumulated result, and is provided as an argument in the next
1606 * call to the callback function.
1607 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
1608 * callbackfn function one time for each element in the array.
1609 * @param initialValue If initialValue is specified, it is used as the initial value to start
1610 * the accumulation. The first call to the callbackfn function provides this value as an argument
1611 * instead of an array value.
1612 */
1613 reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue?: number): number;
1614
1615 /**
1616 * Calls the specified callback function for all the elements in an array. The return value of
1617 * the callback function is the accumulated result, and is provided as an argument in the next
1618 * call to the callback function.
1619 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
1620 * callbackfn function one time for each element in the array.
1621 * @param initialValue If initialValue is specified, it is used as the initial value to start
1622 * the accumulation. The first call to the callbackfn function provides this value as an argument
1623 * instead of an array value.
1624 */
1625 reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;
1626
1627 /**
1628 * Calls the specified callback function for all the elements in an array, in descending order.
1629 * The return value of the callback function is the accumulated result, and is provided as an
1630 * argument in the next call to the callback function.
1631 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
1632 * the callbackfn function one time for each element in the array.
1633 * @param initialValue If initialValue is specified, it is used as the initial value to start
1634 * the accumulation. The first call to the callbackfn function provides this value as an
1635 * argument instead of an array value.
1636 */
1637 reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue?: number): number;
1638
1639 /**
1640 * Calls the specified callback function for all the elements in an array, in descending order.
1641 * The return value of the callback function is the accumulated result, and is provided as an
1642 * argument in the next call to the callback function.
1643 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
1644 * the callbackfn function one time for each element in the array.
1645 * @param initialValue If initialValue is specified, it is used as the initial value to start
1646 * the accumulation. The first call to the callbackfn function provides this value as an argument
1647 * instead of an array value.
1648 */
1649 reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;
1650
1651 /**
1652 * Reverses the elements in an Array.
1653 */
1654 reverse(): Int8Array;
1655
1656 /**
1657 * Sets a value or an array of values.
1658 * @param index The index of the location to set.
1659 * @param value The value to set.
1660 */
1661 set(index: number, value: number): void;
1662
1663 /**
1664 * Sets a value or an array of values.
1665 * @param array A typed or untyped array of values to set.
1666 * @param offset The index in the current array at which the values are to be written.
1667 */
1668 set(array: ArrayLike<number>, offset?: number): void;
1669
1670 /**
1671 * Returns a section of an array.
1672 * @param start The beginning of the specified portion of the array.
1673 * @param end The end of the specified portion of the array.
1674 */
1675 slice(start?: number, end?: number): Int8Array;
1676
1677 /**
1678 * Determines whether the specified callback function returns true for any element of an array.
1679 * @param callbackfn A function that accepts up to three arguments. The some method calls the
1680 * callbackfn function for each element in array1 until the callbackfn returns true, or until
1681 * the end of the array.
1682 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
1683 * If thisArg is omitted, undefined is used as the this value.
1684 */
1685 some(callbackfn: (value: number, index: number, array: Int8Array) => boolean, thisArg?: any): boolean;
1686
1687 /**
1688 * Sorts an array.
1689 * @param compareFn The name of the function used to determine the order of the elements. If
1690 * omitted, the elements are sorted in ascending, ASCII character order.
1691 */
1692 sort(compareFn?: (a: number, b: number) => number): Int8Array;
1693
1694 /**
1695 * Gets a new Int8Array view of the ArrayBuffer store for this array, referencing the elements
1696 * at begin, inclusive, up to end, exclusive.
1697 * @param begin The index of the beginning of the array.
1698 * @param end The index of the end of the array.
1699 */
1700 subarray(begin: number, end?: number): Int8Array;
1701
1702 /**
1703 * Converts a number to a string by using the current locale.
1704 */
1705 toLocaleString(): string;
1706
1707 /**
1708 * Returns a string representation of an array.
1709 */
1710 toString(): string;
1711
1712 [index: number]: number;
1713}
1714interface Int8ArrayConstructor {
1715 readonly prototype: Int8Array;
1716 new (length: number): Int8Array;
1717 new (array: ArrayLike<number>): Int8Array;
1718 new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int8Array;
1719
1720 /**
1721 * The size in bytes of each element in the array.
1722 */
1723 readonly BYTES_PER_ELEMENT: number;
1724
1725 /**
1726 * Returns a new array from a set of elements.
1727 * @param items A set of elements to include in the new array object.
1728 */
1729 of(...items: number[]): Int8Array;
1730
1731 /**
1732 * Creates an array from an array-like or iterable object.
1733 * @param arrayLike An array-like or iterable object to convert to an array.
1734 * @param mapfn A mapping function to call on every element of the array.
1735 * @param thisArg Value of 'this' used to invoke the mapfn.
1736 */
1737 from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int8Array;
1738
1739}
1740declare const Int8Array: Int8ArrayConstructor;
1741
1742/**
1743 * A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the
1744 * requested number of bytes could not be allocated an exception is raised.
1745 */
1746interface Uint8Array {
1747 /**
1748 * The size in bytes of each element in the array.
1749 */
1750 readonly BYTES_PER_ELEMENT: number;
1751
1752 /**
1753 * The ArrayBuffer instance referenced by the array.
1754 */
1755 readonly buffer: ArrayBuffer;
1756
1757 /**
1758 * The length in bytes of the array.
1759 */
1760 readonly byteLength: number;
1761
1762 /**
1763 * The offset in bytes of the array.
1764 */
1765 readonly byteOffset: number;
1766
1767 /**
1768 * Returns the this object after copying a section of the array identified by start and end
1769 * to the same array starting at position target
1770 * @param target If target is negative, it is treated as length+target where length is the
1771 * length of the array.
1772 * @param start If start is negative, it is treated as length+start. If end is negative, it
1773 * is treated as length+end.
1774 * @param end If not specified, length of the this object is used as its default value.
1775 */
1776 copyWithin(target: number, start: number, end?: number): Uint8Array;
1777
1778 /**
1779 * Determines whether all the members of an array satisfy the specified test.
1780 * @param callbackfn A function that accepts up to three arguments. The every method calls
1781 * the callbackfn function for each element in array1 until the callbackfn returns false,
1782 * or until the end of the array.
1783 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
1784 * If thisArg is omitted, undefined is used as the this value.
1785 */
1786 every(callbackfn: (value: number, index: number, array: Uint8Array) => boolean, thisArg?: any): boolean;
1787
1788 /**
1789 * Returns the this object after filling the section identified by start and end with value
1790 * @param value value to fill array section with
1791 * @param start index to start filling the array at. If start is negative, it is treated as
1792 * length+start where length is the length of the array.
1793 * @param end index to stop filling the array at. If end is negative, it is treated as
1794 * length+end.
1795 */
1796 fill(value: number, start?: number, end?: number): Uint8Array;
1797
1798 /**
1799 * Returns the elements of an array that meet the condition specified in a callback function.
1800 * @param callbackfn A function that accepts up to three arguments. The filter method calls
1801 * the callbackfn function one time for each element in the array.
1802 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
1803 * If thisArg is omitted, undefined is used as the this value.
1804 */
1805 filter(callbackfn: (value: number, index: number, array: Uint8Array) => boolean, thisArg?: any): Uint8Array;
1806
1807 /**
1808 * Returns the value of the first element in the array where predicate is true, and undefined
1809 * otherwise.
1810 * @param predicate find calls predicate once for each element of the array, in ascending
1811 * order, until it finds one where predicate returns true. If such an element is found, find
1812 * immediately returns that element value. Otherwise, find returns undefined.
1813 * @param thisArg If provided, it will be used as the this value for each invocation of
1814 * predicate. If it is not provided, undefined is used instead.
1815 */
1816 find(predicate: (value: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number;
1817
1818 /**
1819 * Returns the index of the first element in the array where predicate is true, and undefined
1820 * otherwise.
1821 * @param predicate find calls predicate once for each element of the array, in ascending
1822 * order, until it finds one where predicate returns true. If such an element is found, find
1823 * immediately returns that element value. Otherwise, find returns undefined.
1824 * @param thisArg If provided, it will be used as the this value for each invocation of
1825 * predicate. If it is not provided, undefined is used instead.
1826 */
1827 findIndex(predicate: (value: number) => boolean, thisArg?: any): number;
1828
1829 /**
1830 * Performs the specified action for each element in an array.
1831 * @param callbackfn A function that accepts up to three arguments. forEach calls the
1832 * callbackfn function one time for each element in the array.
1833 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
1834 * If thisArg is omitted, undefined is used as the this value.
1835 */
1836 forEach(callbackfn: (value: number, index: number, array: Uint8Array) => void, thisArg?: any): void;
1837
1838 /**
1839 * Returns the index of the first occurrence of a value in an array.
1840 * @param searchElement The value to locate in the array.
1841 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
1842 * search starts at index 0.
1843 */
1844 indexOf(searchElement: number, fromIndex?: number): number;
1845
1846 /**
1847 * Adds all the elements of an array separated by the specified separator string.
1848 * @param separator A string used to separate one element of an array from the next in the
1849 * resulting String. If omitted, the array elements are separated with a comma.
1850 */
1851 join(separator?: string): string;
1852
1853 /**
1854 * Returns the index of the last occurrence of a value in an array.
1855 * @param searchElement The value to locate in the array.
1856 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
1857 * search starts at index 0.
1858 */
1859 lastIndexOf(searchElement: number, fromIndex?: number): number;
1860
1861 /**
1862 * The length of the array.
1863 */
1864 readonly length: number;
1865
1866 /**
1867 * Calls a defined callback function on each element of an array, and returns an array that
1868 * contains the results.
1869 * @param callbackfn A function that accepts up to three arguments. The map method calls the
1870 * callbackfn function one time for each element in the array.
1871 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
1872 * If thisArg is omitted, undefined is used as the this value.
1873 */
1874 map(callbackfn: (value: number, index: number, array: Uint8Array) => number, thisArg?: any): Uint8Array;
1875
1876 /**
1877 * Calls the specified callback function for all the elements in an array. The return value of
1878 * the callback function is the accumulated result, and is provided as an argument in the next
1879 * call to the callback function.
1880 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
1881 * callbackfn function one time for each element in the array.
1882 * @param initialValue If initialValue is specified, it is used as the initial value to start
1883 * the accumulation. The first call to the callbackfn function provides this value as an argument
1884 * instead of an array value.
1885 */
1886 reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue?: number): number;
1887
1888 /**
1889 * Calls the specified callback function for all the elements in an array. The return value of
1890 * the callback function is the accumulated result, and is provided as an argument in the next
1891 * call to the callback function.
1892 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
1893 * callbackfn function one time for each element in the array.
1894 * @param initialValue If initialValue is specified, it is used as the initial value to start
1895 * the accumulation. The first call to the callbackfn function provides this value as an argument
1896 * instead of an array value.
1897 */
1898 reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;
1899
1900 /**
1901 * Calls the specified callback function for all the elements in an array, in descending order.
1902 * The return value of the callback function is the accumulated result, and is provided as an
1903 * argument in the next call to the callback function.
1904 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
1905 * the callbackfn function one time for each element in the array.
1906 * @param initialValue If initialValue is specified, it is used as the initial value to start
1907 * the accumulation. The first call to the callbackfn function provides this value as an
1908 * argument instead of an array value.
1909 */
1910 reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue?: number): number;
1911
1912 /**
1913 * Calls the specified callback function for all the elements in an array, in descending order.
1914 * The return value of the callback function is the accumulated result, and is provided as an
1915 * argument in the next call to the callback function.
1916 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
1917 * the callbackfn function one time for each element in the array.
1918 * @param initialValue If initialValue is specified, it is used as the initial value to start
1919 * the accumulation. The first call to the callbackfn function provides this value as an argument
1920 * instead of an array value.
1921 */
1922 reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;
1923
1924 /**
1925 * Reverses the elements in an Array.
1926 */
1927 reverse(): Uint8Array;
1928
1929 /**
1930 * Sets a value or an array of values.
1931 * @param index The index of the location to set.
1932 * @param value The value to set.
1933 */
1934 set(index: number, value: number): void;
1935
1936 /**
1937 * Sets a value or an array of values.
1938 * @param array A typed or untyped array of values to set.
1939 * @param offset The index in the current array at which the values are to be written.
1940 */
1941 set(array: ArrayLike<number>, offset?: number): void;
1942
1943 /**
1944 * Returns a section of an array.
1945 * @param start The beginning of the specified portion of the array.
1946 * @param end The end of the specified portion of the array.
1947 */
1948 slice(start?: number, end?: number): Uint8Array;
1949
1950 /**
1951 * Determines whether the specified callback function returns true for any element of an array.
1952 * @param callbackfn A function that accepts up to three arguments. The some method calls the
1953 * callbackfn function for each element in array1 until the callbackfn returns true, or until
1954 * the end of the array.
1955 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
1956 * If thisArg is omitted, undefined is used as the this value.
1957 */
1958 some(callbackfn: (value: number, index: number, array: Uint8Array) => boolean, thisArg?: any): boolean;
1959
1960 /**
1961 * Sorts an array.
1962 * @param compareFn The name of the function used to determine the order of the elements. If
1963 * omitted, the elements are sorted in ascending, ASCII character order.
1964 */
1965 sort(compareFn?: (a: number, b: number) => number): Uint8Array;
1966
1967 /**
1968 * Gets a new Uint8Array view of the ArrayBuffer store for this array, referencing the elements
1969 * at begin, inclusive, up to end, exclusive.
1970 * @param begin The index of the beginning of the array.
1971 * @param end The index of the end of the array.
1972 */
1973 subarray(begin: number, end?: number): Uint8Array;
1974
1975 /**
1976 * Converts a number to a string by using the current locale.
1977 */
1978 toLocaleString(): string;
1979
1980 /**
1981 * Returns a string representation of an array.
1982 */
1983 toString(): string;
1984
1985 [index: number]: number;
1986}
1987
1988interface Uint8ArrayConstructor {
1989 readonly prototype: Uint8Array;
1990 new (length: number): Uint8Array;
1991 new (array: ArrayLike<number>): Uint8Array;
1992 new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint8Array;
1993
1994 /**
1995 * The size in bytes of each element in the array.
1996 */
1997 readonly BYTES_PER_ELEMENT: number;
1998
1999 /**
2000 * Returns a new array from a set of elements.
2001 * @param items A set of elements to include in the new array object.
2002 */
2003 of(...items: number[]): Uint8Array;
2004
2005 /**
2006 * Creates an array from an array-like or iterable object.
2007 * @param arrayLike An array-like or iterable object to convert to an array.
2008 * @param mapfn A mapping function to call on every element of the array.
2009 * @param thisArg Value of 'this' used to invoke the mapfn.
2010 */
2011 from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8Array;
2012
2013}
2014declare const Uint8Array: Uint8ArrayConstructor;
2015
2016/**
2017 * A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0.
2018 * If the requested number of bytes could not be allocated an exception is raised.
2019 */
2020interface Uint8ClampedArray {
2021 /**
2022 * The size in bytes of each element in the array.
2023 */
2024 readonly BYTES_PER_ELEMENT: number;
2025
2026 /**
2027 * The ArrayBuffer instance referenced by the array.
2028 */
2029 readonly buffer: ArrayBuffer;
2030
2031 /**
2032 * The length in bytes of the array.
2033 */
2034 readonly byteLength: number;
2035
2036 /**
2037 * The offset in bytes of the array.
2038 */
2039 readonly byteOffset: number;
2040
2041 /**
2042 * Returns the this object after copying a section of the array identified by start and end
2043 * to the same array starting at position target
2044 * @param target If target is negative, it is treated as length+target where length is the
2045 * length of the array.
2046 * @param start If start is negative, it is treated as length+start. If end is negative, it
2047 * is treated as length+end.
2048 * @param end If not specified, length of the this object is used as its default value.
2049 */
2050 copyWithin(target: number, start: number, end?: number): Uint8ClampedArray;
2051
2052 /**
2053 * Determines whether all the members of an array satisfy the specified test.
2054 * @param callbackfn A function that accepts up to three arguments. The every method calls
2055 * the callbackfn function for each element in array1 until the callbackfn returns false,
2056 * or until the end of the array.
2057 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
2058 * If thisArg is omitted, undefined is used as the this value.
2059 */
2060 every(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => boolean, thisArg?: any): boolean;
2061
2062 /**
2063 * Returns the this object after filling the section identified by start and end with value
2064 * @param value value to fill array section with
2065 * @param start index to start filling the array at. If start is negative, it is treated as
2066 * length+start where length is the length of the array.
2067 * @param end index to stop filling the array at. If end is negative, it is treated as
2068 * length+end.
2069 */
2070 fill(value: number, start?: number, end?: number): Uint8ClampedArray;
2071
2072 /**
2073 * Returns the elements of an array that meet the condition specified in a callback function.
2074 * @param callbackfn A function that accepts up to three arguments. The filter method calls
2075 * the callbackfn function one time for each element in the array.
2076 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
2077 * If thisArg is omitted, undefined is used as the this value.
2078 */
2079 filter(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => boolean, thisArg?: any): Uint8ClampedArray;
2080
2081 /**
2082 * Returns the value of the first element in the array where predicate is true, and undefined
2083 * otherwise.
2084 * @param predicate find calls predicate once for each element of the array, in ascending
2085 * order, until it finds one where predicate returns true. If such an element is found, find
2086 * immediately returns that element value. Otherwise, find returns undefined.
2087 * @param thisArg If provided, it will be used as the this value for each invocation of
2088 * predicate. If it is not provided, undefined is used instead.
2089 */
2090 find(predicate: (value: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number;
2091
2092 /**
2093 * Returns the index of the first element in the array where predicate is true, and undefined
2094 * otherwise.
2095 * @param predicate find calls predicate once for each element of the array, in ascending
2096 * order, until it finds one where predicate returns true. If such an element is found, find
2097 * immediately returns that element value. Otherwise, find returns undefined.
2098 * @param thisArg If provided, it will be used as the this value for each invocation of
2099 * predicate. If it is not provided, undefined is used instead.
2100 */
2101 findIndex(predicate: (value: number) => boolean, thisArg?: any): number;
2102
2103 /**
2104 * Performs the specified action for each element in an array.
2105 * @param callbackfn A function that accepts up to three arguments. forEach calls the
2106 * callbackfn function one time for each element in the array.
2107 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
2108 * If thisArg is omitted, undefined is used as the this value.
2109 */
2110 forEach(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => void, thisArg?: any): void;
2111
2112 /**
2113 * Returns the index of the first occurrence of a value in an array.
2114 * @param searchElement The value to locate in the array.
2115 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
2116 * search starts at index 0.
2117 */
2118 indexOf(searchElement: number, fromIndex?: number): number;
2119
2120 /**
2121 * Adds all the elements of an array separated by the specified separator string.
2122 * @param separator A string used to separate one element of an array from the next in the
2123 * resulting String. If omitted, the array elements are separated with a comma.
2124 */
2125 join(separator?: string): string;
2126
2127 /**
2128 * Returns the index of the last occurrence of a value in an array.
2129 * @param searchElement The value to locate in the array.
2130 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
2131 * search starts at index 0.
2132 */
2133 lastIndexOf(searchElement: number, fromIndex?: number): number;
2134
2135 /**
2136 * The length of the array.
2137 */
2138 readonly length: number;
2139
2140 /**
2141 * Calls a defined callback function on each element of an array, and returns an array that
2142 * contains the results.
2143 * @param callbackfn A function that accepts up to three arguments. The map method calls the
2144 * callbackfn function one time for each element in the array.
2145 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
2146 * If thisArg is omitted, undefined is used as the this value.
2147 */
2148 map(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => number, thisArg?: any): Uint8ClampedArray;
2149
2150 /**
2151 * Calls the specified callback function for all the elements in an array. The return value of
2152 * the callback function is the accumulated result, and is provided as an argument in the next
2153 * call to the callback function.
2154 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
2155 * callbackfn function one time for each element in the array.
2156 * @param initialValue If initialValue is specified, it is used as the initial value to start
2157 * the accumulation. The first call to the callbackfn function provides this value as an argument
2158 * instead of an array value.
2159 */
2160 reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue?: number): number;
2161
2162 /**
2163 * Calls the specified callback function for all the elements in an array. The return value of
2164 * the callback function is the accumulated result, and is provided as an argument in the next
2165 * call to the callback function.
2166 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
2167 * callbackfn function one time for each element in the array.
2168 * @param initialValue If initialValue is specified, it is used as the initial value to start
2169 * the accumulation. The first call to the callbackfn function provides this value as an argument
2170 * instead of an array value.
2171 */
2172 reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;
2173
2174 /**
2175 * Calls the specified callback function for all the elements in an array, in descending order.
2176 * The return value of the callback function is the accumulated result, and is provided as an
2177 * argument in the next call to the callback function.
2178 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
2179 * the callbackfn function one time for each element in the array.
2180 * @param initialValue If initialValue is specified, it is used as the initial value to start
2181 * the accumulation. The first call to the callbackfn function provides this value as an
2182 * argument instead of an array value.
2183 */
2184 reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue?: number): number;
2185
2186 /**
2187 * Calls the specified callback function for all the elements in an array, in descending order.
2188 * The return value of the callback function is the accumulated result, and is provided as an
2189 * argument in the next call to the callback function.
2190 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
2191 * the callbackfn function one time for each element in the array.
2192 * @param initialValue If initialValue is specified, it is used as the initial value to start
2193 * the accumulation. The first call to the callbackfn function provides this value as an argument
2194 * instead of an array value.
2195 */
2196 reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;
2197
2198 /**
2199 * Reverses the elements in an Array.
2200 */
2201 reverse(): Uint8ClampedArray;
2202
2203 /**
2204 * Sets a value or an array of values.
2205 * @param index The index of the location to set.
2206 * @param value The value to set.
2207 */
2208 set(index: number, value: number): void;
2209
2210 /**
2211 * Sets a value or an array of values.
2212 * @param array A typed or untyped array of values to set.
2213 * @param offset The index in the current array at which the values are to be written.
2214 */
2215 set(array: Uint8ClampedArray, offset?: number): void;
2216
2217 /**
2218 * Returns a section of an array.
2219 * @param start The beginning of the specified portion of the array.
2220 * @param end The end of the specified portion of the array.
2221 */
2222 slice(start?: number, end?: number): Uint8ClampedArray;
2223
2224 /**
2225 * Determines whether the specified callback function returns true for any element of an array.
2226 * @param callbackfn A function that accepts up to three arguments. The some method calls the
2227 * callbackfn function for each element in array1 until the callbackfn returns true, or until
2228 * the end of the array.
2229 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
2230 * If thisArg is omitted, undefined is used as the this value.
2231 */
2232 some(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => boolean, thisArg?: any): boolean;
2233
2234 /**
2235 * Sorts an array.
2236 * @param compareFn The name of the function used to determine the order of the elements. If
2237 * omitted, the elements are sorted in ascending, ASCII character order.
2238 */
2239 sort(compareFn?: (a: number, b: number) => number): Uint8ClampedArray;
2240
2241 /**
2242 * Gets a new Uint8ClampedArray view of the ArrayBuffer store for this array, referencing the elements
2243 * at begin, inclusive, up to end, exclusive.
2244 * @param begin The index of the beginning of the array.
2245 * @param end The index of the end of the array.
2246 */
2247 subarray(begin: number, end?: number): Uint8ClampedArray;
2248
2249 /**
2250 * Converts a number to a string by using the current locale.
2251 */
2252 toLocaleString(): string;
2253
2254 /**
2255 * Returns a string representation of an array.
2256 */
2257 toString(): string;
2258
2259 [index: number]: number;
2260}
2261
2262interface Uint8ClampedArrayConstructor {
2263 readonly prototype: Uint8ClampedArray;
2264 new (length: number): Uint8ClampedArray;
2265 new (array: ArrayLike<number>): Uint8ClampedArray;
2266 new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint8ClampedArray;
2267
2268 /**
2269 * The size in bytes of each element in the array.
2270 */
2271 readonly BYTES_PER_ELEMENT: number;
2272
2273 /**
2274 * Returns a new array from a set of elements.
2275 * @param items A set of elements to include in the new array object.
2276 */
2277 of(...items: number[]): Uint8ClampedArray;
2278
2279 /**
2280 * Creates an array from an array-like or iterable object.
2281 * @param arrayLike An array-like or iterable object to convert to an array.
2282 * @param mapfn A mapping function to call on every element of the array.
2283 * @param thisArg Value of 'this' used to invoke the mapfn.
2284 */
2285 from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8ClampedArray;
2286}
2287declare const Uint8ClampedArray: Uint8ClampedArrayConstructor;
2288
2289/**
2290 * A typed array of 16-bit signed integer values. The contents are initialized to 0. If the
2291 * requested number of bytes could not be allocated an exception is raised.
2292 */
2293interface Int16Array {
2294 /**
2295 * The size in bytes of each element in the array.
2296 */
2297 readonly BYTES_PER_ELEMENT: number;
2298
2299 /**
2300 * The ArrayBuffer instance referenced by the array.
2301 */
2302 readonly buffer: ArrayBuffer;
2303
2304 /**
2305 * The length in bytes of the array.
2306 */
2307 readonly byteLength: number;
2308
2309 /**
2310 * The offset in bytes of the array.
2311 */
2312 readonly byteOffset: number;
2313
2314 /**
2315 * Returns the this object after copying a section of the array identified by start and end
2316 * to the same array starting at position target
2317 * @param target If target is negative, it is treated as length+target where length is the
2318 * length of the array.
2319 * @param start If start is negative, it is treated as length+start. If end is negative, it
2320 * is treated as length+end.
2321 * @param end If not specified, length of the this object is used as its default value.
2322 */
2323 copyWithin(target: number, start: number, end?: number): Int16Array;
2324
2325 /**
2326 * Determines whether all the members of an array satisfy the specified test.
2327 * @param callbackfn A function that accepts up to three arguments. The every method calls
2328 * the callbackfn function for each element in array1 until the callbackfn returns false,
2329 * or until the end of the array.
2330 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
2331 * If thisArg is omitted, undefined is used as the this value.
2332 */
2333 every(callbackfn: (value: number, index: number, array: Int16Array) => boolean, thisArg?: any): boolean;
2334
2335 /**
2336 * Returns the this object after filling the section identified by start and end with value
2337 * @param value value to fill array section with
2338 * @param start index to start filling the array at. If start is negative, it is treated as
2339 * length+start where length is the length of the array.
2340 * @param end index to stop filling the array at. If end is negative, it is treated as
2341 * length+end.
2342 */
2343 fill(value: number, start?: number, end?: number): Int16Array;
2344
2345 /**
2346 * Returns the elements of an array that meet the condition specified in a callback function.
2347 * @param callbackfn A function that accepts up to three arguments. The filter method calls
2348 * the callbackfn function one time for each element in the array.
2349 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
2350 * If thisArg is omitted, undefined is used as the this value.
2351 */
2352 filter(callbackfn: (value: number, index: number, array: Int16Array) => boolean, thisArg?: any): Int16Array;
2353
2354 /**
2355 * Returns the value of the first element in the array where predicate is true, and undefined
2356 * otherwise.
2357 * @param predicate find calls predicate once for each element of the array, in ascending
2358 * order, until it finds one where predicate returns true. If such an element is found, find
2359 * immediately returns that element value. Otherwise, find returns undefined.
2360 * @param thisArg If provided, it will be used as the this value for each invocation of
2361 * predicate. If it is not provided, undefined is used instead.
2362 */
2363 find(predicate: (value: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number;
2364
2365 /**
2366 * Returns the index of the first element in the array where predicate is true, and undefined
2367 * otherwise.
2368 * @param predicate find calls predicate once for each element of the array, in ascending
2369 * order, until it finds one where predicate returns true. If such an element is found, find
2370 * immediately returns that element value. Otherwise, find returns undefined.
2371 * @param thisArg If provided, it will be used as the this value for each invocation of
2372 * predicate. If it is not provided, undefined is used instead.
2373 */
2374 findIndex(predicate: (value: number) => boolean, thisArg?: any): number;
2375
2376 /**
2377 * Performs the specified action for each element in an array.
2378 * @param callbackfn A function that accepts up to three arguments. forEach calls the
2379 * callbackfn function one time for each element in the array.
2380 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
2381 * If thisArg is omitted, undefined is used as the this value.
2382 */
2383 forEach(callbackfn: (value: number, index: number, array: Int16Array) => void, thisArg?: any): void;
2384
2385 /**
2386 * Returns the index of the first occurrence of a value in an array.
2387 * @param searchElement The value to locate in the array.
2388 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
2389 * search starts at index 0.
2390 */
2391 indexOf(searchElement: number, fromIndex?: number): number;
2392
2393 /**
2394 * Adds all the elements of an array separated by the specified separator string.
2395 * @param separator A string used to separate one element of an array from the next in the
2396 * resulting String. If omitted, the array elements are separated with a comma.
2397 */
2398 join(separator?: string): string;
2399
2400 /**
2401 * Returns the index of the last occurrence of a value in an array.
2402 * @param searchElement The value to locate in the array.
2403 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
2404 * search starts at index 0.
2405 */
2406 lastIndexOf(searchElement: number, fromIndex?: number): number;
2407
2408 /**
2409 * The length of the array.
2410 */
2411 readonly length: number;
2412
2413 /**
2414 * Calls a defined callback function on each element of an array, and returns an array that
2415 * contains the results.
2416 * @param callbackfn A function that accepts up to three arguments. The map method calls the
2417 * callbackfn function one time for each element in the array.
2418 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
2419 * If thisArg is omitted, undefined is used as the this value.
2420 */
2421 map(callbackfn: (value: number, index: number, array: Int16Array) => number, thisArg?: any): Int16Array;
2422
2423 /**
2424 * Calls the specified callback function for all the elements in an array. The return value of
2425 * the callback function is the accumulated result, and is provided as an argument in the next
2426 * call to the callback function.
2427 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
2428 * 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
2430 * the accumulation. The first call to the callbackfn function provides this value as an argument
2431 * instead of an array value.
2432 */
2433 reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue?: number): number;
2434
2435 /**
2436 * Calls the specified callback function for all the elements in an array. The return value of
2437 * the callback function is the accumulated result, and is provided as an argument in the next
2438 * call to the callback function.
2439 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
2440 * callbackfn function one time for each element in the array.
2441 * @param initialValue If initialValue is specified, it is used as the initial value to start
2442 * the accumulation. The first call to the callbackfn function provides this value as an argument
2443 * instead of an array value.
2444 */
2445 reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;
2446
2447 /**
2448 * Calls the specified callback function for all the elements in an array, in descending order.
2449 * The return value of the callback function is the accumulated result, and is provided as an
2450 * argument in the next call to the callback function.
2451 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
2452 * the callbackfn function one time for each element in the array.
2453 * @param initialValue If initialValue is specified, it is used as the initial value to start
2454 * the accumulation. The first call to the callbackfn function provides this value as an
2455 * argument instead of an array value.
2456 */
2457 reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue?: number): number;
2458
2459 /**
2460 * Calls the specified callback function for all the elements in an array, in descending order.
2461 * The return value of the callback function is the accumulated result, and is provided as an
2462 * argument in the next call to the callback function.
2463 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
2464 * the callbackfn function one time for each element in the array.
2465 * @param initialValue If initialValue is specified, it is used as the initial value to start
2466 * the accumulation. The first call to the callbackfn function provides this value as an argument
2467 * instead of an array value.
2468 */
2469 reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;
2470
2471 /**
2472 * Reverses the elements in an Array.
2473 */
2474 reverse(): Int16Array;
2475
2476 /**
2477 * Sets a value or an array of values.
2478 * @param index The index of the location to set.
2479 * @param value The value to set.
2480 */
2481 set(index: number, value: number): void;
2482
2483 /**
2484 * Sets a value or an array of values.
2485 * @param array A typed or untyped array of values to set.
2486 * @param offset The index in the current array at which the values are to be written.
2487 */
2488 set(array: ArrayLike<number>, offset?: number): void;
2489
2490 /**
2491 * Returns a section of an array.
2492 * @param start The beginning of the specified portion of the array.
2493 * @param end The end of the specified portion of the array.
2494 */
2495 slice(start?: number, end?: number): Int16Array;
2496
2497 /**
2498 * Determines whether the specified callback function returns true for any element of an array.
2499 * @param callbackfn A function that accepts up to three arguments. The some method calls the
2500 * callbackfn function for each element in array1 until the callbackfn returns true, or until
2501 * the end of the array.
2502 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
2503 * If thisArg is omitted, undefined is used as the this value.
2504 */
2505 some(callbackfn: (value: number, index: number, array: Int16Array) => boolean, thisArg?: any): boolean;
2506
2507 /**
2508 * Sorts an array.
2509 * @param compareFn The name of the function used to determine the order of the elements. If
2510 * omitted, the elements are sorted in ascending, ASCII character order.
2511 */
2512 sort(compareFn?: (a: number, b: number) => number): Int16Array;
2513
2514 /**
2515 * Gets a new Int16Array view of the ArrayBuffer store for this array, referencing the elements
2516 * at begin, inclusive, up to end, exclusive.
2517 * @param begin The index of the beginning of the array.
2518 * @param end The index of the end of the array.
2519 */
2520 subarray(begin: number, end?: number): Int16Array;
2521
2522 /**
2523 * Converts a number to a string by using the current locale.
2524 */
2525 toLocaleString(): string;
2526
2527 /**
2528 * Returns a string representation of an array.
2529 */
2530 toString(): string;
2531
2532 [index: number]: number;
2533}
2534
2535interface Int16ArrayConstructor {
2536 readonly prototype: Int16Array;
2537 new (length: number): Int16Array;
2538 new (array: ArrayLike<number>): Int16Array;
2539 new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int16Array;
2540
2541 /**
2542 * The size in bytes of each element in the array.
2543 */
2544 readonly BYTES_PER_ELEMENT: number;
2545
2546 /**
2547 * Returns a new array from a set of elements.
2548 * @param items A set of elements to include in the new array object.
2549 */
2550 of(...items: number[]): Int16Array;
2551
2552 /**
2553 * Creates an array from an array-like or iterable object.
2554 * @param arrayLike An array-like or iterable object to convert to an array.
2555 * @param mapfn A mapping function to call on every element of the array.
2556 * @param thisArg Value of 'this' used to invoke the mapfn.
2557 */
2558 from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int16Array;
2559
2560}
2561declare const Int16Array: Int16ArrayConstructor;
2562
2563/**
2564 * A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the
2565 * requested number of bytes could not be allocated an exception is raised.
2566 */
2567interface Uint16Array {
2568 /**
2569 * The size in bytes of each element in the array.
2570 */
2571 readonly BYTES_PER_ELEMENT: number;
2572
2573 /**
2574 * The ArrayBuffer instance referenced by the array.
2575 */
2576 readonly buffer: ArrayBuffer;
2577
2578 /**
2579 * The length in bytes of the array.
2580 */
2581 readonly byteLength: number;
2582
2583 /**
2584 * The offset in bytes of the array.
2585 */
2586 readonly byteOffset: number;
2587
2588 /**
2589 * Returns the this object after copying a section of the array identified by start and end
2590 * to the same array starting at position target
2591 * @param target If target is negative, it is treated as length+target where length is the
2592 * length of the array.
2593 * @param start If start is negative, it is treated as length+start. If end is negative, it
2594 * is treated as length+end.
2595 * @param end If not specified, length of the this object is used as its default value.
2596 */
2597 copyWithin(target: number, start: number, end?: number): Uint16Array;
2598
2599 /**
2600 * Determines whether all the members of an array satisfy the specified test.
2601 * @param callbackfn A function that accepts up to three arguments. The every method calls
2602 * the callbackfn function for each element in array1 until the callbackfn returns false,
2603 * or until the end of the array.
2604 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
2605 * If thisArg is omitted, undefined is used as the this value.
2606 */
2607 every(callbackfn: (value: number, index: number, array: Uint16Array) => boolean, thisArg?: any): boolean;
2608
2609 /**
2610 * Returns the this object after filling the section identified by start and end with value
2611 * @param value value to fill array section with
2612 * @param start index to start filling the array at. If start is negative, it is treated as
2613 * length+start where length is the length of the array.
2614 * @param end index to stop filling the array at. If end is negative, it is treated as
2615 * length+end.
2616 */
2617 fill(value: number, start?: number, end?: number): Uint16Array;
2618
2619 /**
2620 * Returns the elements of an array that meet the condition specified in a callback function.
2621 * @param callbackfn A function that accepts up to three arguments. The filter method calls
2622 * the callbackfn function one time for each element in the array.
2623 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
2624 * If thisArg is omitted, undefined is used as the this value.
2625 */
2626 filter(callbackfn: (value: number, index: number, array: Uint16Array) => boolean, thisArg?: any): Uint16Array;
2627
2628 /**
2629 * Returns the value of the first element in the array where predicate is true, and undefined
2630 * otherwise.
2631 * @param predicate find calls predicate once for each element of the array, in ascending
2632 * order, until it finds one where predicate returns true. If such an element is found, find
2633 * immediately returns that element value. Otherwise, find returns undefined.
2634 * @param thisArg If provided, it will be used as the this value for each invocation of
2635 * predicate. If it is not provided, undefined is used instead.
2636 */
2637 find(predicate: (value: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number;
2638
2639 /**
2640 * Returns the index of the first element in the array where predicate is true, and undefined
2641 * otherwise.
2642 * @param predicate find calls predicate once for each element of the array, in ascending
2643 * order, until it finds one where predicate returns true. If such an element is found, find
2644 * immediately returns that element value. Otherwise, find returns undefined.
2645 * @param thisArg If provided, it will be used as the this value for each invocation of
2646 * predicate. If it is not provided, undefined is used instead.
2647 */
2648 findIndex(predicate: (value: number) => boolean, thisArg?: any): number;
2649
2650 /**
2651 * Performs the specified action for each element in an array.
2652 * @param callbackfn A function that accepts up to three arguments. forEach calls the
2653 * callbackfn function one time for each element in the array.
2654 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
2655 * If thisArg is omitted, undefined is used as the this value.
2656 */
2657 forEach(callbackfn: (value: number, index: number, array: Uint16Array) => void, thisArg?: any): void;
2658
2659 /**
2660 * Returns the index of the first occurrence of a value in an array.
2661 * @param searchElement The value to locate in the array.
2662 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
2663 * search starts at index 0.
2664 */
2665 indexOf(searchElement: number, fromIndex?: number): number;
2666
2667 /**
2668 * Adds all the elements of an array separated by the specified separator string.
2669 * @param separator A string used to separate one element of an array from the next in the
2670 * resulting String. If omitted, the array elements are separated with a comma.
2671 */
2672 join(separator?: string): string;
2673
2674 /**
2675 * Returns the index of the last occurrence of a value in an array.
2676 * @param searchElement The value to locate in the array.
2677 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
2678 * search starts at index 0.
2679 */
2680 lastIndexOf(searchElement: number, fromIndex?: number): number;
2681
2682 /**
2683 * The length of the array.
2684 */
2685 readonly length: number;
2686
2687 /**
2688 * Calls a defined callback function on each element of an array, and returns an array that
2689 * contains the results.
2690 * @param callbackfn A function that accepts up to three arguments. The map method calls the
2691 * callbackfn function one time for each element in the array.
2692 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
2693 * If thisArg is omitted, undefined is used as the this value.
2694 */
2695 map(callbackfn: (value: number, index: number, array: Uint16Array) => number, thisArg?: any): Uint16Array;
2696
2697 /**
2698 * Calls the specified callback function for all the elements in an array. The return value of
2699 * the callback function is the accumulated result, and is provided as an argument in the next
2700 * call to the callback function.
2701 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
2702 * callbackfn function one time for each element in the array.
2703 * @param initialValue If initialValue is specified, it is used as the initial value to start
2704 * the accumulation. The first call to the callbackfn function provides this value as an argument
2705 * instead of an array value.
2706 */
2707 reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue?: number): number;
2708
2709 /**
2710 * Calls the specified callback function for all the elements in an array. The return value of
2711 * the callback function is the accumulated result, and is provided as an argument in the next
2712 * call to the callback function.
2713 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
2714 * callbackfn function one time for each element in the array.
2715 * @param initialValue If initialValue is specified, it is used as the initial value to start
2716 * the accumulation. The first call to the callbackfn function provides this value as an argument
2717 * instead of an array value.
2718 */
2719 reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;
2720
2721 /**
2722 * Calls the specified callback function for all the elements in an array, in descending order.
2723 * The return value of the callback function is the accumulated result, and is provided as an
2724 * argument in the next call to the callback function.
2725 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
2726 * the callbackfn function one time for each element in the array.
2727 * @param initialValue If initialValue is specified, it is used as the initial value to start
2728 * the accumulation. The first call to the callbackfn function provides this value as an
2729 * argument instead of an array value.
2730 */
2731 reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue?: number): number;
2732
2733 /**
2734 * Calls the specified callback function for all the elements in an array, in descending order.
2735 * The return value of the callback function is the accumulated result, and is provided as an
2736 * argument in the next call to the callback function.
2737 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
2738 * the callbackfn function one time for each element in the array.
2739 * @param initialValue If initialValue is specified, it is used as the initial value to start
2740 * the accumulation. The first call to the callbackfn function provides this value as an argument
2741 * instead of an array value.
2742 */
2743 reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;
2744
2745 /**
2746 * Reverses the elements in an Array.
2747 */
2748 reverse(): Uint16Array;
2749
2750 /**
2751 * Sets a value or an array of values.
2752 * @param index The index of the location to set.
2753 * @param value The value to set.
2754 */
2755 set(index: number, value: number): void;
2756
2757 /**
2758 * Sets a value or an array of values.
2759 * @param array A typed or untyped array of values to set.
2760 * @param offset The index in the current array at which the values are to be written.
2761 */
2762 set(array: ArrayLike<number>, offset?: number): void;
2763
2764 /**
2765 * Returns a section of an array.
2766 * @param start The beginning of the specified portion of the array.
2767 * @param end The end of the specified portion of the array.
2768 */
2769 slice(start?: number, end?: number): Uint16Array;
2770
2771 /**
2772 * Determines whether the specified callback function returns true for any element of an array.
2773 * @param callbackfn A function that accepts up to three arguments. The some method calls the
2774 * callbackfn function for each element in array1 until the callbackfn returns true, or until
2775 * the end of the array.
2776 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
2777 * If thisArg is omitted, undefined is used as the this value.
2778 */
2779 some(callbackfn: (value: number, index: number, array: Uint16Array) => boolean, thisArg?: any): boolean;
2780
2781 /**
2782 * Sorts an array.
2783 * @param compareFn The name of the function used to determine the order of the elements. If
2784 * omitted, the elements are sorted in ascending, ASCII character order.
2785 */
2786 sort(compareFn?: (a: number, b: number) => number): Uint16Array;
2787
2788 /**
2789 * Gets a new Uint16Array view of the ArrayBuffer store for this array, referencing the elements
2790 * at begin, inclusive, up to end, exclusive.
2791 * @param begin The index of the beginning of the array.
2792 * @param end The index of the end of the array.
2793 */
2794 subarray(begin: number, end?: number): Uint16Array;
2795
2796 /**
2797 * Converts a number to a string by using the current locale.
2798 */
2799 toLocaleString(): string;
2800
2801 /**
2802 * Returns a string representation of an array.
2803 */
2804 toString(): string;
2805
2806 [index: number]: number;
2807}
2808
2809interface Uint16ArrayConstructor {
2810 readonly prototype: Uint16Array;
2811 new (length: number): Uint16Array;
2812 new (array: ArrayLike<number>): Uint16Array;
2813 new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint16Array;
2814
2815 /**
2816 * The size in bytes of each element in the array.
2817 */
2818 readonly BYTES_PER_ELEMENT: number;
2819
2820 /**
2821 * Returns a new array from a set of elements.
2822 * @param items A set of elements to include in the new array object.
2823 */
2824 of(...items: number[]): Uint16Array;
2825
2826 /**
2827 * Creates an array from an array-like or iterable object.
2828 * @param arrayLike An array-like or iterable object to convert to an array.
2829 * @param mapfn A mapping function to call on every element of the array.
2830 * @param thisArg Value of 'this' used to invoke the mapfn.
2831 */
2832 from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint16Array;
2833
2834}
2835declare const Uint16Array: Uint16ArrayConstructor;
2836/**
2837 * A typed array of 32-bit signed integer values. The contents are initialized to 0. If the
2838 * requested number of bytes could not be allocated an exception is raised.
2839 */
2840interface Int32Array {
2841 /**
2842 * The size in bytes of each element in the array.
2843 */
2844 readonly BYTES_PER_ELEMENT: number;
2845
2846 /**
2847 * The ArrayBuffer instance referenced by the array.
2848 */
2849 readonly buffer: ArrayBuffer;
2850
2851 /**
2852 * The length in bytes of the array.
2853 */
2854 readonly byteLength: number;
2855
2856 /**
2857 * The offset in bytes of the array.
2858 */
2859 readonly byteOffset: number;
2860
2861 /**
2862 * Returns the this object after copying a section of the array identified by start and end
2863 * to the same array starting at position target
2864 * @param target If target is negative, it is treated as length+target where length is the
2865 * length of the array.
2866 * @param start If start is negative, it is treated as length+start. If end is negative, it
2867 * is treated as length+end.
2868 * @param end If not specified, length of the this object is used as its default value.
2869 */
2870 copyWithin(target: number, start: number, end?: number): Int32Array;
2871
2872 /**
2873 * Determines whether all the members of an array satisfy the specified test.
2874 * @param callbackfn A function that accepts up to three arguments. The every method calls
2875 * the callbackfn function for each element in array1 until the callbackfn returns false,
2876 * or until the end of the array.
2877 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
2878 * If thisArg is omitted, undefined is used as the this value.
2879 */
2880 every(callbackfn: (value: number, index: number, array: Int32Array) => boolean, thisArg?: any): boolean;
2881
2882 /**
2883 * Returns the this object after filling the section identified by start and end with value
2884 * @param value value to fill array section with
2885 * @param start index to start filling the array at. If start is negative, it is treated as
2886 * length+start where length is the length of the array.
2887 * @param end index to stop filling the array at. If end is negative, it is treated as
2888 * length+end.
2889 */
2890 fill(value: number, start?: number, end?: number): Int32Array;
2891
2892 /**
2893 * Returns the elements of an array that meet the condition specified in a callback function.
2894 * @param callbackfn A function that accepts up to three arguments. The filter method calls
2895 * the callbackfn function one time for each element in the array.
2896 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
2897 * If thisArg is omitted, undefined is used as the this value.
2898 */
2899 filter(callbackfn: (value: number, index: number, array: Int32Array) => boolean, thisArg?: any): Int32Array;
2900
2901 /**
2902 * Returns the value of the first element in the array where predicate is true, and undefined
2903 * otherwise.
2904 * @param predicate find calls predicate once for each element of the array, in ascending
2905 * order, until it finds one where predicate returns true. If such an element is found, find
2906 * immediately returns that element value. Otherwise, find returns undefined.
2907 * @param thisArg If provided, it will be used as the this value for each invocation of
2908 * predicate. If it is not provided, undefined is used instead.
2909 */
2910 find(predicate: (value: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number;
2911
2912 /**
2913 * Returns the index of the first element in the array where predicate is true, and undefined
2914 * otherwise.
2915 * @param predicate find calls predicate once for each element of the array, in ascending
2916 * order, until it finds one where predicate returns true. If such an element is found, find
2917 * immediately returns that element value. Otherwise, find returns undefined.
2918 * @param thisArg If provided, it will be used as the this value for each invocation of
2919 * predicate. If it is not provided, undefined is used instead.
2920 */
2921 findIndex(predicate: (value: number) => boolean, thisArg?: any): number;
2922
2923 /**
2924 * Performs the specified action for each element in an array.
2925 * @param callbackfn A function that accepts up to three arguments. forEach calls the
2926 * callbackfn function one time for each element in the array.
2927 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
2928 * If thisArg is omitted, undefined is used as the this value.
2929 */
2930 forEach(callbackfn: (value: number, index: number, array: Int32Array) => void, thisArg?: any): void;
2931
2932 /**
2933 * Returns the index of the first occurrence of a value in an array.
2934 * @param searchElement The value to locate in the array.
2935 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
2936 * search starts at index 0.
2937 */
2938 indexOf(searchElement: number, fromIndex?: number): number;
2939
2940 /**
2941 * Adds all the elements of an array separated by the specified separator string.
2942 * @param separator A string used to separate one element of an array from the next in the
2943 * resulting String. If omitted, the array elements are separated with a comma.
2944 */
2945 join(separator?: string): string;
2946
2947 /**
2948 * Returns the index of the last occurrence of a value in an array.
2949 * @param searchElement The value to locate in the array.
2950 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
2951 * search starts at index 0.
2952 */
2953 lastIndexOf(searchElement: number, fromIndex?: number): number;
2954
2955 /**
2956 * The length of the array.
2957 */
2958 readonly length: number;
2959
2960 /**
2961 * Calls a defined callback function on each element of an array, and returns an array that
2962 * contains the results.
2963 * @param callbackfn A function that accepts up to three arguments. The map method calls the
2964 * callbackfn function one time for each element in the array.
2965 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
2966 * If thisArg is omitted, undefined is used as the this value.
2967 */
2968 map(callbackfn: (value: number, index: number, array: Int32Array) => number, thisArg?: any): Int32Array;
2969
2970 /**
2971 * Calls the specified callback function for all the elements in an array. The return value of
2972 * the callback function is the accumulated result, and is provided as an argument in the next
2973 * call to the callback function.
2974 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
2975 * callbackfn function one time for each element in the array.
2976 * @param initialValue If initialValue is specified, it is used as the initial value to start
2977 * the accumulation. The first call to the callbackfn function provides this value as an argument
2978 * instead of an array value.
2979 */
2980 reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue?: number): number;
2981
2982 /**
2983 * Calls the specified callback function for all the elements in an array. The return value of
2984 * the callback function is the accumulated result, and is provided as an argument in the next
2985 * call to the callback function.
2986 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
2987 * callbackfn function one time for each element in the array.
2988 * @param initialValue If initialValue is specified, it is used as the initial value to start
2989 * the accumulation. The first call to the callbackfn function provides this value as an argument
2990 * instead of an array value.
2991 */
2992 reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;
2993
2994 /**
2995 * Calls the specified callback function for all the elements in an array, in descending order.
2996 * The return value of the callback function is the accumulated result, and is provided as an
2997 * argument in the next call to the callback function.
2998 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
2999 * the callbackfn function one time for each element in the array.
3000 * @param initialValue If initialValue is specified, it is used as the initial value to start
3001 * the accumulation. The first call to the callbackfn function provides this value as an
3002 * argument instead of an array value.
3003 */
3004 reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue?: number): number;
3005
3006 /**
3007 * Calls the specified callback function for all the elements in an array, in descending order.
3008 * The return value of the callback function is the accumulated result, and is provided as an
3009 * argument in the next call to the callback function.
3010 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
3011 * the callbackfn function one time for each element in the array.
3012 * @param initialValue If initialValue is specified, it is used as the initial value to start
3013 * the accumulation. The first call to the callbackfn function provides this value as an argument
3014 * instead of an array value.
3015 */
3016 reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;
3017
3018 /**
3019 * Reverses the elements in an Array.
3020 */
3021 reverse(): Int32Array;
3022
3023 /**
3024 * Sets a value or an array of values.
3025 * @param index The index of the location to set.
3026 * @param value The value to set.
3027 */
3028 set(index: number, value: number): void;
3029
3030 /**
3031 * Sets a value or an array of values.
3032 * @param array A typed or untyped array of values to set.
3033 * @param offset The index in the current array at which the values are to be written.
3034 */
3035 set(array: ArrayLike<number>, offset?: number): void;
3036
3037 /**
3038 * Returns a section of an array.
3039 * @param start The beginning of the specified portion of the array.
3040 * @param end The end of the specified portion of the array.
3041 */
3042 slice(start?: number, end?: number): Int32Array;
3043
3044 /**
3045 * Determines whether the specified callback function returns true for any element of an array.
3046 * @param callbackfn A function that accepts up to three arguments. The some method calls the
3047 * callbackfn function for each element in array1 until the callbackfn returns true, or until
3048 * the end of the array.
3049 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3050 * If thisArg is omitted, undefined is used as the this value.
3051 */
3052 some(callbackfn: (value: number, index: number, array: Int32Array) => boolean, thisArg?: any): boolean;
3053
3054 /**
3055 * Sorts an array.
3056 * @param compareFn The name of the function used to determine the order of the elements. If
3057 * omitted, the elements are sorted in ascending, ASCII character order.
3058 */
3059 sort(compareFn?: (a: number, b: number) => number): Int32Array;
3060
3061 /**
3062 * Gets a new Int32Array view of the ArrayBuffer store for this array, referencing the elements
3063 * at begin, inclusive, up to end, exclusive.
3064 * @param begin The index of the beginning of the array.
3065 * @param end The index of the end of the array.
3066 */
3067 subarray(begin: number, end?: number): Int32Array;
3068
3069 /**
3070 * Converts a number to a string by using the current locale.
3071 */
3072 toLocaleString(): string;
3073
3074 /**
3075 * Returns a string representation of an array.
3076 */
3077 toString(): string;
3078
3079 [index: number]: number;
3080}
3081
3082interface Int32ArrayConstructor {
3083 readonly prototype: Int32Array;
3084 new (length: number): Int32Array;
3085 new (array: ArrayLike<number>): Int32Array;
3086 new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int32Array;
3087
3088 /**
3089 * The size in bytes of each element in the array.
3090 */
3091 readonly BYTES_PER_ELEMENT: number;
3092
3093 /**
3094 * Returns a new array from a set of elements.
3095 * @param items A set of elements to include in the new array object.
3096 */
3097 of(...items: number[]): Int32Array;
3098
3099 /**
3100 * Creates an array from an array-like or iterable object.
3101 * @param arrayLike An array-like or iterable object to convert to an array.
3102 * @param mapfn A mapping function to call on every element of the array.
3103 * @param thisArg Value of 'this' used to invoke the mapfn.
3104 */
3105 from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int32Array;
3106}
3107declare const Int32Array: Int32ArrayConstructor;
3108
3109/**
3110 * A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the
3111 * requested number of bytes could not be allocated an exception is raised.
3112 */
3113interface Uint32Array {
3114 /**
3115 * The size in bytes of each element in the array.
3116 */
3117 readonly BYTES_PER_ELEMENT: number;
3118
3119 /**
3120 * The ArrayBuffer instance referenced by the array.
3121 */
3122 readonly buffer: ArrayBuffer;
3123
3124 /**
3125 * The length in bytes of the array.
3126 */
3127 readonly byteLength: number;
3128
3129 /**
3130 * The offset in bytes of the array.
3131 */
3132 readonly byteOffset: number;
3133
3134 /**
3135 * Returns the this object after copying a section of the array identified by start and end
3136 * to the same array starting at position target
3137 * @param target If target is negative, it is treated as length+target where length is the
3138 * length of the array.
3139 * @param start If start is negative, it is treated as length+start. If end is negative, it
3140 * is treated as length+end.
3141 * @param end If not specified, length of the this object is used as its default value.
3142 */
3143 copyWithin(target: number, start: number, end?: number): Uint32Array;
3144
3145 /**
3146 * Determines whether all the members of an array satisfy the specified test.
3147 * @param callbackfn A function that accepts up to three arguments. The every method calls
3148 * the callbackfn function for each element in array1 until the callbackfn returns false,
3149 * or until the end of the array.
3150 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3151 * If thisArg is omitted, undefined is used as the this value.
3152 */
3153 every(callbackfn: (value: number, index: number, array: Uint32Array) => boolean, thisArg?: any): boolean;
3154
3155 /**
3156 * Returns the this object after filling the section identified by start and end with value
3157 * @param value value to fill array section with
3158 * @param start index to start filling the array at. If start is negative, it is treated as
3159 * length+start where length is the length of the array.
3160 * @param end index to stop filling the array at. If end is negative, it is treated as
3161 * length+end.
3162 */
3163 fill(value: number, start?: number, end?: number): Uint32Array;
3164
3165 /**
3166 * Returns the elements of an array that meet the condition specified in a callback function.
3167 * @param callbackfn A function that accepts up to three arguments. The filter method calls
3168 * the callbackfn function one time for each element in the array.
3169 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3170 * If thisArg is omitted, undefined is used as the this value.
3171 */
3172 filter(callbackfn: (value: number, index: number, array: Uint32Array) => boolean, thisArg?: any): Uint32Array;
3173
3174 /**
3175 * Returns the value of the first element in the array where predicate is true, and undefined
3176 * otherwise.
3177 * @param predicate find calls predicate once for each element of the array, in ascending
3178 * order, until it finds one where predicate returns true. If such an element is found, find
3179 * immediately returns that element value. Otherwise, find returns undefined.
3180 * @param thisArg If provided, it will be used as the this value for each invocation of
3181 * predicate. If it is not provided, undefined is used instead.
3182 */
3183 find(predicate: (value: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number;
3184
3185 /**
3186 * Returns the index of the first element in the array where predicate is true, and undefined
3187 * otherwise.
3188 * @param predicate find calls predicate once for each element of the array, in ascending
3189 * order, until it finds one where predicate returns true. If such an element is found, find
3190 * immediately returns that element value. Otherwise, find returns undefined.
3191 * @param thisArg If provided, it will be used as the this value for each invocation of
3192 * predicate. If it is not provided, undefined is used instead.
3193 */
3194 findIndex(predicate: (value: number) => boolean, thisArg?: any): number;
3195
3196 /**
3197 * Performs the specified action for each element in an array.
3198 * @param callbackfn A function that accepts up to three arguments. forEach calls the
3199 * callbackfn function one time for each element in the array.
3200 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3201 * If thisArg is omitted, undefined is used as the this value.
3202 */
3203 forEach(callbackfn: (value: number, index: number, array: Uint32Array) => void, thisArg?: any): void;
3204
3205 /**
3206 * Returns the index of the first occurrence of a value in an array.
3207 * @param searchElement The value to locate in the array.
3208 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
3209 * search starts at index 0.
3210 */
3211 indexOf(searchElement: number, fromIndex?: number): number;
3212
3213 /**
3214 * Adds all the elements of an array separated by the specified separator string.
3215 * @param separator A string used to separate one element of an array from the next in the
3216 * resulting String. If omitted, the array elements are separated with a comma.
3217 */
3218 join(separator?: string): string;
3219
3220 /**
3221 * Returns the index of the last occurrence of a value in an array.
3222 * @param searchElement The value to locate in the array.
3223 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
3224 * search starts at index 0.
3225 */
3226 lastIndexOf(searchElement: number, fromIndex?: number): number;
3227
3228 /**
3229 * The length of the array.
3230 */
3231 readonly length: number;
3232
3233 /**
3234 * Calls a defined callback function on each element of an array, and returns an array that
3235 * contains the results.
3236 * @param callbackfn A function that accepts up to three arguments. The map method calls the
3237 * callbackfn function one time for each element in the array.
3238 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3239 * If thisArg is omitted, undefined is used as the this value.
3240 */
3241 map(callbackfn: (value: number, index: number, array: Uint32Array) => number, thisArg?: any): Uint32Array;
3242
3243 /**
3244 * Calls the specified callback function for all the elements in an array. The return value of
3245 * the callback function is the accumulated result, and is provided as an argument in the next
3246 * call to the callback function.
3247 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
3248 * callbackfn function one time for each element in the array.
3249 * @param initialValue If initialValue is specified, it is used as the initial value to start
3250 * the accumulation. The first call to the callbackfn function provides this value as an argument
3251 * instead of an array value.
3252 */
3253 reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue?: number): number;
3254
3255 /**
3256 * Calls the specified callback function for all the elements in an array. The return value of
3257 * the callback function is the accumulated result, and is provided as an argument in the next
3258 * call to the callback function.
3259 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
3260 * callbackfn function one time for each element in the array.
3261 * @param initialValue If initialValue is specified, it is used as the initial value to start
3262 * the accumulation. The first call to the callbackfn function provides this value as an argument
3263 * instead of an array value.
3264 */
3265 reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;
3266
3267 /**
3268 * Calls the specified callback function for all the elements in an array, in descending order.
3269 * The return value of the callback function is the accumulated result, and is provided as an
3270 * argument in the next call to the callback function.
3271 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
3272 * the callbackfn function one time for each element in the array.
3273 * @param initialValue If initialValue is specified, it is used as the initial value to start
3274 * the accumulation. The first call to the callbackfn function provides this value as an
3275 * argument instead of an array value.
3276 */
3277 reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue?: number): number;
3278
3279 /**
3280 * Calls the specified callback function for all the elements in an array, in descending order.
3281 * The return value of the callback function is the accumulated result, and is provided as an
3282 * argument in the next call to the callback function.
3283 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
3284 * the callbackfn function one time for each element in the array.
3285 * @param initialValue If initialValue is specified, it is used as the initial value to start
3286 * the accumulation. The first call to the callbackfn function provides this value as an argument
3287 * instead of an array value.
3288 */
3289 reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;
3290
3291 /**
3292 * Reverses the elements in an Array.
3293 */
3294 reverse(): Uint32Array;
3295
3296 /**
3297 * Sets a value or an array of values.
3298 * @param index The index of the location to set.
3299 * @param value The value to set.
3300 */
3301 set(index: number, value: number): void;
3302
3303 /**
3304 * Sets a value or an array of values.
3305 * @param array A typed or untyped array of values to set.
3306 * @param offset The index in the current array at which the values are to be written.
3307 */
3308 set(array: ArrayLike<number>, offset?: number): void;
3309
3310 /**
3311 * Returns a section of an array.
3312 * @param start The beginning of the specified portion of the array.
3313 * @param end The end of the specified portion of the array.
3314 */
3315 slice(start?: number, end?: number): Uint32Array;
3316
3317 /**
3318 * Determines whether the specified callback function returns true for any element of an array.
3319 * @param callbackfn A function that accepts up to three arguments. The some method calls the
3320 * callbackfn function for each element in array1 until the callbackfn returns true, or until
3321 * the end of the array.
3322 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3323 * If thisArg is omitted, undefined is used as the this value.
3324 */
3325 some(callbackfn: (value: number, index: number, array: Uint32Array) => boolean, thisArg?: any): boolean;
3326
3327 /**
3328 * Sorts an array.
3329 * @param compareFn The name of the function used to determine the order of the elements. If
3330 * omitted, the elements are sorted in ascending, ASCII character order.
3331 */
3332 sort(compareFn?: (a: number, b: number) => number): Uint32Array;
3333
3334 /**
3335 * Gets a new Uint32Array view of the ArrayBuffer store for this array, referencing the elements
3336 * at begin, inclusive, up to end, exclusive.
3337 * @param begin The index of the beginning of the array.
3338 * @param end The index of the end of the array.
3339 */
3340 subarray(begin: number, end?: number): Uint32Array;
3341
3342 /**
3343 * Converts a number to a string by using the current locale.
3344 */
3345 toLocaleString(): string;
3346
3347 /**
3348 * Returns a string representation of an array.
3349 */
3350 toString(): string;
3351
3352 [index: number]: number;
3353}
3354
3355interface Uint32ArrayConstructor {
3356 readonly prototype: Uint32Array;
3357 new (length: number): Uint32Array;
3358 new (array: ArrayLike<number>): Uint32Array;
3359 new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint32Array;
3360
3361 /**
3362 * The size in bytes of each element in the array.
3363 */
3364 readonly BYTES_PER_ELEMENT: number;
3365
3366 /**
3367 * Returns a new array from a set of elements.
3368 * @param items A set of elements to include in the new array object.
3369 */
3370 of(...items: number[]): Uint32Array;
3371
3372 /**
3373 * Creates an array from an array-like or iterable object.
3374 * @param arrayLike An array-like or iterable object to convert to an array.
3375 * @param mapfn A mapping function to call on every element of the array.
3376 * @param thisArg Value of 'this' used to invoke the mapfn.
3377 */
3378 from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint32Array;
3379}
3380declare const Uint32Array: Uint32ArrayConstructor;
3381
3382/**
3383 * A typed array of 32-bit float values. The contents are initialized to 0. If the requested number
3384 * of bytes could not be allocated an exception is raised.
3385 */
3386interface Float32Array {
3387 /**
3388 * The size in bytes of each element in the array.
3389 */
3390 readonly BYTES_PER_ELEMENT: number;
3391
3392 /**
3393 * The ArrayBuffer instance referenced by the array.
3394 */
3395 readonly buffer: ArrayBuffer;
3396
3397 /**
3398 * The length in bytes of the array.
3399 */
3400 readonly byteLength: number;
3401
3402 /**
3403 * The offset in bytes of the array.
3404 */
3405 readonly byteOffset: number;
3406
3407 /**
3408 * Returns the this object after copying a section of the array identified by start and end
3409 * to the same array starting at position target
3410 * @param target If target is negative, it is treated as length+target where length is the
3411 * length of the array.
3412 * @param start If start is negative, it is treated as length+start. If end is negative, it
3413 * is treated as length+end.
3414 * @param end If not specified, length of the this object is used as its default value.
3415 */
3416 copyWithin(target: number, start: number, end?: number): Float32Array;
3417
3418 /**
3419 * Determines whether all the members of an array satisfy the specified test.
3420 * @param callbackfn A function that accepts up to three arguments. The every method calls
3421 * the callbackfn function for each element in array1 until the callbackfn returns false,
3422 * or until the end of the array.
3423 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3424 * If thisArg is omitted, undefined is used as the this value.
3425 */
3426 every(callbackfn: (value: number, index: number, array: Float32Array) => boolean, thisArg?: any): boolean;
3427
3428 /**
3429 * Returns the this object after filling the section identified by start and end with value
3430 * @param value value to fill array section with
3431 * @param start index to start filling the array at. If start is negative, it is treated as
3432 * length+start where length is the length of the array.
3433 * @param end index to stop filling the array at. If end is negative, it is treated as
3434 * length+end.
3435 */
3436 fill(value: number, start?: number, end?: number): Float32Array;
3437
3438 /**
3439 * Returns the elements of an array that meet the condition specified in a callback function.
3440 * @param callbackfn A function that accepts up to three arguments. The filter method calls
3441 * the callbackfn function one time for each element in the array.
3442 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3443 * If thisArg is omitted, undefined is used as the this value.
3444 */
3445 filter(callbackfn: (value: number, index: number, array: Float32Array) => boolean, thisArg?: any): Float32Array;
3446
3447 /**
3448 * Returns the value of the first element in the array where predicate is true, and undefined
3449 * otherwise.
3450 * @param predicate find calls predicate once for each element of the array, in ascending
3451 * order, until it finds one where predicate returns true. If such an element is found, find
3452 * immediately returns that element value. Otherwise, find returns undefined.
3453 * @param thisArg If provided, it will be used as the this value for each invocation of
3454 * predicate. If it is not provided, undefined is used instead.
3455 */
3456 find(predicate: (value: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number;
3457
3458 /**
3459 * Returns the index of the first element in the array where predicate is true, and undefined
3460 * otherwise.
3461 * @param predicate find calls predicate once for each element of the array, in ascending
3462 * order, until it finds one where predicate returns true. If such an element is found, find
3463 * immediately returns that element value. Otherwise, find returns undefined.
3464 * @param thisArg If provided, it will be used as the this value for each invocation of
3465 * predicate. If it is not provided, undefined is used instead.
3466 */
3467 findIndex(predicate: (value: number) => boolean, thisArg?: any): number;
3468
3469 /**
3470 * Performs the specified action for each element in an array.
3471 * @param callbackfn A function that accepts up to three arguments. forEach calls the
3472 * callbackfn function one time for each element in the array.
3473 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3474 * If thisArg is omitted, undefined is used as the this value.
3475 */
3476 forEach(callbackfn: (value: number, index: number, array: Float32Array) => void, thisArg?: any): void;
3477
3478 /**
3479 * Returns the index of the first occurrence of a value in an array.
3480 * @param searchElement The value to locate in the array.
3481 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
3482 * search starts at index 0.
3483 */
3484 indexOf(searchElement: number, fromIndex?: number): number;
3485
3486 /**
3487 * Adds all the elements of an array separated by the specified separator string.
3488 * @param separator A string used to separate one element of an array from the next in the
3489 * resulting String. If omitted, the array elements are separated with a comma.
3490 */
3491 join(separator?: string): string;
3492
3493 /**
3494 * Returns the index of the last occurrence of a value in an array.
3495 * @param searchElement The value to locate in the array.
3496 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
3497 * search starts at index 0.
3498 */
3499 lastIndexOf(searchElement: number, fromIndex?: number): number;
3500
3501 /**
3502 * The length of the array.
3503 */
3504 readonly length: number;
3505
3506 /**
3507 * Calls a defined callback function on each element of an array, and returns an array that
3508 * contains the results.
3509 * @param callbackfn A function that accepts up to three arguments. The map method calls the
3510 * callbackfn function one time for each element in the array.
3511 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3512 * If thisArg is omitted, undefined is used as the this value.
3513 */
3514 map(callbackfn: (value: number, index: number, array: Float32Array) => number, thisArg?: any): Float32Array;
3515
3516 /**
3517 * Calls the specified callback function for all the elements in an array. The return value of
3518 * the callback function is the accumulated result, and is provided as an argument in the next
3519 * call to the callback function.
3520 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
3521 * callbackfn function one time for each element in the array.
3522 * @param initialValue If initialValue is specified, it is used as the initial value to start
3523 * the accumulation. The first call to the callbackfn function provides this value as an argument
3524 * instead of an array value.
3525 */
3526 reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue?: number): number;
3527
3528 /**
3529 * Calls the specified callback function for all the elements in an array. The return value of
3530 * the callback function is the accumulated result, and is provided as an argument in the next
3531 * call to the callback function.
3532 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
3533 * callbackfn function one time for each element in the array.
3534 * @param initialValue If initialValue is specified, it is used as the initial value to start
3535 * the accumulation. The first call to the callbackfn function provides this value as an argument
3536 * instead of an array value.
3537 */
3538 reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;
3539
3540 /**
3541 * Calls the specified callback function for all the elements in an array, in descending order.
3542 * The return value of the callback function is the accumulated result, and is provided as an
3543 * argument in the next call to the callback function.
3544 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
3545 * the callbackfn function one time for each element in the array.
3546 * @param initialValue If initialValue is specified, it is used as the initial value to start
3547 * the accumulation. The first call to the callbackfn function provides this value as an
3548 * argument instead of an array value.
3549 */
3550 reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue?: number): number;
3551
3552 /**
3553 * Calls the specified callback function for all the elements in an array, in descending order.
3554 * The return value of the callback function is the accumulated result, and is provided as an
3555 * argument in the next call to the callback function.
3556 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
3557 * the callbackfn function one time for each element in the array.
3558 * @param initialValue If initialValue is specified, it is used as the initial value to start
3559 * the accumulation. The first call to the callbackfn function provides this value as an argument
3560 * instead of an array value.
3561 */
3562 reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;
3563
3564 /**
3565 * Reverses the elements in an Array.
3566 */
3567 reverse(): Float32Array;
3568
3569 /**
3570 * Sets a value or an array of values.
3571 * @param index The index of the location to set.
3572 * @param value The value to set.
3573 */
3574 set(index: number, value: number): void;
3575
3576 /**
3577 * Sets a value or an array of values.
3578 * @param array A typed or untyped array of values to set.
3579 * @param offset The index in the current array at which the values are to be written.
3580 */
3581 set(array: ArrayLike<number>, offset?: number): void;
3582
3583 /**
3584 * Returns a section of an array.
3585 * @param start The beginning of the specified portion of the array.
3586 * @param end The end of the specified portion of the array.
3587 */
3588 slice(start?: number, end?: number): Float32Array;
3589
3590 /**
3591 * Determines whether the specified callback function returns true for any element of an array.
3592 * @param callbackfn A function that accepts up to three arguments. The some method calls the
3593 * callbackfn function for each element in array1 until the callbackfn returns true, or until
3594 * the end of the array.
3595 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3596 * If thisArg is omitted, undefined is used as the this value.
3597 */
3598 some(callbackfn: (value: number, index: number, array: Float32Array) => boolean, thisArg?: any): boolean;
3599
3600 /**
3601 * Sorts an array.
3602 * @param compareFn The name of the function used to determine the order of the elements. If
3603 * omitted, the elements are sorted in ascending, ASCII character order.
3604 */
3605 sort(compareFn?: (a: number, b: number) => number): Float32Array;
3606
3607 /**
3608 * Gets a new Float32Array view of the ArrayBuffer store for this array, referencing the elements
3609 * at begin, inclusive, up to end, exclusive.
3610 * @param begin The index of the beginning of the array.
3611 * @param end The index of the end of the array.
3612 */
3613 subarray(begin: number, end?: number): Float32Array;
3614
3615 /**
3616 * Converts a number to a string by using the current locale.
3617 */
3618 toLocaleString(): string;
3619
3620 /**
3621 * Returns a string representation of an array.
3622 */
3623 toString(): string;
3624
3625 [index: number]: number;
3626}
3627
3628interface Float32ArrayConstructor {
3629 readonly prototype: Float32Array;
3630 new (length: number): Float32Array;
3631 new (array: ArrayLike<number>): Float32Array;
3632 new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Float32Array;
3633
3634 /**
3635 * The size in bytes of each element in the array.
3636 */
3637 readonly BYTES_PER_ELEMENT: number;
3638
3639 /**
3640 * Returns a new array from a set of elements.
3641 * @param items A set of elements to include in the new array object.
3642 */
3643 of(...items: number[]): Float32Array;
3644
3645 /**
3646 * Creates an array from an array-like or iterable object.
3647 * @param arrayLike An array-like or iterable object to convert to an array.
3648 * @param mapfn A mapping function to call on every element of the array.
3649 * @param thisArg Value of 'this' used to invoke the mapfn.
3650 */
3651 from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float32Array;
3652
3653}
3654declare const Float32Array: Float32ArrayConstructor;
3655
3656/**
3657 * A typed array of 64-bit float values. The contents are initialized to 0. If the requested
3658 * number of bytes could not be allocated an exception is raised.
3659 */
3660interface Float64Array {
3661 /**
3662 * The size in bytes of each element in the array.
3663 */
3664 readonly BYTES_PER_ELEMENT: number;
3665
3666 /**
3667 * The ArrayBuffer instance referenced by the array.
3668 */
3669 readonly buffer: ArrayBuffer;
3670
3671 /**
3672 * The length in bytes of the array.
3673 */
3674 readonly byteLength: number;
3675
3676 /**
3677 * The offset in bytes of the array.
3678 */
3679 readonly byteOffset: number;
3680
3681 /**
3682 * Returns the this object after copying a section of the array identified by start and end
3683 * to the same array starting at position target
3684 * @param target If target is negative, it is treated as length+target where length is the
3685 * length of the array.
3686 * @param start If start is negative, it is treated as length+start. If end is negative, it
3687 * is treated as length+end.
3688 * @param end If not specified, length of the this object is used as its default value.
3689 */
3690 copyWithin(target: number, start: number, end?: number): Float64Array;
3691
3692 /**
3693 * Determines whether all the members of an array satisfy the specified test.
3694 * @param callbackfn A function that accepts up to three arguments. The every method calls
3695 * the callbackfn function for each element in array1 until the callbackfn returns false,
3696 * or until the end of the array.
3697 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3698 * If thisArg is omitted, undefined is used as the this value.
3699 */
3700 every(callbackfn: (value: number, index: number, array: Float64Array) => boolean, thisArg?: any): boolean;
3701
3702 /**
3703 * Returns the this object after filling the section identified by start and end with value
3704 * @param value value to fill array section with
3705 * @param start index to start filling the array at. If start is negative, it is treated as
3706 * length+start where length is the length of the array.
3707 * @param end index to stop filling the array at. If end is negative, it is treated as
3708 * length+end.
3709 */
3710 fill(value: number, start?: number, end?: number): Float64Array;
3711
3712 /**
3713 * Returns the elements of an array that meet the condition specified in a callback function.
3714 * @param callbackfn A function that accepts up to three arguments. The filter method calls
3715 * the callbackfn function one time for each element in the array.
3716 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3717 * If thisArg is omitted, undefined is used as the this value.
3718 */
3719 filter(callbackfn: (value: number, index: number, array: Float64Array) => boolean, thisArg?: any): Float64Array;
3720
3721 /**
3722 * Returns the value of the first element in the array where predicate is true, and undefined
3723 * otherwise.
3724 * @param predicate find calls predicate once for each element of the array, in ascending
3725 * order, until it finds one where predicate returns true. If such an element is found, find
3726 * immediately returns that element value. Otherwise, find returns undefined.
3727 * @param thisArg If provided, it will be used as the this value for each invocation of
3728 * predicate. If it is not provided, undefined is used instead.
3729 */
3730 find(predicate: (value: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number;
3731
3732 /**
3733 * Returns the index of the first element in the array where predicate is true, and undefined
3734 * otherwise.
3735 * @param predicate find calls predicate once for each element of the array, in ascending
3736 * order, until it finds one where predicate returns true. If such an element is found, find
3737 * immediately returns that element value. Otherwise, find returns undefined.
3738 * @param thisArg If provided, it will be used as the this value for each invocation of
3739 * predicate. If it is not provided, undefined is used instead.
3740 */
3741 findIndex(predicate: (value: number) => boolean, thisArg?: any): number;
3742
3743 /**
3744 * Performs the specified action for each element in an array.
3745 * @param callbackfn A function that accepts up to three arguments. forEach calls the
3746 * callbackfn function one time for each element in the array.
3747 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3748 * If thisArg is omitted, undefined is used as the this value.
3749 */
3750 forEach(callbackfn: (value: number, index: number, array: Float64Array) => void, thisArg?: any): void;
3751
3752 /**
3753 * Returns the index of the first occurrence of a value in an array.
3754 * @param searchElement The value to locate in the array.
3755 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
3756 * search starts at index 0.
3757 */
3758 indexOf(searchElement: number, fromIndex?: number): number;
3759
3760 /**
3761 * Adds all the elements of an array separated by the specified separator string.
3762 * @param separator A string used to separate one element of an array from the next in the
3763 * resulting String. If omitted, the array elements are separated with a comma.
3764 */
3765 join(separator?: string): string;
3766
3767 /**
3768 * Returns the index of the last occurrence of a value in an array.
3769 * @param searchElement The value to locate in the array.
3770 * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
3771 * search starts at index 0.
3772 */
3773 lastIndexOf(searchElement: number, fromIndex?: number): number;
3774
3775 /**
3776 * The length of the array.
3777 */
3778 readonly length: number;
3779
3780 /**
3781 * Calls a defined callback function on each element of an array, and returns an array that
3782 * contains the results.
3783 * @param callbackfn A function that accepts up to three arguments. The map method calls the
3784 * callbackfn function one time for each element in the array.
3785 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3786 * If thisArg is omitted, undefined is used as the this value.
3787 */
3788 map(callbackfn: (value: number, index: number, array: Float64Array) => number, thisArg?: any): Float64Array;
3789
3790 /**
3791 * Calls the specified callback function for all the elements in an array. The return value of
3792 * the callback function is the accumulated result, and is provided as an argument in the next
3793 * call to the callback function.
3794 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
3795 * callbackfn function one time for each element in the array.
3796 * @param initialValue If initialValue is specified, it is used as the initial value to start
3797 * the accumulation. The first call to the callbackfn function provides this value as an argument
3798 * instead of an array value.
3799 */
3800 reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue?: number): number;
3801
3802 /**
3803 * Calls the specified callback function for all the elements in an array. The return value of
3804 * the callback function is the accumulated result, and is provided as an argument in the next
3805 * call to the callback function.
3806 * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
3807 * callbackfn function one time for each element in the array.
3808 * @param initialValue If initialValue is specified, it is used as the initial value to start
3809 * the accumulation. The first call to the callbackfn function provides this value as an argument
3810 * instead of an array value.
3811 */
3812 reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;
3813
3814 /**
3815 * Calls the specified callback function for all the elements in an array, in descending order.
3816 * The return value of the callback function is the accumulated result, and is provided as an
3817 * argument in the next call to the callback function.
3818 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
3819 * the callbackfn function one time for each element in the array.
3820 * @param initialValue If initialValue is specified, it is used as the initial value to start
3821 * the accumulation. The first call to the callbackfn function provides this value as an
3822 * argument instead of an array value.
3823 */
3824 reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue?: number): number;
3825
3826 /**
3827 * Calls the specified callback function for all the elements in an array, in descending order.
3828 * The return value of the callback function is the accumulated result, and is provided as an
3829 * argument in the next call to the callback function.
3830 * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
3831 * the callbackfn function one time for each element in the array.
3832 * @param initialValue If initialValue is specified, it is used as the initial value to start
3833 * the accumulation. The first call to the callbackfn function provides this value as an argument
3834 * instead of an array value.
3835 */
3836 reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;
3837
3838 /**
3839 * Reverses the elements in an Array.
3840 */
3841 reverse(): Float64Array;
3842
3843 /**
3844 * Sets a value or an array of values.
3845 * @param index The index of the location to set.
3846 * @param value The value to set.
3847 */
3848 set(index: number, value: number): void;
3849
3850 /**
3851 * Sets a value or an array of values.
3852 * @param array A typed or untyped array of values to set.
3853 * @param offset The index in the current array at which the values are to be written.
3854 */
3855 set(array: ArrayLike<number>, offset?: number): void;
3856
3857 /**
3858 * Returns a section of an array.
3859 * @param start The beginning of the specified portion of the array.
3860 * @param end The end of the specified portion of the array.
3861 */
3862 slice(start?: number, end?: number): Float64Array;
3863
3864 /**
3865 * Determines whether the specified callback function returns true for any element of an array.
3866 * @param callbackfn A function that accepts up to three arguments. The some method calls the
3867 * callbackfn function for each element in array1 until the callbackfn returns true, or until
3868 * the end of the array.
3869 * @param thisArg An object to which the this keyword can refer in the callbackfn function.
3870 * If thisArg is omitted, undefined is used as the this value.
3871 */
3872 some(callbackfn: (value: number, index: number, array: Float64Array) => boolean, thisArg?: any): boolean;
3873
3874 /**
3875 * Sorts an array.
3876 * @param compareFn The name of the function used to determine the order of the elements. If
3877 * omitted, the elements are sorted in ascending, ASCII character order.
3878 */
3879 sort(compareFn?: (a: number, b: number) => number): Float64Array;
3880
3881 /**
3882 * Gets a new Float64Array view of the ArrayBuffer store for this array, referencing the elements
3883 * at begin, inclusive, up to end, exclusive.
3884 * @param begin The index of the beginning of the array.
3885 * @param end The index of the end of the array.
3886 */
3887 subarray(begin: number, end?: number): Float64Array;
3888
3889 /**
3890 * Converts a number to a string by using the current locale.
3891 */
3892 toLocaleString(): string;
3893
3894 /**
3895 * Returns a string representation of an array.
3896 */
3897 toString(): string;
3898
3899 [index: number]: number;
3900}
3901
3902interface Float64ArrayConstructor {
3903 readonly prototype: Float64Array;
3904 new (length: number): Float64Array;
3905 new (array: ArrayLike<number>): Float64Array;
3906 new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Float64Array;
3907
3908 /**
3909 * The size in bytes of each element in the array.
3910 */
3911 readonly BYTES_PER_ELEMENT: number;
3912
3913 /**
3914 * Returns a new array from a set of elements.
3915 * @param items A set of elements to include in the new array object.
3916 */
3917 of(...items: number[]): Float64Array;
3918
3919 /**
3920 * Creates an array from an array-like or iterable object.
3921 * @param arrayLike An array-like or iterable object to convert to an array.
3922 * @param mapfn A mapping function to call on every element of the array.
3923 * @param thisArg Value of 'this' used to invoke the mapfn.
3924 */
3925 from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float64Array;
3926}
3927declare const Float64Array: Float64ArrayConstructor;
3928/////////////////////////////
3929/// ECMAScript Internationalization API
3930/////////////////////////////
3931
3932declare module Intl {
3933 interface CollatorOptions {
3934 usage?: string;
3935 localeMatcher?: string;
3936 numeric?: boolean;
3937 caseFirst?: string;
3938 sensitivity?: string;
3939 ignorePunctuation?: boolean;
3940 }
3941
3942 interface ResolvedCollatorOptions {
3943 locale: string;
3944 usage: string;
3945 sensitivity: string;
3946 ignorePunctuation: boolean;
3947 collation: string;
3948 caseFirst: string;
3949 numeric: boolean;
3950 }
3951
3952 interface Collator {
3953 compare(x: string, y: string): number;
3954 resolvedOptions(): ResolvedCollatorOptions;
3955 }
3956 var Collator: {
3957 new (locales?: string[], options?: CollatorOptions): Collator;
3958 new (locale?: string, options?: CollatorOptions): Collator;
3959 (locales?: string[], options?: CollatorOptions): Collator;
3960 (locale?: string, options?: CollatorOptions): Collator;
3961 supportedLocalesOf(locales: string[], options?: CollatorOptions): string[];
3962 supportedLocalesOf(locale: string, options?: CollatorOptions): string[];
3963 }
3964
3965 interface NumberFormatOptions {
3966 localeMatcher?: string;
3967 style?: string;
3968 currency?: string;
3969 currencyDisplay?: string;
3970 useGrouping?: boolean;
3971 minimumIntegerDigits?: number;
3972 minimumFractionDigits?: number;
3973 maximumFractionDigits?: number;
3974 minimumSignificantDigits?: number;
3975 maximumSignificantDigits?: number;
3976 }
3977
3978 interface ResolvedNumberFormatOptions {
3979 locale: string;
3980 numberingSystem: string;
3981 style: string;
3982 currency?: string;
3983 currencyDisplay?: string;
3984 minimumIntegerDigits: number;
3985 minimumFractionDigits: number;
3986 maximumFractionDigits: number;
3987 minimumSignificantDigits?: number;
3988 maximumSignificantDigits?: number;
3989 useGrouping: boolean;
3990 }
3991
3992 interface NumberFormat {
3993 format(value: number): string;
3994 resolvedOptions(): ResolvedNumberFormatOptions;
3995 }
3996 var NumberFormat: {
3997 new (locales?: string[], options?: NumberFormatOptions): NumberFormat;
3998 new (locale?: string, options?: NumberFormatOptions): NumberFormat;
3999 (locales?: string[], options?: NumberFormatOptions): NumberFormat;
4000 (locale?: string, options?: NumberFormatOptions): NumberFormat;
4001 supportedLocalesOf(locales: string[], options?: NumberFormatOptions): string[];
4002 supportedLocalesOf(locale: string, options?: NumberFormatOptions): string[];
4003 }
4004
4005 interface DateTimeFormatOptions {
4006 localeMatcher?: string;
4007 weekday?: string;
4008 era?: string;
4009 year?: string;
4010 month?: string;
4011 day?: string;
4012 hour?: string;
4013 minute?: string;
4014 second?: string;
4015 timeZoneName?: string;
4016 formatMatcher?: string;
4017 hour12?: boolean;
4018 timeZone?: string;
4019 }
4020
4021 interface ResolvedDateTimeFormatOptions {
4022 locale: string;
4023 calendar: string;
4024 numberingSystem: string;
4025 timeZone: string;
4026 hour12?: boolean;
4027 weekday?: string;
4028 era?: string;
4029 year?: string;
4030 month?: string;
4031 day?: string;
4032 hour?: string;
4033 minute?: string;
4034 second?: string;
4035 timeZoneName?: string;
4036 }
4037
4038 interface DateTimeFormat {
4039 format(date?: Date | number): string;
4040 resolvedOptions(): ResolvedDateTimeFormatOptions;
4041 }
4042 var DateTimeFormat: {
4043 new (locales?: string[], options?: DateTimeFormatOptions): DateTimeFormat;
4044 new (locale?: string, options?: DateTimeFormatOptions): DateTimeFormat;
4045 (locales?: string[], options?: DateTimeFormatOptions): DateTimeFormat;
4046 (locale?: string, options?: DateTimeFormatOptions): DateTimeFormat;
4047 supportedLocalesOf(locales: string[], options?: DateTimeFormatOptions): string[];
4048 supportedLocalesOf(locale: string, options?: DateTimeFormatOptions): string[];
4049 }
4050}
4051
4052interface String {
4053 /**
4054 * Determines whether two strings are equivalent in the current locale.
4055 * @param that String to compare to target string
4056 * @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.
4057 * @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.
4058 */
4059 localeCompare(that: string, locales: string[], options?: Intl.CollatorOptions): number;
4060
4061 /**
4062 * Determines whether two strings are equivalent in the current locale.
4063 * @param that String to compare to target string
4064 * @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.
4065 * @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.
4066 */
4067 localeCompare(that: string, locale: string, options?: Intl.CollatorOptions): number;
4068}
4069
4070interface Number {
4071 /**
4072 * Converts a number to a string by using the current or specified locale.
4073 * @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.
4074 * @param options An object that contains one or more properties that specify comparison options.
4075 */
4076 toLocaleString(locales?: string[], options?: Intl.NumberFormatOptions): string;
4077
4078 /**
4079 * Converts a number to a string by using the current or specified locale.
4080 * @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used.
4081 * @param options An object that contains one or more properties that specify comparison options.
4082 */
4083 toLocaleString(locale?: string, options?: Intl.NumberFormatOptions): string;
4084}
4085
4086interface Date {
4087 /**
4088 * Converts a date and time to a string by using the current or specified locale.
4089 * @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.
4090 * @param options An object that contains one or more properties that specify comparison options.
4091 */
4092 toLocaleString(locales?: string[], options?: Intl.DateTimeFormatOptions): string;
4093 /**
4094 * Converts a date to a string by using the current or specified locale.
4095 * @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.
4096 * @param options An object that contains one or more properties that specify comparison options.
4097 */
4098 toLocaleDateString(locales?: string[], options?: Intl.DateTimeFormatOptions): string;
4099
4100 /**
4101 * Converts a time to a string by using the current or specified locale.
4102 * @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used.
4103 * @param options An object that contains one or more properties that specify comparison options.
4104 */
4105 toLocaleTimeString(locale?: string[], options?: Intl.DateTimeFormatOptions): string;
4106
4107 /**
4108 * Converts a date and time to a string by using the current or specified locale.
4109 * @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used.
4110 * @param options An object that contains one or more properties that specify comparison options.
4111 */
4112 toLocaleString(locale?: string, options?: Intl.DateTimeFormatOptions): string;
4113
4114 /**
4115 * Converts a date to a string by using the current or specified locale.
4116 * @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used.
4117 * @param options An object that contains one or more properties that specify comparison options.
4118 */
4119 toLocaleDateString(locale?: string, options?: Intl.DateTimeFormatOptions): string;
4120
4121 /**
4122 * Converts a time to a string by using the current or specified locale.
4123 * @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used.
4124 * @param options An object that contains one or more properties that specify comparison options.
4125 */
4126 toLocaleTimeString(locale?: string, options?: Intl.DateTimeFormatOptions): string;
4127}
4128
4129
4130/////////////////////////////
4131/// IE DOM APIs
4132/////////////////////////////
4133
4134interface Algorithm {
4135 name?: string;
4136}
4137
4138interface AriaRequestEventInit extends EventInit {
4139 attributeName?: string;
4140 attributeValue?: string;
4141}
4142
4143interface ClipboardEventInit extends EventInit {
4144 data?: string;
4145 dataType?: string;
4146}
4147
4148interface CommandEventInit extends EventInit {
4149 commandName?: string;
4150 detail?: string;
4151}
4152
4153interface CompositionEventInit extends UIEventInit {
4154 data?: string;
4155}
4156
4157interface ConfirmSiteSpecificExceptionsInformation extends ExceptionInformation {
4158 arrayOfDomainStrings?: string[];
4159}
4160
4161interface CustomEventInit extends EventInit {
4162 detail?: any;
4163}
4164
4165interface DeviceAccelerationDict {
4166 x?: number;
4167 y?: number;
4168 z?: number;
4169}
4170
4171interface DeviceRotationRateDict {
4172 alpha?: number;
4173 beta?: number;
4174 gamma?: number;
4175}
4176
4177interface EventInit {
4178 bubbles?: boolean;
4179 cancelable?: boolean;
4180}
4181
4182interface ExceptionInformation {
4183 domain?: string;
4184}
4185
4186interface FocusEventInit extends UIEventInit {
4187 relatedTarget?: EventTarget;
4188}
4189
4190interface HashChangeEventInit extends EventInit {
4191 newURL?: string;
4192 oldURL?: string;
4193}
4194
4195interface KeyAlgorithm {
4196 name?: string;
4197}
4198
4199interface KeyboardEventInit extends SharedKeyboardAndMouseEventInit {
4200 key?: string;
4201 location?: number;
4202 repeat?: boolean;
4203}
4204
4205interface MouseEventInit extends SharedKeyboardAndMouseEventInit {
4206 screenX?: number;
4207 screenY?: number;
4208 clientX?: number;
4209 clientY?: number;
4210 button?: number;
4211 buttons?: number;
4212 relatedTarget?: EventTarget;
4213}
4214
4215interface MsZoomToOptions {
4216 contentX?: number;
4217 contentY?: number;
4218 viewportX?: string;
4219 viewportY?: string;
4220 scaleFactor?: number;
4221 animate?: string;
4222}
4223
4224interface MutationObserverInit {
4225 childList?: boolean;
4226 attributes?: boolean;
4227 characterData?: boolean;
4228 subtree?: boolean;
4229 attributeOldValue?: boolean;
4230 characterDataOldValue?: boolean;
4231 attributeFilter?: string[];
4232}
4233
4234interface ObjectURLOptions {
4235 oneTimeOnly?: boolean;
4236}
4237
4238interface PointerEventInit extends MouseEventInit {
4239 pointerId?: number;
4240 width?: number;
4241 height?: number;
4242 pressure?: number;
4243 tiltX?: number;
4244 tiltY?: number;
4245 pointerType?: string;
4246 isPrimary?: boolean;
4247}
4248
4249interface PositionOptions {
4250 enableHighAccuracy?: boolean;
4251 timeout?: number;
4252 maximumAge?: number;
4253}
4254
4255interface SharedKeyboardAndMouseEventInit extends UIEventInit {
4256 ctrlKey?: boolean;
4257 shiftKey?: boolean;
4258 altKey?: boolean;
4259 metaKey?: boolean;
4260 keyModifierStateAltGraph?: boolean;
4261 keyModifierStateCapsLock?: boolean;
4262 keyModifierStateFn?: boolean;
4263 keyModifierStateFnLock?: boolean;
4264 keyModifierStateHyper?: boolean;
4265 keyModifierStateNumLock?: boolean;
4266 keyModifierStateOS?: boolean;
4267 keyModifierStateScrollLock?: boolean;
4268 keyModifierStateSuper?: boolean;
4269 keyModifierStateSymbol?: boolean;
4270 keyModifierStateSymbolLock?: boolean;
4271}
4272
4273interface StoreExceptionsInformation extends ExceptionInformation {
4274 siteName?: string;
4275 explanationString?: string;
4276 detailURI?: string;
4277}
4278
4279interface StoreSiteSpecificExceptionsInformation extends StoreExceptionsInformation {
4280 arrayOfDomainStrings?: string[];
4281}
4282
4283interface UIEventInit extends EventInit {
4284 view?: Window;
4285 detail?: number;
4286}
4287
4288interface WebGLContextAttributes {
4289 alpha?: boolean;
4290 depth?: boolean;
4291 stencil?: boolean;
4292 antialias?: boolean;
4293 premultipliedAlpha?: boolean;
4294 preserveDrawingBuffer?: boolean;
4295}
4296
4297interface WebGLContextEventInit extends EventInit {
4298 statusMessage?: string;
4299}
4300
4301interface WheelEventInit extends MouseEventInit {
4302 deltaX?: number;
4303 deltaY?: number;
4304 deltaZ?: number;
4305 deltaMode?: number;
4306}
4307
4308interface EventListener {
4309 (evt: Event): void;
4310}
4311
4312interface ANGLE_instanced_arrays {
4313 drawArraysInstancedANGLE(mode: number, first: number, count: number, primcount: number): void;
4314 drawElementsInstancedANGLE(mode: number, count: number, type: number, offset: number, primcount: number): void;
4315 vertexAttribDivisorANGLE(index: number, divisor: number): void;
4316 VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: number;
4317}
4318
4319declare var ANGLE_instanced_arrays: {
4320 prototype: ANGLE_instanced_arrays;
4321 new(): ANGLE_instanced_arrays;
4322 VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: number;
4323}
4324
4325interface AnalyserNode extends AudioNode {
4326 fftSize: number;
4327 frequencyBinCount: number;
4328 maxDecibels: number;
4329 minDecibels: number;
4330 smoothingTimeConstant: number;
4331 getByteFrequencyData(array: Uint8Array): void;
4332 getByteTimeDomainData(array: Uint8Array): void;
4333 getFloatFrequencyData(array: Float32Array): void;
4334 getFloatTimeDomainData(array: Float32Array): void;
4335}
4336
4337declare var AnalyserNode: {
4338 prototype: AnalyserNode;
4339 new(): AnalyserNode;
4340}
4341
4342interface AnimationEvent extends Event {
4343 animationName: string;
4344 elapsedTime: number;
4345 initAnimationEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, animationNameArg: string, elapsedTimeArg: number): void;
4346}
4347
4348declare var AnimationEvent: {
4349 prototype: AnimationEvent;
4350 new(): AnimationEvent;
4351}
4352
4353interface ApplicationCache extends EventTarget {
4354 oncached: (ev: Event) => any;
4355 onchecking: (ev: Event) => any;
4356 ondownloading: (ev: Event) => any;
4357 onerror: (ev: Event) => any;
4358 onnoupdate: (ev: Event) => any;
4359 onobsolete: (ev: Event) => any;
4360 onprogress: (ev: ProgressEvent) => any;
4361 onupdateready: (ev: Event) => any;
4362 status: number;
4363 abort(): void;
4364 swapCache(): void;
4365 update(): void;
4366 CHECKING: number;
4367 DOWNLOADING: number;
4368 IDLE: number;
4369 OBSOLETE: number;
4370 UNCACHED: number;
4371 UPDATEREADY: number;
4372 addEventListener(type: "cached", listener: (ev: Event) => any, useCapture?: boolean): void;
4373 addEventListener(type: "checking", listener: (ev: Event) => any, useCapture?: boolean): void;
4374 addEventListener(type: "downloading", listener: (ev: Event) => any, useCapture?: boolean): void;
4375 addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
4376 addEventListener(type: "noupdate", listener: (ev: Event) => any, useCapture?: boolean): void;
4377 addEventListener(type: "obsolete", listener: (ev: Event) => any, useCapture?: boolean): void;
4378 addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
4379 addEventListener(type: "updateready", listener: (ev: Event) => any, useCapture?: boolean): void;
4380 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
4381}
4382
4383declare var ApplicationCache: {
4384 prototype: ApplicationCache;
4385 new(): ApplicationCache;
4386 CHECKING: number;
4387 DOWNLOADING: number;
4388 IDLE: number;
4389 OBSOLETE: number;
4390 UNCACHED: number;
4391 UPDATEREADY: number;
4392}
4393
4394interface AriaRequestEvent extends Event {
4395 attributeName: string;
4396 attributeValue: string;
4397}
4398
4399declare var AriaRequestEvent: {
4400 prototype: AriaRequestEvent;
4401 new(type: string, eventInitDict?: AriaRequestEventInit): AriaRequestEvent;
4402}
4403
4404interface Attr extends Node {
4405 name: string;
4406 ownerElement: Element;
4407 specified: boolean;
4408 value: string;
4409}
4410
4411declare var Attr: {
4412 prototype: Attr;
4413 new(): Attr;
4414}
4415
4416interface AudioBuffer {
4417 duration: number;
4418 length: number;
4419 numberOfChannels: number;
4420 sampleRate: number;
4421 getChannelData(channel: number): Float32Array;
4422}
4423
4424declare var AudioBuffer: {
4425 prototype: AudioBuffer;
4426 new(): AudioBuffer;
4427}
4428
4429interface AudioBufferSourceNode extends AudioNode {
4430 buffer: AudioBuffer;
4431 loop: boolean;
4432 loopEnd: number;
4433 loopStart: number;
4434 onended: (ev: Event) => any;
4435 playbackRate: AudioParam;
4436 start(when?: number, offset?: number, duration?: number): void;
4437 stop(when?: number): void;
4438 addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void;
4439 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
4440}
4441
4442declare var AudioBufferSourceNode: {
4443 prototype: AudioBufferSourceNode;
4444 new(): AudioBufferSourceNode;
4445}
4446
4447interface AudioContext extends EventTarget {
4448 currentTime: number;
4449 destination: AudioDestinationNode;
4450 listener: AudioListener;
4451 sampleRate: number;
4452 state: string;
4453 createAnalyser(): AnalyserNode;
4454 createBiquadFilter(): BiquadFilterNode;
4455 createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer;
4456 createBufferSource(): AudioBufferSourceNode;
4457 createChannelMerger(numberOfInputs?: number): ChannelMergerNode;
4458 createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode;
4459 createConvolver(): ConvolverNode;
4460 createDelay(maxDelayTime?: number): DelayNode;
4461 createDynamicsCompressor(): DynamicsCompressorNode;
4462 createGain(): GainNode;
4463 createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode;
4464 createOscillator(): OscillatorNode;
4465 createPanner(): PannerNode;
4466 createPeriodicWave(real: Float32Array, imag: Float32Array): PeriodicWave;
4467 createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode;
4468 createStereoPanner(): StereoPannerNode;
4469 createWaveShaper(): WaveShaperNode;
4470 decodeAudioData(audioData: ArrayBuffer, successCallback: DecodeSuccessCallback, errorCallback?: DecodeErrorCallback): void;
4471}
4472
4473declare var AudioContext: {
4474 prototype: AudioContext;
4475 new(): AudioContext;
4476}
4477
4478interface AudioDestinationNode extends AudioNode {
4479 maxChannelCount: number;
4480}
4481
4482declare var AudioDestinationNode: {
4483 prototype: AudioDestinationNode;
4484 new(): AudioDestinationNode;
4485}
4486
4487interface AudioListener {
4488 dopplerFactor: number;
4489 speedOfSound: number;
4490 setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, zUp: number): void;
4491 setPosition(x: number, y: number, z: number): void;
4492 setVelocity(x: number, y: number, z: number): void;
4493}
4494
4495declare var AudioListener: {
4496 prototype: AudioListener;
4497 new(): AudioListener;
4498}
4499
4500interface AudioNode extends EventTarget {
4501 channelCount: number;
4502 channelCountMode: string;
4503 channelInterpretation: string;
4504 context: AudioContext;
4505 numberOfInputs: number;
4506 numberOfOutputs: number;
4507 connect(destination: AudioNode, output?: number, input?: number): void;
4508 disconnect(output?: number): void;
4509}
4510
4511declare var AudioNode: {
4512 prototype: AudioNode;
4513 new(): AudioNode;
4514}
4515
4516interface AudioParam {
4517 defaultValue: number;
4518 value: number;
4519 cancelScheduledValues(startTime: number): void;
4520 exponentialRampToValueAtTime(value: number, endTime: number): void;
4521 linearRampToValueAtTime(value: number, endTime: number): void;
4522 setTargetAtTime(target: number, startTime: number, timeConstant: number): void;
4523 setValueAtTime(value: number, startTime: number): void;
4524 setValueCurveAtTime(values: Float32Array, startTime: number, duration: number): void;
4525}
4526
4527declare var AudioParam: {
4528 prototype: AudioParam;
4529 new(): AudioParam;
4530}
4531
4532interface AudioProcessingEvent extends Event {
4533 inputBuffer: AudioBuffer;
4534 outputBuffer: AudioBuffer;
4535 playbackTime: number;
4536}
4537
4538declare var AudioProcessingEvent: {
4539 prototype: AudioProcessingEvent;
4540 new(): AudioProcessingEvent;
4541}
4542
4543interface AudioTrack {
4544 enabled: boolean;
4545 id: string;
4546 kind: string;
4547 label: string;
4548 language: string;
4549 sourceBuffer: SourceBuffer;
4550}
4551
4552declare var AudioTrack: {
4553 prototype: AudioTrack;
4554 new(): AudioTrack;
4555}
4556
4557interface AudioTrackList extends EventTarget {
4558 length: number;
4559 onaddtrack: (ev: TrackEvent) => any;
4560 onchange: (ev: Event) => any;
4561 onremovetrack: (ev: TrackEvent) => any;
4562 getTrackById(id: string): AudioTrack;
4563 item(index: number): AudioTrack;
4564 addEventListener(type: "addtrack", listener: (ev: TrackEvent) => any, useCapture?: boolean): void;
4565 addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void;
4566 addEventListener(type: "removetrack", listener: (ev: TrackEvent) => any, useCapture?: boolean): void;
4567 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
4568 [index: number]: AudioTrack;
4569}
4570
4571declare var AudioTrackList: {
4572 prototype: AudioTrackList;
4573 new(): AudioTrackList;
4574}
4575
4576interface BarProp {
4577 visible: boolean;
4578}
4579
4580declare var BarProp: {
4581 prototype: BarProp;
4582 new(): BarProp;
4583}
4584
4585interface BeforeUnloadEvent extends Event {
4586 returnValue: any;
4587}
4588
4589declare var BeforeUnloadEvent: {
4590 prototype: BeforeUnloadEvent;
4591 new(): BeforeUnloadEvent;
4592}
4593
4594interface BiquadFilterNode extends AudioNode {
4595 Q: AudioParam;
4596 detune: AudioParam;
4597 frequency: AudioParam;
4598 gain: AudioParam;
4599 type: string;
4600 getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;
4601}
4602
4603declare var BiquadFilterNode: {
4604 prototype: BiquadFilterNode;
4605 new(): BiquadFilterNode;
4606}
4607
4608interface Blob {
4609 size: number;
4610 type: string;
4611 msClose(): void;
4612 msDetachStream(): any;
4613 slice(start?: number, end?: number, contentType?: string): Blob;
4614}
4615
4616declare var Blob: {
4617 prototype: Blob;
4618 new (blobParts?: any[], options?: BlobPropertyBag): Blob;
4619}
4620
4621interface CDATASection extends Text {
4622}
4623
4624declare var CDATASection: {
4625 prototype: CDATASection;
4626 new(): CDATASection;
4627}
4628
4629interface CSS {
4630 supports(property: string, value?: string): boolean;
4631}
4632declare var CSS: CSS;
4633
4634interface CSSConditionRule extends CSSGroupingRule {
4635 conditionText: string;
4636}
4637
4638declare var CSSConditionRule: {
4639 prototype: CSSConditionRule;
4640 new(): CSSConditionRule;
4641}
4642
4643interface CSSFontFaceRule extends CSSRule {
4644 style: CSSStyleDeclaration;
4645}
4646
4647declare var CSSFontFaceRule: {
4648 prototype: CSSFontFaceRule;
4649 new(): CSSFontFaceRule;
4650}
4651
4652interface CSSGroupingRule extends CSSRule {
4653 cssRules: CSSRuleList;
4654 deleteRule(index?: number): void;
4655 insertRule(rule: string, index?: number): number;
4656}
4657
4658declare var CSSGroupingRule: {
4659 prototype: CSSGroupingRule;
4660 new(): CSSGroupingRule;
4661}
4662
4663interface CSSImportRule extends CSSRule {
4664 href: string;
4665 media: MediaList;
4666 styleSheet: CSSStyleSheet;
4667}
4668
4669declare var CSSImportRule: {
4670 prototype: CSSImportRule;
4671 new(): CSSImportRule;
4672}
4673
4674interface CSSKeyframeRule extends CSSRule {
4675 keyText: string;
4676 style: CSSStyleDeclaration;
4677}
4678
4679declare var CSSKeyframeRule: {
4680 prototype: CSSKeyframeRule;
4681 new(): CSSKeyframeRule;
4682}
4683
4684interface CSSKeyframesRule extends CSSRule {
4685 cssRules: CSSRuleList;
4686 name: string;
4687 appendRule(rule: string): void;
4688 deleteRule(rule: string): void;
4689 findRule(rule: string): CSSKeyframeRule;
4690}
4691
4692declare var CSSKeyframesRule: {
4693 prototype: CSSKeyframesRule;
4694 new(): CSSKeyframesRule;
4695}
4696
4697interface CSSMediaRule extends CSSConditionRule {
4698 media: MediaList;
4699}
4700
4701declare var CSSMediaRule: {
4702 prototype: CSSMediaRule;
4703 new(): CSSMediaRule;
4704}
4705
4706interface CSSNamespaceRule extends CSSRule {
4707 namespaceURI: string;
4708 prefix: string;
4709}
4710
4711declare var CSSNamespaceRule: {
4712 prototype: CSSNamespaceRule;
4713 new(): CSSNamespaceRule;
4714}
4715
4716interface CSSPageRule extends CSSRule {
4717 pseudoClass: string;
4718 selector: string;
4719 selectorText: string;
4720 style: CSSStyleDeclaration;
4721}
4722
4723declare var CSSPageRule: {
4724 prototype: CSSPageRule;
4725 new(): CSSPageRule;
4726}
4727
4728interface CSSRule {
4729 cssText: string;
4730 parentRule: CSSRule;
4731 parentStyleSheet: CSSStyleSheet;
4732 type: number;
4733 CHARSET_RULE: number;
4734 FONT_FACE_RULE: number;
4735 IMPORT_RULE: number;
4736 KEYFRAMES_RULE: number;
4737 KEYFRAME_RULE: number;
4738 MEDIA_RULE: number;
4739 NAMESPACE_RULE: number;
4740 PAGE_RULE: number;
4741 STYLE_RULE: number;
4742 SUPPORTS_RULE: number;
4743 UNKNOWN_RULE: number;
4744 VIEWPORT_RULE: number;
4745}
4746
4747declare var CSSRule: {
4748 prototype: CSSRule;
4749 new(): CSSRule;
4750 CHARSET_RULE: number;
4751 FONT_FACE_RULE: number;
4752 IMPORT_RULE: number;
4753 KEYFRAMES_RULE: number;
4754 KEYFRAME_RULE: number;
4755 MEDIA_RULE: number;
4756 NAMESPACE_RULE: number;
4757 PAGE_RULE: number;
4758 STYLE_RULE: number;
4759 SUPPORTS_RULE: number;
4760 UNKNOWN_RULE: number;
4761 VIEWPORT_RULE: number;
4762}
4763
4764interface CSSRuleList {
4765 length: number;
4766 item(index: number): CSSRule;
4767 [index: number]: CSSRule;
4768}
4769
4770declare var CSSRuleList: {
4771 prototype: CSSRuleList;
4772 new(): CSSRuleList;
4773}
4774
4775interface CSSStyleDeclaration {
4776 alignContent: string;
4777 alignItems: string;
4778 alignSelf: string;
4779 alignmentBaseline: string;
4780 animation: string;
4781 animationDelay: string;
4782 animationDirection: string;
4783 animationDuration: string;
4784 animationFillMode: string;
4785 animationIterationCount: string;
4786 animationName: string;
4787 animationPlayState: string;
4788 animationTimingFunction: string;
4789 backfaceVisibility: string;
4790 background: string;
4791 backgroundAttachment: string;
4792 backgroundClip: string;
4793 backgroundColor: string;
4794 backgroundImage: string;
4795 backgroundOrigin: string;
4796 backgroundPosition: string;
4797 backgroundPositionX: string;
4798 backgroundPositionY: string;
4799 backgroundRepeat: string;
4800 backgroundSize: string;
4801 baselineShift: string;
4802 border: string;
4803 borderBottom: string;
4804 borderBottomColor: string;
4805 borderBottomLeftRadius: string;
4806 borderBottomRightRadius: string;
4807 borderBottomStyle: string;
4808 borderBottomWidth: string;
4809 borderCollapse: string;
4810 borderColor: string;
4811 borderImage: string;
4812 borderImageOutset: string;
4813 borderImageRepeat: string;
4814 borderImageSlice: string;
4815 borderImageSource: string;
4816 borderImageWidth: string;
4817 borderLeft: string;
4818 borderLeftColor: string;
4819 borderLeftStyle: string;
4820 borderLeftWidth: string;
4821 borderRadius: string;
4822 borderRight: string;
4823 borderRightColor: string;
4824 borderRightStyle: string;
4825 borderRightWidth: string;
4826 borderSpacing: string;
4827 borderStyle: string;
4828 borderTop: string;
4829 borderTopColor: string;
4830 borderTopLeftRadius: string;
4831 borderTopRightRadius: string;
4832 borderTopStyle: string;
4833 borderTopWidth: string;
4834 borderWidth: string;
4835 bottom: string;
4836 boxShadow: string;
4837 boxSizing: string;
4838 breakAfter: string;
4839 breakBefore: string;
4840 breakInside: string;
4841 captionSide: string;
4842 clear: string;
4843 clip: string;
4844 clipPath: string;
4845 clipRule: string;
4846 color: string;
4847 colorInterpolationFilters: string;
4848 columnCount: any;
4849 columnFill: string;
4850 columnGap: any;
4851 columnRule: string;
4852 columnRuleColor: any;
4853 columnRuleStyle: string;
4854 columnRuleWidth: any;
4855 columnSpan: string;
4856 columnWidth: any;
4857 columns: string;
4858 content: string;
4859 counterIncrement: string;
4860 counterReset: string;
4861 cssFloat: string;
4862 cssText: string;
4863 cursor: string;
4864 direction: string;
4865 display: string;
4866 dominantBaseline: string;
4867 emptyCells: string;
4868 enableBackground: string;
4869 fill: string;
4870 fillOpacity: string;
4871 fillRule: string;
4872 filter: string;
4873 flex: string;
4874 flexBasis: string;
4875 flexDirection: string;
4876 flexFlow: string;
4877 flexGrow: string;
4878 flexShrink: string;
4879 flexWrap: string;
4880 floodColor: string;
4881 floodOpacity: string;
4882 font: string;
4883 fontFamily: string;
4884 fontFeatureSettings: string;
4885 fontSize: string;
4886 fontSizeAdjust: string;
4887 fontStretch: string;
4888 fontStyle: string;
4889 fontVariant: string;
4890 fontWeight: string;
4891 glyphOrientationHorizontal: string;
4892 glyphOrientationVertical: string;
4893 height: string;
4894 imeMode: string;
4895 justifyContent: string;
4896 kerning: string;
4897 left: string;
4898 length: number;
4899 letterSpacing: string;
4900 lightingColor: string;
4901 lineHeight: string;
4902 listStyle: string;
4903 listStyleImage: string;
4904 listStylePosition: string;
4905 listStyleType: string;
4906 margin: string;
4907 marginBottom: string;
4908 marginLeft: string;
4909 marginRight: string;
4910 marginTop: string;
4911 marker: string;
4912 markerEnd: string;
4913 markerMid: string;
4914 markerStart: string;
4915 mask: string;
4916 maxHeight: string;
4917 maxWidth: string;
4918 minHeight: string;
4919 minWidth: string;
4920 msContentZoomChaining: string;
4921 msContentZoomLimit: string;
4922 msContentZoomLimitMax: any;
4923 msContentZoomLimitMin: any;
4924 msContentZoomSnap: string;
4925 msContentZoomSnapPoints: string;
4926 msContentZoomSnapType: string;
4927 msContentZooming: string;
4928 msFlowFrom: string;
4929 msFlowInto: string;
4930 msFontFeatureSettings: string;
4931 msGridColumn: any;
4932 msGridColumnAlign: string;
4933 msGridColumnSpan: any;
4934 msGridColumns: string;
4935 msGridRow: any;
4936 msGridRowAlign: string;
4937 msGridRowSpan: any;
4938 msGridRows: string;
4939 msHighContrastAdjust: string;
4940 msHyphenateLimitChars: string;
4941 msHyphenateLimitLines: any;
4942 msHyphenateLimitZone: any;
4943 msHyphens: string;
4944 msImeAlign: string;
4945 msOverflowStyle: string;
4946 msScrollChaining: string;
4947 msScrollLimit: string;
4948 msScrollLimitXMax: any;
4949 msScrollLimitXMin: any;
4950 msScrollLimitYMax: any;
4951 msScrollLimitYMin: any;
4952 msScrollRails: string;
4953 msScrollSnapPointsX: string;
4954 msScrollSnapPointsY: string;
4955 msScrollSnapType: string;
4956 msScrollSnapX: string;
4957 msScrollSnapY: string;
4958 msScrollTranslation: string;
4959 msTextCombineHorizontal: string;
4960 msTextSizeAdjust: any;
4961 msTouchAction: string;
4962 msTouchSelect: string;
4963 msUserSelect: string;
4964 msWrapFlow: string;
4965 msWrapMargin: any;
4966 msWrapThrough: string;
4967 opacity: string;
4968 order: string;
4969 orphans: string;
4970 outline: string;
4971 outlineColor: string;
4972 outlineStyle: string;
4973 outlineWidth: string;
4974 overflow: string;
4975 overflowX: string;
4976 overflowY: string;
4977 padding: string;
4978 paddingBottom: string;
4979 paddingLeft: string;
4980 paddingRight: string;
4981 paddingTop: string;
4982 pageBreakAfter: string;
4983 pageBreakBefore: string;
4984 pageBreakInside: string;
4985 parentRule: CSSRule;
4986 perspective: string;
4987 perspectiveOrigin: string;
4988 pointerEvents: string;
4989 position: string;
4990 quotes: string;
4991 right: string;
4992 rubyAlign: string;
4993 rubyOverhang: string;
4994 rubyPosition: string;
4995 stopColor: string;
4996 stopOpacity: string;
4997 stroke: string;
4998 strokeDasharray: string;
4999 strokeDashoffset: string;
5000 strokeLinecap: string;
5001 strokeLinejoin: string;
5002 strokeMiterlimit: string;
5003 strokeOpacity: string;
5004 strokeWidth: string;
5005 tableLayout: string;
5006 textAlign: string;
5007 textAlignLast: string;
5008 textAnchor: string;
5009 textDecoration: string;
5010 textFillColor: string;
5011 textIndent: string;
5012 textJustify: string;
5013 textKashida: string;
5014 textKashidaSpace: string;
5015 textOverflow: string;
5016 textShadow: string;
5017 textTransform: string;
5018 textUnderlinePosition: string;
5019 top: string;
5020 touchAction: string;
5021 transform: string;
5022 transformOrigin: string;
5023 transformStyle: string;
5024 transition: string;
5025 transitionDelay: string;
5026 transitionDuration: string;
5027 transitionProperty: string;
5028 transitionTimingFunction: string;
5029 unicodeBidi: string;
5030 verticalAlign: string;
5031 visibility: string;
5032 webkitAlignContent: string;
5033 webkitAlignItems: string;
5034 webkitAlignSelf: string;
5035 webkitAnimation: string;
5036 webkitAnimationDelay: string;
5037 webkitAnimationDirection: string;
5038 webkitAnimationDuration: string;
5039 webkitAnimationFillMode: string;
5040 webkitAnimationIterationCount: string;
5041 webkitAnimationName: string;
5042 webkitAnimationPlayState: string;
5043 webkitAnimationTimingFunction: string;
5044 webkitAppearance: string;
5045 webkitBackfaceVisibility: string;
5046 webkitBackground: string;
5047 webkitBackgroundAttachment: string;
5048 webkitBackgroundClip: string;
5049 webkitBackgroundColor: string;
5050 webkitBackgroundImage: string;
5051 webkitBackgroundOrigin: string;
5052 webkitBackgroundPosition: string;
5053 webkitBackgroundPositionX: string;
5054 webkitBackgroundPositionY: string;
5055 webkitBackgroundRepeat: string;
5056 webkitBackgroundSize: string;
5057 webkitBorderBottomLeftRadius: string;
5058 webkitBorderBottomRightRadius: string;
5059 webkitBorderImage: string;
5060 webkitBorderImageOutset: string;
5061 webkitBorderImageRepeat: string;
5062 webkitBorderImageSlice: string;
5063 webkitBorderImageSource: string;
5064 webkitBorderImageWidth: string;
5065 webkitBorderRadius: string;
5066 webkitBorderTopLeftRadius: string;
5067 webkitBorderTopRightRadius: string;
5068 webkitBoxAlign: string;
5069 webkitBoxDirection: string;
5070 webkitBoxFlex: string;
5071 webkitBoxOrdinalGroup: string;
5072 webkitBoxOrient: string;
5073 webkitBoxPack: string;
5074 webkitBoxSizing: string;
5075 webkitColumnBreakAfter: string;
5076 webkitColumnBreakBefore: string;
5077 webkitColumnBreakInside: string;
5078 webkitColumnCount: any;
5079 webkitColumnGap: any;
5080 webkitColumnRule: string;
5081 webkitColumnRuleColor: any;
5082 webkitColumnRuleStyle: string;
5083 webkitColumnRuleWidth: any;
5084 webkitColumnSpan: string;
5085 webkitColumnWidth: any;
5086 webkitColumns: string;
5087 webkitFilter: string;
5088 webkitFlex: string;
5089 webkitFlexBasis: string;
5090 webkitFlexDirection: string;
5091 webkitFlexFlow: string;
5092 webkitFlexGrow: string;
5093 webkitFlexShrink: string;
5094 webkitFlexWrap: string;
5095 webkitJustifyContent: string;
5096 webkitOrder: string;
5097 webkitPerspective: string;
5098 webkitPerspectiveOrigin: string;
5099 webkitTapHighlightColor: string;
5100 webkitTextFillColor: string;
5101 webkitTextSizeAdjust: any;
5102 webkitTransform: string;
5103 webkitTransformOrigin: string;
5104 webkitTransformStyle: string;
5105 webkitTransition: string;
5106 webkitTransitionDelay: string;
5107 webkitTransitionDuration: string;
5108 webkitTransitionProperty: string;
5109 webkitTransitionTimingFunction: string;
5110 webkitUserSelect: string;
5111 webkitWritingMode: string;
5112 whiteSpace: string;
5113 widows: string;
5114 width: string;
5115 wordBreak: string;
5116 wordSpacing: string;
5117 wordWrap: string;
5118 writingMode: string;
5119 zIndex: string;
5120 zoom: string;
5121 getPropertyPriority(propertyName: string): string;
5122 getPropertyValue(propertyName: string): string;
5123 item(index: number): string;
5124 removeProperty(propertyName: string): string;
5125 setProperty(propertyName: string, value: string, priority?: string): void;
5126 [index: number]: string;
5127}
5128
5129declare var CSSStyleDeclaration: {
5130 prototype: CSSStyleDeclaration;
5131 new(): CSSStyleDeclaration;
5132}
5133
5134interface CSSStyleRule extends CSSRule {
5135 readOnly: boolean;
5136 selectorText: string;
5137 style: CSSStyleDeclaration;
5138}
5139
5140declare var CSSStyleRule: {
5141 prototype: CSSStyleRule;
5142 new(): CSSStyleRule;
5143}
5144
5145interface CSSStyleSheet extends StyleSheet {
5146 cssRules: CSSRuleList;
5147 cssText: string;
5148 href: string;
5149 id: string;
5150 imports: StyleSheetList;
5151 isAlternate: boolean;
5152 isPrefAlternate: boolean;
5153 ownerRule: CSSRule;
5154 owningElement: Element;
5155 pages: StyleSheetPageList;
5156 readOnly: boolean;
5157 rules: CSSRuleList;
5158 addImport(bstrURL: string, lIndex?: number): number;
5159 addPageRule(bstrSelector: string, bstrStyle: string, lIndex?: number): number;
5160 addRule(bstrSelector: string, bstrStyle?: string, lIndex?: number): number;
5161 deleteRule(index?: number): void;
5162 insertRule(rule: string, index?: number): number;
5163 removeImport(lIndex: number): void;
5164 removeRule(lIndex: number): void;
5165}
5166
5167declare var CSSStyleSheet: {
5168 prototype: CSSStyleSheet;
5169 new(): CSSStyleSheet;
5170}
5171
5172interface CSSSupportsRule extends CSSConditionRule {
5173}
5174
5175declare var CSSSupportsRule: {
5176 prototype: CSSSupportsRule;
5177 new(): CSSSupportsRule;
5178}
5179
5180interface CanvasGradient {
5181 addColorStop(offset: number, color: string): void;
5182}
5183
5184declare var CanvasGradient: {
5185 prototype: CanvasGradient;
5186 new(): CanvasGradient;
5187}
5188
5189interface CanvasPattern {
5190}
5191
5192declare var CanvasPattern: {
5193 prototype: CanvasPattern;
5194 new(): CanvasPattern;
5195}
5196
5197interface CanvasRenderingContext2D {
5198 canvas: HTMLCanvasElement;
5199 fillStyle: string | CanvasGradient | CanvasPattern;
5200 font: string;
5201 globalAlpha: number;
5202 globalCompositeOperation: string;
5203 lineCap: string;
5204 lineDashOffset: number;
5205 lineJoin: string;
5206 lineWidth: number;
5207 miterLimit: number;
5208 msFillRule: string;
5209 msImageSmoothingEnabled: boolean;
5210 shadowBlur: number;
5211 shadowColor: string;
5212 shadowOffsetX: number;
5213 shadowOffsetY: number;
5214 strokeStyle: string | CanvasGradient | CanvasPattern;
5215 textAlign: string;
5216 textBaseline: string;
5217 arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, anticlockwise?: boolean): void;
5218 arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;
5219 beginPath(): void;
5220 bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;
5221 clearRect(x: number, y: number, w: number, h: number): void;
5222 clip(fillRule?: string): void;
5223 closePath(): void;
5224 createImageData(imageDataOrSw: number | ImageData, sh?: number): ImageData;
5225 createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;
5226 createPattern(image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement, repetition: string): CanvasPattern;
5227 createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;
5228 drawImage(image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement, offsetX: number, offsetY: number, width?: number, height?: number, canvasOffsetX?: number, canvasOffsetY?: number, canvasImageWidth?: number, canvasImageHeight?: number): void;
5229 fill(fillRule?: string): void;
5230 fillRect(x: number, y: number, w: number, h: number): void;
5231 fillText(text: string, x: number, y: number, maxWidth?: number): void;
5232 getImageData(sx: number, sy: number, sw: number, sh: number): ImageData;
5233 getLineDash(): number[];
5234 isPointInPath(x: number, y: number, fillRule?: string): boolean;
5235 lineTo(x: number, y: number): void;
5236 measureText(text: string): TextMetrics;
5237 moveTo(x: number, y: number): void;
5238 putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX?: number, dirtyY?: number, dirtyWidth?: number, dirtyHeight?: number): void;
5239 quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
5240 rect(x: number, y: number, w: number, h: number): void;
5241 restore(): void;
5242 rotate(angle: number): void;
5243 save(): void;
5244 scale(x: number, y: number): void;
5245 setLineDash(segments: number[]): void;
5246 setTransform(m11: number, m12: number, m21: number, m22: number, dx: number, dy: number): void;
5247 stroke(): void;
5248 strokeRect(x: number, y: number, w: number, h: number): void;
5249 strokeText(text: string, x: number, y: number, maxWidth?: number): void;
5250 transform(m11: number, m12: number, m21: number, m22: number, dx: number, dy: number): void;
5251 translate(x: number, y: number): void;
5252}
5253
5254declare var CanvasRenderingContext2D: {
5255 prototype: CanvasRenderingContext2D;
5256 new(): CanvasRenderingContext2D;
5257}
5258
5259interface ChannelMergerNode extends AudioNode {
5260}
5261
5262declare var ChannelMergerNode: {
5263 prototype: ChannelMergerNode;
5264 new(): ChannelMergerNode;
5265}
5266
5267interface ChannelSplitterNode extends AudioNode {
5268}
5269
5270declare var ChannelSplitterNode: {
5271 prototype: ChannelSplitterNode;
5272 new(): ChannelSplitterNode;
5273}
5274
5275interface CharacterData extends Node, ChildNode {
5276 data: string;
5277 length: number;
5278 appendData(arg: string): void;
5279 deleteData(offset: number, count: number): void;
5280 insertData(offset: number, arg: string): void;
5281 replaceData(offset: number, count: number, arg: string): void;
5282 substringData(offset: number, count: number): string;
5283 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
5284}
5285
5286declare var CharacterData: {
5287 prototype: CharacterData;
5288 new(): CharacterData;
5289}
5290
5291interface ClientRect {
5292 bottom: number;
5293 height: number;
5294 left: number;
5295 right: number;
5296 top: number;
5297 width: number;
5298}
5299
5300declare var ClientRect: {
5301 prototype: ClientRect;
5302 new(): ClientRect;
5303}
5304
5305interface ClientRectList {
5306 length: number;
5307 item(index: number): ClientRect;
5308 [index: number]: ClientRect;
5309}
5310
5311declare var ClientRectList: {
5312 prototype: ClientRectList;
5313 new(): ClientRectList;
5314}
5315
5316interface ClipboardEvent extends Event {
5317 clipboardData: DataTransfer;
5318}
5319
5320declare var ClipboardEvent: {
5321 prototype: ClipboardEvent;
5322 new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent;
5323}
5324
5325interface CloseEvent extends Event {
5326 code: number;
5327 reason: string;
5328 wasClean: boolean;
5329 initCloseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, wasCleanArg: boolean, codeArg: number, reasonArg: string): void;
5330}
5331
5332declare var CloseEvent: {
5333 prototype: CloseEvent;
5334 new(): CloseEvent;
5335}
5336
5337interface CommandEvent extends Event {
5338 commandName: string;
5339 detail: string;
5340}
5341
5342declare var CommandEvent: {
5343 prototype: CommandEvent;
5344 new(type: string, eventInitDict?: CommandEventInit): CommandEvent;
5345}
5346
5347interface Comment extends CharacterData {
5348 text: string;
5349}
5350
5351declare var Comment: {
5352 prototype: Comment;
5353 new(): Comment;
5354}
5355
5356interface CompositionEvent extends UIEvent {
5357 data: string;
5358 locale: string;
5359 initCompositionEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, dataArg: string, locale: string): void;
5360}
5361
5362declare var CompositionEvent: {
5363 prototype: CompositionEvent;
5364 new(typeArg: string, eventInitDict?: CompositionEventInit): CompositionEvent;
5365}
5366
5367interface Console {
5368 assert(test?: boolean, message?: string, ...optionalParams: any[]): void;
5369 clear(): void;
5370 count(countTitle?: string): void;
5371 debug(message?: string, ...optionalParams: any[]): void;
5372 dir(value?: any, ...optionalParams: any[]): void;
5373 dirxml(value: any): void;
5374 error(message?: any, ...optionalParams: any[]): void;
5375 group(groupTitle?: string): void;
5376 groupCollapsed(groupTitle?: string): void;
5377 groupEnd(): void;
5378 info(message?: any, ...optionalParams: any[]): void;
5379 log(message?: any, ...optionalParams: any[]): void;
5380 msIsIndependentlyComposed(element: Element): boolean;
5381 profile(reportName?: string): void;
5382 profileEnd(): void;
5383 select(element: Element): void;
5384 time(timerName?: string): void;
5385 timeEnd(timerName?: string): void;
5386 trace(message?: any, ...optionalParams: any[]): void;
5387 warn(message?: any, ...optionalParams: any[]): void;
5388}
5389
5390declare var Console: {
5391 prototype: Console;
5392 new(): Console;
5393}
5394
5395interface ConvolverNode extends AudioNode {
5396 buffer: AudioBuffer;
5397 normalize: boolean;
5398}
5399
5400declare var ConvolverNode: {
5401 prototype: ConvolverNode;
5402 new(): ConvolverNode;
5403}
5404
5405interface Coordinates {
5406 accuracy: number;
5407 altitude: number;
5408 altitudeAccuracy: number;
5409 heading: number;
5410 latitude: number;
5411 longitude: number;
5412 speed: number;
5413}
5414
5415declare var Coordinates: {
5416 prototype: Coordinates;
5417 new(): Coordinates;
5418}
5419
5420interface Crypto extends Object, RandomSource {
5421 subtle: SubtleCrypto;
5422}
5423
5424declare var Crypto: {
5425 prototype: Crypto;
5426 new(): Crypto;
5427}
5428
5429interface CryptoKey {
5430 algorithm: KeyAlgorithm;
5431 extractable: boolean;
5432 type: string;
5433 usages: string[];
5434}
5435
5436declare var CryptoKey: {
5437 prototype: CryptoKey;
5438 new(): CryptoKey;
5439}
5440
5441interface CryptoKeyPair {
5442 privateKey: CryptoKey;
5443 publicKey: CryptoKey;
5444}
5445
5446declare var CryptoKeyPair: {
5447 prototype: CryptoKeyPair;
5448 new(): CryptoKeyPair;
5449}
5450
5451interface CustomEvent extends Event {
5452 detail: any;
5453 initCustomEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, detailArg: any): void;
5454}
5455
5456declare var CustomEvent: {
5457 prototype: CustomEvent;
5458 new(typeArg: string, eventInitDict?: CustomEventInit): CustomEvent;
5459}
5460
5461interface DOMError {
5462 name: string;
5463 toString(): string;
5464}
5465
5466declare var DOMError: {
5467 prototype: DOMError;
5468 new(): DOMError;
5469}
5470
5471interface DOMException {
5472 code: number;
5473 message: string;
5474 name: string;
5475 toString(): string;
5476 ABORT_ERR: number;
5477 DATA_CLONE_ERR: number;
5478 DOMSTRING_SIZE_ERR: number;
5479 HIERARCHY_REQUEST_ERR: number;
5480 INDEX_SIZE_ERR: number;
5481 INUSE_ATTRIBUTE_ERR: number;
5482 INVALID_ACCESS_ERR: number;
5483 INVALID_CHARACTER_ERR: number;
5484 INVALID_MODIFICATION_ERR: number;
5485 INVALID_NODE_TYPE_ERR: number;
5486 INVALID_STATE_ERR: number;
5487 NAMESPACE_ERR: number;
5488 NETWORK_ERR: number;
5489 NOT_FOUND_ERR: number;
5490 NOT_SUPPORTED_ERR: number;
5491 NO_DATA_ALLOWED_ERR: number;
5492 NO_MODIFICATION_ALLOWED_ERR: number;
5493 PARSE_ERR: number;
5494 QUOTA_EXCEEDED_ERR: number;
5495 SECURITY_ERR: number;
5496 SERIALIZE_ERR: number;
5497 SYNTAX_ERR: number;
5498 TIMEOUT_ERR: number;
5499 TYPE_MISMATCH_ERR: number;
5500 URL_MISMATCH_ERR: number;
5501 VALIDATION_ERR: number;
5502 WRONG_DOCUMENT_ERR: number;
5503}
5504
5505declare var DOMException: {
5506 prototype: DOMException;
5507 new(): DOMException;
5508 ABORT_ERR: number;
5509 DATA_CLONE_ERR: number;
5510 DOMSTRING_SIZE_ERR: number;
5511 HIERARCHY_REQUEST_ERR: number;
5512 INDEX_SIZE_ERR: number;
5513 INUSE_ATTRIBUTE_ERR: number;
5514 INVALID_ACCESS_ERR: number;
5515 INVALID_CHARACTER_ERR: number;
5516 INVALID_MODIFICATION_ERR: number;
5517 INVALID_NODE_TYPE_ERR: number;
5518 INVALID_STATE_ERR: number;
5519 NAMESPACE_ERR: number;
5520 NETWORK_ERR: number;
5521 NOT_FOUND_ERR: number;
5522 NOT_SUPPORTED_ERR: number;
5523 NO_DATA_ALLOWED_ERR: number;
5524 NO_MODIFICATION_ALLOWED_ERR: number;
5525 PARSE_ERR: number;
5526 QUOTA_EXCEEDED_ERR: number;
5527 SECURITY_ERR: number;
5528 SERIALIZE_ERR: number;
5529 SYNTAX_ERR: number;
5530 TIMEOUT_ERR: number;
5531 TYPE_MISMATCH_ERR: number;
5532 URL_MISMATCH_ERR: number;
5533 VALIDATION_ERR: number;
5534 WRONG_DOCUMENT_ERR: number;
5535}
5536
5537interface DOMImplementation {
5538 createDocument(namespaceURI: string, qualifiedName: string, doctype: DocumentType): Document;
5539 createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType;
5540 createHTMLDocument(title: string): Document;
5541 hasFeature(feature: string, version: string): boolean;
5542}
5543
5544declare var DOMImplementation: {
5545 prototype: DOMImplementation;
5546 new(): DOMImplementation;
5547}
5548
5549interface DOMParser {
5550 parseFromString(source: string, mimeType: string): Document;
5551}
5552
5553declare var DOMParser: {
5554 prototype: DOMParser;
5555 new(): DOMParser;
5556}
5557
5558interface DOMSettableTokenList extends DOMTokenList {
5559 value: string;
5560}
5561
5562declare var DOMSettableTokenList: {
5563 prototype: DOMSettableTokenList;
5564 new(): DOMSettableTokenList;
5565}
5566
5567interface DOMStringList {
5568 length: number;
5569 contains(str: string): boolean;
5570 item(index: number): string;
5571 [index: number]: string;
5572}
5573
5574declare var DOMStringList: {
5575 prototype: DOMStringList;
5576 new(): DOMStringList;
5577}
5578
5579interface DOMStringMap {
5580 [name: string]: string;
5581}
5582
5583declare var DOMStringMap: {
5584 prototype: DOMStringMap;
5585 new(): DOMStringMap;
5586}
5587
5588interface DOMTokenList {
5589 length: number;
5590 add(...token: string[]): void;
5591 contains(token: string): boolean;
5592 item(index: number): string;
5593 remove(...token: string[]): void;
5594 toString(): string;
5595 toggle(token: string, force?: boolean): boolean;
5596 [index: number]: string;
5597}
5598
5599declare var DOMTokenList: {
5600 prototype: DOMTokenList;
5601 new(): DOMTokenList;
5602}
5603
5604interface DataCue extends TextTrackCue {
5605 data: ArrayBuffer;
5606}
5607
5608declare var DataCue: {
5609 prototype: DataCue;
5610 new(): DataCue;
5611}
5612
5613interface DataTransfer {
5614 dropEffect: string;
5615 effectAllowed: string;
5616 files: FileList;
5617 items: DataTransferItemList;
5618 types: DOMStringList;
5619 clearData(format?: string): boolean;
5620 getData(format: string): string;
5621 setData(format: string, data: string): boolean;
5622}
5623
5624declare var DataTransfer: {
5625 prototype: DataTransfer;
5626 new(): DataTransfer;
5627}
5628
5629interface DataTransferItem {
5630 kind: string;
5631 type: string;
5632 getAsFile(): File;
5633 getAsString(_callback: FunctionStringCallback): void;
5634}
5635
5636declare var DataTransferItem: {
5637 prototype: DataTransferItem;
5638 new(): DataTransferItem;
5639}
5640
5641interface DataTransferItemList {
5642 length: number;
5643 add(data: File): DataTransferItem;
5644 clear(): void;
5645 item(index: number): DataTransferItem;
5646 remove(index: number): void;
5647 [index: number]: DataTransferItem;
5648}
5649
5650declare var DataTransferItemList: {
5651 prototype: DataTransferItemList;
5652 new(): DataTransferItemList;
5653}
5654
5655interface DeferredPermissionRequest {
5656 id: number;
5657 type: string;
5658 uri: string;
5659 allow(): void;
5660 deny(): void;
5661}
5662
5663declare var DeferredPermissionRequest: {
5664 prototype: DeferredPermissionRequest;
5665 new(): DeferredPermissionRequest;
5666}
5667
5668interface DelayNode extends AudioNode {
5669 delayTime: AudioParam;
5670}
5671
5672declare var DelayNode: {
5673 prototype: DelayNode;
5674 new(): DelayNode;
5675}
5676
5677interface DeviceAcceleration {
5678 x: number;
5679 y: number;
5680 z: number;
5681}
5682
5683declare var DeviceAcceleration: {
5684 prototype: DeviceAcceleration;
5685 new(): DeviceAcceleration;
5686}
5687
5688interface DeviceMotionEvent extends Event {
5689 acceleration: DeviceAcceleration;
5690 accelerationIncludingGravity: DeviceAcceleration;
5691 interval: number;
5692 rotationRate: DeviceRotationRate;
5693 initDeviceMotionEvent(type: string, bubbles: boolean, cancelable: boolean, acceleration: DeviceAccelerationDict, accelerationIncludingGravity: DeviceAccelerationDict, rotationRate: DeviceRotationRateDict, interval: number): void;
5694}
5695
5696declare var DeviceMotionEvent: {
5697 prototype: DeviceMotionEvent;
5698 new(): DeviceMotionEvent;
5699}
5700
5701interface DeviceOrientationEvent extends Event {
5702 absolute: boolean;
5703 alpha: number;
5704 beta: number;
5705 gamma: number;
5706 initDeviceOrientationEvent(type: string, bubbles: boolean, cancelable: boolean, alpha: number, beta: number, gamma: number, absolute: boolean): void;
5707}
5708
5709declare var DeviceOrientationEvent: {
5710 prototype: DeviceOrientationEvent;
5711 new(): DeviceOrientationEvent;
5712}
5713
5714interface DeviceRotationRate {
5715 alpha: number;
5716 beta: number;
5717 gamma: number;
5718}
5719
5720declare var DeviceRotationRate: {
5721 prototype: DeviceRotationRate;
5722 new(): DeviceRotationRate;
5723}
5724
5725interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEvent {
5726 /**
5727 * Sets or gets the URL for the current document.
5728 */
5729 URL: string;
5730 /**
5731 * Gets the URL for the document, stripped of any character encoding.
5732 */
5733 URLUnencoded: string;
5734 /**
5735 * Gets the object that has the focus when the parent document has focus.
5736 */
5737 activeElement: Element;
5738 /**
5739 * Sets or gets the color of all active links in the document.
5740 */
5741 alinkColor: string;
5742 /**
5743 * Returns a reference to the collection of elements contained by the object.
5744 */
5745 all: HTMLCollection;
5746 /**
5747 * Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order.
5748 */
5749 anchors: HTMLCollection;
5750 /**
5751 * Retrieves a collection of all applet objects in the document.
5752 */
5753 applets: HTMLCollection;
5754 /**
5755 * Deprecated. Sets or retrieves a value that indicates the background color behind the object.
5756 */
5757 bgColor: string;
5758 /**
5759 * Specifies the beginning and end of the document body.
5760 */
5761 body: HTMLElement;
5762 characterSet: string;
5763 /**
5764 * Gets or sets the character set used to encode the object.
5765 */
5766 charset: string;
5767 /**
5768 * Gets a value that indicates whether standards-compliant mode is switched on for the object.
5769 */
5770 compatMode: string;
5771 cookie: string;
5772 /**
5773 * Gets the default character set from the current regional language settings.
5774 */
5775 defaultCharset: string;
5776 defaultView: Window;
5777 /**
5778 * Sets or gets a value that indicates whether the document can be edited.
5779 */
5780 designMode: string;
5781 /**
5782 * Sets or retrieves a value that indicates the reading order of the object.
5783 */
5784 dir: string;
5785 /**
5786 * Gets an object representing the document type declaration associated with the current document.
5787 */
5788 doctype: DocumentType;
5789 /**
5790 * Gets a reference to the root node of the document.
5791 */
5792 documentElement: HTMLElement;
5793 /**
5794 * Sets or gets the security domain of the document.
5795 */
5796 domain: string;
5797 /**
5798 * Retrieves a collection of all embed objects in the document.
5799 */
5800 embeds: HTMLCollection;
5801 /**
5802 * Sets or gets the foreground (text) color of the document.
5803 */
5804 fgColor: string;
5805 /**
5806 * Retrieves a collection, in source order, of all form objects in the document.
5807 */
5808 forms: HTMLCollection;
5809 fullscreenElement: Element;
5810 fullscreenEnabled: boolean;
5811 head: HTMLHeadElement;
5812 hidden: boolean;
5813 /**
5814 * Retrieves a collection, in source order, of img objects in the document.
5815 */
5816 images: HTMLCollection;
5817 /**
5818 * Gets the implementation object of the current document.
5819 */
5820 implementation: DOMImplementation;
5821 /**
5822 * Returns the character encoding used to create the webpage that is loaded into the document object.
5823 */
5824 inputEncoding: string;
5825 /**
5826 * Gets the date that the page was last modified, if the page supplies one.
5827 */
5828 lastModified: string;
5829 /**
5830 * Sets or gets the color of the document links.
5831 */
5832 linkColor: string;
5833 /**
5834 * Retrieves a collection of all a objects that specify the href property and all area objects in the document.
5835 */
5836 links: HTMLCollection;
5837 /**
5838 * Contains information about the current URL.
5839 */
5840 location: Location;
5841 media: string;
5842 msCSSOMElementFloatMetrics: boolean;
5843 msCapsLockWarningOff: boolean;
5844 msHidden: boolean;
5845 msVisibilityState: string;
5846 /**
5847 * Fires when the user aborts the download.
5848 * @param ev The event.
5849 */
5850 onabort: (ev: Event) => any;
5851 /**
5852 * Fires when the object is set as the active element.
5853 * @param ev The event.
5854 */
5855 onactivate: (ev: UIEvent) => any;
5856 /**
5857 * Fires immediately before the object is set as the active element.
5858 * @param ev The event.
5859 */
5860 onbeforeactivate: (ev: UIEvent) => any;
5861 /**
5862 * Fires immediately before the activeElement is changed from the current object to another object in the parent document.
5863 * @param ev The event.
5864 */
5865 onbeforedeactivate: (ev: UIEvent) => any;
5866 /**
5867 * Fires when the object loses the input focus.
5868 * @param ev The focus event.
5869 */
5870 onblur: (ev: FocusEvent) => any;
5871 /**
5872 * Occurs when playback is possible, but would require further buffering.
5873 * @param ev The event.
5874 */
5875 oncanplay: (ev: Event) => any;
5876 oncanplaythrough: (ev: Event) => any;
5877 /**
5878 * Fires when the contents of the object or selection have changed.
5879 * @param ev The event.
5880 */
5881 onchange: (ev: Event) => any;
5882 /**
5883 * Fires when the user clicks the left mouse button on the object
5884 * @param ev The mouse event.
5885 */
5886 onclick: (ev: MouseEvent) => any;
5887 /**
5888 * Fires when the user clicks the right mouse button in the client area, opening the context menu.
5889 * @param ev The mouse event.
5890 */
5891 oncontextmenu: (ev: PointerEvent) => any;
5892 /**
5893 * Fires when the user double-clicks the object.
5894 * @param ev The mouse event.
5895 */
5896 ondblclick: (ev: MouseEvent) => any;
5897 /**
5898 * Fires when the activeElement is changed from the current object to another object in the parent document.
5899 * @param ev The UI Event
5900 */
5901 ondeactivate: (ev: UIEvent) => any;
5902 /**
5903 * Fires on the source object continuously during a drag operation.
5904 * @param ev The event.
5905 */
5906 ondrag: (ev: DragEvent) => any;
5907 /**
5908 * Fires on the source object when the user releases the mouse at the close of a drag operation.
5909 * @param ev The event.
5910 */
5911 ondragend: (ev: DragEvent) => any;
5912 /**
5913 * Fires on the target element when the user drags the object to a valid drop target.
5914 * @param ev The drag event.
5915 */
5916 ondragenter: (ev: DragEvent) => any;
5917 /**
5918 * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
5919 * @param ev The drag event.
5920 */
5921 ondragleave: (ev: DragEvent) => any;
5922 /**
5923 * Fires on the target element continuously while the user drags the object over a valid drop target.
5924 * @param ev The event.
5925 */
5926 ondragover: (ev: DragEvent) => any;
5927 /**
5928 * Fires on the source object when the user starts to drag a text selection or selected object.
5929 * @param ev The event.
5930 */
5931 ondragstart: (ev: DragEvent) => any;
5932 ondrop: (ev: DragEvent) => any;
5933 /**
5934 * Occurs when the duration attribute is updated.
5935 * @param ev The event.
5936 */
5937 ondurationchange: (ev: Event) => any;
5938 /**
5939 * Occurs when the media element is reset to its initial state.
5940 * @param ev The event.
5941 */
5942 onemptied: (ev: Event) => any;
5943 /**
5944 * Occurs when the end of playback is reached.
5945 * @param ev The event
5946 */
5947 onended: (ev: Event) => any;
5948 /**
5949 * Fires when an error occurs during object loading.
5950 * @param ev The event.
5951 */
5952 onerror: (ev: Event) => any;
5953 /**
5954 * Fires when the object receives focus.
5955 * @param ev The event.
5956 */
5957 onfocus: (ev: FocusEvent) => any;
5958 onfullscreenchange: (ev: Event) => any;
5959 onfullscreenerror: (ev: Event) => any;
5960 oninput: (ev: Event) => any;
5961 /**
5962 * Fires when the user presses a key.
5963 * @param ev The keyboard event
5964 */
5965 onkeydown: (ev: KeyboardEvent) => any;
5966 /**
5967 * Fires when the user presses an alphanumeric key.
5968 * @param ev The event.
5969 */
5970 onkeypress: (ev: KeyboardEvent) => any;
5971 /**
5972 * Fires when the user releases a key.
5973 * @param ev The keyboard event
5974 */
5975 onkeyup: (ev: KeyboardEvent) => any;
5976 /**
5977 * Fires immediately after the browser loads the object.
5978 * @param ev The event.
5979 */
5980 onload: (ev: Event) => any;
5981 /**
5982 * Occurs when media data is loaded at the current playback position.
5983 * @param ev The event.
5984 */
5985 onloadeddata: (ev: Event) => any;
5986 /**
5987 * Occurs when the duration and dimensions of the media have been determined.
5988 * @param ev The event.
5989 */
5990 onloadedmetadata: (ev: Event) => any;
5991 /**
5992 * Occurs when Internet Explorer begins looking for media data.
5993 * @param ev The event.
5994 */
5995 onloadstart: (ev: Event) => any;
5996 /**
5997 * Fires when the user clicks the object with either mouse button.
5998 * @param ev The mouse event.
5999 */
6000 onmousedown: (ev: MouseEvent) => any;
6001 /**
6002 * Fires when the user moves the mouse over the object.
6003 * @param ev The mouse event.
6004 */
6005 onmousemove: (ev: MouseEvent) => any;
6006 /**
6007 * Fires when the user moves the mouse pointer outside the boundaries of the object.
6008 * @param ev The mouse event.
6009 */
6010 onmouseout: (ev: MouseEvent) => any;
6011 /**
6012 * Fires when the user moves the mouse pointer into the object.
6013 * @param ev The mouse event.
6014 */
6015 onmouseover: (ev: MouseEvent) => any;
6016 /**
6017 * Fires when the user releases a mouse button while the mouse is over the object.
6018 * @param ev The mouse event.
6019 */
6020 onmouseup: (ev: MouseEvent) => any;
6021 /**
6022 * Fires when the wheel button is rotated.
6023 * @param ev The mouse event
6024 */
6025 onmousewheel: (ev: MouseWheelEvent) => any;
6026 onmscontentzoom: (ev: UIEvent) => any;
6027 onmsgesturechange: (ev: MSGestureEvent) => any;
6028 onmsgesturedoubletap: (ev: MSGestureEvent) => any;
6029 onmsgestureend: (ev: MSGestureEvent) => any;
6030 onmsgesturehold: (ev: MSGestureEvent) => any;
6031 onmsgesturestart: (ev: MSGestureEvent) => any;
6032 onmsgesturetap: (ev: MSGestureEvent) => any;
6033 onmsinertiastart: (ev: MSGestureEvent) => any;
6034 onmsmanipulationstatechanged: (ev: MSManipulationEvent) => any;
6035 onmspointercancel: (ev: MSPointerEvent) => any;
6036 onmspointerdown: (ev: MSPointerEvent) => any;
6037 onmspointerenter: (ev: MSPointerEvent) => any;
6038 onmspointerleave: (ev: MSPointerEvent) => any;
6039 onmspointermove: (ev: MSPointerEvent) => any;
6040 onmspointerout: (ev: MSPointerEvent) => any;
6041 onmspointerover: (ev: MSPointerEvent) => any;
6042 onmspointerup: (ev: MSPointerEvent) => any;
6043 /**
6044 * Occurs when an item is removed from a Jump List of a webpage running in Site Mode.
6045 * @param ev The event.
6046 */
6047 onmssitemodejumplistitemremoved: (ev: MSSiteModeEvent) => any;
6048 /**
6049 * Occurs when a user clicks a button in a Thumbnail Toolbar of a webpage running in Site Mode.
6050 * @param ev The event.
6051 */
6052 onmsthumbnailclick: (ev: MSSiteModeEvent) => any;
6053 /**
6054 * Occurs when playback is paused.
6055 * @param ev The event.
6056 */
6057 onpause: (ev: Event) => any;
6058 /**
6059 * Occurs when the play method is requested.
6060 * @param ev The event.
6061 */
6062 onplay: (ev: Event) => any;
6063 /**
6064 * Occurs when the audio or video has started playing.
6065 * @param ev The event.
6066 */
6067 onplaying: (ev: Event) => any;
6068 onpointerlockchange: (ev: Event) => any;
6069 onpointerlockerror: (ev: Event) => any;
6070 /**
6071 * Occurs to indicate progress while downloading media data.
6072 * @param ev The event.
6073 */
6074 onprogress: (ev: ProgressEvent) => any;
6075 /**
6076 * Occurs when the playback rate is increased or decreased.
6077 * @param ev The event.
6078 */
6079 onratechange: (ev: Event) => any;
6080 /**
6081 * Fires when the state of the object has changed.
6082 * @param ev The event
6083 */
6084 onreadystatechange: (ev: ProgressEvent) => any;
6085 /**
6086 * Fires when the user resets a form.
6087 * @param ev The event.
6088 */
6089 onreset: (ev: Event) => any;
6090 /**
6091 * Fires when the user repositions the scroll box in the scroll bar on the object.
6092 * @param ev The event.
6093 */
6094 onscroll: (ev: UIEvent) => any;
6095 /**
6096 * Occurs when the seek operation ends.
6097 * @param ev The event.
6098 */
6099 onseeked: (ev: Event) => any;
6100 /**
6101 * Occurs when the current playback position is moved.
6102 * @param ev The event.
6103 */
6104 onseeking: (ev: Event) => any;
6105 /**
6106 * Fires when the current selection changes.
6107 * @param ev The event.
6108 */
6109 onselect: (ev: UIEvent) => any;
6110 onselectstart: (ev: Event) => any;
6111 /**
6112 * Occurs when the download has stopped.
6113 * @param ev The event.
6114 */
6115 onstalled: (ev: Event) => any;
6116 /**
6117 * Fires when the user clicks the Stop button or leaves the Web page.
6118 * @param ev The event.
6119 */
6120 onstop: (ev: Event) => any;
6121 onsubmit: (ev: Event) => any;
6122 /**
6123 * Occurs if the load operation has been intentionally halted.
6124 * @param ev The event.
6125 */
6126 onsuspend: (ev: Event) => any;
6127 /**
6128 * Occurs to indicate the current playback position.
6129 * @param ev The event.
6130 */
6131 ontimeupdate: (ev: Event) => any;
6132 ontouchcancel: (ev: TouchEvent) => any;
6133 ontouchend: (ev: TouchEvent) => any;
6134 ontouchmove: (ev: TouchEvent) => any;
6135 ontouchstart: (ev: TouchEvent) => any;
6136 /**
6137 * Occurs when the volume is changed, or playback is muted or unmuted.
6138 * @param ev The event.
6139 */
6140 onvolumechange: (ev: Event) => any;
6141 /**
6142 * Occurs when playback stops because the next frame of a video resource is not available.
6143 * @param ev The event.
6144 */
6145 onwaiting: (ev: Event) => any;
6146 onwebkitfullscreenchange: (ev: Event) => any;
6147 onwebkitfullscreenerror: (ev: Event) => any;
6148 plugins: HTMLCollection;
6149 pointerLockElement: Element;
6150 /**
6151 * Retrieves a value that indicates the current state of the object.
6152 */
6153 readyState: string;
6154 /**
6155 * Gets the URL of the location that referred the user to the current page.
6156 */
6157 referrer: string;
6158 /**
6159 * Gets the root svg element in the document hierarchy.
6160 */
6161 rootElement: SVGSVGElement;
6162 /**
6163 * Retrieves a collection of all script objects in the document.
6164 */
6165 scripts: HTMLCollection;
6166 security: string;
6167 /**
6168 * Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document.
6169 */
6170 styleSheets: StyleSheetList;
6171 /**
6172 * Contains the title of the document.
6173 */
6174 title: string;
6175 visibilityState: string;
6176 /**
6177 * Sets or gets the color of the links that the user has visited.
6178 */
6179 vlinkColor: string;
6180 webkitCurrentFullScreenElement: Element;
6181 webkitFullscreenElement: Element;
6182 webkitFullscreenEnabled: boolean;
6183 webkitIsFullScreen: boolean;
6184 xmlEncoding: string;
6185 xmlStandalone: boolean;
6186 /**
6187 * Gets or sets the version attribute specified in the declaration of an XML document.
6188 */
6189 xmlVersion: string;
6190 currentScript: HTMLScriptElement;
6191 adoptNode(source: Node): Node;
6192 captureEvents(): void;
6193 clear(): void;
6194 /**
6195 * Closes an output stream and forces the sent data to display.
6196 */
6197 close(): void;
6198 /**
6199 * Creates an attribute object with a specified name.
6200 * @param name String that sets the attribute object's name.
6201 */
6202 createAttribute(name: string): Attr;
6203 createAttributeNS(namespaceURI: string, qualifiedName: string): Attr;
6204 createCDATASection(data: string): CDATASection;
6205 /**
6206 * Creates a comment object with the specified data.
6207 * @param data Sets the comment object's data.
6208 */
6209 createComment(data: string): Comment;
6210 /**
6211 * Creates a new document.
6212 */
6213 createDocumentFragment(): DocumentFragment;
6214 /**
6215 * Creates an instance of the element for the specified tag.
6216 * @param tagName The name of an element.
6217 */
6218 createElement(tagName: "a"): HTMLAnchorElement;
6219 createElement(tagName: "abbr"): HTMLPhraseElement;
6220 createElement(tagName: "acronym"): HTMLPhraseElement;
6221 createElement(tagName: "address"): HTMLBlockElement;
6222 createElement(tagName: "applet"): HTMLAppletElement;
6223 createElement(tagName: "area"): HTMLAreaElement;
6224 createElement(tagName: "audio"): HTMLAudioElement;
6225 createElement(tagName: "b"): HTMLPhraseElement;
6226 createElement(tagName: "base"): HTMLBaseElement;
6227 createElement(tagName: "basefont"): HTMLBaseFontElement;
6228 createElement(tagName: "bdo"): HTMLPhraseElement;
6229 createElement(tagName: "big"): HTMLPhraseElement;
6230 createElement(tagName: "blockquote"): HTMLBlockElement;
6231 createElement(tagName: "body"): HTMLBodyElement;
6232 createElement(tagName: "br"): HTMLBRElement;
6233 createElement(tagName: "button"): HTMLButtonElement;
6234 createElement(tagName: "canvas"): HTMLCanvasElement;
6235 createElement(tagName: "caption"): HTMLTableCaptionElement;
6236 createElement(tagName: "center"): HTMLBlockElement;
6237 createElement(tagName: "cite"): HTMLPhraseElement;
6238 createElement(tagName: "code"): HTMLPhraseElement;
6239 createElement(tagName: "col"): HTMLTableColElement;
6240 createElement(tagName: "colgroup"): HTMLTableColElement;
6241 createElement(tagName: "datalist"): HTMLDataListElement;
6242 createElement(tagName: "dd"): HTMLDDElement;
6243 createElement(tagName: "del"): HTMLModElement;
6244 createElement(tagName: "dfn"): HTMLPhraseElement;
6245 createElement(tagName: "dir"): HTMLDirectoryElement;
6246 createElement(tagName: "div"): HTMLDivElement;
6247 createElement(tagName: "dl"): HTMLDListElement;
6248 createElement(tagName: "dt"): HTMLDTElement;
6249 createElement(tagName: "em"): HTMLPhraseElement;
6250 createElement(tagName: "embed"): HTMLEmbedElement;
6251 createElement(tagName: "fieldset"): HTMLFieldSetElement;
6252 createElement(tagName: "font"): HTMLFontElement;
6253 createElement(tagName: "form"): HTMLFormElement;
6254 createElement(tagName: "frame"): HTMLFrameElement;
6255 createElement(tagName: "frameset"): HTMLFrameSetElement;
6256 createElement(tagName: "h1"): HTMLHeadingElement;
6257 createElement(tagName: "h2"): HTMLHeadingElement;
6258 createElement(tagName: "h3"): HTMLHeadingElement;
6259 createElement(tagName: "h4"): HTMLHeadingElement;
6260 createElement(tagName: "h5"): HTMLHeadingElement;
6261 createElement(tagName: "h6"): HTMLHeadingElement;
6262 createElement(tagName: "head"): HTMLHeadElement;
6263 createElement(tagName: "hr"): HTMLHRElement;
6264 createElement(tagName: "html"): HTMLHtmlElement;
6265 createElement(tagName: "i"): HTMLPhraseElement;
6266 createElement(tagName: "iframe"): HTMLIFrameElement;
6267 createElement(tagName: "img"): HTMLImageElement;
6268 createElement(tagName: "input"): HTMLInputElement;
6269 createElement(tagName: "ins"): HTMLModElement;
6270 createElement(tagName: "isindex"): HTMLIsIndexElement;
6271 createElement(tagName: "kbd"): HTMLPhraseElement;
6272 createElement(tagName: "keygen"): HTMLBlockElement;
6273 createElement(tagName: "label"): HTMLLabelElement;
6274 createElement(tagName: "legend"): HTMLLegendElement;
6275 createElement(tagName: "li"): HTMLLIElement;
6276 createElement(tagName: "link"): HTMLLinkElement;
6277 createElement(tagName: "listing"): HTMLBlockElement;
6278 createElement(tagName: "map"): HTMLMapElement;
6279 createElement(tagName: "marquee"): HTMLMarqueeElement;
6280 createElement(tagName: "menu"): HTMLMenuElement;
6281 createElement(tagName: "meta"): HTMLMetaElement;
6282 createElement(tagName: "nextid"): HTMLNextIdElement;
6283 createElement(tagName: "nobr"): HTMLPhraseElement;
6284 createElement(tagName: "object"): HTMLObjectElement;
6285 createElement(tagName: "ol"): HTMLOListElement;
6286 createElement(tagName: "optgroup"): HTMLOptGroupElement;
6287 createElement(tagName: "option"): HTMLOptionElement;
6288 createElement(tagName: "p"): HTMLParagraphElement;
6289 createElement(tagName: "param"): HTMLParamElement;
6290 createElement(tagName: "plaintext"): HTMLBlockElement;
6291 createElement(tagName: "pre"): HTMLPreElement;
6292 createElement(tagName: "progress"): HTMLProgressElement;
6293 createElement(tagName: "q"): HTMLQuoteElement;
6294 createElement(tagName: "rt"): HTMLPhraseElement;
6295 createElement(tagName: "ruby"): HTMLPhraseElement;
6296 createElement(tagName: "s"): HTMLPhraseElement;
6297 createElement(tagName: "samp"): HTMLPhraseElement;
6298 createElement(tagName: "script"): HTMLScriptElement;
6299 createElement(tagName: "select"): HTMLSelectElement;
6300 createElement(tagName: "small"): HTMLPhraseElement;
6301 createElement(tagName: "source"): HTMLSourceElement;
6302 createElement(tagName: "span"): HTMLSpanElement;
6303 createElement(tagName: "strike"): HTMLPhraseElement;
6304 createElement(tagName: "strong"): HTMLPhraseElement;
6305 createElement(tagName: "style"): HTMLStyleElement;
6306 createElement(tagName: "sub"): HTMLPhraseElement;
6307 createElement(tagName: "sup"): HTMLPhraseElement;
6308 createElement(tagName: "table"): HTMLTableElement;
6309 createElement(tagName: "tbody"): HTMLTableSectionElement;
6310 createElement(tagName: "td"): HTMLTableDataCellElement;
6311 createElement(tagName: "textarea"): HTMLTextAreaElement;
6312 createElement(tagName: "tfoot"): HTMLTableSectionElement;
6313 createElement(tagName: "th"): HTMLTableHeaderCellElement;
6314 createElement(tagName: "thead"): HTMLTableSectionElement;
6315 createElement(tagName: "title"): HTMLTitleElement;
6316 createElement(tagName: "tr"): HTMLTableRowElement;
6317 createElement(tagName: "track"): HTMLTrackElement;
6318 createElement(tagName: "tt"): HTMLPhraseElement;
6319 createElement(tagName: "u"): HTMLPhraseElement;
6320 createElement(tagName: "ul"): HTMLUListElement;
6321 createElement(tagName: "var"): HTMLPhraseElement;
6322 createElement(tagName: "video"): HTMLVideoElement;
6323 createElement(tagName: "x-ms-webview"): MSHTMLWebViewElement;
6324 createElement(tagName: "xmp"): HTMLBlockElement;
6325 createElement(tagName: string): HTMLElement;
6326 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "a"): SVGAElement
6327 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "circle"): SVGCircleElement
6328 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "clipPath"): SVGClipPathElement
6329 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "componentTransferFunction"): SVGComponentTransferFunctionElement
6330 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "defs"): SVGDefsElement
6331 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "desc"): SVGDescElement
6332 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "ellipse"): SVGEllipseElement
6333 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feBlend"): SVGFEBlendElement
6334 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feColorMatrix"): SVGFEColorMatrixElement
6335 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feComponentTransfer"): SVGFEComponentTransferElement
6336 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feComposite"): SVGFECompositeElement
6337 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feConvolveMatrix"): SVGFEConvolveMatrixElement
6338 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feDiffuseLighting"): SVGFEDiffuseLightingElement
6339 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feDisplacementMap"): SVGFEDisplacementMapElement
6340 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feDistantLight"): SVGFEDistantLightElement
6341 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFlood"): SVGFEFloodElement
6342 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncA"): SVGFEFuncAElement
6343 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncB"): SVGFEFuncBElement
6344 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncG"): SVGFEFuncGElement
6345 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncR"): SVGFEFuncRElement
6346 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feGaussianBlur"): SVGFEGaussianBlurElement
6347 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feImage"): SVGFEImageElement
6348 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feMerge"): SVGFEMergeElement
6349 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feMergeNode"): SVGFEMergeNodeElement
6350 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feMorphology"): SVGFEMorphologyElement
6351 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feOffset"): SVGFEOffsetElement
6352 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "fePointLight"): SVGFEPointLightElement
6353 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feSpecularLighting"): SVGFESpecularLightingElement
6354 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feSpotLight"): SVGFESpotLightElement
6355 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feTile"): SVGFETileElement
6356 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feTurbulence"): SVGFETurbulenceElement
6357 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "filter"): SVGFilterElement
6358 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "foreignObject"): SVGForeignObjectElement
6359 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "g"): SVGGElement
6360 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "image"): SVGImageElement
6361 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "gradient"): SVGGradientElement
6362 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "line"): SVGLineElement
6363 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "linearGradient"): SVGLinearGradientElement
6364 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "marker"): SVGMarkerElement
6365 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "mask"): SVGMaskElement
6366 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "path"): SVGPathElement
6367 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "metadata"): SVGMetadataElement
6368 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "pattern"): SVGPatternElement
6369 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "polygon"): SVGPolygonElement
6370 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "polyline"): SVGPolylineElement
6371 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "radialGradient"): SVGRadialGradientElement
6372 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "rect"): SVGRectElement
6373 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "svg"): SVGSVGElement
6374 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "script"): SVGScriptElement
6375 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "stop"): SVGStopElement
6376 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "style"): SVGStyleElement
6377 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "switch"): SVGSwitchElement
6378 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "symbol"): SVGSymbolElement
6379 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "tspan"): SVGTSpanElement
6380 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "textContent"): SVGTextContentElement
6381 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "text"): SVGTextElement
6382 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "textPath"): SVGTextPathElement
6383 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "textPositioning"): SVGTextPositioningElement
6384 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "title"): SVGTitleElement
6385 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "use"): SVGUseElement
6386 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "view"): SVGViewElement
6387 createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement
6388 createElementNS(namespaceURI: string, qualifiedName: string): Element;
6389 createExpression(expression: string, resolver: XPathNSResolver): XPathExpression;
6390 createNSResolver(nodeResolver: Node): XPathNSResolver;
6391 /**
6392 * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.
6393 * @param root The root element or node to start traversing on.
6394 * @param whatToShow The type of nodes or elements to appear in the node list
6395 * @param filter A custom NodeFilter function to use. For more information, see filter. Use null for no filter.
6396 * @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded.
6397 */
6398 createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter, entityReferenceExpansion?: boolean): NodeIterator;
6399 createProcessingInstruction(target: string, data: string): ProcessingInstruction;
6400 /**
6401 * Returns an empty range object that has both of its boundary points positioned at the beginning of the document.
6402 */
6403 createRange(): Range;
6404 /**
6405 * Creates a text string from the specified value.
6406 * @param data String that specifies the nodeValue property of the text node.
6407 */
6408 createTextNode(data: string): Text;
6409 createTouch(view: any, target: EventTarget, identifier: number, pageX: number, pageY: number, screenX: number, screenY: number): Touch;
6410 createTouchList(...touches: Touch[]): TouchList;
6411 /**
6412 * Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document.
6413 * @param root The root element or node to start traversing on.
6414 * @param whatToShow The type of nodes or elements to appear in the node list. For more information, see whatToShow.
6415 * @param filter A custom NodeFilter function to use.
6416 * @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded.
6417 */
6418 createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter, entityReferenceExpansion?: boolean): TreeWalker;
6419 /**
6420 * Returns the element for the specified x coordinate and the specified y coordinate.
6421 * @param x The x-offset
6422 * @param y The y-offset
6423 */
6424 elementFromPoint(x: number, y: number): Element;
6425 evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver, type: number, result: XPathResult): XPathResult;
6426 /**
6427 * Executes a command on the current document, current selection, or the given range.
6428 * @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script.
6429 * @param showUI Display the user interface, defaults to false.
6430 * @param value Value to assign.
6431 */
6432 execCommand(commandId: string, showUI?: boolean, value?: any): boolean;
6433 /**
6434 * Displays help information for the given command identifier.
6435 * @param commandId Displays help information for the given command identifier.
6436 */
6437 execCommandShowHelp(commandId: string): boolean;
6438 exitFullscreen(): void;
6439 exitPointerLock(): void;
6440 /**
6441 * Causes the element to receive the focus and executes the code specified by the onfocus event.
6442 */
6443 focus(): void;
6444 /**
6445 * Returns a reference to the first object with the specified value of the ID or NAME attribute.
6446 * @param elementId String that specifies the ID value. Case-insensitive.
6447 */
6448 getElementById(elementId: string): HTMLElement;
6449 getElementsByClassName(classNames: string): NodeListOf<Element>;
6450 /**
6451 * Gets a collection of objects based on the value of the NAME or ID attribute.
6452 * @param elementName Gets a collection of objects based on the value of the NAME or ID attribute.
6453 */
6454 getElementsByName(elementName: string): NodeListOf<Element>;
6455 /**
6456 * Retrieves a collection of objects based on the specified element name.
6457 * @param name Specifies the name of an element.
6458 */
6459 getElementsByTagName(tagname: "a"): NodeListOf<HTMLAnchorElement>;
6460 getElementsByTagName(tagname: "abbr"): NodeListOf<HTMLPhraseElement>;
6461 getElementsByTagName(tagname: "acronym"): NodeListOf<HTMLPhraseElement>;
6462 getElementsByTagName(tagname: "address"): NodeListOf<HTMLBlockElement>;
6463 getElementsByTagName(tagname: "applet"): NodeListOf<HTMLAppletElement>;
6464 getElementsByTagName(tagname: "area"): NodeListOf<HTMLAreaElement>;
6465 getElementsByTagName(tagname: "article"): NodeListOf<HTMLElement>;
6466 getElementsByTagName(tagname: "aside"): NodeListOf<HTMLElement>;
6467 getElementsByTagName(tagname: "audio"): NodeListOf<HTMLAudioElement>;
6468 getElementsByTagName(tagname: "b"): NodeListOf<HTMLPhraseElement>;
6469 getElementsByTagName(tagname: "base"): NodeListOf<HTMLBaseElement>;
6470 getElementsByTagName(tagname: "basefont"): NodeListOf<HTMLBaseFontElement>;
6471 getElementsByTagName(tagname: "bdo"): NodeListOf<HTMLPhraseElement>;
6472 getElementsByTagName(tagname: "big"): NodeListOf<HTMLPhraseElement>;
6473 getElementsByTagName(tagname: "blockquote"): NodeListOf<HTMLBlockElement>;
6474 getElementsByTagName(tagname: "body"): NodeListOf<HTMLBodyElement>;
6475 getElementsByTagName(tagname: "br"): NodeListOf<HTMLBRElement>;
6476 getElementsByTagName(tagname: "button"): NodeListOf<HTMLButtonElement>;
6477 getElementsByTagName(tagname: "canvas"): NodeListOf<HTMLCanvasElement>;
6478 getElementsByTagName(tagname: "caption"): NodeListOf<HTMLTableCaptionElement>;
6479 getElementsByTagName(tagname: "center"): NodeListOf<HTMLBlockElement>;
6480 getElementsByTagName(tagname: "circle"): NodeListOf<SVGCircleElement>;
6481 getElementsByTagName(tagname: "cite"): NodeListOf<HTMLPhraseElement>;
6482 getElementsByTagName(tagname: "clippath"): NodeListOf<SVGClipPathElement>;
6483 getElementsByTagName(tagname: "code"): NodeListOf<HTMLPhraseElement>;
6484 getElementsByTagName(tagname: "col"): NodeListOf<HTMLTableColElement>;
6485 getElementsByTagName(tagname: "colgroup"): NodeListOf<HTMLTableColElement>;
6486 getElementsByTagName(tagname: "datalist"): NodeListOf<HTMLDataListElement>;
6487 getElementsByTagName(tagname: "dd"): NodeListOf<HTMLDDElement>;
6488 getElementsByTagName(tagname: "defs"): NodeListOf<SVGDefsElement>;
6489 getElementsByTagName(tagname: "del"): NodeListOf<HTMLModElement>;
6490 getElementsByTagName(tagname: "desc"): NodeListOf<SVGDescElement>;
6491 getElementsByTagName(tagname: "dfn"): NodeListOf<HTMLPhraseElement>;
6492 getElementsByTagName(tagname: "dir"): NodeListOf<HTMLDirectoryElement>;
6493 getElementsByTagName(tagname: "div"): NodeListOf<HTMLDivElement>;
6494 getElementsByTagName(tagname: "dl"): NodeListOf<HTMLDListElement>;
6495 getElementsByTagName(tagname: "dt"): NodeListOf<HTMLDTElement>;
6496 getElementsByTagName(tagname: "ellipse"): NodeListOf<SVGEllipseElement>;
6497 getElementsByTagName(tagname: "em"): NodeListOf<HTMLPhraseElement>;
6498 getElementsByTagName(tagname: "embed"): NodeListOf<HTMLEmbedElement>;
6499 getElementsByTagName(tagname: "feblend"): NodeListOf<SVGFEBlendElement>;
6500 getElementsByTagName(tagname: "fecolormatrix"): NodeListOf<SVGFEColorMatrixElement>;
6501 getElementsByTagName(tagname: "fecomponenttransfer"): NodeListOf<SVGFEComponentTransferElement>;
6502 getElementsByTagName(tagname: "fecomposite"): NodeListOf<SVGFECompositeElement>;
6503 getElementsByTagName(tagname: "feconvolvematrix"): NodeListOf<SVGFEConvolveMatrixElement>;
6504 getElementsByTagName(tagname: "fediffuselighting"): NodeListOf<SVGFEDiffuseLightingElement>;
6505 getElementsByTagName(tagname: "fedisplacementmap"): NodeListOf<SVGFEDisplacementMapElement>;
6506 getElementsByTagName(tagname: "fedistantlight"): NodeListOf<SVGFEDistantLightElement>;
6507 getElementsByTagName(tagname: "feflood"): NodeListOf<SVGFEFloodElement>;
6508 getElementsByTagName(tagname: "fefunca"): NodeListOf<SVGFEFuncAElement>;
6509 getElementsByTagName(tagname: "fefuncb"): NodeListOf<SVGFEFuncBElement>;
6510 getElementsByTagName(tagname: "fefuncg"): NodeListOf<SVGFEFuncGElement>;
6511 getElementsByTagName(tagname: "fefuncr"): NodeListOf<SVGFEFuncRElement>;
6512 getElementsByTagName(tagname: "fegaussianblur"): NodeListOf<SVGFEGaussianBlurElement>;
6513 getElementsByTagName(tagname: "feimage"): NodeListOf<SVGFEImageElement>;
6514 getElementsByTagName(tagname: "femerge"): NodeListOf<SVGFEMergeElement>;
6515 getElementsByTagName(tagname: "femergenode"): NodeListOf<SVGFEMergeNodeElement>;
6516 getElementsByTagName(tagname: "femorphology"): NodeListOf<SVGFEMorphologyElement>;
6517 getElementsByTagName(tagname: "feoffset"): NodeListOf<SVGFEOffsetElement>;
6518 getElementsByTagName(tagname: "fepointlight"): NodeListOf<SVGFEPointLightElement>;
6519 getElementsByTagName(tagname: "fespecularlighting"): NodeListOf<SVGFESpecularLightingElement>;
6520 getElementsByTagName(tagname: "fespotlight"): NodeListOf<SVGFESpotLightElement>;
6521 getElementsByTagName(tagname: "fetile"): NodeListOf<SVGFETileElement>;
6522 getElementsByTagName(tagname: "feturbulence"): NodeListOf<SVGFETurbulenceElement>;
6523 getElementsByTagName(tagname: "fieldset"): NodeListOf<HTMLFieldSetElement>;
6524 getElementsByTagName(tagname: "figcaption"): NodeListOf<HTMLElement>;
6525 getElementsByTagName(tagname: "figure"): NodeListOf<HTMLElement>;
6526 getElementsByTagName(tagname: "filter"): NodeListOf<SVGFilterElement>;
6527 getElementsByTagName(tagname: "font"): NodeListOf<HTMLFontElement>;
6528 getElementsByTagName(tagname: "footer"): NodeListOf<HTMLElement>;
6529 getElementsByTagName(tagname: "foreignobject"): NodeListOf<SVGForeignObjectElement>;
6530 getElementsByTagName(tagname: "form"): NodeListOf<HTMLFormElement>;
6531 getElementsByTagName(tagname: "frame"): NodeListOf<HTMLFrameElement>;
6532 getElementsByTagName(tagname: "frameset"): NodeListOf<HTMLFrameSetElement>;
6533 getElementsByTagName(tagname: "g"): NodeListOf<SVGGElement>;
6534 getElementsByTagName(tagname: "h1"): NodeListOf<HTMLHeadingElement>;
6535 getElementsByTagName(tagname: "h2"): NodeListOf<HTMLHeadingElement>;
6536 getElementsByTagName(tagname: "h3"): NodeListOf<HTMLHeadingElement>;
6537 getElementsByTagName(tagname: "h4"): NodeListOf<HTMLHeadingElement>;
6538 getElementsByTagName(tagname: "h5"): NodeListOf<HTMLHeadingElement>;
6539 getElementsByTagName(tagname: "h6"): NodeListOf<HTMLHeadingElement>;
6540 getElementsByTagName(tagname: "head"): NodeListOf<HTMLHeadElement>;
6541 getElementsByTagName(tagname: "header"): NodeListOf<HTMLElement>;
6542 getElementsByTagName(tagname: "hgroup"): NodeListOf<HTMLElement>;
6543 getElementsByTagName(tagname: "hr"): NodeListOf<HTMLHRElement>;
6544 getElementsByTagName(tagname: "html"): NodeListOf<HTMLHtmlElement>;
6545 getElementsByTagName(tagname: "i"): NodeListOf<HTMLPhraseElement>;
6546 getElementsByTagName(tagname: "iframe"): NodeListOf<HTMLIFrameElement>;
6547 getElementsByTagName(tagname: "image"): NodeListOf<SVGImageElement>;
6548 getElementsByTagName(tagname: "img"): NodeListOf<HTMLImageElement>;
6549 getElementsByTagName(tagname: "input"): NodeListOf<HTMLInputElement>;
6550 getElementsByTagName(tagname: "ins"): NodeListOf<HTMLModElement>;
6551 getElementsByTagName(tagname: "isindex"): NodeListOf<HTMLIsIndexElement>;
6552 getElementsByTagName(tagname: "kbd"): NodeListOf<HTMLPhraseElement>;
6553 getElementsByTagName(tagname: "keygen"): NodeListOf<HTMLBlockElement>;
6554 getElementsByTagName(tagname: "label"): NodeListOf<HTMLLabelElement>;
6555 getElementsByTagName(tagname: "legend"): NodeListOf<HTMLLegendElement>;
6556 getElementsByTagName(tagname: "li"): NodeListOf<HTMLLIElement>;
6557 getElementsByTagName(tagname: "line"): NodeListOf<SVGLineElement>;
6558 getElementsByTagName(tagname: "lineargradient"): NodeListOf<SVGLinearGradientElement>;
6559 getElementsByTagName(tagname: "link"): NodeListOf<HTMLLinkElement>;
6560 getElementsByTagName(tagname: "listing"): NodeListOf<HTMLBlockElement>;
6561 getElementsByTagName(tagname: "map"): NodeListOf<HTMLMapElement>;
6562 getElementsByTagName(tagname: "mark"): NodeListOf<HTMLElement>;
6563 getElementsByTagName(tagname: "marker"): NodeListOf<SVGMarkerElement>;
6564 getElementsByTagName(tagname: "marquee"): NodeListOf<HTMLMarqueeElement>;
6565 getElementsByTagName(tagname: "mask"): NodeListOf<SVGMaskElement>;
6566 getElementsByTagName(tagname: "menu"): NodeListOf<HTMLMenuElement>;
6567 getElementsByTagName(tagname: "meta"): NodeListOf<HTMLMetaElement>;
6568 getElementsByTagName(tagname: "metadata"): NodeListOf<SVGMetadataElement>;
6569 getElementsByTagName(tagname: "nav"): NodeListOf<HTMLElement>;
6570 getElementsByTagName(tagname: "nextid"): NodeListOf<HTMLNextIdElement>;
6571 getElementsByTagName(tagname: "nobr"): NodeListOf<HTMLPhraseElement>;
6572 getElementsByTagName(tagname: "noframes"): NodeListOf<HTMLElement>;
6573 getElementsByTagName(tagname: "noscript"): NodeListOf<HTMLElement>;
6574 getElementsByTagName(tagname: "object"): NodeListOf<HTMLObjectElement>;
6575 getElementsByTagName(tagname: "ol"): NodeListOf<HTMLOListElement>;
6576 getElementsByTagName(tagname: "optgroup"): NodeListOf<HTMLOptGroupElement>;
6577 getElementsByTagName(tagname: "option"): NodeListOf<HTMLOptionElement>;
6578 getElementsByTagName(tagname: "p"): NodeListOf<HTMLParagraphElement>;
6579 getElementsByTagName(tagname: "param"): NodeListOf<HTMLParamElement>;
6580 getElementsByTagName(tagname: "path"): NodeListOf<SVGPathElement>;
6581 getElementsByTagName(tagname: "pattern"): NodeListOf<SVGPatternElement>;
6582 getElementsByTagName(tagname: "plaintext"): NodeListOf<HTMLBlockElement>;
6583 getElementsByTagName(tagname: "polygon"): NodeListOf<SVGPolygonElement>;
6584 getElementsByTagName(tagname: "polyline"): NodeListOf<SVGPolylineElement>;
6585 getElementsByTagName(tagname: "pre"): NodeListOf<HTMLPreElement>;
6586 getElementsByTagName(tagname: "progress"): NodeListOf<HTMLProgressElement>;
6587 getElementsByTagName(tagname: "q"): NodeListOf<HTMLQuoteElement>;
6588 getElementsByTagName(tagname: "radialgradient"): NodeListOf<SVGRadialGradientElement>;
6589 getElementsByTagName(tagname: "rect"): NodeListOf<SVGRectElement>;
6590 getElementsByTagName(tagname: "rt"): NodeListOf<HTMLPhraseElement>;
6591 getElementsByTagName(tagname: "ruby"): NodeListOf<HTMLPhraseElement>;
6592 getElementsByTagName(tagname: "s"): NodeListOf<HTMLPhraseElement>;
6593 getElementsByTagName(tagname: "samp"): NodeListOf<HTMLPhraseElement>;
6594 getElementsByTagName(tagname: "script"): NodeListOf<HTMLScriptElement>;
6595 getElementsByTagName(tagname: "section"): NodeListOf<HTMLElement>;
6596 getElementsByTagName(tagname: "select"): NodeListOf<HTMLSelectElement>;
6597 getElementsByTagName(tagname: "small"): NodeListOf<HTMLPhraseElement>;
6598 getElementsByTagName(tagname: "source"): NodeListOf<HTMLSourceElement>;
6599 getElementsByTagName(tagname: "span"): NodeListOf<HTMLSpanElement>;
6600 getElementsByTagName(tagname: "stop"): NodeListOf<SVGStopElement>;
6601 getElementsByTagName(tagname: "strike"): NodeListOf<HTMLPhraseElement>;
6602 getElementsByTagName(tagname: "strong"): NodeListOf<HTMLPhraseElement>;
6603 getElementsByTagName(tagname: "style"): NodeListOf<HTMLStyleElement>;
6604 getElementsByTagName(tagname: "sub"): NodeListOf<HTMLPhraseElement>;
6605 getElementsByTagName(tagname: "sup"): NodeListOf<HTMLPhraseElement>;
6606 getElementsByTagName(tagname: "svg"): NodeListOf<SVGSVGElement>;
6607 getElementsByTagName(tagname: "switch"): NodeListOf<SVGSwitchElement>;
6608 getElementsByTagName(tagname: "symbol"): NodeListOf<SVGSymbolElement>;
6609 getElementsByTagName(tagname: "table"): NodeListOf<HTMLTableElement>;
6610 getElementsByTagName(tagname: "tbody"): NodeListOf<HTMLTableSectionElement>;
6611 getElementsByTagName(tagname: "td"): NodeListOf<HTMLTableDataCellElement>;
6612 getElementsByTagName(tagname: "text"): NodeListOf<SVGTextElement>;
6613 getElementsByTagName(tagname: "textpath"): NodeListOf<SVGTextPathElement>;
6614 getElementsByTagName(tagname: "textarea"): NodeListOf<HTMLTextAreaElement>;
6615 getElementsByTagName(tagname: "tfoot"): NodeListOf<HTMLTableSectionElement>;
6616 getElementsByTagName(tagname: "th"): NodeListOf<HTMLTableHeaderCellElement>;
6617 getElementsByTagName(tagname: "thead"): NodeListOf<HTMLTableSectionElement>;
6618 getElementsByTagName(tagname: "title"): NodeListOf<HTMLTitleElement>;
6619 getElementsByTagName(tagname: "tr"): NodeListOf<HTMLTableRowElement>;
6620 getElementsByTagName(tagname: "track"): NodeListOf<HTMLTrackElement>;
6621 getElementsByTagName(tagname: "tspan"): NodeListOf<SVGTSpanElement>;
6622 getElementsByTagName(tagname: "tt"): NodeListOf<HTMLPhraseElement>;
6623 getElementsByTagName(tagname: "u"): NodeListOf<HTMLPhraseElement>;
6624 getElementsByTagName(tagname: "ul"): NodeListOf<HTMLUListElement>;
6625 getElementsByTagName(tagname: "use"): NodeListOf<SVGUseElement>;
6626 getElementsByTagName(tagname: "var"): NodeListOf<HTMLPhraseElement>;
6627 getElementsByTagName(tagname: "video"): NodeListOf<HTMLVideoElement>;
6628 getElementsByTagName(tagname: "view"): NodeListOf<SVGViewElement>;
6629 getElementsByTagName(tagname: "wbr"): NodeListOf<HTMLElement>;
6630 getElementsByTagName(tagname: "x-ms-webview"): NodeListOf<MSHTMLWebViewElement>;
6631 getElementsByTagName(tagname: "xmp"): NodeListOf<HTMLBlockElement>;
6632 getElementsByTagName(tagname: string): NodeListOf<Element>;
6633 getElementsByTagNameNS(namespaceURI: string, localName: string): NodeListOf<Element>;
6634 /**
6635 * Returns an object representing the current selection of the document that is loaded into the object displaying a webpage.
6636 */
6637 getSelection(): Selection;
6638 /**
6639 * Gets a value indicating whether the object currently has focus.
6640 */
6641 hasFocus(): boolean;
6642 importNode(importedNode: Node, deep: boolean): Node;
6643 msElementsFromPoint(x: number, y: number): NodeList;
6644 msElementsFromRect(left: number, top: number, width: number, height: number): NodeList;
6645 /**
6646 * 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.
6647 * @param url Specifies a MIME type for the document.
6648 * @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.
6649 * @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.
6650 * @param replace Specifies whether the existing entry for the document is replaced in the history list.
6651 */
6652 open(url?: string, name?: string, features?: string, replace?: boolean): Document;
6653 /**
6654 * Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document.
6655 * @param commandId Specifies a command identifier.
6656 */
6657 queryCommandEnabled(commandId: string): boolean;
6658 /**
6659 * Returns a Boolean value that indicates whether the specified command is in the indeterminate state.
6660 * @param commandId String that specifies a command identifier.
6661 */
6662 queryCommandIndeterm(commandId: string): boolean;
6663 /**
6664 * Returns a Boolean value that indicates the current state of the command.
6665 * @param commandId String that specifies a command identifier.
6666 */
6667 queryCommandState(commandId: string): boolean;
6668 /**
6669 * Returns a Boolean value that indicates whether the current command is supported on the current range.
6670 * @param commandId Specifies a command identifier.
6671 */
6672 queryCommandSupported(commandId: string): boolean;
6673 /**
6674 * Retrieves the string associated with a command.
6675 * @param commandId String that contains the identifier of a command. This can be any command identifier given in the list of Command Identifiers.
6676 */
6677 queryCommandText(commandId: string): string;
6678 /**
6679 * Returns the current value of the document, range, or current selection for the given command.
6680 * @param commandId String that specifies a command identifier.
6681 */
6682 queryCommandValue(commandId: string): string;
6683 releaseEvents(): void;
6684 /**
6685 * Allows updating the print settings for the page.
6686 */
6687 updateSettings(): void;
6688 webkitCancelFullScreen(): void;
6689 webkitExitFullscreen(): void;
6690 /**
6691 * Writes one or more HTML expressions to a document in the specified window.
6692 * @param content Specifies the text and HTML tags to write.
6693 */
6694 write(...content: string[]): void;
6695 /**
6696 * Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window.
6697 * @param content The text and HTML tags to write.
6698 */
6699 writeln(...content: string[]): void;
6700 createElement(tagName: "picture"): HTMLPictureElement;
6701 getElementsByTagName(tagname: "picture"): NodeListOf<HTMLPictureElement>;
6702 addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
6703 addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
6704 addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
6705 addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
6706 addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
6707 addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
6708 addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
6709 addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
6710 addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void;
6711 addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
6712 addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
6713 addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
6714 addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
6715 addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
6716 addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
6717 addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
6718 addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
6719 addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
6720 addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
6721 addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
6722 addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
6723 addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
6724 addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void;
6725 addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void;
6726 addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void;
6727 addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
6728 addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
6729 addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
6730 addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
6731 addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
6732 addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
6733 addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
6734 addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
6735 addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
6736 addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
6737 addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
6738 addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void;
6739 addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void;
6740 addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void;
6741 addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
6742 addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
6743 addEventListener(type: "fullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void;
6744 addEventListener(type: "fullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void;
6745 addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void;
6746 addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
6747 addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
6748 addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
6749 addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
6750 addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void;
6751 addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void;
6752 addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void;
6753 addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
6754 addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
6755 addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
6756 addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
6757 addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
6758 addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void;
6759 addEventListener(type: "mssitemodejumplistitemremoved", listener: (ev: MSSiteModeEvent) => any, useCapture?: boolean): void;
6760 addEventListener(type: "msthumbnailclick", listener: (ev: MSSiteModeEvent) => any, useCapture?: boolean): void;
6761 addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void;
6762 addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void;
6763 addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void;
6764 addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
6765 addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
6766 addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
6767 addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
6768 addEventListener(type: "pointerlockchange", listener: (ev: Event) => any, useCapture?: boolean): void;
6769 addEventListener(type: "pointerlockerror", listener: (ev: Event) => any, useCapture?: boolean): void;
6770 addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
6771 addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
6772 addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
6773 addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
6774 addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
6775 addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void;
6776 addEventListener(type: "readystatechange", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
6777 addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void;
6778 addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
6779 addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void;
6780 addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void;
6781 addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
6782 addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void;
6783 addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void;
6784 addEventListener(type: "stop", listener: (ev: Event) => any, useCapture?: boolean): void;
6785 addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void;
6786 addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void;
6787 addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void;
6788 addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
6789 addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
6790 addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
6791 addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
6792 addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void;
6793 addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void;
6794 addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void;
6795 addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void;
6796 addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void;
6797 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
6798}
6799
6800declare var Document: {
6801 prototype: Document;
6802 new(): Document;
6803}
6804
6805interface DocumentFragment extends Node, NodeSelector {
6806 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
6807}
6808
6809declare var DocumentFragment: {
6810 prototype: DocumentFragment;
6811 new(): DocumentFragment;
6812}
6813
6814interface DocumentType extends Node, ChildNode {
6815 entities: NamedNodeMap;
6816 internalSubset: string;
6817 name: string;
6818 notations: NamedNodeMap;
6819 publicId: string;
6820 systemId: string;
6821 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
6822}
6823
6824declare var DocumentType: {
6825 prototype: DocumentType;
6826 new(): DocumentType;
6827}
6828
6829interface DragEvent extends MouseEvent {
6830 dataTransfer: DataTransfer;
6831 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;
6832 msConvertURL(file: File, targetType: string, targetURL?: string): void;
6833}
6834
6835declare var DragEvent: {
6836 prototype: DragEvent;
6837 new(): DragEvent;
6838}
6839
6840interface DynamicsCompressorNode extends AudioNode {
6841 attack: AudioParam;
6842 knee: AudioParam;
6843 ratio: AudioParam;
6844 reduction: AudioParam;
6845 release: AudioParam;
6846 threshold: AudioParam;
6847}
6848
6849declare var DynamicsCompressorNode: {
6850 prototype: DynamicsCompressorNode;
6851 new(): DynamicsCompressorNode;
6852}
6853
6854interface EXT_texture_filter_anisotropic {
6855 MAX_TEXTURE_MAX_ANISOTROPY_EXT: number;
6856 TEXTURE_MAX_ANISOTROPY_EXT: number;
6857}
6858
6859declare var EXT_texture_filter_anisotropic: {
6860 prototype: EXT_texture_filter_anisotropic;
6861 new(): EXT_texture_filter_anisotropic;
6862 MAX_TEXTURE_MAX_ANISOTROPY_EXT: number;
6863 TEXTURE_MAX_ANISOTROPY_EXT: number;
6864}
6865
6866interface Element extends Node, GlobalEventHandlers, ElementTraversal, NodeSelector, ChildNode {
6867 classList: DOMTokenList;
6868 clientHeight: number;
6869 clientLeft: number;
6870 clientTop: number;
6871 clientWidth: number;
6872 msContentZoomFactor: number;
6873 msRegionOverflow: string;
6874 onariarequest: (ev: AriaRequestEvent) => any;
6875 oncommand: (ev: CommandEvent) => any;
6876 ongotpointercapture: (ev: PointerEvent) => any;
6877 onlostpointercapture: (ev: PointerEvent) => any;
6878 onmsgesturechange: (ev: MSGestureEvent) => any;
6879 onmsgesturedoubletap: (ev: MSGestureEvent) => any;
6880 onmsgestureend: (ev: MSGestureEvent) => any;
6881 onmsgesturehold: (ev: MSGestureEvent) => any;
6882 onmsgesturestart: (ev: MSGestureEvent) => any;
6883 onmsgesturetap: (ev: MSGestureEvent) => any;
6884 onmsgotpointercapture: (ev: MSPointerEvent) => any;
6885 onmsinertiastart: (ev: MSGestureEvent) => any;
6886 onmslostpointercapture: (ev: MSPointerEvent) => any;
6887 onmspointercancel: (ev: MSPointerEvent) => any;
6888 onmspointerdown: (ev: MSPointerEvent) => any;
6889 onmspointerenter: (ev: MSPointerEvent) => any;
6890 onmspointerleave: (ev: MSPointerEvent) => any;
6891 onmspointermove: (ev: MSPointerEvent) => any;
6892 onmspointerout: (ev: MSPointerEvent) => any;
6893 onmspointerover: (ev: MSPointerEvent) => any;
6894 onmspointerup: (ev: MSPointerEvent) => any;
6895 ontouchcancel: (ev: TouchEvent) => any;
6896 ontouchend: (ev: TouchEvent) => any;
6897 ontouchmove: (ev: TouchEvent) => any;
6898 ontouchstart: (ev: TouchEvent) => any;
6899 onwebkitfullscreenchange: (ev: Event) => any;
6900 onwebkitfullscreenerror: (ev: Event) => any;
6901 scrollHeight: number;
6902 scrollLeft: number;
6903 scrollTop: number;
6904 scrollWidth: number;
6905 tagName: string;
6906 id: string;
6907 className: string;
6908 innerHTML: string;
6909 getAttribute(name?: string): string;
6910 getAttributeNS(namespaceURI: string, localName: string): string;
6911 getAttributeNode(name: string): Attr;
6912 getAttributeNodeNS(namespaceURI: string, localName: string): Attr;
6913 getBoundingClientRect(): ClientRect;
6914 getClientRects(): ClientRectList;
6915 getElementsByTagName(name: "a"): NodeListOf<HTMLAnchorElement>;
6916 getElementsByTagName(name: "abbr"): NodeListOf<HTMLPhraseElement>;
6917 getElementsByTagName(name: "acronym"): NodeListOf<HTMLPhraseElement>;
6918 getElementsByTagName(name: "address"): NodeListOf<HTMLBlockElement>;
6919 getElementsByTagName(name: "applet"): NodeListOf<HTMLAppletElement>;
6920 getElementsByTagName(name: "area"): NodeListOf<HTMLAreaElement>;
6921 getElementsByTagName(name: "article"): NodeListOf<HTMLElement>;
6922 getElementsByTagName(name: "aside"): NodeListOf<HTMLElement>;
6923 getElementsByTagName(name: "audio"): NodeListOf<HTMLAudioElement>;
6924 getElementsByTagName(name: "b"): NodeListOf<HTMLPhraseElement>;
6925 getElementsByTagName(name: "base"): NodeListOf<HTMLBaseElement>;
6926 getElementsByTagName(name: "basefont"): NodeListOf<HTMLBaseFontElement>;
6927 getElementsByTagName(name: "bdo"): NodeListOf<HTMLPhraseElement>;
6928 getElementsByTagName(name: "big"): NodeListOf<HTMLPhraseElement>;
6929 getElementsByTagName(name: "blockquote"): NodeListOf<HTMLBlockElement>;
6930 getElementsByTagName(name: "body"): NodeListOf<HTMLBodyElement>;
6931 getElementsByTagName(name: "br"): NodeListOf<HTMLBRElement>;
6932 getElementsByTagName(name: "button"): NodeListOf<HTMLButtonElement>;
6933 getElementsByTagName(name: "canvas"): NodeListOf<HTMLCanvasElement>;
6934 getElementsByTagName(name: "caption"): NodeListOf<HTMLTableCaptionElement>;
6935 getElementsByTagName(name: "center"): NodeListOf<HTMLBlockElement>;
6936 getElementsByTagName(name: "circle"): NodeListOf<SVGCircleElement>;
6937 getElementsByTagName(name: "cite"): NodeListOf<HTMLPhraseElement>;
6938 getElementsByTagName(name: "clippath"): NodeListOf<SVGClipPathElement>;
6939 getElementsByTagName(name: "code"): NodeListOf<HTMLPhraseElement>;
6940 getElementsByTagName(name: "col"): NodeListOf<HTMLTableColElement>;
6941 getElementsByTagName(name: "colgroup"): NodeListOf<HTMLTableColElement>;
6942 getElementsByTagName(name: "datalist"): NodeListOf<HTMLDataListElement>;
6943 getElementsByTagName(name: "dd"): NodeListOf<HTMLDDElement>;
6944 getElementsByTagName(name: "defs"): NodeListOf<SVGDefsElement>;
6945 getElementsByTagName(name: "del"): NodeListOf<HTMLModElement>;
6946 getElementsByTagName(name: "desc"): NodeListOf<SVGDescElement>;
6947 getElementsByTagName(name: "dfn"): NodeListOf<HTMLPhraseElement>;
6948 getElementsByTagName(name: "dir"): NodeListOf<HTMLDirectoryElement>;
6949 getElementsByTagName(name: "div"): NodeListOf<HTMLDivElement>;
6950 getElementsByTagName(name: "dl"): NodeListOf<HTMLDListElement>;
6951 getElementsByTagName(name: "dt"): NodeListOf<HTMLDTElement>;
6952 getElementsByTagName(name: "ellipse"): NodeListOf<SVGEllipseElement>;
6953 getElementsByTagName(name: "em"): NodeListOf<HTMLPhraseElement>;
6954 getElementsByTagName(name: "embed"): NodeListOf<HTMLEmbedElement>;
6955 getElementsByTagName(name: "feblend"): NodeListOf<SVGFEBlendElement>;
6956 getElementsByTagName(name: "fecolormatrix"): NodeListOf<SVGFEColorMatrixElement>;
6957 getElementsByTagName(name: "fecomponenttransfer"): NodeListOf<SVGFEComponentTransferElement>;
6958 getElementsByTagName(name: "fecomposite"): NodeListOf<SVGFECompositeElement>;
6959 getElementsByTagName(name: "feconvolvematrix"): NodeListOf<SVGFEConvolveMatrixElement>;
6960 getElementsByTagName(name: "fediffuselighting"): NodeListOf<SVGFEDiffuseLightingElement>;
6961 getElementsByTagName(name: "fedisplacementmap"): NodeListOf<SVGFEDisplacementMapElement>;
6962 getElementsByTagName(name: "fedistantlight"): NodeListOf<SVGFEDistantLightElement>;
6963 getElementsByTagName(name: "feflood"): NodeListOf<SVGFEFloodElement>;
6964 getElementsByTagName(name: "fefunca"): NodeListOf<SVGFEFuncAElement>;
6965 getElementsByTagName(name: "fefuncb"): NodeListOf<SVGFEFuncBElement>;
6966 getElementsByTagName(name: "fefuncg"): NodeListOf<SVGFEFuncGElement>;
6967 getElementsByTagName(name: "fefuncr"): NodeListOf<SVGFEFuncRElement>;
6968 getElementsByTagName(name: "fegaussianblur"): NodeListOf<SVGFEGaussianBlurElement>;
6969 getElementsByTagName(name: "feimage"): NodeListOf<SVGFEImageElement>;
6970 getElementsByTagName(name: "femerge"): NodeListOf<SVGFEMergeElement>;
6971 getElementsByTagName(name: "femergenode"): NodeListOf<SVGFEMergeNodeElement>;
6972 getElementsByTagName(name: "femorphology"): NodeListOf<SVGFEMorphologyElement>;
6973 getElementsByTagName(name: "feoffset"): NodeListOf<SVGFEOffsetElement>;
6974 getElementsByTagName(name: "fepointlight"): NodeListOf<SVGFEPointLightElement>;
6975 getElementsByTagName(name: "fespecularlighting"): NodeListOf<SVGFESpecularLightingElement>;
6976 getElementsByTagName(name: "fespotlight"): NodeListOf<SVGFESpotLightElement>;
6977 getElementsByTagName(name: "fetile"): NodeListOf<SVGFETileElement>;
6978 getElementsByTagName(name: "feturbulence"): NodeListOf<SVGFETurbulenceElement>;
6979 getElementsByTagName(name: "fieldset"): NodeListOf<HTMLFieldSetElement>;
6980 getElementsByTagName(name: "figcaption"): NodeListOf<HTMLElement>;
6981 getElementsByTagName(name: "figure"): NodeListOf<HTMLElement>;
6982 getElementsByTagName(name: "filter"): NodeListOf<SVGFilterElement>;
6983 getElementsByTagName(name: "font"): NodeListOf<HTMLFontElement>;
6984 getElementsByTagName(name: "footer"): NodeListOf<HTMLElement>;
6985 getElementsByTagName(name: "foreignobject"): NodeListOf<SVGForeignObjectElement>;
6986 getElementsByTagName(name: "form"): NodeListOf<HTMLFormElement>;
6987 getElementsByTagName(name: "frame"): NodeListOf<HTMLFrameElement>;
6988 getElementsByTagName(name: "frameset"): NodeListOf<HTMLFrameSetElement>;
6989 getElementsByTagName(name: "g"): NodeListOf<SVGGElement>;
6990 getElementsByTagName(name: "h1"): NodeListOf<HTMLHeadingElement>;
6991 getElementsByTagName(name: "h2"): NodeListOf<HTMLHeadingElement>;
6992 getElementsByTagName(name: "h3"): NodeListOf<HTMLHeadingElement>;
6993 getElementsByTagName(name: "h4"): NodeListOf<HTMLHeadingElement>;
6994 getElementsByTagName(name: "h5"): NodeListOf<HTMLHeadingElement>;
6995 getElementsByTagName(name: "h6"): NodeListOf<HTMLHeadingElement>;
6996 getElementsByTagName(name: "head"): NodeListOf<HTMLHeadElement>;
6997 getElementsByTagName(name: "header"): NodeListOf<HTMLElement>;
6998 getElementsByTagName(name: "hgroup"): NodeListOf<HTMLElement>;
6999 getElementsByTagName(name: "hr"): NodeListOf<HTMLHRElement>;
7000 getElementsByTagName(name: "html"): NodeListOf<HTMLHtmlElement>;
7001 getElementsByTagName(name: "i"): NodeListOf<HTMLPhraseElement>;
7002 getElementsByTagName(name: "iframe"): NodeListOf<HTMLIFrameElement>;
7003 getElementsByTagName(name: "image"): NodeListOf<SVGImageElement>;
7004 getElementsByTagName(name: "img"): NodeListOf<HTMLImageElement>;
7005 getElementsByTagName(name: "input"): NodeListOf<HTMLInputElement>;
7006 getElementsByTagName(name: "ins"): NodeListOf<HTMLModElement>;
7007 getElementsByTagName(name: "isindex"): NodeListOf<HTMLIsIndexElement>;
7008 getElementsByTagName(name: "kbd"): NodeListOf<HTMLPhraseElement>;
7009 getElementsByTagName(name: "keygen"): NodeListOf<HTMLBlockElement>;
7010 getElementsByTagName(name: "label"): NodeListOf<HTMLLabelElement>;
7011 getElementsByTagName(name: "legend"): NodeListOf<HTMLLegendElement>;
7012 getElementsByTagName(name: "li"): NodeListOf<HTMLLIElement>;
7013 getElementsByTagName(name: "line"): NodeListOf<SVGLineElement>;
7014 getElementsByTagName(name: "lineargradient"): NodeListOf<SVGLinearGradientElement>;
7015 getElementsByTagName(name: "link"): NodeListOf<HTMLLinkElement>;
7016 getElementsByTagName(name: "listing"): NodeListOf<HTMLBlockElement>;
7017 getElementsByTagName(name: "map"): NodeListOf<HTMLMapElement>;
7018 getElementsByTagName(name: "mark"): NodeListOf<HTMLElement>;
7019 getElementsByTagName(name: "marker"): NodeListOf<SVGMarkerElement>;
7020 getElementsByTagName(name: "marquee"): NodeListOf<HTMLMarqueeElement>;
7021 getElementsByTagName(name: "mask"): NodeListOf<SVGMaskElement>;
7022 getElementsByTagName(name: "menu"): NodeListOf<HTMLMenuElement>;
7023 getElementsByTagName(name: "meta"): NodeListOf<HTMLMetaElement>;
7024 getElementsByTagName(name: "metadata"): NodeListOf<SVGMetadataElement>;
7025 getElementsByTagName(name: "nav"): NodeListOf<HTMLElement>;
7026 getElementsByTagName(name: "nextid"): NodeListOf<HTMLNextIdElement>;
7027 getElementsByTagName(name: "nobr"): NodeListOf<HTMLPhraseElement>;
7028 getElementsByTagName(name: "noframes"): NodeListOf<HTMLElement>;
7029 getElementsByTagName(name: "noscript"): NodeListOf<HTMLElement>;
7030 getElementsByTagName(name: "object"): NodeListOf<HTMLObjectElement>;
7031 getElementsByTagName(name: "ol"): NodeListOf<HTMLOListElement>;
7032 getElementsByTagName(name: "optgroup"): NodeListOf<HTMLOptGroupElement>;
7033 getElementsByTagName(name: "option"): NodeListOf<HTMLOptionElement>;
7034 getElementsByTagName(name: "p"): NodeListOf<HTMLParagraphElement>;
7035 getElementsByTagName(name: "param"): NodeListOf<HTMLParamElement>;
7036 getElementsByTagName(name: "path"): NodeListOf<SVGPathElement>;
7037 getElementsByTagName(name: "pattern"): NodeListOf<SVGPatternElement>;
7038 getElementsByTagName(name: "plaintext"): NodeListOf<HTMLBlockElement>;
7039 getElementsByTagName(name: "polygon"): NodeListOf<SVGPolygonElement>;
7040 getElementsByTagName(name: "polyline"): NodeListOf<SVGPolylineElement>;
7041 getElementsByTagName(name: "pre"): NodeListOf<HTMLPreElement>;
7042 getElementsByTagName(name: "progress"): NodeListOf<HTMLProgressElement>;
7043 getElementsByTagName(name: "q"): NodeListOf<HTMLQuoteElement>;
7044 getElementsByTagName(name: "radialgradient"): NodeListOf<SVGRadialGradientElement>;
7045 getElementsByTagName(name: "rect"): NodeListOf<SVGRectElement>;
7046 getElementsByTagName(name: "rt"): NodeListOf<HTMLPhraseElement>;
7047 getElementsByTagName(name: "ruby"): NodeListOf<HTMLPhraseElement>;
7048 getElementsByTagName(name: "s"): NodeListOf<HTMLPhraseElement>;
7049 getElementsByTagName(name: "samp"): NodeListOf<HTMLPhraseElement>;
7050 getElementsByTagName(name: "script"): NodeListOf<HTMLScriptElement>;
7051 getElementsByTagName(name: "section"): NodeListOf<HTMLElement>;
7052 getElementsByTagName(name: "select"): NodeListOf<HTMLSelectElement>;
7053 getElementsByTagName(name: "small"): NodeListOf<HTMLPhraseElement>;
7054 getElementsByTagName(name: "source"): NodeListOf<HTMLSourceElement>;
7055 getElementsByTagName(name: "span"): NodeListOf<HTMLSpanElement>;
7056 getElementsByTagName(name: "stop"): NodeListOf<SVGStopElement>;
7057 getElementsByTagName(name: "strike"): NodeListOf<HTMLPhraseElement>;
7058 getElementsByTagName(name: "strong"): NodeListOf<HTMLPhraseElement>;
7059 getElementsByTagName(name: "style"): NodeListOf<HTMLStyleElement>;
7060 getElementsByTagName(name: "sub"): NodeListOf<HTMLPhraseElement>;
7061 getElementsByTagName(name: "sup"): NodeListOf<HTMLPhraseElement>;
7062 getElementsByTagName(name: "svg"): NodeListOf<SVGSVGElement>;
7063 getElementsByTagName(name: "switch"): NodeListOf<SVGSwitchElement>;
7064 getElementsByTagName(name: "symbol"): NodeListOf<SVGSymbolElement>;
7065 getElementsByTagName(name: "table"): NodeListOf<HTMLTableElement>;
7066 getElementsByTagName(name: "tbody"): NodeListOf<HTMLTableSectionElement>;
7067 getElementsByTagName(name: "td"): NodeListOf<HTMLTableDataCellElement>;
7068 getElementsByTagName(name: "text"): NodeListOf<SVGTextElement>;
7069 getElementsByTagName(name: "textpath"): NodeListOf<SVGTextPathElement>;
7070 getElementsByTagName(name: "textarea"): NodeListOf<HTMLTextAreaElement>;
7071 getElementsByTagName(name: "tfoot"): NodeListOf<HTMLTableSectionElement>;
7072 getElementsByTagName(name: "th"): NodeListOf<HTMLTableHeaderCellElement>;
7073 getElementsByTagName(name: "thead"): NodeListOf<HTMLTableSectionElement>;
7074 getElementsByTagName(name: "title"): NodeListOf<HTMLTitleElement>;
7075 getElementsByTagName(name: "tr"): NodeListOf<HTMLTableRowElement>;
7076 getElementsByTagName(name: "track"): NodeListOf<HTMLTrackElement>;
7077 getElementsByTagName(name: "tspan"): NodeListOf<SVGTSpanElement>;
7078 getElementsByTagName(name: "tt"): NodeListOf<HTMLPhraseElement>;
7079 getElementsByTagName(name: "u"): NodeListOf<HTMLPhraseElement>;
7080 getElementsByTagName(name: "ul"): NodeListOf<HTMLUListElement>;
7081 getElementsByTagName(name: "use"): NodeListOf<SVGUseElement>;
7082 getElementsByTagName(name: "var"): NodeListOf<HTMLPhraseElement>;
7083 getElementsByTagName(name: "video"): NodeListOf<HTMLVideoElement>;
7084 getElementsByTagName(name: "view"): NodeListOf<SVGViewElement>;
7085 getElementsByTagName(name: "wbr"): NodeListOf<HTMLElement>;
7086 getElementsByTagName(name: "x-ms-webview"): NodeListOf<MSHTMLWebViewElement>;
7087 getElementsByTagName(name: "xmp"): NodeListOf<HTMLBlockElement>;
7088 getElementsByTagName(name: string): NodeListOf<Element>;
7089 getElementsByTagNameNS(namespaceURI: string, localName: string): NodeListOf<Element>;
7090 hasAttribute(name: string): boolean;
7091 hasAttributeNS(namespaceURI: string, localName: string): boolean;
7092 msGetRegionContent(): MSRangeCollection;
7093 msGetUntransformedBounds(): ClientRect;
7094 msMatchesSelector(selectors: string): boolean;
7095 msReleasePointerCapture(pointerId: number): void;
7096 msSetPointerCapture(pointerId: number): void;
7097 msZoomTo(args: MsZoomToOptions): void;
7098 releasePointerCapture(pointerId: number): void;
7099 removeAttribute(name?: string): void;
7100 removeAttributeNS(namespaceURI: string, localName: string): void;
7101 removeAttributeNode(oldAttr: Attr): Attr;
7102 requestFullscreen(): void;
7103 requestPointerLock(): void;
7104 setAttribute(name: string, value: string): void;
7105 setAttributeNS(namespaceURI: string, qualifiedName: string, value: string): void;
7106 setAttributeNode(newAttr: Attr): Attr;
7107 setAttributeNodeNS(newAttr: Attr): Attr;
7108 setPointerCapture(pointerId: number): void;
7109 webkitMatchesSelector(selectors: string): boolean;
7110 webkitRequestFullScreen(): void;
7111 webkitRequestFullscreen(): void;
7112 getElementsByClassName(classNames: string): NodeListOf<Element>;
7113 matches(selector: string): boolean;
7114 getElementsByTagName(tagname: "picture"): NodeListOf<HTMLPictureElement>;
7115 addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
7116 addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
7117 addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
7118 addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
7119 addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
7120 addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
7121 addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
7122 addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
7123 addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
7124 addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
7125 addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
7126 addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
7127 addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
7128 addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
7129 addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
7130 addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
7131 addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
7132 addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void;
7133 addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void;
7134 addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
7135 addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
7136 addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
7137 addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
7138 addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
7139 addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
7140 addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
7141 addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
7142 addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
7143 addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
7144 addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
7145 addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
7146 addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
7147 addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
7148 addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void;
7149 addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void;
7150 addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void;
7151 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
7152}
7153
7154declare var Element: {
7155 prototype: Element;
7156 new(): Element;
7157}
7158
7159interface ErrorEvent extends Event {
7160 colno: number;
7161 error: any;
7162 filename: string;
7163 lineno: number;
7164 message: string;
7165 initErrorEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, messageArg: string, filenameArg: string, linenoArg: number): void;
7166}
7167
7168declare var ErrorEvent: {
7169 prototype: ErrorEvent;
7170 new(): ErrorEvent;
7171}
7172
7173interface Event {
7174 bubbles: boolean;
7175 cancelBubble: boolean;
7176 cancelable: boolean;
7177 currentTarget: EventTarget;
7178 defaultPrevented: boolean;
7179 eventPhase: number;
7180 isTrusted: boolean;
7181 returnValue: boolean;
7182 srcElement: Element;
7183 target: EventTarget;
7184 timeStamp: number;
7185 type: string;
7186 initEvent(eventTypeArg: string, canBubbleArg: boolean, cancelableArg: boolean): void;
7187 preventDefault(): void;
7188 stopImmediatePropagation(): void;
7189 stopPropagation(): void;
7190 AT_TARGET: number;
7191 BUBBLING_PHASE: number;
7192 CAPTURING_PHASE: number;
7193}
7194
7195declare var Event: {
7196 prototype: Event;
7197 new(type: string, eventInitDict?: EventInit): Event;
7198 AT_TARGET: number;
7199 BUBBLING_PHASE: number;
7200 CAPTURING_PHASE: number;
7201}
7202
7203interface EventTarget {
7204 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
7205 dispatchEvent(evt: Event): boolean;
7206 removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
7207}
7208
7209declare var EventTarget: {
7210 prototype: EventTarget;
7211 new(): EventTarget;
7212}
7213
7214interface External {
7215}
7216
7217declare var External: {
7218 prototype: External;
7219 new(): External;
7220}
7221
7222interface File extends Blob {
7223 lastModifiedDate: any;
7224 name: string;
7225}
7226
7227declare var File: {
7228 prototype: File;
7229 new (parts: (ArrayBuffer | ArrayBufferView | Blob | string)[], filename: string, properties?: FilePropertyBag): File;
7230}
7231
7232interface FileList {
7233 length: number;
7234 item(index: number): File;
7235 [index: number]: File;
7236}
7237
7238declare var FileList: {
7239 prototype: FileList;
7240 new(): FileList;
7241}
7242
7243interface FileReader extends EventTarget, MSBaseReader {
7244 error: DOMError;
7245 readAsArrayBuffer(blob: Blob): void;
7246 readAsBinaryString(blob: Blob): void;
7247 readAsDataURL(blob: Blob): void;
7248 readAsText(blob: Blob, encoding?: string): void;
7249 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
7250}
7251
7252declare var FileReader: {
7253 prototype: FileReader;
7254 new(): FileReader;
7255}
7256
7257interface FocusEvent extends UIEvent {
7258 relatedTarget: EventTarget;
7259 initFocusEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, relatedTargetArg: EventTarget): void;
7260}
7261
7262declare var FocusEvent: {
7263 prototype: FocusEvent;
7264 new(typeArg: string, eventInitDict?: FocusEventInit): FocusEvent;
7265}
7266
7267interface FormData {
7268 append(name: any, value: any, blobName?: string): void;
7269}
7270
7271declare var FormData: {
7272 prototype: FormData;
7273 new (form?: HTMLFormElement): FormData;
7274}
7275
7276interface GainNode extends AudioNode {
7277 gain: AudioParam;
7278}
7279
7280declare var GainNode: {
7281 prototype: GainNode;
7282 new(): GainNode;
7283}
7284
7285interface Gamepad {
7286 axes: number[];
7287 buttons: GamepadButton[];
7288 connected: boolean;
7289 id: string;
7290 index: number;
7291 mapping: string;
7292 timestamp: number;
7293}
7294
7295declare var Gamepad: {
7296 prototype: Gamepad;
7297 new(): Gamepad;
7298}
7299
7300interface GamepadButton {
7301 pressed: boolean;
7302 value: number;
7303}
7304
7305declare var GamepadButton: {
7306 prototype: GamepadButton;
7307 new(): GamepadButton;
7308}
7309
7310interface GamepadEvent extends Event {
7311 gamepad: Gamepad;
7312}
7313
7314declare var GamepadEvent: {
7315 prototype: GamepadEvent;
7316 new(): GamepadEvent;
7317}
7318
7319interface Geolocation {
7320 clearWatch(watchId: number): void;
7321 getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback, options?: PositionOptions): void;
7322 watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback, options?: PositionOptions): number;
7323}
7324
7325declare var Geolocation: {
7326 prototype: Geolocation;
7327 new(): Geolocation;
7328}
7329
7330interface HTMLAllCollection extends HTMLCollection {
7331 namedItem(name: string): Element;
7332}
7333
7334declare var HTMLAllCollection: {
7335 prototype: HTMLAllCollection;
7336 new(): HTMLAllCollection;
7337}
7338
7339interface HTMLAnchorElement extends HTMLElement {
7340 Methods: string;
7341 /**
7342 * Sets or retrieves the character set used to encode the object.
7343 */
7344 charset: string;
7345 /**
7346 * Sets or retrieves the coordinates of the object.
7347 */
7348 coords: string;
7349 /**
7350 * Contains the anchor portion of the URL including the hash sign (#).
7351 */
7352 hash: string;
7353 /**
7354 * Contains the hostname and port values of the URL.
7355 */
7356 host: string;
7357 /**
7358 * Contains the hostname of a URL.
7359 */
7360 hostname: string;
7361 /**
7362 * Sets or retrieves a destination URL or an anchor point.
7363 */
7364 href: string;
7365 /**
7366 * Sets or retrieves the language code of the object.
7367 */
7368 hreflang: string;
7369 mimeType: string;
7370 /**
7371 * Sets or retrieves the shape of the object.
7372 */
7373 name: string;
7374 nameProp: string;
7375 /**
7376 * Contains the pathname of the URL.
7377 */
7378 pathname: string;
7379 /**
7380 * Sets or retrieves the port number associated with a URL.
7381 */
7382 port: string;
7383 /**
7384 * Contains the protocol of the URL.
7385 */
7386 protocol: string;
7387 protocolLong: string;
7388 /**
7389 * Sets or retrieves the relationship between the object and the destination of the link.
7390 */
7391 rel: string;
7392 /**
7393 * Sets or retrieves the relationship between the object and the destination of the link.
7394 */
7395 rev: string;
7396 /**
7397 * Sets or retrieves the substring of the href property that follows the question mark.
7398 */
7399 search: string;
7400 /**
7401 * Sets or retrieves the shape of the object.
7402 */
7403 shape: string;
7404 /**
7405 * Sets or retrieves the window or frame at which to target content.
7406 */
7407 target: string;
7408 /**
7409 * Retrieves or sets the text of the object as a string.
7410 */
7411 text: string;
7412 type: string;
7413 urn: string;
7414 /**
7415 * Returns a string representation of an object.
7416 */
7417 toString(): string;
7418}
7419
7420declare var HTMLAnchorElement: {
7421 prototype: HTMLAnchorElement;
7422 new(): HTMLAnchorElement;
7423}
7424
7425interface HTMLAppletElement extends HTMLElement {
7426 /**
7427 * 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.
7428 */
7429 BaseHref: string;
7430 align: string;
7431 /**
7432 * Sets or retrieves a text alternative to the graphic.
7433 */
7434 alt: string;
7435 /**
7436 * Gets or sets the optional alternative HTML script to execute if the object fails to load.
7437 */
7438 altHtml: string;
7439 /**
7440 * Sets or retrieves a character string that can be used to implement your own archive functionality for the object.
7441 */
7442 archive: string;
7443 border: string;
7444 code: string;
7445 /**
7446 * Sets or retrieves the URL of the component.
7447 */
7448 codeBase: string;
7449 /**
7450 * Sets or retrieves the Internet media type for the code associated with the object.
7451 */
7452 codeType: string;
7453 /**
7454 * Address of a pointer to the document this page or frame contains. If there is no document, then null will be returned.
7455 */
7456 contentDocument: Document;
7457 /**
7458 * Sets or retrieves the URL that references the data of the object.
7459 */
7460 data: string;
7461 /**
7462 * Sets or retrieves a character string that can be used to implement your own declare functionality for the object.
7463 */
7464 declare: boolean;
7465 form: HTMLFormElement;
7466 /**
7467 * Sets or retrieves the height of the object.
7468 */
7469 height: string;
7470 hspace: number;
7471 /**
7472 * Sets or retrieves the shape of the object.
7473 */
7474 name: string;
7475 object: string;
7476 /**
7477 * Sets or retrieves a message to be displayed while an object is loading.
7478 */
7479 standby: string;
7480 /**
7481 * Returns the content type of the object.
7482 */
7483 type: string;
7484 /**
7485 * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
7486 */
7487 useMap: string;
7488 vspace: number;
7489 width: number;
7490}
7491
7492declare var HTMLAppletElement: {
7493 prototype: HTMLAppletElement;
7494 new(): HTMLAppletElement;
7495}
7496
7497interface HTMLAreaElement extends HTMLElement {
7498 /**
7499 * Sets or retrieves a text alternative to the graphic.
7500 */
7501 alt: string;
7502 /**
7503 * Sets or retrieves the coordinates of the object.
7504 */
7505 coords: string;
7506 /**
7507 * Sets or retrieves the subsection of the href property that follows the number sign (#).
7508 */
7509 hash: string;
7510 /**
7511 * Sets or retrieves the hostname and port number of the location or URL.
7512 */
7513 host: string;
7514 /**
7515 * Sets or retrieves the host name part of the location or URL.
7516 */
7517 hostname: string;
7518 /**
7519 * Sets or retrieves a destination URL or an anchor point.
7520 */
7521 href: string;
7522 /**
7523 * Sets or gets whether clicks in this region cause action.
7524 */
7525 noHref: boolean;
7526 /**
7527 * Sets or retrieves the file name or path specified by the object.
7528 */
7529 pathname: string;
7530 /**
7531 * Sets or retrieves the port number associated with a URL.
7532 */
7533 port: string;
7534 /**
7535 * Sets or retrieves the protocol portion of a URL.
7536 */
7537 protocol: string;
7538 rel: string;
7539 /**
7540 * Sets or retrieves the substring of the href property that follows the question mark.
7541 */
7542 search: string;
7543 /**
7544 * Sets or retrieves the shape of the object.
7545 */
7546 shape: string;
7547 /**
7548 * Sets or retrieves the window or frame at which to target content.
7549 */
7550 target: string;
7551 /**
7552 * Returns a string representation of an object.
7553 */
7554 toString(): string;
7555}
7556
7557declare var HTMLAreaElement: {
7558 prototype: HTMLAreaElement;
7559 new(): HTMLAreaElement;
7560}
7561
7562interface HTMLAreasCollection extends HTMLCollection {
7563 /**
7564 * Adds an element to the areas, controlRange, or options collection.
7565 */
7566 add(element: HTMLElement, before?: HTMLElement | number): void;
7567 /**
7568 * Removes an element from the collection.
7569 */
7570 remove(index?: number): void;
7571}
7572
7573declare var HTMLAreasCollection: {
7574 prototype: HTMLAreasCollection;
7575 new(): HTMLAreasCollection;
7576}
7577
7578interface HTMLAudioElement extends HTMLMediaElement {
7579}
7580
7581declare var HTMLAudioElement: {
7582 prototype: HTMLAudioElement;
7583 new(): HTMLAudioElement;
7584}
7585
7586interface HTMLBRElement extends HTMLElement {
7587 /**
7588 * Sets or retrieves the side on which floating objects are not to be positioned when any IHTMLBlockElement is inserted into the document.
7589 */
7590 clear: string;
7591}
7592
7593declare var HTMLBRElement: {
7594 prototype: HTMLBRElement;
7595 new(): HTMLBRElement;
7596}
7597
7598interface HTMLBaseElement extends HTMLElement {
7599 /**
7600 * Gets or sets the baseline URL on which relative links are based.
7601 */
7602 href: string;
7603 /**
7604 * Sets or retrieves the window or frame at which to target content.
7605 */
7606 target: string;
7607}
7608
7609declare var HTMLBaseElement: {
7610 prototype: HTMLBaseElement;
7611 new(): HTMLBaseElement;
7612}
7613
7614interface HTMLBaseFontElement extends HTMLElement, DOML2DeprecatedColorProperty {
7615 /**
7616 * Sets or retrieves the current typeface family.
7617 */
7618 face: string;
7619 /**
7620 * Sets or retrieves the font size of the object.
7621 */
7622 size: number;
7623 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
7624}
7625
7626declare var HTMLBaseFontElement: {
7627 prototype: HTMLBaseFontElement;
7628 new(): HTMLBaseFontElement;
7629}
7630
7631interface HTMLBlockElement extends HTMLElement {
7632 /**
7633 * Sets or retrieves reference information about the object.
7634 */
7635 cite: string;
7636 clear: string;
7637 /**
7638 * Sets or retrieves the width of the object.
7639 */
7640 width: number;
7641}
7642
7643declare var HTMLBlockElement: {
7644 prototype: HTMLBlockElement;
7645 new(): HTMLBlockElement;
7646}
7647
7648interface HTMLBodyElement extends HTMLElement {
7649 aLink: any;
7650 background: string;
7651 bgColor: any;
7652 bgProperties: string;
7653 link: any;
7654 noWrap: boolean;
7655 onafterprint: (ev: Event) => any;
7656 onbeforeprint: (ev: Event) => any;
7657 onbeforeunload: (ev: BeforeUnloadEvent) => any;
7658 onblur: (ev: FocusEvent) => any;
7659 onerror: (ev: Event) => any;
7660 onfocus: (ev: FocusEvent) => any;
7661 onhashchange: (ev: HashChangeEvent) => any;
7662 onload: (ev: Event) => any;
7663 onmessage: (ev: MessageEvent) => any;
7664 onoffline: (ev: Event) => any;
7665 ononline: (ev: Event) => any;
7666 onorientationchange: (ev: Event) => any;
7667 onpagehide: (ev: PageTransitionEvent) => any;
7668 onpageshow: (ev: PageTransitionEvent) => any;
7669 onpopstate: (ev: PopStateEvent) => any;
7670 onresize: (ev: UIEvent) => any;
7671 onstorage: (ev: StorageEvent) => any;
7672 onunload: (ev: Event) => any;
7673 text: any;
7674 vLink: any;
7675 createTextRange(): TextRange;
7676 addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
7677 addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
7678 addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
7679 addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
7680 addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
7681 addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
7682 addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
7683 addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
7684 addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
7685 addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
7686 addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void;
7687 addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
7688 addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
7689 addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
7690 addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
7691 addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
7692 addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
7693 addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
7694 addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
7695 addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
7696 addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
7697 addEventListener(type: "afterprint", listener: (ev: Event) => any, useCapture?: boolean): void;
7698 addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void;
7699 addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
7700 addEventListener(type: "beforecopy", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
7701 addEventListener(type: "beforecut", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
7702 addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
7703 addEventListener(type: "beforepaste", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
7704 addEventListener(type: "beforeprint", listener: (ev: Event) => any, useCapture?: boolean): void;
7705 addEventListener(type: "beforeunload", listener: (ev: BeforeUnloadEvent) => any, useCapture?: boolean): void;
7706 addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
7707 addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
7708 addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void;
7709 addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void;
7710 addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void;
7711 addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
7712 addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void;
7713 addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
7714 addEventListener(type: "copy", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
7715 addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void;
7716 addEventListener(type: "cut", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
7717 addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
7718 addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
7719 addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
7720 addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
7721 addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
7722 addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
7723 addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
7724 addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
7725 addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
7726 addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void;
7727 addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void;
7728 addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void;
7729 addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
7730 addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
7731 addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
7732 addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
7733 addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
7734 addEventListener(type: "hashchange", listener: (ev: HashChangeEvent) => any, useCapture?: boolean): void;
7735 addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void;
7736 addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
7737 addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
7738 addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
7739 addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
7740 addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
7741 addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void;
7742 addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void;
7743 addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void;
7744 addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
7745 addEventListener(type: "message", listener: (ev: MessageEvent) => any, useCapture?: boolean): void;
7746 addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
7747 addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
7748 addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
7749 addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
7750 addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
7751 addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
7752 addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
7753 addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void;
7754 addEventListener(type: "offline", listener: (ev: Event) => any, useCapture?: boolean): void;
7755 addEventListener(type: "online", listener: (ev: Event) => any, useCapture?: boolean): void;
7756 addEventListener(type: "orientationchange", listener: (ev: Event) => any, useCapture?: boolean): void;
7757 addEventListener(type: "pagehide", listener: (ev: PageTransitionEvent) => any, useCapture?: boolean): void;
7758 addEventListener(type: "pageshow", listener: (ev: PageTransitionEvent) => any, useCapture?: boolean): void;
7759 addEventListener(type: "paste", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
7760 addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void;
7761 addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void;
7762 addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void;
7763 addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
7764 addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
7765 addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
7766 addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
7767 addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
7768 addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
7769 addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
7770 addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
7771 addEventListener(type: "popstate", listener: (ev: PopStateEvent) => any, useCapture?: boolean): void;
7772 addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
7773 addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void;
7774 addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void;
7775 addEventListener(type: "resize", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
7776 addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
7777 addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void;
7778 addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void;
7779 addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
7780 addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void;
7781 addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void;
7782 addEventListener(type: "storage", listener: (ev: StorageEvent) => any, useCapture?: boolean): void;
7783 addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void;
7784 addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void;
7785 addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void;
7786 addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
7787 addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
7788 addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
7789 addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
7790 addEventListener(type: "unload", listener: (ev: Event) => any, useCapture?: boolean): void;
7791 addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void;
7792 addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void;
7793 addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void;
7794 addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void;
7795 addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void;
7796 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
7797}
7798
7799declare var HTMLBodyElement: {
7800 prototype: HTMLBodyElement;
7801 new(): HTMLBodyElement;
7802}
7803
7804interface HTMLButtonElement extends HTMLElement {
7805 /**
7806 * 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.
7807 */
7808 autofocus: boolean;
7809 disabled: boolean;
7810 /**
7811 * Retrieves a reference to the form that the object is embedded in.
7812 */
7813 form: HTMLFormElement;
7814 /**
7815 * Overrides the action attribute (where the data on a form is sent) on the parent form element.
7816 */
7817 formAction: string;
7818 /**
7819 * Used to override the encoding (formEnctype attribute) specified on the form element.
7820 */
7821 formEnctype: string;
7822 /**
7823 * Overrides the submit method attribute previously specified on a form element.
7824 */
7825 formMethod: string;
7826 /**
7827 * 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.
7828 */
7829 formNoValidate: string;
7830 /**
7831 * Overrides the target attribute on a form element.
7832 */
7833 formTarget: string;
7834 /**
7835 * Sets or retrieves the name of the object.
7836 */
7837 name: string;
7838 status: any;
7839 /**
7840 * Gets the classification and default behavior of the button.
7841 */
7842 type: string;
7843 /**
7844 * 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.
7845 */
7846 validationMessage: string;
7847 /**
7848 * Returns a ValidityState object that represents the validity states of an element.
7849 */
7850 validity: ValidityState;
7851 /**
7852 * Sets or retrieves the default or selected value of the control.
7853 */
7854 value: string;
7855 /**
7856 * Returns whether an element will successfully validate based on forms validation rules and constraints.
7857 */
7858 willValidate: boolean;
7859 /**
7860 * Returns whether a form will validate when it is submitted, without having to submit it.
7861 */
7862 checkValidity(): boolean;
7863 /**
7864 * Creates a TextRange object for the element.
7865 */
7866 createTextRange(): TextRange;
7867 /**
7868 * Sets a custom error message that is displayed when a form is submitted.
7869 * @param error Sets a custom error message that is displayed when a form is submitted.
7870 */
7871 setCustomValidity(error: string): void;
7872}
7873
7874declare var HTMLButtonElement: {
7875 prototype: HTMLButtonElement;
7876 new(): HTMLButtonElement;
7877}
7878
7879interface HTMLCanvasElement extends HTMLElement {
7880 /**
7881 * Gets or sets the height of a canvas element on a document.
7882 */
7883 height: number;
7884 /**
7885 * Gets or sets the width of a canvas element on a document.
7886 */
7887 width: number;
7888 /**
7889 * 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.
7890 * @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");
7891 */
7892 getContext(contextId: "2d"): CanvasRenderingContext2D;
7893 getContext(contextId: "experimental-webgl"): WebGLRenderingContext;
7894 getContext(contextId: string, ...args: any[]): CanvasRenderingContext2D | WebGLRenderingContext;
7895 /**
7896 * Returns a blob object encoded as a Portable Network Graphics (PNG) format from a canvas image or drawing.
7897 */
7898 msToBlob(): Blob;
7899 /**
7900 * Returns the content of the current canvas as an image that you can use as a source for another canvas or an HTML element.
7901 * @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.
7902 */
7903 toDataURL(type?: string, ...args: any[]): string;
7904 toBlob(): Blob;
7905}
7906
7907declare var HTMLCanvasElement: {
7908 prototype: HTMLCanvasElement;
7909 new(): HTMLCanvasElement;
7910}
7911
7912interface HTMLCollection {
7913 /**
7914 * Sets or retrieves the number of objects in a collection.
7915 */
7916 length: number;
7917 /**
7918 * Retrieves an object from various collections.
7919 */
7920 item(nameOrIndex?: any, optionalIndex?: any): Element;
7921 /**
7922 * Retrieves a select object or an object from an options collection.
7923 */
7924 namedItem(name: string): Element;
7925 [index: number]: Element;
7926}
7927
7928declare var HTMLCollection: {
7929 prototype: HTMLCollection;
7930 new(): HTMLCollection;
7931}
7932
7933interface HTMLDDElement extends HTMLElement {
7934 /**
7935 * Sets or retrieves whether the browser automatically performs wordwrap.
7936 */
7937 noWrap: boolean;
7938}
7939
7940declare var HTMLDDElement: {
7941 prototype: HTMLDDElement;
7942 new(): HTMLDDElement;
7943}
7944
7945interface HTMLDListElement extends HTMLElement {
7946 compact: boolean;
7947}
7948
7949declare var HTMLDListElement: {
7950 prototype: HTMLDListElement;
7951 new(): HTMLDListElement;
7952}
7953
7954interface HTMLDTElement extends HTMLElement {
7955 /**
7956 * Sets or retrieves whether the browser automatically performs wordwrap.
7957 */
7958 noWrap: boolean;
7959}
7960
7961declare var HTMLDTElement: {
7962 prototype: HTMLDTElement;
7963 new(): HTMLDTElement;
7964}
7965
7966interface HTMLDataListElement extends HTMLElement {
7967 options: HTMLCollection;
7968}
7969
7970declare var HTMLDataListElement: {
7971 prototype: HTMLDataListElement;
7972 new(): HTMLDataListElement;
7973}
7974
7975interface HTMLDirectoryElement extends HTMLElement {
7976 compact: boolean;
7977}
7978
7979declare var HTMLDirectoryElement: {
7980 prototype: HTMLDirectoryElement;
7981 new(): HTMLDirectoryElement;
7982}
7983
7984interface HTMLDivElement extends HTMLElement {
7985 /**
7986 * Sets or retrieves how the object is aligned with adjacent text.
7987 */
7988 align: string;
7989 /**
7990 * Sets or retrieves whether the browser automatically performs wordwrap.
7991 */
7992 noWrap: boolean;
7993}
7994
7995declare var HTMLDivElement: {
7996 prototype: HTMLDivElement;
7997 new(): HTMLDivElement;
7998}
7999
8000interface HTMLDocument extends Document {
8001}
8002
8003declare var HTMLDocument: {
8004 prototype: HTMLDocument;
8005 new(): HTMLDocument;
8006}
8007
8008interface HTMLElement extends Element {
8009 accessKey: string;
8010 children: HTMLCollection;
8011 contentEditable: string;
8012 dataset: DOMStringMap;
8013 dir: string;
8014 draggable: boolean;
8015 hidden: boolean;
8016 hideFocus: boolean;
8017 innerHTML: string;
8018 innerText: string;
8019 isContentEditable: boolean;
8020 lang: string;
8021 offsetHeight: number;
8022 offsetLeft: number;
8023 offsetParent: Element;
8024 offsetTop: number;
8025 offsetWidth: number;
8026 onabort: (ev: Event) => any;
8027 onactivate: (ev: UIEvent) => any;
8028 onbeforeactivate: (ev: UIEvent) => any;
8029 onbeforecopy: (ev: DragEvent) => any;
8030 onbeforecut: (ev: DragEvent) => any;
8031 onbeforedeactivate: (ev: UIEvent) => any;
8032 onbeforepaste: (ev: DragEvent) => any;
8033 onblur: (ev: FocusEvent) => any;
8034 oncanplay: (ev: Event) => any;
8035 oncanplaythrough: (ev: Event) => any;
8036 onchange: (ev: Event) => any;
8037 onclick: (ev: MouseEvent) => any;
8038 oncontextmenu: (ev: PointerEvent) => any;
8039 oncopy: (ev: DragEvent) => any;
8040 oncuechange: (ev: Event) => any;
8041 oncut: (ev: DragEvent) => any;
8042 ondblclick: (ev: MouseEvent) => any;
8043 ondeactivate: (ev: UIEvent) => any;
8044 ondrag: (ev: DragEvent) => any;
8045 ondragend: (ev: DragEvent) => any;
8046 ondragenter: (ev: DragEvent) => any;
8047 ondragleave: (ev: DragEvent) => any;
8048 ondragover: (ev: DragEvent) => any;
8049 ondragstart: (ev: DragEvent) => any;
8050 ondrop: (ev: DragEvent) => any;
8051 ondurationchange: (ev: Event) => any;
8052 onemptied: (ev: Event) => any;
8053 onended: (ev: Event) => any;
8054 onerror: (ev: Event) => any;
8055 onfocus: (ev: FocusEvent) => any;
8056 oninput: (ev: Event) => any;
8057 onkeydown: (ev: KeyboardEvent) => any;
8058 onkeypress: (ev: KeyboardEvent) => any;
8059 onkeyup: (ev: KeyboardEvent) => any;
8060 onload: (ev: Event) => any;
8061 onloadeddata: (ev: Event) => any;
8062 onloadedmetadata: (ev: Event) => any;
8063 onloadstart: (ev: Event) => any;
8064 onmousedown: (ev: MouseEvent) => any;
8065 onmouseenter: (ev: MouseEvent) => any;
8066 onmouseleave: (ev: MouseEvent) => any;
8067 onmousemove: (ev: MouseEvent) => any;
8068 onmouseout: (ev: MouseEvent) => any;
8069 onmouseover: (ev: MouseEvent) => any;
8070 onmouseup: (ev: MouseEvent) => any;
8071 onmousewheel: (ev: MouseWheelEvent) => any;
8072 onmscontentzoom: (ev: UIEvent) => any;
8073 onmsmanipulationstatechanged: (ev: MSManipulationEvent) => any;
8074 onpaste: (ev: DragEvent) => any;
8075 onpause: (ev: Event) => any;
8076 onplay: (ev: Event) => any;
8077 onplaying: (ev: Event) => any;
8078 onprogress: (ev: ProgressEvent) => any;
8079 onratechange: (ev: Event) => any;
8080 onreset: (ev: Event) => any;
8081 onscroll: (ev: UIEvent) => any;
8082 onseeked: (ev: Event) => any;
8083 onseeking: (ev: Event) => any;
8084 onselect: (ev: UIEvent) => any;
8085 onselectstart: (ev: Event) => any;
8086 onstalled: (ev: Event) => any;
8087 onsubmit: (ev: Event) => any;
8088 onsuspend: (ev: Event) => any;
8089 ontimeupdate: (ev: Event) => any;
8090 onvolumechange: (ev: Event) => any;
8091 onwaiting: (ev: Event) => any;
8092 outerHTML: string;
8093 outerText: string;
8094 spellcheck: boolean;
8095 style: CSSStyleDeclaration;
8096 tabIndex: number;
8097 title: string;
8098 blur(): void;
8099 click(): void;
8100 dragDrop(): boolean;
8101 focus(): void;
8102 insertAdjacentElement(position: string, insertedElement: Element): Element;
8103 insertAdjacentHTML(where: string, html: string): void;
8104 insertAdjacentText(where: string, text: string): void;
8105 msGetInputContext(): MSInputMethodContext;
8106 scrollIntoView(top?: boolean): void;
8107 setActive(): void;
8108 addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8109 addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8110 addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8111 addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8112 addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8113 addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8114 addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8115 addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8116 addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8117 addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8118 addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void;
8119 addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8120 addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8121 addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8122 addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8123 addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8124 addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8125 addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8126 addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8127 addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8128 addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8129 addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void;
8130 addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8131 addEventListener(type: "beforecopy", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8132 addEventListener(type: "beforecut", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8133 addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8134 addEventListener(type: "beforepaste", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8135 addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
8136 addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void;
8137 addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void;
8138 addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void;
8139 addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8140 addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void;
8141 addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8142 addEventListener(type: "copy", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8143 addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void;
8144 addEventListener(type: "cut", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8145 addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8146 addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8147 addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8148 addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8149 addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8150 addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8151 addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8152 addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8153 addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8154 addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void;
8155 addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void;
8156 addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void;
8157 addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
8158 addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
8159 addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8160 addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void;
8161 addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
8162 addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
8163 addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
8164 addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
8165 addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void;
8166 addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void;
8167 addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void;
8168 addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8169 addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8170 addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8171 addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8172 addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8173 addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8174 addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8175 addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8176 addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void;
8177 addEventListener(type: "paste", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8178 addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void;
8179 addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void;
8180 addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void;
8181 addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8182 addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8183 addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8184 addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8185 addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8186 addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8187 addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8188 addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8189 addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
8190 addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void;
8191 addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void;
8192 addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8193 addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void;
8194 addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void;
8195 addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8196 addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void;
8197 addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void;
8198 addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void;
8199 addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void;
8200 addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void;
8201 addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
8202 addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
8203 addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
8204 addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
8205 addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void;
8206 addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void;
8207 addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void;
8208 addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void;
8209 addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void;
8210 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
8211}
8212
8213declare var HTMLElement: {
8214 prototype: HTMLElement;
8215 new(): HTMLElement;
8216}
8217
8218interface HTMLEmbedElement extends HTMLElement, GetSVGDocument {
8219 /**
8220 * Sets or retrieves the height of the object.
8221 */
8222 height: string;
8223 hidden: any;
8224 /**
8225 * Gets or sets whether the DLNA PlayTo device is available.
8226 */
8227 msPlayToDisabled: boolean;
8228 /**
8229 * 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.
8230 */
8231 msPlayToPreferredSourceUri: string;
8232 /**
8233 * Gets or sets the primary DLNA PlayTo device.
8234 */
8235 msPlayToPrimary: boolean;
8236 /**
8237 * Gets the source associated with the media element for use by the PlayToManager.
8238 */
8239 msPlayToSource: any;
8240 /**
8241 * Sets or retrieves the name of the object.
8242 */
8243 name: string;
8244 /**
8245 * Retrieves the palette used for the embedded document.
8246 */
8247 palette: string;
8248 /**
8249 * Retrieves the URL of the plug-in used to view an embedded document.
8250 */
8251 pluginspage: string;
8252 readyState: string;
8253 /**
8254 * Sets or retrieves a URL to be loaded by the object.
8255 */
8256 src: string;
8257 /**
8258 * Sets or retrieves the height and width units of the embed object.
8259 */
8260 units: string;
8261 /**
8262 * Sets or retrieves the width of the object.
8263 */
8264 width: string;
8265 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
8266}
8267
8268declare var HTMLEmbedElement: {
8269 prototype: HTMLEmbedElement;
8270 new(): HTMLEmbedElement;
8271}
8272
8273interface HTMLFieldSetElement extends HTMLElement {
8274 /**
8275 * Sets or retrieves how the object is aligned with adjacent text.
8276 */
8277 align: string;
8278 disabled: boolean;
8279 /**
8280 * Retrieves a reference to the form that the object is embedded in.
8281 */
8282 form: HTMLFormElement;
8283 /**
8284 * 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.
8285 */
8286 validationMessage: string;
8287 /**
8288 * Returns a ValidityState object that represents the validity states of an element.
8289 */
8290 validity: ValidityState;
8291 /**
8292 * Returns whether an element will successfully validate based on forms validation rules and constraints.
8293 */
8294 willValidate: boolean;
8295 /**
8296 * Returns whether a form will validate when it is submitted, without having to submit it.
8297 */
8298 checkValidity(): boolean;
8299 /**
8300 * Sets a custom error message that is displayed when a form is submitted.
8301 * @param error Sets a custom error message that is displayed when a form is submitted.
8302 */
8303 setCustomValidity(error: string): void;
8304}
8305
8306declare var HTMLFieldSetElement: {
8307 prototype: HTMLFieldSetElement;
8308 new(): HTMLFieldSetElement;
8309}
8310
8311interface HTMLFontElement extends HTMLElement, DOML2DeprecatedColorProperty, DOML2DeprecatedSizeProperty {
8312 /**
8313 * Sets or retrieves the current typeface family.
8314 */
8315 face: string;
8316 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
8317}
8318
8319declare var HTMLFontElement: {
8320 prototype: HTMLFontElement;
8321 new(): HTMLFontElement;
8322}
8323
8324interface HTMLFormElement extends HTMLElement {
8325 /**
8326 * Sets or retrieves a list of character encodings for input data that must be accepted by the server processing the form.
8327 */
8328 acceptCharset: string;
8329 /**
8330 * Sets or retrieves the URL to which the form content is sent for processing.
8331 */
8332 action: string;
8333 /**
8334 * Specifies whether autocomplete is applied to an editable text field.
8335 */
8336 autocomplete: string;
8337 /**
8338 * Retrieves a collection, in source order, of all controls in a given form.
8339 */
8340 elements: HTMLCollection;
8341 /**
8342 * Sets or retrieves the MIME encoding for the form.
8343 */
8344 encoding: string;
8345 /**
8346 * Sets or retrieves the encoding type for the form.
8347 */
8348 enctype: string;
8349 /**
8350 * Sets or retrieves the number of objects in a collection.
8351 */
8352 length: number;
8353 /**
8354 * Sets or retrieves how to send the form data to the server.
8355 */
8356 method: string;
8357 /**
8358 * Sets or retrieves the name of the object.
8359 */
8360 name: string;
8361 /**
8362 * Designates a form that is not validated when submitted.
8363 */
8364 noValidate: boolean;
8365 /**
8366 * Sets or retrieves the window or frame at which to target content.
8367 */
8368 target: string;
8369 /**
8370 * Returns whether a form will validate when it is submitted, without having to submit it.
8371 */
8372 checkValidity(): boolean;
8373 /**
8374 * Retrieves a form object or an object from an elements collection.
8375 * @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.
8376 * @param index Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned.
8377 */
8378 item(name?: any, index?: any): any;
8379 /**
8380 * Retrieves a form object or an object from an elements collection.
8381 */
8382 namedItem(name: string): any;
8383 /**
8384 * Fires when the user resets a form.
8385 */
8386 reset(): void;
8387 /**
8388 * Fires when a FORM is about to be submitted.
8389 */
8390 submit(): void;
8391 [name: string]: any;
8392}
8393
8394declare var HTMLFormElement: {
8395 prototype: HTMLFormElement;
8396 new(): HTMLFormElement;
8397}
8398
8399interface HTMLFrameElement extends HTMLElement, GetSVGDocument {
8400 /**
8401 * Specifies the properties of a border drawn around an object.
8402 */
8403 border: string;
8404 /**
8405 * Sets or retrieves the border color of the object.
8406 */
8407 borderColor: any;
8408 /**
8409 * Retrieves the document object of the page or frame.
8410 */
8411 contentDocument: Document;
8412 /**
8413 * Retrieves the object of the specified.
8414 */
8415 contentWindow: Window;
8416 /**
8417 * Sets or retrieves whether to display a border for the frame.
8418 */
8419 frameBorder: string;
8420 /**
8421 * Sets or retrieves the amount of additional space between the frames.
8422 */
8423 frameSpacing: any;
8424 /**
8425 * Sets or retrieves the height of the object.
8426 */
8427 height: string | number;
8428 /**
8429 * Sets or retrieves a URI to a long description of the object.
8430 */
8431 longDesc: string;
8432 /**
8433 * Sets or retrieves the top and bottom margin heights before displaying the text in a frame.
8434 */
8435 marginHeight: string;
8436 /**
8437 * Sets or retrieves the left and right margin widths before displaying the text in a frame.
8438 */
8439 marginWidth: string;
8440 /**
8441 * Sets or retrieves the frame name.
8442 */
8443 name: string;
8444 /**
8445 * Sets or retrieves whether the user can resize the frame.
8446 */
8447 noResize: boolean;
8448 /**
8449 * Raised when the object has been completely received from the server.
8450 */
8451 onload: (ev: Event) => any;
8452 /**
8453 * Sets or retrieves whether the frame can be scrolled.
8454 */
8455 scrolling: string;
8456 /**
8457 * Sets the value indicating whether the source file of a frame or iframe has specific security restrictions applied.
8458 */
8459 security: any;
8460 /**
8461 * Sets or retrieves a URL to be loaded by the object.
8462 */
8463 src: string;
8464 /**
8465 * Sets or retrieves the width of the object.
8466 */
8467 width: string | number;
8468 addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8469 addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8470 addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8471 addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8472 addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8473 addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8474 addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8475 addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8476 addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8477 addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8478 addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void;
8479 addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8480 addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8481 addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8482 addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8483 addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8484 addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8485 addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8486 addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8487 addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8488 addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8489 addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void;
8490 addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8491 addEventListener(type: "beforecopy", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8492 addEventListener(type: "beforecut", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8493 addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8494 addEventListener(type: "beforepaste", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8495 addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
8496 addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void;
8497 addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void;
8498 addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void;
8499 addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8500 addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void;
8501 addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8502 addEventListener(type: "copy", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8503 addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void;
8504 addEventListener(type: "cut", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8505 addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8506 addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8507 addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8508 addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8509 addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8510 addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8511 addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8512 addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8513 addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8514 addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void;
8515 addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void;
8516 addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void;
8517 addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
8518 addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
8519 addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8520 addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void;
8521 addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
8522 addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
8523 addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
8524 addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
8525 addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
8526 addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void;
8527 addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void;
8528 addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void;
8529 addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8530 addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8531 addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8532 addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8533 addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8534 addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8535 addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8536 addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8537 addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void;
8538 addEventListener(type: "paste", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8539 addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void;
8540 addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void;
8541 addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void;
8542 addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8543 addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8544 addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8545 addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8546 addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8547 addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8548 addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8549 addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8550 addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
8551 addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void;
8552 addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void;
8553 addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8554 addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void;
8555 addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void;
8556 addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8557 addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void;
8558 addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void;
8559 addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void;
8560 addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void;
8561 addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void;
8562 addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
8563 addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
8564 addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
8565 addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
8566 addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void;
8567 addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void;
8568 addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void;
8569 addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void;
8570 addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void;
8571 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
8572}
8573
8574declare var HTMLFrameElement: {
8575 prototype: HTMLFrameElement;
8576 new(): HTMLFrameElement;
8577}
8578
8579interface HTMLFrameSetElement extends HTMLElement {
8580 border: string;
8581 /**
8582 * Sets or retrieves the border color of the object.
8583 */
8584 borderColor: any;
8585 /**
8586 * Sets or retrieves the frame widths of the object.
8587 */
8588 cols: string;
8589 /**
8590 * Sets or retrieves whether to display a border for the frame.
8591 */
8592 frameBorder: string;
8593 /**
8594 * Sets or retrieves the amount of additional space between the frames.
8595 */
8596 frameSpacing: any;
8597 name: string;
8598 onafterprint: (ev: Event) => any;
8599 onbeforeprint: (ev: Event) => any;
8600 onbeforeunload: (ev: BeforeUnloadEvent) => any;
8601 /**
8602 * Fires when the object loses the input focus.
8603 */
8604 onblur: (ev: FocusEvent) => any;
8605 onerror: (ev: Event) => any;
8606 /**
8607 * Fires when the object receives focus.
8608 */
8609 onfocus: (ev: FocusEvent) => any;
8610 onhashchange: (ev: HashChangeEvent) => any;
8611 onload: (ev: Event) => any;
8612 onmessage: (ev: MessageEvent) => any;
8613 onoffline: (ev: Event) => any;
8614 ononline: (ev: Event) => any;
8615 onorientationchange: (ev: Event) => any;
8616 onpagehide: (ev: PageTransitionEvent) => any;
8617 onpageshow: (ev: PageTransitionEvent) => any;
8618 onresize: (ev: UIEvent) => any;
8619 onstorage: (ev: StorageEvent) => any;
8620 onunload: (ev: Event) => any;
8621 /**
8622 * Sets or retrieves the frame heights of the object.
8623 */
8624 rows: string;
8625 addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8626 addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8627 addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8628 addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8629 addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8630 addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8631 addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8632 addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8633 addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8634 addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8635 addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void;
8636 addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8637 addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8638 addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8639 addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8640 addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8641 addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8642 addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8643 addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8644 addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8645 addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8646 addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void;
8647 addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8648 addEventListener(type: "beforecopy", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8649 addEventListener(type: "beforecut", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8650 addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8651 addEventListener(type: "beforepaste", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8652 addEventListener(type: "beforeprint", listener: (ev: Event) => any, useCapture?: boolean): void;
8653 addEventListener(type: "beforeunload", listener: (ev: BeforeUnloadEvent) => any, useCapture?: boolean): void;
8654 addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
8655 addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
8656 addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void;
8657 addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void;
8658 addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void;
8659 addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8660 addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void;
8661 addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8662 addEventListener(type: "copy", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8663 addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void;
8664 addEventListener(type: "cut", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8665 addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8666 addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8667 addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8668 addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8669 addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8670 addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8671 addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8672 addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8673 addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8674 addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void;
8675 addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void;
8676 addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void;
8677 addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
8678 addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
8679 addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
8680 addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
8681 addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8682 addEventListener(type: "hashchange", listener: (ev: HashChangeEvent) => any, useCapture?: boolean): void;
8683 addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void;
8684 addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
8685 addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
8686 addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
8687 addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
8688 addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
8689 addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void;
8690 addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void;
8691 addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void;
8692 addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8693 addEventListener(type: "message", listener: (ev: MessageEvent) => any, useCapture?: boolean): void;
8694 addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8695 addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8696 addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8697 addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8698 addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8699 addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8700 addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8701 addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void;
8702 addEventListener(type: "offline", listener: (ev: Event) => any, useCapture?: boolean): void;
8703 addEventListener(type: "online", listener: (ev: Event) => any, useCapture?: boolean): void;
8704 addEventListener(type: "orientationchange", listener: (ev: Event) => any, useCapture?: boolean): void;
8705 addEventListener(type: "pagehide", listener: (ev: PageTransitionEvent) => any, useCapture?: boolean): void;
8706 addEventListener(type: "pageshow", listener: (ev: PageTransitionEvent) => any, useCapture?: boolean): void;
8707 addEventListener(type: "paste", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8708 addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void;
8709 addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void;
8710 addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void;
8711 addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8712 addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8713 addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8714 addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8715 addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8716 addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8717 addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8718 addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8719 addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
8720 addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void;
8721 addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void;
8722 addEventListener(type: "resize", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8723 addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8724 addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void;
8725 addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void;
8726 addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8727 addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void;
8728 addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void;
8729 addEventListener(type: "storage", listener: (ev: StorageEvent) => any, useCapture?: boolean): void;
8730 addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void;
8731 addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void;
8732 addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void;
8733 addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
8734 addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
8735 addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
8736 addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
8737 addEventListener(type: "unload", listener: (ev: Event) => any, useCapture?: boolean): void;
8738 addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void;
8739 addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void;
8740 addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void;
8741 addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void;
8742 addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void;
8743 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
8744}
8745
8746declare var HTMLFrameSetElement: {
8747 prototype: HTMLFrameSetElement;
8748 new(): HTMLFrameSetElement;
8749}
8750
8751interface HTMLHRElement extends HTMLElement, DOML2DeprecatedColorProperty, DOML2DeprecatedSizeProperty {
8752 /**
8753 * Sets or retrieves how the object is aligned with adjacent text.
8754 */
8755 align: string;
8756 /**
8757 * Sets or retrieves whether the horizontal rule is drawn with 3-D shading.
8758 */
8759 noShade: boolean;
8760 /**
8761 * Sets or retrieves the width of the object.
8762 */
8763 width: number;
8764 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
8765}
8766
8767declare var HTMLHRElement: {
8768 prototype: HTMLHRElement;
8769 new(): HTMLHRElement;
8770}
8771
8772interface HTMLHeadElement extends HTMLElement {
8773 profile: string;
8774}
8775
8776declare var HTMLHeadElement: {
8777 prototype: HTMLHeadElement;
8778 new(): HTMLHeadElement;
8779}
8780
8781interface HTMLHeadingElement extends HTMLElement {
8782 /**
8783 * Sets or retrieves a value that indicates the table alignment.
8784 */
8785 align: string;
8786 clear: string;
8787}
8788
8789declare var HTMLHeadingElement: {
8790 prototype: HTMLHeadingElement;
8791 new(): HTMLHeadingElement;
8792}
8793
8794interface HTMLHtmlElement extends HTMLElement {
8795 /**
8796 * Sets or retrieves the DTD version that governs the current document.
8797 */
8798 version: string;
8799}
8800
8801declare var HTMLHtmlElement: {
8802 prototype: HTMLHtmlElement;
8803 new(): HTMLHtmlElement;
8804}
8805
8806interface HTMLIFrameElement extends HTMLElement, GetSVGDocument {
8807 /**
8808 * Sets or retrieves how the object is aligned with adjacent text.
8809 */
8810 align: string;
8811 allowFullscreen: boolean;
8812 /**
8813 * Specifies the properties of a border drawn around an object.
8814 */
8815 border: string;
8816 /**
8817 * Retrieves the document object of the page or frame.
8818 */
8819 contentDocument: Document;
8820 /**
8821 * Retrieves the object of the specified.
8822 */
8823 contentWindow: Window;
8824 /**
8825 * Sets or retrieves whether to display a border for the frame.
8826 */
8827 frameBorder: string;
8828 /**
8829 * Sets or retrieves the amount of additional space between the frames.
8830 */
8831 frameSpacing: any;
8832 /**
8833 * Sets or retrieves the height of the object.
8834 */
8835 height: string;
8836 /**
8837 * Sets or retrieves the horizontal margin for the object.
8838 */
8839 hspace: number;
8840 /**
8841 * Sets or retrieves a URI to a long description of the object.
8842 */
8843 longDesc: string;
8844 /**
8845 * Sets or retrieves the top and bottom margin heights before displaying the text in a frame.
8846 */
8847 marginHeight: string;
8848 /**
8849 * Sets or retrieves the left and right margin widths before displaying the text in a frame.
8850 */
8851 marginWidth: string;
8852 /**
8853 * Sets or retrieves the frame name.
8854 */
8855 name: string;
8856 /**
8857 * Sets or retrieves whether the user can resize the frame.
8858 */
8859 noResize: boolean;
8860 /**
8861 * Raised when the object has been completely received from the server.
8862 */
8863 onload: (ev: Event) => any;
8864 sandbox: DOMSettableTokenList;
8865 /**
8866 * Sets or retrieves whether the frame can be scrolled.
8867 */
8868 scrolling: string;
8869 /**
8870 * Sets the value indicating whether the source file of a frame or iframe has specific security restrictions applied.
8871 */
8872 security: any;
8873 /**
8874 * Sets or retrieves a URL to be loaded by the object.
8875 */
8876 src: string;
8877 /**
8878 * Sets or retrieves the vertical margin for the object.
8879 */
8880 vspace: number;
8881 /**
8882 * Sets or retrieves the width of the object.
8883 */
8884 width: string;
8885 addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8886 addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8887 addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8888 addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8889 addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8890 addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8891 addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8892 addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8893 addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
8894 addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8895 addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void;
8896 addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8897 addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8898 addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8899 addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8900 addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8901 addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8902 addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8903 addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
8904 addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8905 addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8906 addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void;
8907 addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8908 addEventListener(type: "beforecopy", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8909 addEventListener(type: "beforecut", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8910 addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8911 addEventListener(type: "beforepaste", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8912 addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
8913 addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void;
8914 addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void;
8915 addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void;
8916 addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8917 addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void;
8918 addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8919 addEventListener(type: "copy", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8920 addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void;
8921 addEventListener(type: "cut", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8922 addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8923 addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8924 addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8925 addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8926 addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8927 addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8928 addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8929 addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8930 addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8931 addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void;
8932 addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void;
8933 addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void;
8934 addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
8935 addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
8936 addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8937 addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void;
8938 addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
8939 addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
8940 addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
8941 addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
8942 addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
8943 addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void;
8944 addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void;
8945 addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void;
8946 addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8947 addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8948 addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8949 addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8950 addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8951 addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8952 addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8953 addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
8954 addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void;
8955 addEventListener(type: "paste", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
8956 addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void;
8957 addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void;
8958 addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void;
8959 addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8960 addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8961 addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8962 addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8963 addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8964 addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8965 addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8966 addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
8967 addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
8968 addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void;
8969 addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void;
8970 addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8971 addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void;
8972 addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void;
8973 addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
8974 addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void;
8975 addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void;
8976 addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void;
8977 addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void;
8978 addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void;
8979 addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
8980 addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
8981 addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
8982 addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
8983 addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void;
8984 addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void;
8985 addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void;
8986 addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void;
8987 addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void;
8988 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
8989}
8990
8991declare var HTMLIFrameElement: {
8992 prototype: HTMLIFrameElement;
8993 new(): HTMLIFrameElement;
8994}
8995
8996interface HTMLImageElement extends HTMLElement {
8997 /**
8998 * Sets or retrieves how the object is aligned with adjacent text.
8999 */
9000 align: string;
9001 /**
9002 * Sets or retrieves a text alternative to the graphic.
9003 */
9004 alt: string;
9005 /**
9006 * Specifies the properties of a border drawn around an object.
9007 */
9008 border: string;
9009 /**
9010 * Retrieves whether the object is fully loaded.
9011 */
9012 complete: boolean;
9013 crossOrigin: string;
9014 currentSrc: string;
9015 /**
9016 * Sets or retrieves the height of the object.
9017 */
9018 height: number;
9019 /**
9020 * Sets or retrieves the width of the border to draw around the object.
9021 */
9022 hspace: number;
9023 /**
9024 * Sets or retrieves whether the image is a server-side image map.
9025 */
9026 isMap: boolean;
9027 /**
9028 * Sets or retrieves a Uniform Resource Identifier (URI) to a long description of the object.
9029 */
9030 longDesc: string;
9031 /**
9032 * Gets or sets whether the DLNA PlayTo device is available.
9033 */
9034 msPlayToDisabled: boolean;
9035 msPlayToPreferredSourceUri: string;
9036 /**
9037 * Gets or sets the primary DLNA PlayTo device.
9038 */
9039 msPlayToPrimary: boolean;
9040 /**
9041 * Gets the source associated with the media element for use by the PlayToManager.
9042 */
9043 msPlayToSource: any;
9044 /**
9045 * Sets or retrieves the name of the object.
9046 */
9047 name: string;
9048 /**
9049 * The original height of the image resource before sizing.
9050 */
9051 naturalHeight: number;
9052 /**
9053 * The original width of the image resource before sizing.
9054 */
9055 naturalWidth: number;
9056 /**
9057 * The address or URL of the a media resource that is to be considered.
9058 */
9059 src: string;
9060 srcset: string;
9061 /**
9062 * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
9063 */
9064 useMap: string;
9065 /**
9066 * Sets or retrieves the vertical margin for the object.
9067 */
9068 vspace: number;
9069 /**
9070 * Sets or retrieves the width of the object.
9071 */
9072 width: number;
9073 x: number;
9074 y: number;
9075 msGetAsCastingSource(): any;
9076}
9077
9078declare var HTMLImageElement: {
9079 prototype: HTMLImageElement;
9080 new(): HTMLImageElement;
9081 create(): HTMLImageElement;
9082}
9083
9084interface HTMLInputElement extends HTMLElement {
9085 /**
9086 * Sets or retrieves a comma-separated list of content types.
9087 */
9088 accept: string;
9089 /**
9090 * Sets or retrieves how the object is aligned with adjacent text.
9091 */
9092 align: string;
9093 /**
9094 * Sets or retrieves a text alternative to the graphic.
9095 */
9096 alt: string;
9097 /**
9098 * Specifies whether autocomplete is applied to an editable text field.
9099 */
9100 autocomplete: string;
9101 /**
9102 * 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.
9103 */
9104 autofocus: boolean;
9105 /**
9106 * Sets or retrieves the width of the border to draw around the object.
9107 */
9108 border: string;
9109 /**
9110 * Sets or retrieves the state of the check box or radio button.
9111 */
9112 checked: boolean;
9113 /**
9114 * Retrieves whether the object is fully loaded.
9115 */
9116 complete: boolean;
9117 /**
9118 * Sets or retrieves the state of the check box or radio button.
9119 */
9120 defaultChecked: boolean;
9121 /**
9122 * Sets or retrieves the initial contents of the object.
9123 */
9124 defaultValue: string;
9125 disabled: boolean;
9126 /**
9127 * Returns a FileList object on a file type input object.
9128 */
9129 files: FileList;
9130 /**
9131 * Retrieves a reference to the form that the object is embedded in.
9132 */
9133 form: HTMLFormElement;
9134 /**
9135 * Overrides the action attribute (where the data on a form is sent) on the parent form element.
9136 */
9137 formAction: string;
9138 /**
9139 * Used to override the encoding (formEnctype attribute) specified on the form element.
9140 */
9141 formEnctype: string;
9142 /**
9143 * Overrides the submit method attribute previously specified on a form element.
9144 */
9145 formMethod: string;
9146 /**
9147 * 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.
9148 */
9149 formNoValidate: string;
9150 /**
9151 * Overrides the target attribute on a form element.
9152 */
9153 formTarget: string;
9154 /**
9155 * Sets or retrieves the height of the object.
9156 */
9157 height: string;
9158 /**
9159 * Sets or retrieves the width of the border to draw around the object.
9160 */
9161 hspace: number;
9162 indeterminate: boolean;
9163 /**
9164 * Specifies the ID of a pre-defined datalist of options for an input element.
9165 */
9166 list: HTMLElement;
9167 /**
9168 * 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.
9169 */
9170 max: string;
9171 /**
9172 * Sets or retrieves the maximum number of characters that the user can enter in a text control.
9173 */
9174 maxLength: number;
9175 /**
9176 * 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.
9177 */
9178 min: string;
9179 /**
9180 * Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.
9181 */
9182 multiple: boolean;
9183 /**
9184 * Sets or retrieves the name of the object.
9185 */
9186 name: string;
9187 /**
9188 * Gets or sets a string containing a regular expression that the user's input must match.
9189 */
9190 pattern: string;
9191 /**
9192 * 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.
9193 */
9194 placeholder: string;
9195 readOnly: boolean;
9196 /**
9197 * When present, marks an element that can't be submitted without a value.
9198 */
9199 required: boolean;
9200 /**
9201 * Gets or sets the end position or offset of a text selection.
9202 */
9203 selectionEnd: number;
9204 /**
9205 * Gets or sets the starting position or offset of a text selection.
9206 */
9207 selectionStart: number;
9208 size: number;
9209 /**
9210 * The address or URL of the a media resource that is to be considered.
9211 */
9212 src: string;
9213 status: boolean;
9214 /**
9215 * 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.
9216 */
9217 step: string;
9218 /**
9219 * Returns the content type of the object.
9220 */
9221 type: string;
9222 /**
9223 * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
9224 */
9225 useMap: string;
9226 /**
9227 * 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.
9228 */
9229 validationMessage: string;
9230 /**
9231 * Returns a ValidityState object that represents the validity states of an element.
9232 */
9233 validity: ValidityState;
9234 /**
9235 * Returns the value of the data at the cursor's current position.
9236 */
9237 value: string;
9238 valueAsDate: Date;
9239 /**
9240 * Returns the input field value as a number.
9241 */
9242 valueAsNumber: number;
9243 /**
9244 * Sets or retrieves the vertical margin for the object.
9245 */
9246 vspace: number;
9247 /**
9248 * Sets or retrieves the width of the object.
9249 */
9250 width: string;
9251 /**
9252 * Returns whether an element will successfully validate based on forms validation rules and constraints.
9253 */
9254 willValidate: boolean;
9255 /**
9256 * Returns whether a form will validate when it is submitted, without having to submit it.
9257 */
9258 checkValidity(): boolean;
9259 /**
9260 * Creates a TextRange object for the element.
9261 */
9262 createTextRange(): TextRange;
9263 /**
9264 * Makes the selection equal to the current object.
9265 */
9266 select(): void;
9267 /**
9268 * Sets a custom error message that is displayed when a form is submitted.
9269 * @param error Sets a custom error message that is displayed when a form is submitted.
9270 */
9271 setCustomValidity(error: string): void;
9272 /**
9273 * Sets the start and end positions of a selection in a text field.
9274 * @param start The offset into the text field for the start of the selection.
9275 * @param end The offset into the text field for the end of the selection.
9276 */
9277 setSelectionRange(start: number, end: number): void;
9278 /**
9279 * 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.
9280 * @param n Value to decrement the value by.
9281 */
9282 stepDown(n?: number): void;
9283 /**
9284 * 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.
9285 * @param n Value to increment the value by.
9286 */
9287 stepUp(n?: number): void;
9288}
9289
9290declare var HTMLInputElement: {
9291 prototype: HTMLInputElement;
9292 new(): HTMLInputElement;
9293}
9294
9295interface HTMLIsIndexElement extends HTMLElement {
9296 /**
9297 * Sets or retrieves the URL to which the form content is sent for processing.
9298 */
9299 action: string;
9300 /**
9301 * Retrieves a reference to the form that the object is embedded in.
9302 */
9303 form: HTMLFormElement;
9304 prompt: string;
9305}
9306
9307declare var HTMLIsIndexElement: {
9308 prototype: HTMLIsIndexElement;
9309 new(): HTMLIsIndexElement;
9310}
9311
9312interface HTMLLIElement extends HTMLElement {
9313 type: string;
9314 /**
9315 * Sets or retrieves the value of a list item.
9316 */
9317 value: number;
9318}
9319
9320declare var HTMLLIElement: {
9321 prototype: HTMLLIElement;
9322 new(): HTMLLIElement;
9323}
9324
9325interface HTMLLabelElement extends HTMLElement {
9326 /**
9327 * Retrieves a reference to the form that the object is embedded in.
9328 */
9329 form: HTMLFormElement;
9330 /**
9331 * Sets or retrieves the object to which the given label object is assigned.
9332 */
9333 htmlFor: string;
9334}
9335
9336declare var HTMLLabelElement: {
9337 prototype: HTMLLabelElement;
9338 new(): HTMLLabelElement;
9339}
9340
9341interface HTMLLegendElement extends HTMLElement {
9342 /**
9343 * Retrieves a reference to the form that the object is embedded in.
9344 */
9345 align: string;
9346 /**
9347 * Retrieves a reference to the form that the object is embedded in.
9348 */
9349 form: HTMLFormElement;
9350}
9351
9352declare var HTMLLegendElement: {
9353 prototype: HTMLLegendElement;
9354 new(): HTMLLegendElement;
9355}
9356
9357interface HTMLLinkElement extends HTMLElement, LinkStyle {
9358 /**
9359 * Sets or retrieves the character set used to encode the object.
9360 */
9361 charset: string;
9362 disabled: boolean;
9363 /**
9364 * Sets or retrieves a destination URL or an anchor point.
9365 */
9366 href: string;
9367 /**
9368 * Sets or retrieves the language code of the object.
9369 */
9370 hreflang: string;
9371 /**
9372 * Sets or retrieves the media type.
9373 */
9374 media: string;
9375 /**
9376 * Sets or retrieves the relationship between the object and the destination of the link.
9377 */
9378 rel: string;
9379 /**
9380 * Sets or retrieves the relationship between the object and the destination of the link.
9381 */
9382 rev: string;
9383 /**
9384 * Sets or retrieves the window or frame at which to target content.
9385 */
9386 target: string;
9387 /**
9388 * Sets or retrieves the MIME type of the object.
9389 */
9390 type: string;
9391 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
9392}
9393
9394declare var HTMLLinkElement: {
9395 prototype: HTMLLinkElement;
9396 new(): HTMLLinkElement;
9397}
9398
9399interface HTMLMapElement extends HTMLElement {
9400 /**
9401 * Retrieves a collection of the area objects defined for the given map object.
9402 */
9403 areas: HTMLAreasCollection;
9404 /**
9405 * Sets or retrieves the name of the object.
9406 */
9407 name: string;
9408}
9409
9410declare var HTMLMapElement: {
9411 prototype: HTMLMapElement;
9412 new(): HTMLMapElement;
9413}
9414
9415interface HTMLMarqueeElement extends HTMLElement {
9416 behavior: string;
9417 bgColor: any;
9418 direction: string;
9419 height: string;
9420 hspace: number;
9421 loop: number;
9422 onbounce: (ev: Event) => any;
9423 onfinish: (ev: Event) => any;
9424 onstart: (ev: Event) => any;
9425 scrollAmount: number;
9426 scrollDelay: number;
9427 trueSpeed: boolean;
9428 vspace: number;
9429 width: string;
9430 start(): void;
9431 stop(): void;
9432 addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9433 addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9434 addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9435 addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9436 addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9437 addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9438 addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9439 addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9440 addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9441 addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9442 addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void;
9443 addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9444 addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9445 addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9446 addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9447 addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9448 addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9449 addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9450 addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9451 addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9452 addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9453 addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void;
9454 addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9455 addEventListener(type: "beforecopy", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9456 addEventListener(type: "beforecut", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9457 addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9458 addEventListener(type: "beforepaste", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9459 addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
9460 addEventListener(type: "bounce", listener: (ev: Event) => any, useCapture?: boolean): void;
9461 addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void;
9462 addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void;
9463 addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void;
9464 addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9465 addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void;
9466 addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9467 addEventListener(type: "copy", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9468 addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void;
9469 addEventListener(type: "cut", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9470 addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9471 addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9472 addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9473 addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9474 addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9475 addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9476 addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9477 addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9478 addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9479 addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void;
9480 addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void;
9481 addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void;
9482 addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
9483 addEventListener(type: "finish", listener: (ev: Event) => any, useCapture?: boolean): void;
9484 addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
9485 addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9486 addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void;
9487 addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
9488 addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
9489 addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
9490 addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
9491 addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void;
9492 addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void;
9493 addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void;
9494 addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9495 addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9496 addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9497 addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9498 addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9499 addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9500 addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9501 addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9502 addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void;
9503 addEventListener(type: "paste", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9504 addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void;
9505 addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void;
9506 addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void;
9507 addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9508 addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9509 addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9510 addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9511 addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9512 addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9513 addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9514 addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9515 addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
9516 addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void;
9517 addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void;
9518 addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9519 addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void;
9520 addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void;
9521 addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9522 addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void;
9523 addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void;
9524 addEventListener(type: "start", listener: (ev: Event) => any, useCapture?: boolean): void;
9525 addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void;
9526 addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void;
9527 addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void;
9528 addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
9529 addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
9530 addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
9531 addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
9532 addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void;
9533 addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void;
9534 addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void;
9535 addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void;
9536 addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void;
9537 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
9538}
9539
9540declare var HTMLMarqueeElement: {
9541 prototype: HTMLMarqueeElement;
9542 new(): HTMLMarqueeElement;
9543}
9544
9545interface HTMLMediaElement extends HTMLElement {
9546 /**
9547 * Returns an AudioTrackList object with the audio tracks for a given video element.
9548 */
9549 audioTracks: AudioTrackList;
9550 /**
9551 * Gets or sets a value that indicates whether to start playing the media automatically.
9552 */
9553 autoplay: boolean;
9554 /**
9555 * Gets a collection of buffered time ranges.
9556 */
9557 buffered: TimeRanges;
9558 /**
9559 * 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).
9560 */
9561 controls: boolean;
9562 /**
9563 * Gets the address or URL of the current media resource that is selected by IHTMLMediaElement.
9564 */
9565 currentSrc: string;
9566 /**
9567 * Gets or sets the current playback position, in seconds.
9568 */
9569 currentTime: number;
9570 defaultMuted: boolean;
9571 /**
9572 * Gets or sets the default playback rate when the user is not using fast forward or reverse for a video or audio resource.
9573 */
9574 defaultPlaybackRate: number;
9575 /**
9576 * 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.
9577 */
9578 duration: number;
9579 /**
9580 * Gets information about whether the playback has ended or not.
9581 */
9582 ended: boolean;
9583 /**
9584 * Returns an object representing the current error state of the audio or video element.
9585 */
9586 error: MediaError;
9587 /**
9588 * Gets or sets a flag to specify whether playback should restart after it completes.
9589 */
9590 loop: boolean;
9591 /**
9592 * Specifies the purpose of the audio or video media, such as background audio or alerts.
9593 */
9594 msAudioCategory: string;
9595 /**
9596 * Specifies the output device id that the audio will be sent to.
9597 */
9598 msAudioDeviceType: string;
9599 msGraphicsTrustStatus: MSGraphicsTrust;
9600 /**
9601 * Gets the MSMediaKeys object, which is used for decrypting media data, that is associated with this media element.
9602 */
9603 msKeys: MSMediaKeys;
9604 /**
9605 * Gets or sets whether the DLNA PlayTo device is available.
9606 */
9607 msPlayToDisabled: boolean;
9608 /**
9609 * 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.
9610 */
9611 msPlayToPreferredSourceUri: string;
9612 /**
9613 * Gets or sets the primary DLNA PlayTo device.
9614 */
9615 msPlayToPrimary: boolean;
9616 /**
9617 * Gets the source associated with the media element for use by the PlayToManager.
9618 */
9619 msPlayToSource: any;
9620 /**
9621 * Specifies whether or not to enable low-latency playback on the media element.
9622 */
9623 msRealTime: boolean;
9624 /**
9625 * Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted.
9626 */
9627 muted: boolean;
9628 /**
9629 * Gets the current network activity for the element.
9630 */
9631 networkState: number;
9632 onmsneedkey: (ev: MSMediaKeyNeededEvent) => any;
9633 /**
9634 * Gets a flag that specifies whether playback is paused.
9635 */
9636 paused: boolean;
9637 /**
9638 * 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.
9639 */
9640 playbackRate: number;
9641 /**
9642 * Gets TimeRanges for the current media resource that has been played.
9643 */
9644 played: TimeRanges;
9645 /**
9646 * Gets or sets the current playback position, in seconds.
9647 */
9648 preload: string;
9649 readyState: number;
9650 /**
9651 * Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked.
9652 */
9653 seekable: TimeRanges;
9654 /**
9655 * Gets a flag that indicates whether the the client is currently moving to a new playback position in the media resource.
9656 */
9657 seeking: boolean;
9658 /**
9659 * The address or URL of the a media resource that is to be considered.
9660 */
9661 src: string;
9662 textTracks: TextTrackList;
9663 videoTracks: VideoTrackList;
9664 /**
9665 * Gets or sets the volume level for audio portions of the media element.
9666 */
9667 volume: number;
9668 addTextTrack(kind: string, label?: string, language?: string): TextTrack;
9669 /**
9670 * Returns a string that specifies whether the client can play a given media resource type.
9671 */
9672 canPlayType(type: string): string;
9673 /**
9674 * Fires immediately after the client loads the object.
9675 */
9676 load(): void;
9677 /**
9678 * Clears all effects from the media pipeline.
9679 */
9680 msClearEffects(): void;
9681 msGetAsCastingSource(): any;
9682 /**
9683 * Inserts the specified audio effect into media pipeline.
9684 */
9685 msInsertAudioEffect(activatableClassId: string, effectRequired: boolean, config?: any): void;
9686 msSetMediaKeys(mediaKeys: MSMediaKeys): void;
9687 /**
9688 * Specifies the media protection manager for a given media pipeline.
9689 */
9690 msSetMediaProtectionManager(mediaProtectionManager?: any): void;
9691 /**
9692 * 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.
9693 */
9694 pause(): void;
9695 /**
9696 * Loads and starts playback of a media resource.
9697 */
9698 play(): void;
9699 HAVE_CURRENT_DATA: number;
9700 HAVE_ENOUGH_DATA: number;
9701 HAVE_FUTURE_DATA: number;
9702 HAVE_METADATA: number;
9703 HAVE_NOTHING: number;
9704 NETWORK_EMPTY: number;
9705 NETWORK_IDLE: number;
9706 NETWORK_LOADING: number;
9707 NETWORK_NO_SOURCE: number;
9708 addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9709 addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9710 addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9711 addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9712 addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9713 addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9714 addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9715 addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9716 addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
9717 addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9718 addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void;
9719 addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9720 addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9721 addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9722 addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9723 addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9724 addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9725 addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9726 addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
9727 addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9728 addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9729 addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void;
9730 addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9731 addEventListener(type: "beforecopy", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9732 addEventListener(type: "beforecut", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9733 addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9734 addEventListener(type: "beforepaste", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9735 addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
9736 addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void;
9737 addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void;
9738 addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void;
9739 addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9740 addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void;
9741 addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9742 addEventListener(type: "copy", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9743 addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void;
9744 addEventListener(type: "cut", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9745 addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9746 addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9747 addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9748 addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9749 addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9750 addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9751 addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9752 addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9753 addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9754 addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void;
9755 addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void;
9756 addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void;
9757 addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
9758 addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
9759 addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9760 addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void;
9761 addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
9762 addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
9763 addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
9764 addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
9765 addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void;
9766 addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void;
9767 addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void;
9768 addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9769 addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9770 addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9771 addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9772 addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9773 addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9774 addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9775 addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
9776 addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void;
9777 addEventListener(type: "msneedkey", listener: (ev: MSMediaKeyNeededEvent) => any, useCapture?: boolean): void;
9778 addEventListener(type: "paste", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
9779 addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void;
9780 addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void;
9781 addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void;
9782 addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9783 addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9784 addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9785 addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9786 addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9787 addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9788 addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9789 addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
9790 addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
9791 addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void;
9792 addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void;
9793 addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9794 addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void;
9795 addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void;
9796 addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
9797 addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void;
9798 addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void;
9799 addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void;
9800 addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void;
9801 addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void;
9802 addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
9803 addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
9804 addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
9805 addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
9806 addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void;
9807 addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void;
9808 addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void;
9809 addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void;
9810 addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void;
9811 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
9812}
9813
9814declare var HTMLMediaElement: {
9815 prototype: HTMLMediaElement;
9816 new(): HTMLMediaElement;
9817 HAVE_CURRENT_DATA: number;
9818 HAVE_ENOUGH_DATA: number;
9819 HAVE_FUTURE_DATA: number;
9820 HAVE_METADATA: number;
9821 HAVE_NOTHING: number;
9822 NETWORK_EMPTY: number;
9823 NETWORK_IDLE: number;
9824 NETWORK_LOADING: number;
9825 NETWORK_NO_SOURCE: number;
9826}
9827
9828interface HTMLMenuElement extends HTMLElement {
9829 compact: boolean;
9830 type: string;
9831}
9832
9833declare var HTMLMenuElement: {
9834 prototype: HTMLMenuElement;
9835 new(): HTMLMenuElement;
9836}
9837
9838interface HTMLMetaElement extends HTMLElement {
9839 /**
9840 * Sets or retrieves the character set used to encode the object.
9841 */
9842 charset: string;
9843 /**
9844 * Gets or sets meta-information to associate with httpEquiv or name.
9845 */
9846 content: string;
9847 /**
9848 * Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header.
9849 */
9850 httpEquiv: string;
9851 /**
9852 * Sets or retrieves the value specified in the content attribute of the meta object.
9853 */
9854 name: string;
9855 /**
9856 * Sets or retrieves a scheme to be used in interpreting the value of a property specified for the object.
9857 */
9858 scheme: string;
9859 /**
9860 * Sets or retrieves the URL property that will be loaded after the specified time has elapsed.
9861 */
9862 url: string;
9863}
9864
9865declare var HTMLMetaElement: {
9866 prototype: HTMLMetaElement;
9867 new(): HTMLMetaElement;
9868}
9869
9870interface HTMLModElement extends HTMLElement {
9871 /**
9872 * Sets or retrieves reference information about the object.
9873 */
9874 cite: string;
9875 /**
9876 * Sets or retrieves the date and time of a modification to the object.
9877 */
9878 dateTime: string;
9879}
9880
9881declare var HTMLModElement: {
9882 prototype: HTMLModElement;
9883 new(): HTMLModElement;
9884}
9885
9886interface HTMLNextIdElement extends HTMLElement {
9887 n: string;
9888}
9889
9890declare var HTMLNextIdElement: {
9891 prototype: HTMLNextIdElement;
9892 new(): HTMLNextIdElement;
9893}
9894
9895interface HTMLOListElement extends HTMLElement {
9896 compact: boolean;
9897 /**
9898 * The starting number.
9899 */
9900 start: number;
9901 type: string;
9902}
9903
9904declare var HTMLOListElement: {
9905 prototype: HTMLOListElement;
9906 new(): HTMLOListElement;
9907}
9908
9909interface HTMLObjectElement extends HTMLElement, GetSVGDocument {
9910 /**
9911 * 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.
9912 */
9913 BaseHref: string;
9914 align: string;
9915 /**
9916 * Sets or retrieves a text alternative to the graphic.
9917 */
9918 alt: string;
9919 /**
9920 * Gets or sets the optional alternative HTML script to execute if the object fails to load.
9921 */
9922 altHtml: string;
9923 /**
9924 * Sets or retrieves a character string that can be used to implement your own archive functionality for the object.
9925 */
9926 archive: string;
9927 border: string;
9928 /**
9929 * Sets or retrieves the URL of the file containing the compiled Java class.
9930 */
9931 code: string;
9932 /**
9933 * Sets or retrieves the URL of the component.
9934 */
9935 codeBase: string;
9936 /**
9937 * Sets or retrieves the Internet media type for the code associated with the object.
9938 */
9939 codeType: string;
9940 /**
9941 * Retrieves the document object of the page or frame.
9942 */
9943 contentDocument: Document;
9944 /**
9945 * Sets or retrieves the URL that references the data of the object.
9946 */
9947 data: string;
9948 declare: boolean;
9949 /**
9950 * Retrieves a reference to the form that the object is embedded in.
9951 */
9952 form: HTMLFormElement;
9953 /**
9954 * Sets or retrieves the height of the object.
9955 */
9956 height: string;
9957 hspace: number;
9958 /**
9959 * Gets or sets whether the DLNA PlayTo device is available.
9960 */
9961 msPlayToDisabled: boolean;
9962 /**
9963 * 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.
9964 */
9965 msPlayToPreferredSourceUri: string;
9966 /**
9967 * Gets or sets the primary DLNA PlayTo device.
9968 */
9969 msPlayToPrimary: boolean;
9970 /**
9971 * Gets the source associated with the media element for use by the PlayToManager.
9972 */
9973 msPlayToSource: any;
9974 /**
9975 * Sets or retrieves the name of the object.
9976 */
9977 name: string;
9978 /**
9979 * Retrieves the contained object.
9980 */
9981 object: any;
9982 readyState: number;
9983 /**
9984 * Sets or retrieves a message to be displayed while an object is loading.
9985 */
9986 standby: string;
9987 /**
9988 * Sets or retrieves the MIME type of the object.
9989 */
9990 type: string;
9991 /**
9992 * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
9993 */
9994 useMap: string;
9995 /**
9996 * 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.
9997 */
9998 validationMessage: string;
9999 /**
10000 * Returns a ValidityState object that represents the validity states of an element.
10001 */
10002 validity: ValidityState;
10003 vspace: number;
10004 /**
10005 * Sets or retrieves the width of the object.
10006 */
10007 width: string;
10008 /**
10009 * Returns whether an element will successfully validate based on forms validation rules and constraints.
10010 */
10011 willValidate: boolean;
10012 /**
10013 * Returns whether a form will validate when it is submitted, without having to submit it.
10014 */
10015 checkValidity(): boolean;
10016 /**
10017 * Sets a custom error message that is displayed when a form is submitted.
10018 * @param error Sets a custom error message that is displayed when a form is submitted.
10019 */
10020 setCustomValidity(error: string): void;
10021 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
10022}
10023
10024declare var HTMLObjectElement: {
10025 prototype: HTMLObjectElement;
10026 new(): HTMLObjectElement;
10027}
10028
10029interface HTMLOptGroupElement extends HTMLElement {
10030 /**
10031 * Sets or retrieves the status of an option.
10032 */
10033 defaultSelected: boolean;
10034 disabled: boolean;
10035 /**
10036 * Retrieves a reference to the form that the object is embedded in.
10037 */
10038 form: HTMLFormElement;
10039 /**
10040 * Sets or retrieves the ordinal position of an option in a list box.
10041 */
10042 index: number;
10043 /**
10044 * Sets or retrieves a value that you can use to implement your own label functionality for the object.
10045 */
10046 label: string;
10047 /**
10048 * Sets or retrieves whether the option in the list box is the default item.
10049 */
10050 selected: boolean;
10051 /**
10052 * Sets or retrieves the text string specified by the option tag.
10053 */
10054 text: string;
10055 /**
10056 * Sets or retrieves the value which is returned to the server when the form control is submitted.
10057 */
10058 value: string;
10059}
10060
10061declare var HTMLOptGroupElement: {
10062 prototype: HTMLOptGroupElement;
10063 new(): HTMLOptGroupElement;
10064}
10065
10066interface HTMLOptionElement extends HTMLElement {
10067 /**
10068 * Sets or retrieves the status of an option.
10069 */
10070 defaultSelected: boolean;
10071 disabled: boolean;
10072 /**
10073 * Retrieves a reference to the form that the object is embedded in.
10074 */
10075 form: HTMLFormElement;
10076 /**
10077 * Sets or retrieves the ordinal position of an option in a list box.
10078 */
10079 index: number;
10080 /**
10081 * Sets or retrieves a value that you can use to implement your own label functionality for the object.
10082 */
10083 label: string;
10084 /**
10085 * Sets or retrieves whether the option in the list box is the default item.
10086 */
10087 selected: boolean;
10088 /**
10089 * Sets or retrieves the text string specified by the option tag.
10090 */
10091 text: string;
10092 /**
10093 * Sets or retrieves the value which is returned to the server when the form control is submitted.
10094 */
10095 value: string;
10096}
10097
10098declare var HTMLOptionElement: {
10099 prototype: HTMLOptionElement;
10100 new(): HTMLOptionElement;
10101 create(): HTMLOptionElement;
10102}
10103
10104interface HTMLParagraphElement extends HTMLElement {
10105 /**
10106 * Sets or retrieves how the object is aligned with adjacent text.
10107 */
10108 align: string;
10109 clear: string;
10110}
10111
10112declare var HTMLParagraphElement: {
10113 prototype: HTMLParagraphElement;
10114 new(): HTMLParagraphElement;
10115}
10116
10117interface HTMLParamElement extends HTMLElement {
10118 /**
10119 * Sets or retrieves the name of an input parameter for an element.
10120 */
10121 name: string;
10122 /**
10123 * Sets or retrieves the content type of the resource designated by the value attribute.
10124 */
10125 type: string;
10126 /**
10127 * Sets or retrieves the value of an input parameter for an element.
10128 */
10129 value: string;
10130 /**
10131 * Sets or retrieves the data type of the value attribute.
10132 */
10133 valueType: string;
10134}
10135
10136declare var HTMLParamElement: {
10137 prototype: HTMLParamElement;
10138 new(): HTMLParamElement;
10139}
10140
10141interface HTMLPhraseElement extends HTMLElement {
10142 /**
10143 * Sets or retrieves reference information about the object.
10144 */
10145 cite: string;
10146 /**
10147 * Sets or retrieves the date and time of a modification to the object.
10148 */
10149 dateTime: string;
10150}
10151
10152declare var HTMLPhraseElement: {
10153 prototype: HTMLPhraseElement;
10154 new(): HTMLPhraseElement;
10155}
10156
10157interface HTMLPreElement extends HTMLElement {
10158 /**
10159 * Indicates a citation by rendering text in italic type.
10160 */
10161 cite: string;
10162 clear: string;
10163 /**
10164 * Sets or gets a value that you can use to implement your own width functionality for the object.
10165 */
10166 width: number;
10167}
10168
10169declare var HTMLPreElement: {
10170 prototype: HTMLPreElement;
10171 new(): HTMLPreElement;
10172}
10173
10174interface HTMLProgressElement extends HTMLElement {
10175 /**
10176 * Retrieves a reference to the form that the object is embedded in.
10177 */
10178 form: HTMLFormElement;
10179 /**
10180 * Defines the maximum, or "done" value for a progress element.
10181 */
10182 max: number;
10183 /**
10184 * Returns the quotient of value/max when the value attribute is set (determinate progress bar), or -1 when the value attribute is missing (indeterminate progress bar).
10185 */
10186 position: number;
10187 /**
10188 * Sets or gets the current value of a progress element. The value must be a non-negative number between 0 and the max value.
10189 */
10190 value: number;
10191}
10192
10193declare var HTMLProgressElement: {
10194 prototype: HTMLProgressElement;
10195 new(): HTMLProgressElement;
10196}
10197
10198interface HTMLQuoteElement extends HTMLElement {
10199 /**
10200 * Sets or retrieves reference information about the object.
10201 */
10202 cite: string;
10203 /**
10204 * Sets or retrieves the date and time of a modification to the object.
10205 */
10206 dateTime: string;
10207}
10208
10209declare var HTMLQuoteElement: {
10210 prototype: HTMLQuoteElement;
10211 new(): HTMLQuoteElement;
10212}
10213
10214interface HTMLScriptElement extends HTMLElement {
10215 async: boolean;
10216 /**
10217 * Sets or retrieves the character set used to encode the object.
10218 */
10219 charset: string;
10220 /**
10221 * Sets or retrieves the status of the script.
10222 */
10223 defer: boolean;
10224 /**
10225 * Sets or retrieves the event for which the script is written.
10226 */
10227 event: string;
10228 /**
10229 * Sets or retrieves the object that is bound to the event script.
10230 */
10231 htmlFor: string;
10232 /**
10233 * Retrieves the URL to an external file that contains the source code or data.
10234 */
10235 src: string;
10236 /**
10237 * Retrieves or sets the text of the object as a string.
10238 */
10239 text: string;
10240 /**
10241 * Sets or retrieves the MIME type for the associated scripting engine.
10242 */
10243 type: string;
10244}
10245
10246declare var HTMLScriptElement: {
10247 prototype: HTMLScriptElement;
10248 new(): HTMLScriptElement;
10249}
10250
10251interface HTMLSelectElement extends HTMLElement {
10252 /**
10253 * 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.
10254 */
10255 autofocus: boolean;
10256 disabled: boolean;
10257 /**
10258 * Retrieves a reference to the form that the object is embedded in.
10259 */
10260 form: HTMLFormElement;
10261 /**
10262 * Sets or retrieves the number of objects in a collection.
10263 */
10264 length: number;
10265 /**
10266 * Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.
10267 */
10268 multiple: boolean;
10269 /**
10270 * Sets or retrieves the name of the object.
10271 */
10272 name: string;
10273 options: HTMLCollection;
10274 /**
10275 * When present, marks an element that can't be submitted without a value.
10276 */
10277 required: boolean;
10278 /**
10279 * Sets or retrieves the index of the selected option in a select object.
10280 */
10281 selectedIndex: number;
10282 /**
10283 * Sets or retrieves the number of rows in the list box.
10284 */
10285 size: number;
10286 /**
10287 * Retrieves the type of select control based on the value of the MULTIPLE attribute.
10288 */
10289 type: string;
10290 /**
10291 * 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.
10292 */
10293 validationMessage: string;
10294 /**
10295 * Returns a ValidityState object that represents the validity states of an element.
10296 */
10297 validity: ValidityState;
10298 /**
10299 * Sets or retrieves the value which is returned to the server when the form control is submitted.
10300 */
10301 value: string;
10302 /**
10303 * Returns whether an element will successfully validate based on forms validation rules and constraints.
10304 */
10305 willValidate: boolean;
10306 selectedOptions: HTMLCollection;
10307 /**
10308 * Adds an element to the areas, controlRange, or options collection.
10309 * @param element Variant of type Number that specifies the index position in the collection where the element is placed. If no value is given, the method places the element at the end of the collection.
10310 * @param before Variant of type Object that specifies an element to insert before, or null to append the object to the collection.
10311 */
10312 add(element: HTMLElement, before?: HTMLElement | number): void;
10313 /**
10314 * Returns whether a form will validate when it is submitted, without having to submit it.
10315 */
10316 checkValidity(): boolean;
10317 /**
10318 * Retrieves a select object or an object from an options collection.
10319 * @param name Variant of type Number or String that specifies the object or collection to retrieve. If this parameter is an integer, 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.
10320 * @param index Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned.
10321 */
10322 item(name?: any, index?: any): any;
10323 /**
10324 * Retrieves a select object or an object from an options collection.
10325 * @param namedItem A String that specifies the name or id property of the object to retrieve. A collection is returned if more than one match is made.
10326 */
10327 namedItem(name: string): any;
10328 /**
10329 * Removes an element from the collection.
10330 * @param index Number that specifies the zero-based index of the element to remove from the collection.
10331 */
10332 remove(index?: number): void;
10333 /**
10334 * Sets a custom error message that is displayed when a form is submitted.
10335 * @param error Sets a custom error message that is displayed when a form is submitted.
10336 */
10337 setCustomValidity(error: string): void;
10338 [name: string]: any;
10339}
10340
10341declare var HTMLSelectElement: {
10342 prototype: HTMLSelectElement;
10343 new(): HTMLSelectElement;
10344}
10345
10346interface HTMLSourceElement extends HTMLElement {
10347 /**
10348 * Gets or sets the intended media type of the media source.
10349 */
10350 media: string;
10351 msKeySystem: string;
10352 /**
10353 * The address or URL of the a media resource that is to be considered.
10354 */
10355 src: string;
10356 /**
10357 * Gets or sets the MIME type of a media resource.
10358 */
10359 type: string;
10360}
10361
10362declare var HTMLSourceElement: {
10363 prototype: HTMLSourceElement;
10364 new(): HTMLSourceElement;
10365}
10366
10367interface HTMLSpanElement extends HTMLElement {
10368}
10369
10370declare var HTMLSpanElement: {
10371 prototype: HTMLSpanElement;
10372 new(): HTMLSpanElement;
10373}
10374
10375interface HTMLStyleElement extends HTMLElement, LinkStyle {
10376 /**
10377 * Sets or retrieves the media type.
10378 */
10379 media: string;
10380 /**
10381 * Retrieves the CSS language in which the style sheet is written.
10382 */
10383 type: string;
10384 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
10385}
10386
10387declare var HTMLStyleElement: {
10388 prototype: HTMLStyleElement;
10389 new(): HTMLStyleElement;
10390}
10391
10392interface HTMLTableCaptionElement extends HTMLElement {
10393 /**
10394 * Sets or retrieves the alignment of the caption or legend.
10395 */
10396 align: string;
10397 /**
10398 * Sets or retrieves whether the caption appears at the top or bottom of the table.
10399 */
10400 vAlign: string;
10401}
10402
10403declare var HTMLTableCaptionElement: {
10404 prototype: HTMLTableCaptionElement;
10405 new(): HTMLTableCaptionElement;
10406}
10407
10408interface HTMLTableCellElement extends HTMLElement, HTMLTableAlignment {
10409 /**
10410 * Sets or retrieves abbreviated text for the object.
10411 */
10412 abbr: string;
10413 /**
10414 * Sets or retrieves how the object is aligned with adjacent text.
10415 */
10416 align: string;
10417 /**
10418 * Sets or retrieves a comma-delimited list of conceptual categories associated with the object.
10419 */
10420 axis: string;
10421 bgColor: any;
10422 /**
10423 * Retrieves the position of the object in the cells collection of a row.
10424 */
10425 cellIndex: number;
10426 /**
10427 * Sets or retrieves the number columns in the table that the object should span.
10428 */
10429 colSpan: number;
10430 /**
10431 * Sets or retrieves a list of header cells that provide information for the object.
10432 */
10433 headers: string;
10434 /**
10435 * Sets or retrieves the height of the object.
10436 */
10437 height: any;
10438 /**
10439 * Sets or retrieves whether the browser automatically performs wordwrap.
10440 */
10441 noWrap: boolean;
10442 /**
10443 * Sets or retrieves how many rows in a table the cell should span.
10444 */
10445 rowSpan: number;
10446 /**
10447 * Sets or retrieves the group of cells in a table to which the object's information applies.
10448 */
10449 scope: string;
10450 /**
10451 * Sets or retrieves the width of the object.
10452 */
10453 width: string;
10454 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
10455}
10456
10457declare var HTMLTableCellElement: {
10458 prototype: HTMLTableCellElement;
10459 new(): HTMLTableCellElement;
10460}
10461
10462interface HTMLTableColElement extends HTMLElement, HTMLTableAlignment {
10463 /**
10464 * Sets or retrieves the alignment of the object relative to the display or table.
10465 */
10466 align: string;
10467 /**
10468 * Sets or retrieves the number of columns in the group.
10469 */
10470 span: number;
10471 /**
10472 * Sets or retrieves the width of the object.
10473 */
10474 width: any;
10475 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
10476}
10477
10478declare var HTMLTableColElement: {
10479 prototype: HTMLTableColElement;
10480 new(): HTMLTableColElement;
10481}
10482
10483interface HTMLTableDataCellElement extends HTMLTableCellElement {
10484}
10485
10486declare var HTMLTableDataCellElement: {
10487 prototype: HTMLTableDataCellElement;
10488 new(): HTMLTableDataCellElement;
10489}
10490
10491interface HTMLTableElement extends HTMLElement {
10492 /**
10493 * Sets or retrieves a value that indicates the table alignment.
10494 */
10495 align: string;
10496 bgColor: any;
10497 /**
10498 * Sets or retrieves the width of the border to draw around the object.
10499 */
10500 border: string;
10501 /**
10502 * Sets or retrieves the border color of the object.
10503 */
10504 borderColor: any;
10505 /**
10506 * Retrieves the caption object of a table.
10507 */
10508 caption: HTMLTableCaptionElement;
10509 /**
10510 * Sets or retrieves the amount of space between the border of the cell and the content of the cell.
10511 */
10512 cellPadding: string;
10513 /**
10514 * Sets or retrieves the amount of space between cells in a table.
10515 */
10516 cellSpacing: string;
10517 /**
10518 * Sets or retrieves the number of columns in the table.
10519 */
10520 cols: number;
10521 /**
10522 * Sets or retrieves the way the border frame around the table is displayed.
10523 */
10524 frame: string;
10525 /**
10526 * Sets or retrieves the height of the object.
10527 */
10528 height: any;
10529 /**
10530 * Sets or retrieves the number of horizontal rows contained in the object.
10531 */
10532 rows: HTMLCollection;
10533 /**
10534 * Sets or retrieves which dividing lines (inner borders) are displayed.
10535 */
10536 rules: string;
10537 /**
10538 * Sets or retrieves a description and/or structure of the object.
10539 */
10540 summary: string;
10541 /**
10542 * Retrieves a collection of all tBody objects in the table. Objects in this collection are in source order.
10543 */
10544 tBodies: HTMLCollection;
10545 /**
10546 * Retrieves the tFoot object of the table.
10547 */
10548 tFoot: HTMLTableSectionElement;
10549 /**
10550 * Retrieves the tHead object of the table.
10551 */
10552 tHead: HTMLTableSectionElement;
10553 /**
10554 * Sets or retrieves the width of the object.
10555 */
10556 width: string;
10557 /**
10558 * Creates an empty caption element in the table.
10559 */
10560 createCaption(): HTMLTableCaptionElement;
10561 /**
10562 * Creates an empty tBody element in the table.
10563 */
10564 createTBody(): HTMLTableSectionElement;
10565 /**
10566 * Creates an empty tFoot element in the table.
10567 */
10568 createTFoot(): HTMLTableSectionElement;
10569 /**
10570 * Returns the tHead element object if successful, or null otherwise.
10571 */
10572 createTHead(): HTMLTableSectionElement;
10573 /**
10574 * Deletes the caption element and its contents from the table.
10575 */
10576 deleteCaption(): void;
10577 /**
10578 * Removes the specified row (tr) from the element and from the rows collection.
10579 * @param index Number that specifies the zero-based position in the rows collection of the row to remove.
10580 */
10581 deleteRow(index?: number): void;
10582 /**
10583 * Deletes the tFoot element and its contents from the table.
10584 */
10585 deleteTFoot(): void;
10586 /**
10587 * Deletes the tHead element and its contents from the table.
10588 */
10589 deleteTHead(): void;
10590 /**
10591 * Creates a new row (tr) in the table, and adds the row to the rows collection.
10592 * @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection.
10593 */
10594 insertRow(index?: number): HTMLTableRowElement;
10595}
10596
10597declare var HTMLTableElement: {
10598 prototype: HTMLTableElement;
10599 new(): HTMLTableElement;
10600}
10601
10602interface HTMLTableHeaderCellElement extends HTMLTableCellElement {
10603 /**
10604 * Sets or retrieves the group of cells in a table to which the object's information applies.
10605 */
10606 scope: string;
10607}
10608
10609declare var HTMLTableHeaderCellElement: {
10610 prototype: HTMLTableHeaderCellElement;
10611 new(): HTMLTableHeaderCellElement;
10612}
10613
10614interface HTMLTableRowElement extends HTMLElement, HTMLTableAlignment {
10615 /**
10616 * Sets or retrieves how the object is aligned with adjacent text.
10617 */
10618 align: string;
10619 bgColor: any;
10620 /**
10621 * Retrieves a collection of all cells in the table row.
10622 */
10623 cells: HTMLCollection;
10624 /**
10625 * Sets or retrieves the height of the object.
10626 */
10627 height: any;
10628 /**
10629 * Retrieves the position of the object in the rows collection for the table.
10630 */
10631 rowIndex: number;
10632 /**
10633 * Retrieves the position of the object in the collection.
10634 */
10635 sectionRowIndex: number;
10636 /**
10637 * Removes the specified cell from the table row, as well as from the cells collection.
10638 * @param index Number that specifies the zero-based position of the cell to remove from the table row. If no value is provided, the last cell in the cells collection is deleted.
10639 */
10640 deleteCell(index?: number): void;
10641 /**
10642 * Creates a new cell in the table row, and adds the cell to the cells collection.
10643 * @param index Number that specifies where to insert the cell in the tr. The default value is -1, which appends the new cell to the end of the cells collection.
10644 */
10645 insertCell(index?: number): HTMLTableCellElement;
10646 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
10647}
10648
10649declare var HTMLTableRowElement: {
10650 prototype: HTMLTableRowElement;
10651 new(): HTMLTableRowElement;
10652}
10653
10654interface HTMLTableSectionElement extends HTMLElement, HTMLTableAlignment {
10655 /**
10656 * Sets or retrieves a value that indicates the table alignment.
10657 */
10658 align: string;
10659 /**
10660 * Sets or retrieves the number of horizontal rows contained in the object.
10661 */
10662 rows: HTMLCollection;
10663 /**
10664 * Removes the specified row (tr) from the element and from the rows collection.
10665 * @param index Number that specifies the zero-based position in the rows collection of the row to remove.
10666 */
10667 deleteRow(index?: number): void;
10668 /**
10669 * Creates a new row (tr) in the table, and adds the row to the rows collection.
10670 * @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection.
10671 */
10672 insertRow(index?: number): HTMLTableRowElement;
10673 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
10674}
10675
10676declare var HTMLTableSectionElement: {
10677 prototype: HTMLTableSectionElement;
10678 new(): HTMLTableSectionElement;
10679}
10680
10681interface HTMLTextAreaElement extends HTMLElement {
10682 /**
10683 * 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.
10684 */
10685 autofocus: boolean;
10686 /**
10687 * Sets or retrieves the width of the object.
10688 */
10689 cols: number;
10690 /**
10691 * Sets or retrieves the initial contents of the object.
10692 */
10693 defaultValue: string;
10694 disabled: boolean;
10695 /**
10696 * Retrieves a reference to the form that the object is embedded in.
10697 */
10698 form: HTMLFormElement;
10699 /**
10700 * Sets or retrieves the maximum number of characters that the user can enter in a text control.
10701 */
10702 maxLength: number;
10703 /**
10704 * Sets or retrieves the name of the object.
10705 */
10706 name: string;
10707 /**
10708 * 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.
10709 */
10710 placeholder: string;
10711 /**
10712 * Sets or retrieves the value indicated whether the content of the object is read-only.
10713 */
10714 readOnly: boolean;
10715 /**
10716 * When present, marks an element that can't be submitted without a value.
10717 */
10718 required: boolean;
10719 /**
10720 * Sets or retrieves the number of horizontal rows contained in the object.
10721 */
10722 rows: number;
10723 /**
10724 * Gets or sets the end position or offset of a text selection.
10725 */
10726 selectionEnd: number;
10727 /**
10728 * Gets or sets the starting position or offset of a text selection.
10729 */
10730 selectionStart: number;
10731 /**
10732 * Sets or retrieves the value indicating whether the control is selected.
10733 */
10734 status: any;
10735 /**
10736 * Retrieves the type of control.
10737 */
10738 type: string;
10739 /**
10740 * 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.
10741 */
10742 validationMessage: string;
10743 /**
10744 * Returns a ValidityState object that represents the validity states of an element.
10745 */
10746 validity: ValidityState;
10747 /**
10748 * Retrieves or sets the text in the entry field of the textArea element.
10749 */
10750 value: string;
10751 /**
10752 * Returns whether an element will successfully validate based on forms validation rules and constraints.
10753 */
10754 willValidate: boolean;
10755 /**
10756 * Sets or retrieves how to handle wordwrapping in the object.
10757 */
10758 wrap: string;
10759 /**
10760 * Returns whether a form will validate when it is submitted, without having to submit it.
10761 */
10762 checkValidity(): boolean;
10763 /**
10764 * Creates a TextRange object for the element.
10765 */
10766 createTextRange(): TextRange;
10767 /**
10768 * Highlights the input area of a form element.
10769 */
10770 select(): void;
10771 /**
10772 * Sets a custom error message that is displayed when a form is submitted.
10773 * @param error Sets a custom error message that is displayed when a form is submitted.
10774 */
10775 setCustomValidity(error: string): void;
10776 /**
10777 * Sets the start and end positions of a selection in a text field.
10778 * @param start The offset into the text field for the start of the selection.
10779 * @param end The offset into the text field for the end of the selection.
10780 */
10781 setSelectionRange(start: number, end: number): void;
10782}
10783
10784declare var HTMLTextAreaElement: {
10785 prototype: HTMLTextAreaElement;
10786 new(): HTMLTextAreaElement;
10787}
10788
10789interface HTMLTitleElement extends HTMLElement {
10790 /**
10791 * Retrieves or sets the text of the object as a string.
10792 */
10793 text: string;
10794}
10795
10796declare var HTMLTitleElement: {
10797 prototype: HTMLTitleElement;
10798 new(): HTMLTitleElement;
10799}
10800
10801interface HTMLTrackElement extends HTMLElement {
10802 default: boolean;
10803 kind: string;
10804 label: string;
10805 readyState: number;
10806 src: string;
10807 srclang: string;
10808 track: TextTrack;
10809 ERROR: number;
10810 LOADED: number;
10811 LOADING: number;
10812 NONE: number;
10813}
10814
10815declare var HTMLTrackElement: {
10816 prototype: HTMLTrackElement;
10817 new(): HTMLTrackElement;
10818 ERROR: number;
10819 LOADED: number;
10820 LOADING: number;
10821 NONE: number;
10822}
10823
10824interface HTMLUListElement extends HTMLElement {
10825 compact: boolean;
10826 type: string;
10827}
10828
10829declare var HTMLUListElement: {
10830 prototype: HTMLUListElement;
10831 new(): HTMLUListElement;
10832}
10833
10834interface HTMLUnknownElement extends HTMLElement {
10835}
10836
10837declare var HTMLUnknownElement: {
10838 prototype: HTMLUnknownElement;
10839 new(): HTMLUnknownElement;
10840}
10841
10842interface HTMLVideoElement extends HTMLMediaElement {
10843 /**
10844 * Gets or sets the height of the video element.
10845 */
10846 height: number;
10847 msHorizontalMirror: boolean;
10848 msIsLayoutOptimalForPlayback: boolean;
10849 msIsStereo3D: boolean;
10850 msStereo3DPackingMode: string;
10851 msStereo3DRenderMode: string;
10852 msZoom: boolean;
10853 onMSVideoFormatChanged: (ev: Event) => any;
10854 onMSVideoFrameStepCompleted: (ev: Event) => any;
10855 onMSVideoOptimalLayoutChanged: (ev: Event) => any;
10856 /**
10857 * Gets or sets a URL of an image to display, for example, like a movie poster. This can be a still frame from the video, or another image if no video data is available.
10858 */
10859 poster: string;
10860 /**
10861 * Gets the intrinsic height of a video in CSS pixels, or zero if the dimensions are not known.
10862 */
10863 videoHeight: number;
10864 /**
10865 * Gets the intrinsic width of a video in CSS pixels, or zero if the dimensions are not known.
10866 */
10867 videoWidth: number;
10868 webkitDisplayingFullscreen: boolean;
10869 webkitSupportsFullscreen: boolean;
10870 /**
10871 * Gets or sets the width of the video element.
10872 */
10873 width: number;
10874 getVideoPlaybackQuality(): VideoPlaybackQuality;
10875 msFrameStep(forward: boolean): void;
10876 msInsertVideoEffect(activatableClassId: string, effectRequired: boolean, config?: any): void;
10877 msSetVideoRectangle(left: number, top: number, right: number, bottom: number): void;
10878 webkitEnterFullScreen(): void;
10879 webkitEnterFullscreen(): void;
10880 webkitExitFullScreen(): void;
10881 webkitExitFullscreen(): void;
10882 addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10883 addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
10884 addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
10885 addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
10886 addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
10887 addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
10888 addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
10889 addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10890 addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
10891 addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10892 addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void;
10893 addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10894 addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10895 addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10896 addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10897 addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10898 addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10899 addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10900 addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void;
10901 addEventListener(type: "MSVideoFormatChanged", listener: (ev: Event) => any, useCapture?: boolean): void;
10902 addEventListener(type: "MSVideoFrameStepCompleted", listener: (ev: Event) => any, useCapture?: boolean): void;
10903 addEventListener(type: "MSVideoOptimalLayoutChanged", listener: (ev: Event) => any, useCapture?: boolean): void;
10904 addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10905 addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10906 addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void;
10907 addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10908 addEventListener(type: "beforecopy", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10909 addEventListener(type: "beforecut", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10910 addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10911 addEventListener(type: "beforepaste", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10912 addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
10913 addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void;
10914 addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void;
10915 addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void;
10916 addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10917 addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void;
10918 addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10919 addEventListener(type: "copy", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10920 addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void;
10921 addEventListener(type: "cut", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10922 addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10923 addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10924 addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10925 addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10926 addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10927 addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10928 addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10929 addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10930 addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10931 addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void;
10932 addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void;
10933 addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void;
10934 addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
10935 addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
10936 addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10937 addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void;
10938 addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
10939 addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
10940 addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
10941 addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
10942 addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void;
10943 addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void;
10944 addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void;
10945 addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10946 addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10947 addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10948 addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10949 addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10950 addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10951 addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10952 addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
10953 addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void;
10954 addEventListener(type: "msneedkey", listener: (ev: MSMediaKeyNeededEvent) => any, useCapture?: boolean): void;
10955 addEventListener(type: "paste", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
10956 addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void;
10957 addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void;
10958 addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void;
10959 addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10960 addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10961 addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10962 addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10963 addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10964 addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10965 addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10966 addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
10967 addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
10968 addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void;
10969 addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void;
10970 addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10971 addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void;
10972 addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void;
10973 addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
10974 addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void;
10975 addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void;
10976 addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void;
10977 addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void;
10978 addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void;
10979 addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
10980 addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
10981 addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
10982 addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void;
10983 addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void;
10984 addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void;
10985 addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void;
10986 addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void;
10987 addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void;
10988 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
10989}
10990
10991declare var HTMLVideoElement: {
10992 prototype: HTMLVideoElement;
10993 new(): HTMLVideoElement;
10994}
10995
10996interface HashChangeEvent extends Event {
10997 newURL: string;
10998 oldURL: string;
10999}
11000
11001declare var HashChangeEvent: {
11002 prototype: HashChangeEvent;
11003 new(type: string, eventInitDict?: HashChangeEventInit): HashChangeEvent;
11004}
11005
11006interface History {
11007 length: number;
11008 state: any;
11009 back(distance?: any): void;
11010 forward(distance?: any): void;
11011 go(delta?: any): void;
11012 pushState(statedata: any, title?: string, url?: string): void;
11013 replaceState(statedata: any, title?: string, url?: string): void;
11014}
11015
11016declare var History: {
11017 prototype: History;
11018 new(): History;
11019}
11020
11021interface IDBCursor {
11022 direction: string;
11023 key: any;
11024 primaryKey: any;
11025 source: any;
11026 advance(count: number): void;
11027 continue(key?: any): void;
11028 delete(): IDBRequest;
11029 update(value: any): IDBRequest;
11030 NEXT: string;
11031 NEXT_NO_DUPLICATE: string;
11032 PREV: string;
11033 PREV_NO_DUPLICATE: string;
11034}
11035
11036declare var IDBCursor: {
11037 prototype: IDBCursor;
11038 new(): IDBCursor;
11039 NEXT: string;
11040 NEXT_NO_DUPLICATE: string;
11041 PREV: string;
11042 PREV_NO_DUPLICATE: string;
11043}
11044
11045interface IDBCursorWithValue extends IDBCursor {
11046 value: any;
11047}
11048
11049declare var IDBCursorWithValue: {
11050 prototype: IDBCursorWithValue;
11051 new(): IDBCursorWithValue;
11052}
11053
11054interface IDBDatabase extends EventTarget {
11055 name: string;
11056 objectStoreNames: DOMStringList;
11057 onabort: (ev: Event) => any;
11058 onerror: (ev: Event) => any;
11059 version: number;
11060 close(): void;
11061 createObjectStore(name: string, optionalParameters?: IDBObjectStoreParameters): IDBObjectStore;
11062 deleteObjectStore(name: string): void;
11063 transaction(storeNames: any, mode?: string): IDBTransaction;
11064 addEventListener(type: "abort", listener: (ev: Event) => any, useCapture?: boolean): void;
11065 addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
11066 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
11067}
11068
11069declare var IDBDatabase: {
11070 prototype: IDBDatabase;
11071 new(): IDBDatabase;
11072}
11073
11074interface IDBFactory {
11075 cmp(first: any, second: any): number;
11076 deleteDatabase(name: string): IDBOpenDBRequest;
11077 open(name: string, version?: number): IDBOpenDBRequest;
11078}
11079
11080declare var IDBFactory: {
11081 prototype: IDBFactory;
11082 new(): IDBFactory;
11083}
11084
11085interface IDBIndex {
11086 keyPath: string | string[];
11087 name: string;
11088 objectStore: IDBObjectStore;
11089 unique: boolean;
11090 multiEntry: boolean;
11091 count(key?: any): IDBRequest;
11092 get(key: any): IDBRequest;
11093 getKey(key: any): IDBRequest;
11094 openCursor(range?: IDBKeyRange, direction?: string): IDBRequest;
11095 openKeyCursor(range?: IDBKeyRange, direction?: string): IDBRequest;
11096}
11097
11098declare var IDBIndex: {
11099 prototype: IDBIndex;
11100 new(): IDBIndex;
11101}
11102
11103interface IDBKeyRange {
11104 lower: any;
11105 lowerOpen: boolean;
11106 upper: any;
11107 upperOpen: boolean;
11108}
11109
11110declare var IDBKeyRange: {
11111 prototype: IDBKeyRange;
11112 new(): IDBKeyRange;
11113 bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;
11114 lowerBound(bound: any, open?: boolean): IDBKeyRange;
11115 only(value: any): IDBKeyRange;
11116 upperBound(bound: any, open?: boolean): IDBKeyRange;
11117}
11118
11119interface IDBObjectStore {
11120 indexNames: DOMStringList;
11121 keyPath: string;
11122 name: string;
11123 transaction: IDBTransaction;
11124 add(value: any, key?: any): IDBRequest;
11125 clear(): IDBRequest;
11126 count(key?: any): IDBRequest;
11127 createIndex(name: string, keyPath: string | string[], optionalParameters?: IDBIndexParameters): IDBIndex;
11128 delete(key: any): IDBRequest;
11129 deleteIndex(indexName: string): void;
11130 get(key: any): IDBRequest;
11131 index(name: string): IDBIndex;
11132 openCursor(range?: any, direction?: string): IDBRequest;
11133 put(value: any, key?: any): IDBRequest;
11134}
11135
11136declare var IDBObjectStore: {
11137 prototype: IDBObjectStore;
11138 new(): IDBObjectStore;
11139}
11140
11141interface IDBOpenDBRequest extends IDBRequest {
11142 onblocked: (ev: Event) => any;
11143 onupgradeneeded: (ev: IDBVersionChangeEvent) => any;
11144 addEventListener(type: "blocked", listener: (ev: Event) => any, useCapture?: boolean): void;
11145 addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
11146 addEventListener(type: "success", listener: (ev: Event) => any, useCapture?: boolean): void;
11147 addEventListener(type: "upgradeneeded", listener: (ev: IDBVersionChangeEvent) => any, useCapture?: boolean): void;
11148 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
11149}
11150
11151declare var IDBOpenDBRequest: {
11152 prototype: IDBOpenDBRequest;
11153 new(): IDBOpenDBRequest;
11154}
11155
11156interface IDBRequest extends EventTarget {
11157 error: DOMError;
11158 onerror: (ev: Event) => any;
11159 onsuccess: (ev: Event) => any;
11160 readyState: string;
11161 result: any;
11162 source: any;
11163 transaction: IDBTransaction;
11164 addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
11165 addEventListener(type: "success", listener: (ev: Event) => any, useCapture?: boolean): void;
11166 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
11167}
11168
11169declare var IDBRequest: {
11170 prototype: IDBRequest;
11171 new(): IDBRequest;
11172}
11173
11174interface IDBTransaction extends EventTarget {
11175 db: IDBDatabase;
11176 error: DOMError;
11177 mode: string;
11178 onabort: (ev: Event) => any;
11179 oncomplete: (ev: Event) => any;
11180 onerror: (ev: Event) => any;
11181 abort(): void;
11182 objectStore(name: string): IDBObjectStore;
11183 READ_ONLY: string;
11184 READ_WRITE: string;
11185 VERSION_CHANGE: string;
11186 addEventListener(type: "abort", listener: (ev: Event) => any, useCapture?: boolean): void;
11187 addEventListener(type: "complete", listener: (ev: Event) => any, useCapture?: boolean): void;
11188 addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
11189 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
11190}
11191
11192declare var IDBTransaction: {
11193 prototype: IDBTransaction;
11194 new(): IDBTransaction;
11195 READ_ONLY: string;
11196 READ_WRITE: string;
11197 VERSION_CHANGE: string;
11198}
11199
11200interface IDBVersionChangeEvent extends Event {
11201 newVersion: number;
11202 oldVersion: number;
11203}
11204
11205declare var IDBVersionChangeEvent: {
11206 prototype: IDBVersionChangeEvent;
11207 new(): IDBVersionChangeEvent;
11208}
11209
11210interface ImageData {
11211 data: Uint8ClampedArray;
11212 height: number;
11213 width: number;
11214}
11215
11216declare var ImageData: {
11217 prototype: ImageData;
11218 new(width: number, height: number): ImageData;
11219 new(array: Uint8ClampedArray, width: number, height: number): ImageData;
11220}
11221
11222interface KeyboardEvent extends UIEvent {
11223 altKey: boolean;
11224 char: string;
11225 charCode: number;
11226 ctrlKey: boolean;
11227 key: string;
11228 keyCode: number;
11229 locale: string;
11230 location: number;
11231 metaKey: boolean;
11232 repeat: boolean;
11233 shiftKey: boolean;
11234 which: number;
11235 getModifierState(keyArg: string): boolean;
11236 initKeyboardEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, keyArg: string, locationArg: number, modifiersListArg: string, repeat: boolean, locale: string): void;
11237 DOM_KEY_LOCATION_JOYSTICK: number;
11238 DOM_KEY_LOCATION_LEFT: number;
11239 DOM_KEY_LOCATION_MOBILE: number;
11240 DOM_KEY_LOCATION_NUMPAD: number;
11241 DOM_KEY_LOCATION_RIGHT: number;
11242 DOM_KEY_LOCATION_STANDARD: number;
11243}
11244
11245declare var KeyboardEvent: {
11246 prototype: KeyboardEvent;
11247 new(typeArg: string, eventInitDict?: KeyboardEventInit): KeyboardEvent;
11248 DOM_KEY_LOCATION_JOYSTICK: number;
11249 DOM_KEY_LOCATION_LEFT: number;
11250 DOM_KEY_LOCATION_MOBILE: number;
11251 DOM_KEY_LOCATION_NUMPAD: number;
11252 DOM_KEY_LOCATION_RIGHT: number;
11253 DOM_KEY_LOCATION_STANDARD: number;
11254}
11255
11256interface Location {
11257 hash: string;
11258 host: string;
11259 hostname: string;
11260 href: string;
11261 origin: string;
11262 pathname: string;
11263 port: string;
11264 protocol: string;
11265 search: string;
11266 assign(url: string): void;
11267 reload(forcedReload?: boolean): void;
11268 replace(url: string): void;
11269 toString(): string;
11270}
11271
11272declare var Location: {
11273 prototype: Location;
11274 new(): Location;
11275}
11276
11277interface LongRunningScriptDetectedEvent extends Event {
11278 executionTime: number;
11279 stopPageScriptExecution: boolean;
11280}
11281
11282declare var LongRunningScriptDetectedEvent: {
11283 prototype: LongRunningScriptDetectedEvent;
11284 new(): LongRunningScriptDetectedEvent;
11285}
11286
11287interface MSApp {
11288 clearTemporaryWebDataAsync(): MSAppAsyncOperation;
11289 createBlobFromRandomAccessStream(type: string, seeker: any): Blob;
11290 createDataPackage(object: any): any;
11291 createDataPackageFromSelection(): any;
11292 createFileFromStorageFile(storageFile: any): File;
11293 createStreamFromInputStream(type: string, inputStream: any): MSStream;
11294 execAsyncAtPriority(asynchronousCallback: MSExecAtPriorityFunctionCallback, priority: string, ...args: any[]): void;
11295 execAtPriority(synchronousCallback: MSExecAtPriorityFunctionCallback, priority: string, ...args: any[]): any;
11296 getCurrentPriority(): string;
11297 getHtmlPrintDocumentSourceAsync(htmlDoc: any): any;
11298 getViewId(view: any): any;
11299 isTaskScheduledAtPriorityOrHigher(priority: string): boolean;
11300 pageHandlesAllApplicationActivations(enabled: boolean): void;
11301 suppressSubdownloadCredentialPrompts(suppress: boolean): void;
11302 terminateApp(exceptionObject: any): void;
11303 CURRENT: string;
11304 HIGH: string;
11305 IDLE: string;
11306 NORMAL: string;
11307}
11308declare var MSApp: MSApp;
11309
11310interface MSAppAsyncOperation extends EventTarget {
11311 error: DOMError;
11312 oncomplete: (ev: Event) => any;
11313 onerror: (ev: Event) => any;
11314 readyState: number;
11315 result: any;
11316 start(): void;
11317 COMPLETED: number;
11318 ERROR: number;
11319 STARTED: number;
11320 addEventListener(type: "complete", listener: (ev: Event) => any, useCapture?: boolean): void;
11321 addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
11322 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
11323}
11324
11325declare var MSAppAsyncOperation: {
11326 prototype: MSAppAsyncOperation;
11327 new(): MSAppAsyncOperation;
11328 COMPLETED: number;
11329 ERROR: number;
11330 STARTED: number;
11331}
11332
11333interface MSBlobBuilder {
11334 append(data: any, endings?: string): void;
11335 getBlob(contentType?: string): Blob;
11336}
11337
11338declare var MSBlobBuilder: {
11339 prototype: MSBlobBuilder;
11340 new(): MSBlobBuilder;
11341}
11342
11343interface MSCSSMatrix {
11344 a: number;
11345 b: number;
11346 c: number;
11347 d: number;
11348 e: number;
11349 f: number;
11350 m11: number;
11351 m12: number;
11352 m13: number;
11353 m14: number;
11354 m21: number;
11355 m22: number;
11356 m23: number;
11357 m24: number;
11358 m31: number;
11359 m32: number;
11360 m33: number;
11361 m34: number;
11362 m41: number;
11363 m42: number;
11364 m43: number;
11365 m44: number;
11366 inverse(): MSCSSMatrix;
11367 multiply(secondMatrix: MSCSSMatrix): MSCSSMatrix;
11368 rotate(angleX: number, angleY?: number, angleZ?: number): MSCSSMatrix;
11369 rotateAxisAngle(x: number, y: number, z: number, angle: number): MSCSSMatrix;
11370 scale(scaleX: number, scaleY?: number, scaleZ?: number): MSCSSMatrix;
11371 setMatrixValue(value: string): void;
11372 skewX(angle: number): MSCSSMatrix;
11373 skewY(angle: number): MSCSSMatrix;
11374 toString(): string;
11375 translate(x: number, y: number, z?: number): MSCSSMatrix;
11376}
11377
11378declare var MSCSSMatrix: {
11379 prototype: MSCSSMatrix;
11380 new(text?: string): MSCSSMatrix;
11381}
11382
11383interface MSGesture {
11384 target: Element;
11385 addPointer(pointerId: number): void;
11386 stop(): void;
11387}
11388
11389declare var MSGesture: {
11390 prototype: MSGesture;
11391 new(): MSGesture;
11392}
11393
11394interface MSGestureEvent extends UIEvent {
11395 clientX: number;
11396 clientY: number;
11397 expansion: number;
11398 gestureObject: any;
11399 hwTimestamp: number;
11400 offsetX: number;
11401 offsetY: number;
11402 rotation: number;
11403 scale: number;
11404 screenX: number;
11405 screenY: number;
11406 translationX: number;
11407 translationY: number;
11408 velocityAngular: number;
11409 velocityExpansion: number;
11410 velocityX: number;
11411 velocityY: number;
11412 initGestureEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, offsetXArg: number, offsetYArg: number, translationXArg: number, translationYArg: number, scaleArg: number, expansionArg: number, rotationArg: number, velocityXArg: number, velocityYArg: number, velocityExpansionArg: number, velocityAngularArg: number, hwTimestampArg: number): void;
11413 MSGESTURE_FLAG_BEGIN: number;
11414 MSGESTURE_FLAG_CANCEL: number;
11415 MSGESTURE_FLAG_END: number;
11416 MSGESTURE_FLAG_INERTIA: number;
11417 MSGESTURE_FLAG_NONE: number;
11418}
11419
11420declare var MSGestureEvent: {
11421 prototype: MSGestureEvent;
11422 new(): MSGestureEvent;
11423 MSGESTURE_FLAG_BEGIN: number;
11424 MSGESTURE_FLAG_CANCEL: number;
11425 MSGESTURE_FLAG_END: number;
11426 MSGESTURE_FLAG_INERTIA: number;
11427 MSGESTURE_FLAG_NONE: number;
11428}
11429
11430interface MSGraphicsTrust {
11431 constrictionActive: boolean;
11432 status: string;
11433}
11434
11435declare var MSGraphicsTrust: {
11436 prototype: MSGraphicsTrust;
11437 new(): MSGraphicsTrust;
11438}
11439
11440interface MSHTMLWebViewElement extends HTMLElement {
11441 canGoBack: boolean;
11442 canGoForward: boolean;
11443 containsFullScreenElement: boolean;
11444 documentTitle: string;
11445 height: number;
11446 settings: MSWebViewSettings;
11447 src: string;
11448 width: number;
11449 addWebAllowedObject(name: string, applicationObject: any): void;
11450 buildLocalStreamUri(contentIdentifier: string, relativePath: string): string;
11451 capturePreviewToBlobAsync(): MSWebViewAsyncOperation;
11452 captureSelectedContentToDataPackageAsync(): MSWebViewAsyncOperation;
11453 getDeferredPermissionRequestById(id: number): DeferredPermissionRequest;
11454 getDeferredPermissionRequests(): DeferredPermissionRequest[];
11455 goBack(): void;
11456 goForward(): void;
11457 invokeScriptAsync(scriptName: string, ...args: any[]): MSWebViewAsyncOperation;
11458 navigate(uri: string): void;
11459 navigateToLocalStreamUri(source: string, streamResolver: any): void;
11460 navigateToString(contents: string): void;
11461 navigateWithHttpRequestMessage(requestMessage: any): void;
11462 refresh(): void;
11463 stop(): void;
11464}
11465
11466declare var MSHTMLWebViewElement: {
11467 prototype: MSHTMLWebViewElement;
11468 new(): MSHTMLWebViewElement;
11469}
11470
11471interface MSInputMethodContext extends EventTarget {
11472 compositionEndOffset: number;
11473 compositionStartOffset: number;
11474 oncandidatewindowhide: (ev: Event) => any;
11475 oncandidatewindowshow: (ev: Event) => any;
11476 oncandidatewindowupdate: (ev: Event) => any;
11477 target: HTMLElement;
11478 getCandidateWindowClientRect(): ClientRect;
11479 getCompositionAlternatives(): string[];
11480 hasComposition(): boolean;
11481 isCandidateWind