/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
///
/////////////////////////////
/// ECMAScript APIs
/////////////////////////////
declare var NaN: number;
declare var Infinity: number;
/**
* Evaluates JavaScript code and executes it.
* @param x A String value that contains valid JavaScript code.
*/
declare function eval(x: string): any;
/**
* Converts A string to an integer.
* @param s A string to convert into a number.
* @param radix A value between 2 and 36 that specifies the base of the number in numString.
* If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.
* All other strings are considered decimal.
*/
declare function parseInt(s: string, radix?: number): number;
/**
* Converts a string to a floating-point number.
* @param string A string that contains a floating-point number.
*/
declare function parseFloat(string: string): number;
/**
* Returns a Boolean value that indicates whether a value is the reserved value NaN (not a number).
* @param number A numeric value.
*/
declare function isNaN(number: number): boolean;
/**
* Determines whether a supplied number is finite.
* @param number Any numeric value.
*/
declare function isFinite(number: number): boolean;
/**
* Gets the unencoded version of an encoded Uniform Resource Identifier (URI).
* @param encodedURI A value representing an encoded URI.
*/
declare function decodeURI(encodedURI: string): string;
/**
* Gets the unencoded version of an encoded component of a Uniform Resource Identifier (URI).
* @param encodedURIComponent A value representing an encoded URI component.
*/
declare function decodeURIComponent(encodedURIComponent: string): string;
/**
* Encodes a text string as a valid Uniform Resource Identifier (URI)
* @param uri A value representing an encoded URI.
*/
declare function encodeURI(uri: string): string;
/**
* Encodes a text string as a valid component of a Uniform Resource Identifier (URI).
* @param uriComponent A value representing an encoded URI component.
*/
declare function encodeURIComponent(uriComponent: string): string;
interface PropertyDescriptor {
configurable?: boolean;
enumerable?: boolean;
value?: any;
writable?: boolean;
get? (): any;
set? (v: any): void;
}
interface PropertyDescriptorMap {
[s: string]: PropertyDescriptor;
}
interface Object {
/** The initial value of Object.prototype.constructor is the standard built-in Object constructor. */
constructor: Function;
/** Returns a string representation of an object. */
toString(): string;
/** Returns a date converted to a string using the current locale. */
toLocaleString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Object;
/**
* Determines whether an object has a property with the specified name.
* @param v A property name.
*/
hasOwnProperty(v: string): boolean;
/**
* Determines whether an object exists in another object's prototype chain.
* @param v Another object whose prototype chain is to be checked.
*/
isPrototypeOf(v: Object): boolean;
/**
* Determines whether a specified property is enumerable.
* @param v A property name.
*/
propertyIsEnumerable(v: string): boolean;
}
interface ObjectConstructor {
new (value?: any): Object;
(): any;
(value: any): any;
/** A reference to the prototype for a class of objects. */
prototype: Object;
/**
* Returns the prototype of an object.
* @param o The object that references the prototype.
*/
getPrototypeOf(o: any): any;
/**
* Gets the own property descriptor of the specified object.
* An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.
* @param o Object that contains the property.
* @param p Name of the property.
*/
getOwnPropertyDescriptor(o: any, p: string): PropertyDescriptor;
/**
* Returns the names of the own properties of an object. The own properties of an object are those that are defined directly
* on that object, and are not inherited from the object's prototype. The properties of an object include both fields (objects) and functions.
* @param o Object that contains the own properties.
*/
getOwnPropertyNames(o: any): string[];
/**
* Creates an object that has the specified prototype, and that optionally contains specified properties.
* @param o Object to use as a prototype. May be null
* @param properties JavaScript object that contains one or more property descriptors.
*/
create(o: any, properties?: PropertyDescriptorMap): any;
/**
* Adds a property to an object, or modifies attributes of an existing property.
* @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.
* @param p The property name.
* @param attributes Descriptor for the property. It can be for a data property or an accessor property.
*/
defineProperty(o: any, p: string, attributes: PropertyDescriptor): any;
/**
* Adds one or more properties to an object, and/or modifies attributes of existing properties.
* @param o Object on which to add or modify the properties. This can be a native JavaScript object or a DOM object.
* @param properties JavaScript object that contains one or more descriptor objects. Each descriptor object describes a data property or an accessor property.
*/
defineProperties(o: any, properties: PropertyDescriptorMap): any;
/**
* Prevents the modification of attributes of existing properties, and prevents the addition of new properties.
* @param o Object on which to lock the attributes.
*/
seal(o: any): any;
/**
* Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
* @param o Object on which to lock the attributes.
*/
freeze(o: any): any;
/**
* Prevents the addition of new properties to an object.
* @param o Object to make non-extensible.
*/
preventExtensions(o: any): any;
/**
* Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object.
* @param o Object to test.
*/
isSealed(o: any): boolean;
/**
* Returns true if existing property attributes and values cannot be modified in an object, and new properties cannot be added to the object.
* @param o Object to test.
*/
isFrozen(o: any): boolean;
/**
* Returns a value that indicates whether new properties can be added to an object.
* @param o Object to test.
*/
isExtensible(o: any): boolean;
/**
* Returns the names of the enumerable properties and methods of an object.
* @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.
*/
keys(o: any): string[];
}
/**
* Provides functionality common to all JavaScript objects.
*/
declare var Object: ObjectConstructor;
/**
* Creates a new function.
*/
interface Function {
/**
* Calls the function, substituting the specified object for the this value of the function, and the specified array for the arguments of the function.
* @param thisArg The object to be used as the this object.
* @param argArray A set of arguments to be passed to the function.
*/
apply(thisArg: any, argArray?: any): any;
/**
* Calls a method of an object, substituting another object for the current object.
* @param thisArg The object to be used as the current object.
* @param argArray A list of arguments to be passed to the method.
*/
call(thisArg: any, ...argArray: any[]): any;
/**
* For a given function, creates a bound function that has the same body as the original function.
* The this object of the bound function is associated with the specified object, and has the specified initial parameters.
* @param thisArg An object to which the this keyword can refer inside the new function.
* @param argArray A list of arguments to be passed to the new function.
*/
bind(thisArg: any, ...argArray: any[]): any;
prototype: any;
length: number;
// Non-standard extensions
arguments: any;
caller: Function;
}
interface FunctionConstructor {
/**
* Creates a new function.
* @param args A list of arguments the function accepts.
*/
new (...args: string[]): Function;
(...args: string[]): Function;
prototype: Function;
}
declare var Function: FunctionConstructor;
interface IArguments {
[index: number]: any;
length: number;
callee: Function;
}
interface String {
/** Returns a string representation of a string. */
toString(): string;
/**
* Returns the character at the specified index.
* @param pos The zero-based index of the desired character.
*/
charAt(pos: number): string;
/**
* Returns the Unicode value of the character at the specified location.
* @param index The zero-based index of the desired character. If there is no character at the specified index, NaN is returned.
*/
charCodeAt(index: number): number;
/**
* Returns a string that contains the concatenation of two or more strings.
* @param strings The strings to append to the end of the string.
*/
concat(...strings: string[]): string;
/**
* Returns the position of the first occurrence of a substring.
* @param searchString The substring to search for in the string
* @param position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string.
*/
indexOf(searchString: string, position?: number): number;
/**
* Returns the last occurrence of a substring in the string.
* @param searchString The substring to search for.
* @param position The index at which to begin searching. If omitted, the search begins at the end of the string.
*/
lastIndexOf(searchString: string, position?: number): number;
/**
* Determines whether two strings are equivalent in the current locale.
* @param that String to compare to target string
*/
localeCompare(that: string): number;
/**
* Matches a string with a regular expression, and returns an array containing the results of that search.
* @param regexp A variable name or string literal containing the regular expression pattern and flags.
*/
match(regexp: string): RegExpMatchArray;
/**
* Matches a string with a regular expression, and returns an array containing the results of that search.
* @param regexp A regular expression object that contains the regular expression pattern and applicable flags.
*/
match(regexp: RegExp): RegExpMatchArray;
/**
* Replaces text in a string, using a regular expression or search string.
* @param searchValue A String object or string literal that represents the regular expression
* @param replaceValue A String object or string literal containing the text to replace for every successful match of rgExp in stringObj.
*/
replace(searchValue: string, replaceValue: string): string;
/**
* Replaces text in a string, using a regular expression or search string.
* @param searchValue A String object or string literal that represents the regular expression
* @param replaceValue A function that returns the replacement text.
*/
replace(searchValue: string, replaceValue: (substring: string, ...args: any[]) => string): string;
/**
* Replaces text in a string, using a regular expression or search string.
* @param searchValue A Regular Expression object containing the regular expression pattern and applicable flags
* @param replaceValue A String object or string literal containing the text to replace for every successful match of rgExp in stringObj.
*/
replace(searchValue: RegExp, replaceValue: string): string;
/**
* Replaces text in a string, using a regular expression or search string.
* @param searchValue A Regular Expression object containing the regular expression pattern and applicable flags
* @param replaceValue A function that returns the replacement text.
*/
replace(searchValue: RegExp, replaceValue: (substring: string, ...args: any[]) => string): string;
/**
* Finds the first substring match in a regular expression search.
* @param regexp The regular expression pattern and applicable flags.
*/
search(regexp: string): number;
/**
* Finds the first substring match in a regular expression search.
* @param regexp The regular expression pattern and applicable flags.
*/
search(regexp: RegExp): number;
/**
* Returns a section of a string.
* @param start The index to the beginning of the specified portion of stringObj.
* @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.
* If this value is not specified, the substring continues to the end of stringObj.
*/
slice(start?: number, end?: number): string;
/**
* Split a string into substrings using the specified separator and return them as an array.
* @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.
* @param limit A value used to limit the number of elements returned in the array.
*/
split(separator: string, limit?: number): string[];
/**
* Split a string into substrings using the specified separator and return them as an array.
* @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.
* @param limit A value used to limit the number of elements returned in the array.
*/
split(separator: RegExp, limit?: number): string[];
/**
* Returns the substring at the specified location within a String object.
* @param start The zero-based index number indicating the beginning of the substring.
* @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.
* If end is omitted, the characters from start through the end of the original string are returned.
*/
substring(start: number, end?: number): string;
/** Converts all the alphabetic characters in a string to lowercase. */
toLowerCase(): string;
/** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */
toLocaleLowerCase(): string;
/** Converts all the alphabetic characters in a string to uppercase. */
toUpperCase(): string;
/** Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. */
toLocaleUpperCase(): string;
/** Removes the leading and trailing white space and line terminator characters from a string. */
trim(): string;
/** Returns the length of a String object. */
length: number;
// IE extensions
/**
* Gets a substring beginning at the specified location and having the specified length.
* @param from The starting position of the desired substring. The index of the first character in the string is zero.
* @param length The number of characters to include in the returned substring.
*/
substr(from: number, length?: number): string;
[index: number]: string;
}
interface StringConstructor {
new (value?: any): String;
(value?: any): string;
prototype: String;
fromCharCode(...codes: number[]): string;
}
/**
* Allows manipulation and formatting of text strings and determination and location of substrings within strings.
*/
declare var String: StringConstructor;
interface Boolean {
/** Returns the primitive value of the specified object. */
valueOf(): boolean;
}
interface BooleanConstructor {
new (value?: any): Boolean;
(value?: any): boolean;
prototype: Boolean;
}
declare var Boolean: BooleanConstructor;
interface Number {
/**
* Returns a string representation of an object.
* @param radix Specifies a radix for converting numeric values to strings. This value is only used for numbers.
*/
toString(radix?: number): string;
/**
* Returns a string representing a number in fixed-point notation.
* @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
*/
toFixed(fractionDigits?: number): string;
/**
* Returns a string containing a number represented in exponential notation.
* @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
*/
toExponential(fractionDigits?: number): string;
/**
* Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits.
* @param precision Number of significant digits. Must be in the range 1 - 21, inclusive.
*/
toPrecision(precision?: number): string;
}
interface NumberConstructor {
new (value?: any): Number;
(value?: any): number;
prototype: Number;
/** The largest number that can be represented in JavaScript. Equal to approximately 1.79E+308. */
MAX_VALUE: number;
/** The closest number to zero that can be represented in JavaScript. Equal to approximately 5.00E-324. */
MIN_VALUE: number;
/**
* A value that is not a number.
* In equality comparisons, NaN does not equal any value, including itself. To test whether a value is equivalent to NaN, use the isNaN function.
*/
NaN: number;
/**
* A value that is less than the largest negative number that can be represented in JavaScript.
* JavaScript displays NEGATIVE_INFINITY values as -infinity.
*/
NEGATIVE_INFINITY: number;
/**
* A value greater than the largest number that can be represented in JavaScript.
* JavaScript displays POSITIVE_INFINITY values as infinity.
*/
POSITIVE_INFINITY: number;
}
/** An object that represents a number of any kind. All JavaScript numbers are 64-bit floating-point numbers. */
declare var Number: NumberConstructor;
interface TemplateStringsArray extends Array {
raw: string[];
}
interface Math {
/** The mathematical constant e. This is Euler's number, the base of natural logarithms. */
E: number;
/** The natural logarithm of 10. */
LN10: number;
/** The natural logarithm of 2. */
LN2: number;
/** The base-2 logarithm of e. */
LOG2E: number;
/** The base-10 logarithm of e. */
LOG10E: number;
/** Pi. This is the ratio of the circumference of a circle to its diameter. */
PI: number;
/** The square root of 0.5, or, equivalently, one divided by the square root of 2. */
SQRT1_2: number;
/** The square root of 2. */
SQRT2: number;
/**
* Returns the absolute value of a number (the value without regard to whether it is positive or negative).
* For example, the absolute value of -5 is the same as the absolute value of 5.
* @param x A numeric expression for which the absolute value is needed.
*/
abs(x: number): number;
/**
* Returns the arc cosine (or inverse cosine) of a number.
* @param x A numeric expression.
*/
acos(x: number): number;
/**
* Returns the arcsine of a number.
* @param x A numeric expression.
*/
asin(x: number): number;
/**
* Returns the arctangent of a number.
* @param x A numeric expression for which the arctangent is needed.
*/
atan(x: number): number;
/**
* Returns the angle (in radians) from the X axis to a point (y,x).
* @param y A numeric expression representing the cartesian y-coordinate.
* @param x A numeric expression representing the cartesian x-coordinate.
*/
atan2(y: number, x: number): number;
/**
* Returns the smallest number greater than or equal to its numeric argument.
* @param x A numeric expression.
*/
ceil(x: number): number;
/**
* Returns the cosine of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
cos(x: number): number;
/**
* Returns e (the base of natural logarithms) raised to a power.
* @param x A numeric expression representing the power of e.
*/
exp(x: number): number;
/**
* Returns the greatest number less than or equal to its numeric argument.
* @param x A numeric expression.
*/
floor(x: number): number;
/**
* Returns the natural logarithm (base e) of a number.
* @param x A numeric expression.
*/
log(x: number): number;
/**
* Returns the larger of a set of supplied numeric expressions.
* @param values Numeric expressions to be evaluated.
*/
max(...values: number[]): number;
/**
* Returns the smaller of a set of supplied numeric expressions.
* @param values Numeric expressions to be evaluated.
*/
min(...values: number[]): number;
/**
* Returns the value of a base expression taken to a specified power.
* @param x The base value of the expression.
* @param y The exponent value of the expression.
*/
pow(x: number, y: number): number;
/** Returns a pseudorandom number between 0 and 1. */
random(): number;
/**
* Returns a supplied numeric expression rounded to the nearest number.
* @param x The value to be rounded to the nearest number.
*/
round(x: number): number;
/**
* Returns the sine of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
sin(x: number): number;
/**
* Returns the square root of a number.
* @param x A numeric expression.
*/
sqrt(x: number): number;
/**
* Returns the tangent of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
tan(x: number): number;
}
/** An intrinsic object that provides basic mathematics functionality and constants. */
declare var Math: Math;
/** Enables basic storage and retrieval of dates and times. */
interface Date {
/** Returns a string representation of a date. The format of the string depends on the locale. */
toString(): string;
/** Returns a date as a string value. */
toDateString(): string;
/** Returns a time as a string value. */
toTimeString(): string;
/** Returns a value as a string value appropriate to the host environment's current locale. */
toLocaleString(): string;
/** Returns a date as a string value appropriate to the host environment's current locale. */
toLocaleDateString(): string;
/** Returns a time as a string value appropriate to the host environment's current locale. */
toLocaleTimeString(): string;
/** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */
valueOf(): number;
/** Gets the time value in milliseconds. */
getTime(): number;
/** Gets the year, using local time. */
getFullYear(): number;
/** Gets the year using Universal Coordinated Time (UTC). */
getUTCFullYear(): number;
/** Gets the month, using local time. */
getMonth(): number;
/** Gets the month of a Date object using Universal Coordinated Time (UTC). */
getUTCMonth(): number;
/** Gets the day-of-the-month, using local time. */
getDate(): number;
/** Gets the day-of-the-month, using Universal Coordinated Time (UTC). */
getUTCDate(): number;
/** Gets the day of the week, using local time. */
getDay(): number;
/** Gets the day of the week using Universal Coordinated Time (UTC). */
getUTCDay(): number;
/** Gets the hours in a date, using local time. */
getHours(): number;
/** Gets the hours value in a Date object using Universal Coordinated Time (UTC). */
getUTCHours(): number;
/** Gets the minutes of a Date object, using local time. */
getMinutes(): number;
/** Gets the minutes of a Date object using Universal Coordinated Time (UTC). */
getUTCMinutes(): number;
/** Gets the seconds of a Date object, using local time. */
getSeconds(): number;
/** Gets the seconds of a Date object using Universal Coordinated Time (UTC). */
getUTCSeconds(): number;
/** Gets the milliseconds of a Date, using local time. */
getMilliseconds(): number;
/** Gets the milliseconds of a Date object using Universal Coordinated Time (UTC). */
getUTCMilliseconds(): number;
/** Gets the difference in minutes between the time on the local computer and Universal Coordinated Time (UTC). */
getTimezoneOffset(): number;
/**
* Sets the date and time value in the Date object.
* @param time A numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT.
*/
setTime(time: number): number;
/**
* Sets the milliseconds value in the Date object using local time.
* @param ms A numeric value equal to the millisecond value.
*/
setMilliseconds(ms: number): number;
/**
* Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC).
* @param ms A numeric value equal to the millisecond value.
*/
setUTCMilliseconds(ms: number): number;
/**
* Sets the seconds value in the Date object using local time.
* @param sec A numeric value equal to the seconds value.
* @param ms A numeric value equal to the milliseconds value.
*/
setSeconds(sec: number, ms?: number): number;
/**
* Sets the seconds value in the Date object using Universal Coordinated Time (UTC).
* @param sec A numeric value equal to the seconds value.
* @param ms A numeric value equal to the milliseconds value.
*/
setUTCSeconds(sec: number, ms?: number): number;
/**
* Sets the minutes value in the Date object using local time.
* @param min A numeric value equal to the minutes value.
* @param sec A numeric value equal to the seconds value.
* @param ms A numeric value equal to the milliseconds value.
*/
setMinutes(min: number, sec?: number, ms?: number): number;
/**
* Sets the minutes value in the Date object using Universal Coordinated Time (UTC).
* @param min A numeric value equal to the minutes value.
* @param sec A numeric value equal to the seconds value.
* @param ms A numeric value equal to the milliseconds value.
*/
setUTCMinutes(min: number, sec?: number, ms?: number): number;
/**
* Sets the hour value in the Date object using local time.
* @param hours A numeric value equal to the hours value.
* @param min A numeric value equal to the minutes value.
* @param sec A numeric value equal to the seconds value.
* @param ms A numeric value equal to the milliseconds value.
*/
setHours(hours: number, min?: number, sec?: number, ms?: number): number;
/**
* Sets the hours value in the Date object using Universal Coordinated Time (UTC).
* @param hours A numeric value equal to the hours value.
* @param min A numeric value equal to the minutes value.
* @param sec A numeric value equal to the seconds value.
* @param ms A numeric value equal to the milliseconds value.
*/
setUTCHours(hours: number, min?: number, sec?: number, ms?: number): number;
/**
* Sets the numeric day-of-the-month value of the Date object using local time.
* @param date A numeric value equal to the day of the month.
*/
setDate(date: number): number;
/**
* Sets the numeric day of the month in the Date object using Universal Coordinated Time (UTC).
* @param date A numeric value equal to the day of the month.
*/
setUTCDate(date: number): number;
/**
* Sets the month value in the Date object using local time.
* @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.
* @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.
*/
setMonth(month: number, date?: number): number;
/**
* Sets the month value in the Date object using Universal Coordinated Time (UTC).
* @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.
* @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.
*/
setUTCMonth(month: number, date?: number): number;
/**
* Sets the year of the Date object using local time.
* @param year A numeric value for the year.
* @param month A zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified.
* @param date A numeric value equal for the day of the month.
*/
setFullYear(year: number, month?: number, date?: number): number;
/**
* Sets the year value in the Date object using Universal Coordinated Time (UTC).
* @param year A numeric value equal to the year.
* @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.
* @param date A numeric value equal to the day of the month.
*/
setUTCFullYear(year: number, month?: number, date?: number): number;
/** Returns a date converted to a string using Universal Coordinated Time (UTC). */
toUTCString(): string;
/** Returns a date as a string value in ISO format. */
toISOString(): string;
/** Used by the JSON.stringify method to enable the transformation of an object's data for JavaScript Object Notation (JSON) serialization. */
toJSON(key?: any): string;
}
interface DateConstructor {
new (): Date;
new (value: number): Date;
new (value: string): Date;
new (year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): Date;
(): string;
prototype: Date;
/**
* Parses a string containing a date, and returns the number of milliseconds between that date and midnight, January 1, 1970.
* @param s A date string
*/
parse(s: string): number;
/**
* Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date.
* @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.
* @param month The month as an number between 0 and 11 (January to December).
* @param date The date as an number between 1 and 31.
* @param hours Must be supplied if minutes is supplied. An number from 0 to 23 (midnight to 11pm) that specifies the hour.
* @param minutes Must be supplied if seconds is supplied. An number from 0 to 59 that specifies the minutes.
* @param seconds Must be supplied if milliseconds is supplied. An number from 0 to 59 that specifies the seconds.
* @param ms An number from 0 to 999 that specifies the milliseconds.
*/
UTC(year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number;
now(): number;
}
declare var Date: DateConstructor;
interface RegExpMatchArray extends Array {
index?: number;
input?: string;
}
interface RegExpExecArray extends Array {
index: number;
input: string;
}
interface RegExp {
/**
* Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search.
* @param string The String object or string literal on which to perform the search.
*/
exec(string: string): RegExpExecArray;
/**
* Returns a Boolean value that indicates whether or not a pattern exists in a searched string.
* @param string String on which to perform the search.
*/
test(string: string): boolean;
/** Returns a copy of the text of the regular expression pattern. Read-only. The rgExp argument is a Regular expression object. It can be a variable name or a literal. */
source: string;
/** Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. */
global: boolean;
/** Returns a Boolean value indicating the state of the ignoreCase flag (i) used with a regular expression. Default is false. Read-only. */
ignoreCase: boolean;
/** Returns a Boolean value indicating the state of the multiline flag (m) used with a regular expression. Default is false. Read-only. */
multiline: boolean;
lastIndex: number;
// Non-standard extensions
compile(): RegExp;
}
interface RegExpConstructor {
new (pattern: string, flags?: string): RegExp;
(pattern: string, flags?: string): RegExp;
prototype: RegExp;
// Non-standard extensions
$1: string;
$2: string;
$3: string;
$4: string;
$5: string;
$6: string;
$7: string;
$8: string;
$9: string;
lastMatch: string;
}
declare var RegExp: RegExpConstructor;
interface Error {
name: string;
message: string;
}
interface ErrorConstructor {
new (message?: string): Error;
(message?: string): Error;
prototype: Error;
}
declare var Error: ErrorConstructor;
interface EvalError extends Error {
}
interface EvalErrorConstructor {
new (message?: string): EvalError;
(message?: string): EvalError;
prototype: EvalError;
}
declare var EvalError: EvalErrorConstructor;
interface RangeError extends Error {
}
interface RangeErrorConstructor {
new (message?: string): RangeError;
(message?: string): RangeError;
prototype: RangeError;
}
declare var RangeError: RangeErrorConstructor;
interface ReferenceError extends Error {
}
interface ReferenceErrorConstructor {
new (message?: string): ReferenceError;
(message?: string): ReferenceError;
prototype: ReferenceError;
}
declare var ReferenceError: ReferenceErrorConstructor;
interface SyntaxError extends Error {
}
interface SyntaxErrorConstructor {
new (message?: string): SyntaxError;
(message?: string): SyntaxError;
prototype: SyntaxError;
}
declare var SyntaxError: SyntaxErrorConstructor;
interface TypeError extends Error {
}
interface TypeErrorConstructor {
new (message?: string): TypeError;
(message?: string): TypeError;
prototype: TypeError;
}
declare var TypeError: TypeErrorConstructor;
interface URIError extends Error {
}
interface URIErrorConstructor {
new (message?: string): URIError;
(message?: string): URIError;
prototype: URIError;
}
declare var URIError: URIErrorConstructor;
interface JSON {
/**
* Converts a JavaScript Object Notation (JSON) string into an object.
* @param text A valid JSON string.
* @param reviver A function that transforms the results. This function is called for each member of the object.
* If a member contains nested objects, the nested objects are transformed before the parent object is.
*/
parse(text: string, reviver?: (key: any, value: any) => any): any;
/**
* Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
* @param value A JavaScript value, usually an object or array, to be converted.
*/
stringify(value: any): string;
/**
* Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
* @param value A JavaScript value, usually an object or array, to be converted.
* @param replacer A function that transforms the results.
*/
stringify(value: any, replacer: (key: string, value: any) => any): string;
/**
* Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
* @param value A JavaScript value, usually an object or array, to be converted.
* @param replacer Array that transforms the results.
*/
stringify(value: any, replacer: any[]): string;
/**
* Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
* @param value A JavaScript value, usually an object or array, to be converted.
* @param replacer A function that transforms the results.
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
*/
stringify(value: any, replacer: (key: string, value: any) => any, space: any): string;
/**
* Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
* @param value A JavaScript value, usually an object or array, to be converted.
* @param replacer Array that transforms the results.
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
*/
stringify(value: any, replacer: any[], space: any): string;
}
/**
* An intrinsic object that provides functions to convert JavaScript values to and from the JavaScript Object Notation (JSON) format.
*/
declare var JSON: JSON;
/////////////////////////////
/// ECMAScript Array API (specially handled by compiler)
/////////////////////////////
interface Array {
/**
* Gets or sets the length of the array. This is a number one higher than the highest element defined in an array.
*/
length: number;
/**
* Returns a string representation of an array.
*/
toString(): string;
toLocaleString(): string;
/**
* Appends new elements to an array, and returns the new length of the array.
* @param items New elements of the Array.
*/
push(...items: T[]): number;
/**
* Removes the last element from an array and returns it.
*/
pop(): T;
/**
* Combines two or more arrays.
* @param items Additional items to add to the end of array1.
*/
concat(...items: U[]): T[];
/**
* Combines two or more arrays.
* @param items Additional items to add to the end of array1.
*/
concat(...items: T[]): T[];
/**
* Adds all the elements of an array separated by the specified separator string.
* @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.
*/
join(separator?: string): string;
/**
* Reverses the elements in an Array.
*/
reverse(): T[];
/**
* Removes the first element from an array and returns it.
*/
shift(): T;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array.
*/
slice(start?: number, end?: number): T[];
/**
* Sorts an array.
* @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.
*/
sort(compareFn?: (a: T, b: T) => number): T[];
/**
* Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
* @param start The zero-based location in the array from which to start removing elements.
*/
splice(start: number): T[];
/**
* Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
* @param start The zero-based location in the array from which to start removing elements.
* @param deleteCount The number of elements to remove.
* @param items Elements to insert into the array in place of the deleted elements.
*/
splice(start: number, deleteCount: number, ...items: T[]): T[];
/**
* Inserts new elements at the start of an array.
* @param items Elements to insert at the start of the Array.
*/
unshift(...items: T[]): number;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
*/
indexOf(searchElement: T, fromIndex?: number): number;
/**
* Returns the index of the last occurrence of a specified value in an array.
* @param searchElement The value to locate in the array.
* @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.
*/
lastIndexOf(searchElement: T, fromIndex?: number): number;
/**
* Determines whether all the members of an array satisfy the specified test.
* @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.
* @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.
*/
every(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): boolean;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @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.
* @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.
*/
some(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): boolean;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
* @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.
*/
forEach(callbackfn: (value: T, index: number, array: T[]) => void, thisArg?: any): void;
/**
* Calls a defined callback function on each element of an array, and returns an array that contains the results.
* @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.
* @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.
*/
map(callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): U[];
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @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.
* @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.
*/
filter(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): T[];
/**
* 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.
* @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.
* @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.
*/
reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue?: T): T;
/**
* 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.
* @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.
* @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.
*/
reduce(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
/**
* 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.
* @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.
* @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.
*/
reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue?: T): T;
/**
* 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.
* @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.
* @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.
*/
reduceRight(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
[n: number]: T;
}
interface ArrayConstructor {
new (arrayLength?: number): any[];
new (arrayLength: number): T[];
new (...items: T[]): T[];
(arrayLength?: number): any[];
(arrayLength: number): T[];
(...items: T[]): T[];
isArray(arg: any): boolean;
prototype: Array;
}
declare var Array: ArrayConstructor;
/////////////////////////////
/// IE10 ECMAScript Extensions
/////////////////////////////
/**
* Represents a raw buffer of binary data, which is used to store data for the
* different typed arrays. ArrayBuffers cannot be read from or written to directly,
* but can be passed to a typed array or DataView Object to interpret the raw
* buffer as needed.
*/
interface ArrayBuffer {
/**
* Read-only. The length of the ArrayBuffer (in bytes).
*/
byteLength: number;
/**
* Returns a section of an ArrayBuffer.
*/
slice(begin:number, end?:number): ArrayBuffer;
}
declare var ArrayBuffer: {
prototype: ArrayBuffer;
new (byteLength: number): ArrayBuffer;
}
interface ArrayBufferView {
buffer: ArrayBuffer;
byteOffset: number;
byteLength: number;
}
/**
* A typed array of 8-bit integer values. The contents are initialized to 0. If the requested number of bytes could not be allocated an exception is raised.
*/
interface Int8Array extends ArrayBufferView {
/**
* The size in bytes of each element in the array.
*/
BYTES_PER_ELEMENT: number;
/**
* The length of the array.
*/
length: number;
[index: number]: number;
/**
* Gets the element at the specified index.
* @param index The index at which to get the element of the array.
*/
get(index: number): number;
/**
* Sets a value or an array of values.
* @param index The index of the location to set.
* @param value The value to set.
*/
set(index: number, value: number): void;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: Int8Array, offset?: number): void;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: number[], offset?: number): void;
/**
* Gets a new Int8Array view of the ArrayBuffer store for this array, referencing the elements at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin: number, end?: number): Int8Array;
}
declare var Int8Array: {
prototype: Int8Array;
new (length: number): Int8Array;
new (array: Int8Array): Int8Array;
new (array: number[]): Int8Array;
new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int8Array;
BYTES_PER_ELEMENT: number;
}
/**
* A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the requested number of bytes could not be allocated an exception is raised.
*/
interface Uint8Array extends ArrayBufferView {
/**
* The size in bytes of each element in the array.
*/
BYTES_PER_ELEMENT: number;
/**
* The length of the array.
*/
length: number;
[index: number]: number;
/**
* Gets the element at the specified index.
* @param index The index at which to get the element of the array.
*/
get(index: number): number;
/**
* Sets a value or an array of values.
* @param index The index of the location to set.
* @param value The value to set.
*/
set(index: number, value: number): void;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: Uint8Array, offset?: number): void;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: number[], offset?: number): void;
/**
* Gets a new Uint8Array view of the ArrayBuffer Object store for this array, specifying the first and last members of the subarray.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin: number, end?: number): Uint8Array;
}
declare var Uint8Array: {
prototype: Uint8Array;
new (length: number): Uint8Array;
new (array: Uint8Array): Uint8Array;
new (array: number[]): Uint8Array;
new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint8Array;
BYTES_PER_ELEMENT: number;
}
/**
* A typed array of 16-bit integer values. The contents are initialized to 0. If the requested number of bytes could not be allocated an exception is raised.
*/
interface Int16Array extends ArrayBufferView {
/**
* The size in bytes of each element in the array.
*/
BYTES_PER_ELEMENT: number;
/**
* The length of the array.
*/
length: number;
[index: number]: number;
/**
* Gets the element at the specified index.
* @param index The index at which to get the element of the array.
*/
get(index: number): number;
/**
* Sets a value or an array of values.
* @param index The index of the location to set.
* @param value The value to set.
*/
set(index: number, value: number): void;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: Int16Array, offset?: number): void;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: number[], offset?: number): void;
/**
* Gets a new Int16Array view of the ArrayBuffer Object store for this array, specifying the first and last members of the subarray.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin: number, end?: number): Int16Array;
}
declare var Int16Array: {
prototype: Int16Array;
new (length: number): Int16Array;
new (array: Int16Array): Int16Array;
new (array: number[]): Int16Array;
new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int16Array;
BYTES_PER_ELEMENT: number;
}
/**
* A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the requested number of bytes could not be allocated an exception is raised.
*/
interface Uint16Array extends ArrayBufferView {
/**
* The size in bytes of each element in the array.
*/
BYTES_PER_ELEMENT: number;
/**
* The length of the array.
*/
length: number;
[index: number]: number;
/**
* Gets the element at the specified index.
* @param index The index at which to get the element of the array.
*/
get(index: number): number;
/**
* Sets a value or an array of values.
* @param index The index of the location to set.
* @param value The value to set.
*/
set(index: number, value: number): void;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: Uint16Array, offset?: number): void;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: number[], offset?: number): void;
/**
* Gets a new Uint16Array view of the ArrayBuffer Object store for this array, specifying the first and last members of the subarray.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin: number, end?: number): Uint16Array;
}
declare var Uint16Array: {
prototype: Uint16Array;
new (length: number): Uint16Array;
new (array: Uint16Array): Uint16Array;
new (array: number[]): Uint16Array;
new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint16Array;
BYTES_PER_ELEMENT: number;
}
/**
* A typed array of 32-bit integer values. The contents are initialized to 0. If the requested number of bytes could not be allocated an exception is raised.
*/
interface Int32Array extends ArrayBufferView {
/**
* The size in bytes of each element in the array.
*/
BYTES_PER_ELEMENT: number;
/**
* The length of the array.
*/
length: number;
[index: number]: number;
/**
* Gets the element at the specified index.
* @param index The index at which to get the element of the array.
*/
get(index: number): number;
/**
* Sets a value or an array of values.
* @param index The index of the location to set.
* @param value The value to set.
*/
set(index: number, value: number): void;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: Int32Array, offset?: number): void;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: number[], offset?: number): void;
/**
* Gets a new Int32Array view of the ArrayBuffer Object store for this array, specifying the first and last members of the subarray.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin: number, end?: number): Int32Array;
}
declare var Int32Array: {
prototype: Int32Array;
new (length: number): Int32Array;
new (array: Int32Array): Int32Array;
new (array: number[]): Int32Array;
new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int32Array;
BYTES_PER_ELEMENT: number;
}
/**
* A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the requested number of bytes could not be allocated an exception is raised.
*/
interface Uint32Array extends ArrayBufferView {
/**
* The size in bytes of each element in the array.
*/
BYTES_PER_ELEMENT: number;
/**
* The length of the array.
*/
length: number;
[index: number]: number;
/**
* Gets the element at the specified index.
* @param index The index at which to get the element of the array.
*/
get(index: number): number;
/**
* Sets a value or an array of values.
* @param index The index of the location to set.
* @param value The value to set.
*/
set(index: number, value: number): void;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: Uint32Array, offset?: number): void;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: number[], offset?: number): void;
/**
* Gets a new Int8Array view of the ArrayBuffer Object store for this array, specifying the first and last members of the subarray.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin: number, end?: number): Uint32Array;
}
declare var Uint32Array: {
prototype: Uint32Array;
new (length: number): Uint32Array;
new (array: Uint32Array): Uint32Array;
new (array: number[]): Uint32Array;
new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint32Array;
BYTES_PER_ELEMENT: number;
}
/**
* A typed array of 32-bit float values. The contents are initialized to 0. If the requested number of bytes could not be allocated an exception is raised.
*/
interface Float32Array extends ArrayBufferView {
/**
* The size in bytes of each element in the array.
*/
BYTES_PER_ELEMENT: number;
/**
* The length of the array.
*/
length: number;
[index: number]: number;
/**
* Gets the element at the specified index.
* @param index The index at which to get the element of the array.
*/
get(index: number): number;
/**
* Sets a value or an array of values.
* @param index The index of the location to set.
* @param value The value to set.
*/
set(index: number, value: number): void;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: Float32Array, offset?: number): void;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: number[], offset?: number): void;
/**
* Gets a new Float32Array view of the ArrayBuffer Object store for this array, specifying the first and last members of the subarray.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin: number, end?: number): Float32Array;
}
declare var Float32Array: {
prototype: Float32Array;
new (length: number): Float32Array;
new (array: Float32Array): Float32Array;
new (array: number[]): Float32Array;
new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Float32Array;
BYTES_PER_ELEMENT: number;
}
/**
* A typed array of 64-bit float values. The contents are initialized to 0. If the requested number of bytes could not be allocated an exception is raised.
*/
interface Float64Array extends ArrayBufferView {
/**
* The size in bytes of each element in the array.
*/
BYTES_PER_ELEMENT: number;
/**
* The length of the array.
*/
length: number;
[index: number]: number;
/**
* Gets the element at the specified index.
* @param index The index at which to get the element of the array.
*/
get(index: number): number;
/**
* Sets a value or an array of values.
* @param index The index of the location to set.
* @param value The value to set.
*/
set(index: number, value: number): void;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: Float64Array, offset?: number): void;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: number[], offset?: number): void;
/**
* Gets a new Float64Array view of the ArrayBuffer Object store for this array, specifying the first and last members of the subarray.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin: number, end?: number): Float64Array;
}
declare var Float64Array: {
prototype: Float64Array;
new (length: number): Float64Array;
new (array: Float64Array): Float64Array;
new (array: number[]): Float64Array;
new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Float64Array;
BYTES_PER_ELEMENT: number;
}
/**
* You can use a DataView object to read and write the different kinds of binary data to any location in the ArrayBuffer.
*/
interface DataView extends ArrayBufferView {
/**
* Gets the Int8 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
*/
getInt8(byteOffset: number): number;
/**
* Gets the Uint8 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
*/
getUint8(byteOffset: number): number;
/**
* Gets the Int16 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
*/
getInt16(byteOffset: number, littleEndian?: boolean): number;
/**
* Gets the Uint16 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
*/
getUint16(byteOffset: number, littleEndian?: boolean): number;
/**
* Gets the Int32 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
*/
getInt32(byteOffset: number, littleEndian?: boolean): number;
/**
* Gets the Uint32 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
*/
getUint32(byteOffset: number, littleEndian?: boolean): number;
/**
* Gets the Float32 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
*/
getFloat32(byteOffset: number, littleEndian?: boolean): number;
/**
* Gets the Float64 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
*/
getFloat64(byteOffset: number, littleEndian?: boolean): number;
/**
* Stores an Int8 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
*/
setInt8(byteOffset: number, value: number): void;
/**
* Stores an Uint8 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
*/
setUint8(byteOffset: number, value: number): void;
/**
* Stores an Int16 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written, otherwise a little-endian value should be written.
*/
setInt16(byteOffset: number, value: number, littleEndian?: boolean): void;
/**
* Stores an Uint16 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written, otherwise a little-endian value should be written.
*/
setUint16(byteOffset: number, value: number, littleEndian?: boolean): void;
/**
* Stores an Int32 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written, otherwise a little-endian value should be written.
*/
setInt32(byteOffset: number, value: number, littleEndian?: boolean): void;
/**
* Stores an Uint32 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written, otherwise a little-endian value should be written.
*/
setUint32(byteOffset: number, value: number, littleEndian?: boolean): void;
/**
* Stores an Float32 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written, otherwise a little-endian value should be written.
*/
setFloat32(byteOffset: number, value: number, littleEndian?: boolean): void;
/**
* Stores an Float64 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written, otherwise a little-endian value should be written.
*/
setFloat64(byteOffset: number, value: number, littleEndian?: boolean): void;
}
declare var DataView: {
prototype: DataView;
new (buffer: ArrayBuffer, byteOffset?: number, length?: number): DataView;
}
/////////////////////////////
/// IE11 ECMAScript Extensions
/////////////////////////////
interface Map {
clear(): void;
delete(key: K): boolean;
forEach(callbackfn: (value: V, index: K, map: Map) => void, thisArg?: any): void;
get(key: K): V;
has(key: K): boolean;
set(key: K, value: V): Map;
size: number;
}
declare var Map: {
new (): Map;
prototype: Map;
}
interface WeakMap {
clear(): void;
delete(key: K): boolean;
get(key: K): V;
has(key: K): boolean;
set(key: K, value: V): WeakMap;
}
declare var WeakMap: {
new (): WeakMap;
prototype: WeakMap;
}
interface Set {
add(value: T): Set;
clear(): void;
delete(value: T): boolean;
forEach(callbackfn: (value: T, index: T, set: Set) => void, thisArg?: any): void;
has(value: T): boolean;
size: number;
}
declare var Set: {
new (): Set;
prototype: Set;
}
/////////////////////////////
/// ECMAScript Internationalization API
/////////////////////////////
declare module Intl {
interface CollatorOptions {
usage?: string;
localeMatcher?: string;
numeric?: boolean;
caseFirst?: string;
sensitivity?: string;
ignorePunctuation?: boolean;
}
interface ResolvedCollatorOptions {
locale: string;
usage: string;
sensitivity: string;
ignorePunctuation: boolean;
collation: string;
caseFirst: string;
numeric: boolean;
}
interface Collator {
compare(x: string, y: string): number;
resolvedOptions(): ResolvedCollatorOptions;
}
var Collator: {
new (locales?: string[], options?: CollatorOptions): Collator;
new (locale?: string, options?: CollatorOptions): Collator;
(locales?: string[], options?: CollatorOptions): Collator;
(locale?: string, options?: CollatorOptions): Collator;
supportedLocalesOf(locales: string[], options?: CollatorOptions): string[];
supportedLocalesOf(locale: string, options?: CollatorOptions): string[];
}
interface NumberFormatOptions {
localeMatcher?: string;
style?: string;
currency?: string;
currencyDisplay?: string;
useGrouping?: boolean;
}
interface ResolvedNumberFormatOptions {
locale: string;
numberingSystem: string;
style: string;
currency?: string;
currencyDisplay?: string;
minimumintegerDigits: number;
minimumFractionDigits: number;
maximumFractionDigits: number;
minimumSignificantDigits?: number;
maximumSignificantDigits?: number;
useGrouping: boolean;
}
interface NumberFormat {
format(value: number): string;
resolvedOptions(): ResolvedNumberFormatOptions;
}
var NumberFormat: {
new (locales?: string[], options?: NumberFormatOptions): Collator;
new (locale?: string, options?: NumberFormatOptions): Collator;
(locales?: string[], options?: NumberFormatOptions): Collator;
(locale?: string, options?: NumberFormatOptions): Collator;
supportedLocalesOf(locales: string[], options?: NumberFormatOptions): string[];
supportedLocalesOf(locale: string, options?: NumberFormatOptions): string[];
}
interface DateTimeFormatOptions {
localeMatcher?: string;
weekday?: string;
era?: string;
year?: string;
month?: string;
day?: string;
hour?: string;
minute?: string;
second?: string;
timeZoneName?: string;
formatMatcher?: string;
hour12: boolean;
}
interface ResolvedDateTimeFormatOptions {
locale: string;
calendar: string;
numberingSystem: string;
timeZone: string;
hour12?: boolean;
weekday?: string;
era?: string;
year?: string;
month?: string;
day?: string;
hour?: string;
minute?: string;
second?: string;
timeZoneName?: string;
}
interface DateTimeFormat {
format(date: number): string;
resolvedOptions(): ResolvedDateTimeFormatOptions;
}
var DateTimeFormat: {
new (locales?: string[], options?: DateTimeFormatOptions): Collator;
new (locale?: string, options?: DateTimeFormatOptions): Collator;
(locales?: string[], options?: DateTimeFormatOptions): Collator;
(locale?: string, options?: DateTimeFormatOptions): Collator;
supportedLocalesOf(locales: string[], options?: DateTimeFormatOptions): string[];
supportedLocalesOf(locale: string, options?: DateTimeFormatOptions): string[];
}
}
interface String {
/**
* Determines whether two strings are equivalent in the current locale.
* @param that String to compare to target string
* @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.
* @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.
*/
localeCompare(that: string, locales: string[], options?: Intl.CollatorOptions): number;
/**
* Determines whether two strings are equivalent in the current locale.
* @param that String to compare to target string
* @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.
* @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.
*/
localeCompare(that: string, locale: string, options?: Intl.CollatorOptions): number;
}
interface Number {
/**
* Converts a number to a string by using the current or specified locale.
* @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.
* @param options An object that contains one or more properties that specify comparison options.
*/
toLocaleString(locales?: string[], options?: Intl.NumberFormatOptions): string;
/**
* Converts a number to a string by using the current or specified locale.
* @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used.
* @param options An object that contains one or more properties that specify comparison options.
*/
toLocaleString(locale?: string, options?: Intl.NumberFormatOptions): string;
}
interface Date {
/**
* Converts a date to a string by using the current or specified locale.
* @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.
* @param options An object that contains one or more properties that specify comparison options.
*/
toLocaleString(locales?: string[], options?: Intl.DateTimeFormatOptions): string;
/**
* Converts a date to a string by using the current or specified locale.
* @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used.
* @param options An object that contains one or more properties that specify comparison options.
*/
toLocaleString(locale?: string, options?: Intl.DateTimeFormatOptions): string;
}
/////////////////////////////
/// IE DOM APIs
/////////////////////////////
interface PositionOptions {
enableHighAccuracy?: boolean;
timeout?: number;
maximumAge?: number;
}
interface ObjectURLOptions {
oneTimeOnly?: boolean;
}
interface StoreExceptionsInformation extends ExceptionInformation {
siteName?: string;
explanationString?: string;
detailURI?: string;
}
interface StoreSiteSpecificExceptionsInformation extends StoreExceptionsInformation {
arrayOfDomainStrings?: string[];
}
interface ConfirmSiteSpecificExceptionsInformation extends ExceptionInformation {
arrayOfDomainStrings?: string[];
}
interface AlgorithmParameters {
}
interface MutationObserverInit {
childList?: boolean;
attributes?: boolean;
characterData?: boolean;
subtree?: boolean;
attributeOldValue?: boolean;
characterDataOldValue?: boolean;
attributeFilter?: string[];
}
interface PointerEventInit extends MouseEventInit {
pointerId?: number;
width?: number;
height?: number;
pressure?: number;
tiltX?: number;
tiltY?: number;
pointerType?: string;
isPrimary?: boolean;
}
interface ExceptionInformation {
domain?: string;
}
interface DeviceAccelerationDict {
x?: number;
y?: number;
z?: number;
}
interface MsZoomToOptions {
contentX?: number;
contentY?: number;
viewportX?: string;
viewportY?: string;
scaleFactor?: number;
animate?: string;
}
interface DeviceRotationRateDict {
alpha?: number;
beta?: number;
gamma?: number;
}
interface Algorithm {
name?: string;
params?: AlgorithmParameters;
}
interface MouseEventInit {
bubbles?: boolean;
cancelable?: boolean;
view?: Window;
detail?: number;
screenX?: number;
screenY?: number;
clientX?: number;
clientY?: number;
ctrlKey?: boolean;
shiftKey?: boolean;
altKey?: boolean;
metaKey?: boolean;
button?: number;
buttons?: number;
relatedTarget?: EventTarget;
}
interface WebGLContextAttributes {
alpha?: boolean;
depth?: boolean;
stencil?: boolean;
antialias?: boolean;
premultipliedAlpha?: boolean;
preserveDrawingBuffer?: boolean;
}
interface NodeListOf extends NodeList {
length: number;
item(index: number): TNode;
[index: number]: TNode;
}
interface HTMLElement extends Element, ElementCSSInlineStyle, MSEventAttachmentTarget, MSNodeExtensions {
hidden: any;
readyState: any;
onmouseleave: (ev: MouseEvent) => any;
onbeforecut: (ev: DragEvent) => any;
onkeydown: (ev: KeyboardEvent) => any;
onmove: (ev: MSEventObj) => any;
onkeyup: (ev: KeyboardEvent) => any;
onreset: (ev: Event) => any;
onhelp: (ev: Event) => any;
ondragleave: (ev: DragEvent) => any;
className: string;
onfocusin: (ev: FocusEvent) => any;
onseeked: (ev: Event) => any;
recordNumber: any;
title: string;
parentTextEdit: Element;
outerHTML: string;
ondurationchange: (ev: Event) => any;
offsetHeight: number;
all: HTMLCollection;
onblur: (ev: FocusEvent) => any;
dir: string;
onemptied: (ev: Event) => any;
onseeking: (ev: Event) => any;
oncanplay: (ev: Event) => any;
ondeactivate: (ev: UIEvent) => any;
ondatasetchanged: (ev: MSEventObj) => any;
onrowsdelete: (ev: MSEventObj) => any;
sourceIndex: number;
onloadstart: (ev: Event) => any;
onlosecapture: (ev: MSEventObj) => any;
ondragenter: (ev: DragEvent) => any;
oncontrolselect: (ev: MSEventObj) => any;
onsubmit: (ev: Event) => any;
behaviorUrns: MSBehaviorUrnsCollection;
scopeName: string;
onchange: (ev: Event) => any;
id: string;
onlayoutcomplete: (ev: MSEventObj) => any;
uniqueID: string;
onbeforeactivate: (ev: UIEvent) => any;
oncanplaythrough: (ev: Event) => any;
onbeforeupdate: (ev: MSEventObj) => any;
onfilterchange: (ev: MSEventObj) => any;
offsetParent: Element;
ondatasetcomplete: (ev: MSEventObj) => any;
onsuspend: (ev: Event) => any;
onmouseenter: (ev: MouseEvent) => any;
innerText: string;
onerrorupdate: (ev: MSEventObj) => any;
onmouseout: (ev: MouseEvent) => any;
parentElement: HTMLElement;
onmousewheel: (ev: MouseWheelEvent) => any;
onvolumechange: (ev: Event) => any;
oncellchange: (ev: MSEventObj) => any;
onrowexit: (ev: MSEventObj) => any;
onrowsinserted: (ev: MSEventObj) => any;
onpropertychange: (ev: MSEventObj) => any;
filters: any;
children: HTMLCollection;
ondragend: (ev: DragEvent) => any;
onbeforepaste: (ev: DragEvent) => any;
ondragover: (ev: DragEvent) => any;
offsetTop: number;
onmouseup: (ev: MouseEvent) => any;
ondragstart: (ev: DragEvent) => any;
onbeforecopy: (ev: DragEvent) => any;
ondrag: (ev: DragEvent) => any;
innerHTML: string;
onmouseover: (ev: MouseEvent) => any;
lang: string;
uniqueNumber: number;
onpause: (ev: Event) => any;
tagUrn: string;
onmousedown: (ev: MouseEvent) => any;
onclick: (ev: MouseEvent) => any;
onwaiting: (ev: Event) => any;
onresizestart: (ev: MSEventObj) => any;
offsetLeft: number;
isTextEdit: boolean;
isDisabled: boolean;
onpaste: (ev: DragEvent) => any;
canHaveHTML: boolean;
onmoveend: (ev: MSEventObj) => any;
language: string;
onstalled: (ev: Event) => any;
onmousemove: (ev: MouseEvent) => any;
style: MSStyleCSSProperties;
isContentEditable: boolean;
onbeforeeditfocus: (ev: MSEventObj) => any;
onratechange: (ev: Event) => any;
contentEditable: string;
tabIndex: number;
document: Document;
onprogress: (ev: ProgressEvent) => any;
ondblclick: (ev: MouseEvent) => any;
oncontextmenu: (ev: MouseEvent) => any;
onloadedmetadata: (ev: Event) => any;
onafterupdate: (ev: MSEventObj) => any;
onerror: (ev: ErrorEvent) => any;
onplay: (ev: Event) => any;
onresizeend: (ev: MSEventObj) => any;
onplaying: (ev: Event) => any;
isMultiLine: boolean;
onfocusout: (ev: FocusEvent) => any;
onabort: (ev: UIEvent) => any;
ondataavailable: (ev: MSEventObj) => any;
hideFocus: boolean;
onreadystatechange: (ev: Event) => any;
onkeypress: (ev: KeyboardEvent) => any;
onloadeddata: (ev: Event) => any;
onbeforedeactivate: (ev: UIEvent) => any;
outerText: string;
disabled: boolean;
onactivate: (ev: UIEvent) => any;
accessKey: string;
onmovestart: (ev: MSEventObj) => any;
onselectstart: (ev: Event) => any;
onfocus: (ev: FocusEvent) => any;
ontimeupdate: (ev: Event) => any;
onresize: (ev: UIEvent) => any;
oncut: (ev: DragEvent) => any;
onselect: (ev: UIEvent) => any;
ondrop: (ev: DragEvent) => any;
offsetWidth: number;
oncopy: (ev: DragEvent) => any;
onended: (ev: Event) => any;
onscroll: (ev: UIEvent) => any;
onrowenter: (ev: MSEventObj) => any;
onload: (ev: Event) => any;
canHaveChildren: boolean;
oninput: (ev: Event) => any;
onmscontentzoom: (ev: MSEventObj) => any;
oncuechange: (ev: Event) => any;
spellcheck: boolean;
classList: DOMTokenList;
onmsmanipulationstatechanged: (ev: any) => any;
draggable: boolean;
dataset: DOMStringMap;
dragDrop(): boolean;
scrollIntoView(top?: boolean): void;
addFilter(filter: any): void;
setCapture(containerCapture?: boolean): void;
focus(): void;
getAdjacentText(where: string): string;
insertAdjacentText(where: string, text: string): void;
getElementsByClassName(classNames: string): NodeList;
setActive(): void;
removeFilter(filter: any): void;
blur(): void;
clearAttributes(): void;
releaseCapture(): void;
createControlRange(): ControlRangeCollection;
removeBehavior(cookie: number): boolean;
contains(child: HTMLElement): boolean;
click(): void;
insertAdjacentElement(position: string, insertedElement: Element): Element;
mergeAttributes(source: HTMLElement, preserveIdentity?: boolean): void;
replaceAdjacentText(where: string, newText: string): string;
applyElement(apply: Element, where?: string): Element;
addBehavior(bstrUrl: string, factory?: any): number;
insertAdjacentHTML(where: string, html: string): void;
msGetInputContext(): MSInputMethodContext;
addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
addEventListener(type: "mspointerdown", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "msgotpointercapture", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "msgesturedoubletap", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "mspointerhover", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "msgesturehold", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "mspointermove", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "msgesturechange", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "msgesturestart", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "mspointercancel", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "msgestureend", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "msgesturetap", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "mspointerout", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "msinertiastart", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "mslostpointercapture", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "mspointerover", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "mspointerup", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
addEventListener(type: "mspointerenter", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
addEventListener(type: "mspointerleave", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
addEventListener(type: "beforecut", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
addEventListener(type: "move", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "help", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
addEventListener(type: "focusin", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
addEventListener(type: "datasetchanged", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
addEventListener(type: "rowsdelete", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "losecapture", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
addEventListener(type: "controlselect", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "layoutcomplete", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "beforeupdate", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
addEventListener(type: "filterchange", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
addEventListener(type: "datasetcomplete", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
addEventListener(type: "errorupdate", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void;
addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "cellchange", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
addEventListener(type: "rowexit", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
addEventListener(type: "rowsinserted", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
addEventListener(type: "propertychange", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
addEventListener(type: "beforepaste", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
addEventListener(type: "beforecopy", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "resizestart", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
addEventListener(type: "paste", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
addEventListener(type: "moveend", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
addEventListener(type: "beforeeditfocus", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
addEventListener(type: "contextmenu", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "afterupdate", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "resizeend", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "focusout", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
addEventListener(type: "dataavailable", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
addEventListener(type: "readystatechange", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
addEventListener(type: "movestart", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "resize", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
addEventListener(type: "cut", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
addEventListener(type: "copy", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
addEventListener(type: "rowenter", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "mscontentzoom", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "msmanipulationstatechanged", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
}
declare var HTMLElement: {
prototype: HTMLElement;
new(): HTMLElement;
}
interface Document extends Node, NodeSelector, MSEventAttachmentTarget, DocumentEvent, MSResourceMetadata, MSNodeExtensions, MSDocumentExtensions, GlobalEventHandlers {
/**
* Gets a reference to the root node of the document.
*/
documentElement: HTMLElement;
/**
* Retrieves the collection of user agents and versions declared in the X-UA-Compatible
*/
compatible: MSCompatibleInfoCollection;
/**
* Fires when the user presses a key.
* @param ev The keyboard event
*/
onkeydown: (ev: KeyboardEvent) => any;
/**
* Fires when the user releases a key.
* @param ev The keyboard event
*/
onkeyup: (ev: KeyboardEvent) => any;
/**
* Gets the implementation object of the current document.
*/
implementation: DOMImplementation;
/**
* Fires when the user resets a form.
* @param ev The event.
*/
onreset: (ev: Event) => any;
/**
* Retrieves a collection of all script objects in the document.
*/
scripts: HTMLCollection;
/**
* Fires when the user presses the F1 key while the browser is the active window.
* @param ev The event.
*/
onhelp: (ev: Event) => any;
/**
* Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
* @param ev The drag event.
*/
ondragleave: (ev: DragEvent) => any;
/**
* Gets or sets the character set used to encode the object.
*/
charset: string;
/**
* Fires for an element just prior to setting focus on that element.
* @param ev The focus event
*/
onfocusin: (ev: FocusEvent) => any;
/**
* Sets or gets the color of the links that the user has visited.
*/
vlinkColor: string;
/**
* Occurs when the seek operation ends.
* @param ev The event.
*/
onseeked: (ev: Event) => any;
security: string;
/**
* Contains the title of the document.
*/
title: string;
/**
* Retrieves a collection of namespace objects.
*/
namespaces: MSNamespaceInfoCollection;
/**
* Gets the default character set from the current regional language settings.
*/
defaultCharset: string;
/**
* Retrieves a collection of all embed objects in the document.
*/
embeds: HTMLCollection;
/**
* Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document.
*/
styleSheets: StyleSheetList;
/**
* Retrieves a collection of all window objects defined by the given document or defined by the document associated with the given window.
*/
frames: Window;
/**
* Occurs when the duration attribute is updated.
* @param ev The event.
*/
ondurationchange: (ev: Event) => any;
/**
* Returns a reference to the collection of elements contained by the object.
*/
all: HTMLCollection;
/**
* Retrieves a collection, in source order, of all form objects in the document.
*/
forms: HTMLCollection;
/**
* Fires when the object loses the input focus.
* @param ev The focus event.
*/
onblur: (ev: FocusEvent) => any;
/**
* Sets or retrieves a value that indicates the reading order of the object.
*/
dir: string;
/**
* Occurs when the media element is reset to its initial state.
* @param ev The event.
*/
onemptied: (ev: Event) => any;
/**
* Sets or gets a value that indicates whether the document can be edited.
*/
designMode: string;
/**
* Occurs when the current playback position is moved.
* @param ev The event.
*/
onseeking: (ev: Event) => any;
/**
* Fires when the activeElement is changed from the current object to another object in the parent document.
* @param ev The UI Event
*/
ondeactivate: (ev: UIEvent) => any;
/**
* Occurs when playback is possible, but would require further buffering.
* @param ev The event.
*/
oncanplay: (ev: Event) => any;
/**
* Fires when the data set exposed by a data source object changes.
* @param ev The event.
*/
ondatasetchanged: (ev: MSEventObj) => any;
/**
* Fires when rows are about to be deleted from the recordset.
* @param ev The event
*/
onrowsdelete: (ev: MSEventObj) => any;
Script: MSScriptHost;
/**
* Occurs when Internet Explorer begins looking for media data.
* @param ev The event.
*/
onloadstart: (ev: Event) => any;
/**
* Gets the URL for the document, stripped of any character encoding.
*/
URLUnencoded: string;
defaultView: Window;
/**
* Fires when the user is about to make a control selection of the object.
* @param ev The event.
*/
oncontrolselect: (ev: MSEventObj) => any;
/**
* Fires on the target element when the user drags the object to a valid drop target.
* @param ev The drag event.
*/
ondragenter: (ev: DragEvent) => any;
onsubmit: (ev: Event) => any;
/**
* Returns the character encoding used to create the webpage that is loaded into the document object.
*/
inputEncoding: string;
/**
* Gets the object that has the focus when the parent document has focus.
*/
activeElement: Element;
/**
* Fires when the contents of the object or selection have changed.
* @param ev The event.
*/
onchange: (ev: Event) => any;
/**
* Retrieves a collection of all a objects that specify the href property and all area objects in the document.
*/
links: HTMLCollection;
/**
* Retrieves an autogenerated, unique identifier for the object.
*/
uniqueID: string;
/**
* Sets or gets the URL for the current document.
*/
URL: string;
/**
* Fires immediately before the object is set as the active element.
* @param ev The event.
*/
onbeforeactivate: (ev: UIEvent) => any;
head: HTMLHeadElement;
cookie: string;
xmlEncoding: string;
oncanplaythrough: (ev: Event) => any;
/**
* Retrieves the document compatibility mode of the document.
*/
documentMode: number;
characterSet: string;
/**
* Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order.
*/
anchors: HTMLCollection;
onbeforeupdate: (ev: MSEventObj) => any;
/**
* Fires to indicate that all data is available from the data source object.
* @param ev The event.
*/
ondatasetcomplete: (ev: MSEventObj) => any;
plugins: HTMLCollection;
/**
* Occurs if the load operation has been intentionally halted.
* @param ev The event.
*/
onsuspend: (ev: Event) => any;
/**
* Gets the root svg element in the document hierarchy.
*/
rootElement: SVGSVGElement;
/**
* Retrieves a value that indicates the current state of the object.
*/
readyState: string;
/**
* Gets the URL of the location that referred the user to the current page.
*/
referrer: string;
/**
* Sets or gets the color of all active links in the document.
*/
alinkColor: string;
/**
* Fires on a databound object when an error occurs while updating the associated data in the data source object.
* @param ev The event.
*/
onerrorupdate: (ev: MSEventObj) => any;
/**
* Gets a reference to the container object of the window.
*/
parentWindow: Window;
/**
* Fires when the user moves the mouse pointer outside the boundaries of the object.
* @param ev The mouse event.
*/
onmouseout: (ev: MouseEvent) => any;
/**
* Occurs when a user clicks a button in a Thumbnail Toolbar of a webpage running in Site Mode.
* @param ev The event.
*/
onmsthumbnailclick: (ev: MSSiteModeEvent) => any;
/**
* Fires when the wheel button is rotated.
* @param ev The mouse event
*/
onmousewheel: (ev: MouseWheelEvent) => any;
/**
* Occurs when the volume is changed, or playback is muted or unmuted.
* @param ev The event.
*/
onvolumechange: (ev: Event) => any;
/**
* Fires when data changes in the data provider.
* @param ev The event.
*/
oncellchange: (ev: MSEventObj) => any;
/**
* Fires just before the data source control changes the current row in the object.
* @param ev The event.
*/
onrowexit: (ev: MSEventObj) => any;
/**
* Fires just after new rows are inserted in the current recordset.
* @param ev The event.
*/
onrowsinserted: (ev: MSEventObj) => any;
/**
* Gets or sets the version attribute specified in the declaration of an XML document.
*/
xmlVersion: string;
msCapsLockWarningOff: boolean;
/**
* Fires when a property changes on the object.
* @param ev The event.
*/
onpropertychange: (ev: MSEventObj) => any;
/**
* Fires on the source object when the user releases the mouse at the close of a drag operation.
* @param ev The event.
*/
ondragend: (ev: DragEvent) => any;
/**
* Gets an object representing the document type declaration associated with the current document.
*/
doctype: DocumentType;
/**
* Fires on the target element continuously while the user drags the object over a valid drop target.
* @param ev The event.
*/
ondragover: (ev: DragEvent) => any;
/**
* Deprecated. Sets or retrieves a value that indicates the background color behind the object.
*/
bgColor: string;
/**
* Fires on the source object when the user starts to drag a text selection or selected object.
* @param ev The event.
*/
ondragstart: (ev: DragEvent) => any;
/**
* Fires when the user releases a mouse button while the mouse is over the object.
* @param ev The mouse event.
*/
onmouseup: (ev: MouseEvent) => any;
/**
* Fires on the source object continuously during a drag operation.
* @param ev The event.
*/
ondrag: (ev: DragEvent) => any;
/**
* Fires when the user moves the mouse pointer into the object.
* @param ev The mouse event.
*/
onmouseover: (ev: MouseEvent) => any;
/**
* Sets or gets the color of the document links.
*/
linkColor: string;
/**
* Occurs when playback is paused.
* @param ev The event.
*/
onpause: (ev: Event) => any;
/**
* Fires when the user clicks the object with either mouse button.
* @param ev The mouse event.
*/
onmousedown: (ev: MouseEvent) => any;
/**
* Fires when the user clicks the left mouse button on the object
* @param ev The mouse event.
*/
onclick: (ev: MouseEvent) => any;
/**
* Occurs when playback stops because the next frame of a video resource is not available.
* @param ev The event.
*/
onwaiting: (ev: Event) => any;
/**
* Fires when the user clicks the Stop button or leaves the Web page.
* @param ev The event.
*/
onstop: (ev: Event) => any;
/**
* Occurs when an item is removed from a Jump List of a webpage running in Site Mode.
* @param ev The event.
*/
onmssitemodejumplistitemremoved: (ev: MSSiteModeEvent) => any;
/**
* Retrieves a collection of all applet objects in the document.
*/
applets: HTMLCollection;
/**
* Specifies the beginning and end of the document body.
*/
body: HTMLElement;
/**
* Sets or gets the security domain of the document.
*/
domain: string;
xmlStandalone: boolean;
/**
* Represents the active selection, which is a highlighted block of text or other elements in the document that a user or a script can carry out some action on.
*/
selection: MSSelection;
/**
* Occurs when the download has stopped.
* @param ev The event.
*/
onstalled: (ev: Event) => any;
/**
* Fires when the user moves the mouse over the object.
* @param ev The mouse event.
*/
onmousemove: (ev: MouseEvent) => any;
/**
* Fires before an object contained in an editable element enters a UI-activated state or when an editable container object is control selected.
* @param ev The event.
*/
onbeforeeditfocus: (ev: MSEventObj) => any;
/**
* Occurs when the playback rate is increased or decreased.
* @param ev The event.
*/
onratechange: (ev: Event) => any;
/**
* Occurs to indicate progress while downloading media data.
* @param ev The event.
*/
onprogress: (ev: ProgressEvent) => any;
/**
* Fires when the user double-clicks the object.
* @param ev The mouse event.
*/
ondblclick: (ev: MouseEvent) => any;
/**
* Fires when the user clicks the right mouse button in the client area, opening the context menu.
* @param ev The mouse event.
*/
oncontextmenu: (ev: MouseEvent) => any;
/**
* Occurs when the duration and dimensions of the media have been determined.
* @param ev The event.
*/
onloadedmetadata: (ev: Event) => any;
media: string;
/**
* Fires when an error occurs during object loading.
* @param ev The event.
*/
onerror: (ev: ErrorEvent) => any;
/**
* Occurs when the play method is requested.
* @param ev The event.
*/
onplay: (ev: Event) => any;
onafterupdate: (ev: MSEventObj) => any;
/**
* Occurs when the audio or video has started playing.
* @param ev The event.
*/
onplaying: (ev: Event) => any;
/**
* Retrieves a collection, in source order, of img objects in the document.
*/
images: HTMLCollection;
/**
* Contains information about the current URL.
*/
location: Location;
/**
* Fires when the user aborts the download.
* @param ev The event.
*/
onabort: (ev: UIEvent) => any;
/**
* Fires for the current element with focus immediately after moving focus to another element.
* @param ev The event.
*/
onfocusout: (ev: FocusEvent) => any;
/**
* Fires when the selection state of a document changes.
* @param ev The event.
*/
onselectionchange: (ev: Event) => any;
/**
* Fires when a local DOM Storage area is written to disk.
* @param ev The event.
*/
onstoragecommit: (ev: StorageEvent) => any;
/**
* Fires periodically as data arrives from data source objects that asynchronously transmit their data.
* @param ev The event.
*/
ondataavailable: (ev: MSEventObj) => any;
/**
* Fires when the state of the object has changed.
* @param ev The event
*/
onreadystatechange: (ev: Event) => any;
/**
* Gets the date that the page was last modified, if the page supplies one.
*/
lastModified: string;
/**
* Fires when the user presses an alphanumeric key.
* @param ev The event.
*/
onkeypress: (ev: KeyboardEvent) => any;
/**
* Occurs when media data is loaded at the current playback position.
* @param ev The event.
*/
onloadeddata: (ev: Event) => any;
/**
* Fires immediately before the activeElement is changed from the current object to another object in the parent document.
* @param ev The event.
*/
onbeforedeactivate: (ev: UIEvent) => any;
/**
* Fires when the object is set as the active element.
* @param ev The event.
*/
onactivate: (ev: UIEvent) => any;
onselectstart: (ev: Event) => any;
/**
* Fires when the object receives focus.
* @param ev The event.
*/
onfocus: (ev: FocusEvent) => any;
/**
* Sets or gets the foreground (text) color of the document.
*/
fgColor: string;
/**
* Occurs to indicate the current playback position.
* @param ev The event.
*/
ontimeupdate: (ev: Event) => any;
/**
* Fires when the current selection changes.
* @param ev The event.
*/
onselect: (ev: UIEvent) => any;
ondrop: (ev: DragEvent) => any;
/**
* Occurs when the end of playback is reached.
* @param ev The event
*/
onended: (ev: Event) => any;
/**
* Gets a value that indicates whether standards-compliant mode is switched on for the object.
*/
compatMode: string;
/**
* Fires when the user repositions the scroll box in the scroll bar on the object.
* @param ev The event.
*/
onscroll: (ev: UIEvent) => any;
/**
* Fires to indicate that the current row has changed in the data source and new data values are available on the object.
* @param ev The event.
*/
onrowenter: (ev: MSEventObj) => any;
/**
* Fires immediately after the browser loads the object.
* @param ev The event.
*/
onload: (ev: Event) => any;
oninput: (ev: Event) => any;
onmspointerdown: (ev: any) => any;
msHidden: boolean;
msVisibilityState: string;
onmsgesturedoubletap: (ev: any) => any;
visibilityState: string;
onmsmanipulationstatechanged: (ev: any) => any;
onmspointerhover: (ev: any) => any;
onmscontentzoom: (ev: MSEventObj) => any;
onmspointermove: (ev: any) => any;
onmsgesturehold: (ev: any) => any;
onmsgesturechange: (ev: any) => any;
onmsgesturestart: (ev: any) => any;
onmspointercancel: (ev: any) => any;
onmsgestureend: (ev: any) => any;
onmsgesturetap: (ev: any) => any;
onmspointerout: (ev: any) => any;
onmsinertiastart: (ev: any) => any;
msCSSOMElementFloatMetrics: boolean;
onmspointerover: (ev: any) => any;
hidden: boolean;
onmspointerup: (ev: any) => any;
msFullscreenEnabled: boolean;
onmsfullscreenerror: (ev: any) => any;
onmspointerenter: (ev: any) => any;
msFullscreenElement: Element;
onmsfullscreenchange: (ev: any) => any;
onmspointerleave: (ev: any) => any;
/**
* Returns a reference to the first object with the specified value of the ID or NAME attribute.
* @param elementId String that specifies the ID value. Case-insensitive.
*/
getElementById(elementId: string): HTMLElement;
/**
* Returns the current value of the document, range, or current selection for the given command.
* @param commandId String that specifies a command identifier.
*/
queryCommandValue(commandId: string): string;
adoptNode(source: Node): Node;
/**
* Returns a Boolean value that indicates whether the specified command is in the indeterminate state.
* @param commandId String that specifies a command identifier.
*/
queryCommandIndeterm(commandId: string): boolean;
getElementsByTagNameNS(namespaceURI: string, localName: string): NodeList;
createProcessingInstruction(target: string, data: string): ProcessingInstruction;
/**
* Executes a command on the current document, current selection, or the given range.
* @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script.
* @param showUI Display the user interface, defaults to false.
* @param value Value to assign.
*/
execCommand(commandId: string, showUI?: boolean, value?: any): boolean;
/**
* Returns the element for the specified x coordinate and the specified y coordinate.
* @param x The x-offset
* @param y The y-offset
*/
elementFromPoint(x: number, y: number): Element;
createCDATASection(data: string): CDATASection;
/**
* Retrieves the string associated with a command.
* @param commandId String that contains the identifier of a command. This can be any command identifier given in the list of Command Identifiers.
*/
queryCommandText(commandId: string): string;
/**
* Writes one or more HTML expressions to a document in the specified window.
* @param content Specifies the text and HTML tags to write.
*/
write(...content: string[]): void;
/**
* Allows updating the print settings for the page.
*/
updateSettings(): void;
/**
* Creates an instance of the element for the specified tag.
* @param tagName The name of an element.
*/
createElement(tagName: "a"): HTMLAnchorElement;
createElement(tagName: "abbr"): HTMLPhraseElement;
createElement(tagName: "acronym"): HTMLPhraseElement;
createElement(tagName: "address"): HTMLBlockElement;
createElement(tagName: "applet"): HTMLAppletElement;
createElement(tagName: "area"): HTMLAreaElement;
createElement(tagName: "article"): HTMLElement;
createElement(tagName: "aside"): HTMLElement;
createElement(tagName: "audio"): HTMLAudioElement;
createElement(tagName: "b"): HTMLPhraseElement;
createElement(tagName: "base"): HTMLBaseElement;
createElement(tagName: "basefont"): HTMLBaseFontElement;
createElement(tagName: "bdo"): HTMLPhraseElement;
createElement(tagName: "bgsound"): HTMLBGSoundElement;
createElement(tagName: "big"): HTMLPhraseElement;
createElement(tagName: "blockquote"): HTMLBlockElement;
createElement(tagName: "body"): HTMLBodyElement;
createElement(tagName: "br"): HTMLBRElement;
createElement(tagName: "button"): HTMLButtonElement;
createElement(tagName: "canvas"): HTMLCanvasElement;
createElement(tagName: "caption"): HTMLTableCaptionElement;
createElement(tagName: "center"): HTMLBlockElement;
createElement(tagName: "cite"): HTMLPhraseElement;
createElement(tagName: "code"): HTMLPhraseElement;
createElement(tagName: "col"): HTMLTableColElement;
createElement(tagName: "colgroup"): HTMLTableColElement;
createElement(tagName: "datalist"): HTMLDataListElement;
createElement(tagName: "dd"): HTMLDDElement;
createElement(tagName: "del"): HTMLModElement;
createElement(tagName: "dfn"): HTMLPhraseElement;
createElement(tagName: "dir"): HTMLDirectoryElement;
createElement(tagName: "div"): HTMLDivElement;
createElement(tagName: "dl"): HTMLDListElement;
createElement(tagName: "dt"): HTMLDTElement;
createElement(tagName: "em"): HTMLPhraseElement;
createElement(tagName: "embed"): HTMLEmbedElement;
createElement(tagName: "fieldset"): HTMLFieldSetElement;
createElement(tagName: "figcaption"): HTMLElement;
createElement(tagName: "figure"): HTMLElement;
createElement(tagName: "font"): HTMLFontElement;
createElement(tagName: "footer"): HTMLElement;
createElement(tagName: "form"): HTMLFormElement;
createElement(tagName: "frame"): HTMLFrameElement;
createElement(tagName: "frameset"): HTMLFrameSetElement;
createElement(tagName: "h1"): HTMLHeadingElement;
createElement(tagName: "h2"): HTMLHeadingElement;
createElement(tagName: "h3"): HTMLHeadingElement;
createElement(tagName: "h4"): HTMLHeadingElement;
createElement(tagName: "h5"): HTMLHeadingElement;
createElement(tagName: "h6"): HTMLHeadingElement;
createElement(tagName: "head"): HTMLHeadElement;
createElement(tagName: "header"): HTMLElement;
createElement(tagName: "hgroup"): HTMLElement;
createElement(tagName: "hr"): HTMLHRElement;
createElement(tagName: "html"): HTMLHtmlElement;
createElement(tagName: "i"): HTMLPhraseElement;
createElement(tagName: "iframe"): HTMLIFrameElement;
createElement(tagName: "img"): HTMLImageElement;
createElement(tagName: "input"): HTMLInputElement;
createElement(tagName: "ins"): HTMLModElement;
createElement(tagName: "isindex"): HTMLIsIndexElement;
createElement(tagName: "kbd"): HTMLPhraseElement;
createElement(tagName: "keygen"): HTMLBlockElement;
createElement(tagName: "label"): HTMLLabelElement;
createElement(tagName: "legend"): HTMLLegendElement;
createElement(tagName: "li"): HTMLLIElement;
createElement(tagName: "link"): HTMLLinkElement;
createElement(tagName: "listing"): HTMLBlockElement;
createElement(tagName: "map"): HTMLMapElement;
createElement(tagName: "mark"): HTMLElement;
createElement(tagName: "marquee"): HTMLMarqueeElement;
createElement(tagName: "menu"): HTMLMenuElement;
createElement(tagName: "meta"): HTMLMetaElement;
createElement(tagName: "nav"): HTMLElement;
createElement(tagName: "nextid"): HTMLNextIdElement;
createElement(tagName: "nobr"): HTMLPhraseElement;
createElement(tagName: "noframes"): HTMLElement;
createElement(tagName: "noscript"): HTMLElement;
createElement(tagName: "object"): HTMLObjectElement;
createElement(tagName: "ol"): HTMLOListElement;
createElement(tagName: "optgroup"): HTMLOptGroupElement;
createElement(tagName: "option"): HTMLOptionElement;
createElement(tagName: "p"): HTMLParagraphElement;
createElement(tagName: "param"): HTMLParamElement;
createElement(tagName: "plaintext"): HTMLBlockElement;
createElement(tagName: "pre"): HTMLPreElement;
createElement(tagName: "progress"): HTMLProgressElement;
createElement(tagName: "q"): HTMLQuoteElement;
createElement(tagName: "rt"): HTMLPhraseElement;
createElement(tagName: "ruby"): HTMLPhraseElement;
createElement(tagName: "s"): HTMLPhraseElement;
createElement(tagName: "samp"): HTMLPhraseElement;
createElement(tagName: "script"): HTMLScriptElement;
createElement(tagName: "section"): HTMLElement;
createElement(tagName: "select"): HTMLSelectElement;
createElement(tagName: "small"): HTMLPhraseElement;
createElement(tagName: "SOURCE"): HTMLSourceElement;
createElement(tagName: "span"): HTMLSpanElement;
createElement(tagName: "strike"): HTMLPhraseElement;
createElement(tagName: "strong"): HTMLPhraseElement;
createElement(tagName: "style"): HTMLStyleElement;
createElement(tagName: "sub"): HTMLPhraseElement;
createElement(tagName: "sup"): HTMLPhraseElement;
createElement(tagName: "table"): HTMLTableElement;
createElement(tagName: "tbody"): HTMLTableSectionElement;
createElement(tagName: "td"): HTMLTableDataCellElement;
createElement(tagName: "textarea"): HTMLTextAreaElement;
createElement(tagName: "tfoot"): HTMLTableSectionElement;
createElement(tagName: "th"): HTMLTableHeaderCellElement;
createElement(tagName: "thead"): HTMLTableSectionElement;
createElement(tagName: "title"): HTMLTitleElement;
createElement(tagName: "tr"): HTMLTableRowElement;
createElement(tagName: "track"): HTMLTrackElement;
createElement(tagName: "tt"): HTMLPhraseElement;
createElement(tagName: "u"): HTMLPhraseElement;
createElement(tagName: "ul"): HTMLUListElement;
createElement(tagName: "var"): HTMLPhraseElement;
createElement(tagName: "video"): HTMLVideoElement;
createElement(tagName: "wbr"): HTMLElement;
createElement(tagName: "x-ms-webview"): MSHTMLWebViewElement;
createElement(tagName: "xmp"): HTMLBlockElement;
createElement(tagName: string): HTMLElement;
/**
* Removes mouse capture from the object in the current document.
*/
releaseCapture(): void;
/**
* Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window.
* @param content The text and HTML tags to write.
*/
writeln(...content: string[]): void;
createElementNS(namespaceURI: string, qualifiedName: string): Element;
/**
* 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.
* @param url Specifies a MIME type for the document.
* @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.
* @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.
* @param replace Specifies whether the existing entry for the document is replaced in the history list.
*/
open(url?: string, name?: string, features?: string, replace?: boolean): any;
/**
* Returns a Boolean value that indicates whether the current command is supported on the current range.
* @param commandId Specifies a command identifier.
*/
queryCommandSupported(commandId: string): boolean;
/**
* Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document.
* @param root The root element or node to start traversing on.
* @param whatToShow The type of nodes or elements to appear in the node list. For more information, see whatToShow.
* @param filter A custom NodeFilter function to use.
* @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded.
*/
createTreeWalker(root: Node, whatToShow: number, filter: NodeFilter, entityReferenceExpansion: boolean): TreeWalker;
createAttributeNS(namespaceURI: string, qualifiedName: string): Attr;
/**
* Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document.
* @param commandId Specifies a command identifier.
*/
queryCommandEnabled(commandId: string): boolean;
/**
* Causes the element to receive the focus and executes the code specified by the onfocus event.
*/
focus(): void;
/**
* Closes an output stream and forces the sent data to display.
*/
close(): void;
getElementsByClassName(classNames: string): NodeList;
importNode(importedNode: Node, deep: boolean): Node;
/**
* Returns an empty range object that has both of its boundary points positioned at the beginning of the document.
*/
createRange(): Range;
/**
* Fires a specified event on the object.
* @param eventName Specifies the name of the event to fire.
* @param eventObj Object that specifies the event object from which to obtain event object properties.
*/
fireEvent(eventName: string, eventObj?: any): boolean;
/**
* Creates a comment object with the specified data.
* @param data Sets the comment object's data.
*/
createComment(data: string): Comment;
/**
* Retrieves a collection of objects based on the specified element name.
* @param name Specifies the name of an element.
*/
getElementsByTagName(name: "a"): NodeListOf;
getElementsByTagName(name: "abbr"): NodeListOf;
getElementsByTagName(name: "acronym"): NodeListOf;
getElementsByTagName(name: "address"): NodeListOf;
getElementsByTagName(name: "applet"): NodeListOf;
getElementsByTagName(name: "area"): NodeListOf;
getElementsByTagName(name: "article"): NodeListOf;
getElementsByTagName(name: "aside"): NodeListOf;
getElementsByTagName(name: "audio"): NodeListOf;
getElementsByTagName(name: "b"): NodeListOf;
getElementsByTagName(name: "base"): NodeListOf;
getElementsByTagName(name: "basefont"): NodeListOf;
getElementsByTagName(name: "bdo"): NodeListOf;
getElementsByTagName(name: "bgsound"): NodeListOf;
getElementsByTagName(name: "big"): NodeListOf;
getElementsByTagName(name: "blockquote"): NodeListOf;
getElementsByTagName(name: "body"): NodeListOf;
getElementsByTagName(name: "br"): NodeListOf;
getElementsByTagName(name: "button"): NodeListOf;
getElementsByTagName(name: "canvas"): NodeListOf;
getElementsByTagName(name: "caption"): NodeListOf;
getElementsByTagName(name: "center"): NodeListOf;
getElementsByTagName(name: "cite"): NodeListOf;
getElementsByTagName(name: "code"): NodeListOf;
getElementsByTagName(name: "col"): NodeListOf;
getElementsByTagName(name: "colgroup"): NodeListOf;
getElementsByTagName(name: "datalist"): NodeListOf;
getElementsByTagName(name: "dd"): NodeListOf;
getElementsByTagName(name: "del"): NodeListOf;
getElementsByTagName(name: "dfn"): NodeListOf;
getElementsByTagName(name: "dir"): NodeListOf;
getElementsByTagName(name: "div"): NodeListOf;
getElementsByTagName(name: "dl"): NodeListOf;
getElementsByTagName(name: "dt"): NodeListOf;
getElementsByTagName(name: "em"): NodeListOf;
getElementsByTagName(name: "embed"): NodeListOf;
getElementsByTagName(name: "fieldset"): NodeListOf;
getElementsByTagName(name: "figcaption"): NodeListOf;
getElementsByTagName(name: "figure"): NodeListOf;
getElementsByTagName(name: "font"): NodeListOf;
getElementsByTagName(name: "footer"): NodeListOf;
getElementsByTagName(name: "form"): NodeListOf;
getElementsByTagName(name: "frame"): NodeListOf;
getElementsByTagName(name: "frameset"): NodeListOf;
getElementsByTagName(name: "h1"): NodeListOf;
getElementsByTagName(name: "h2"): NodeListOf;
getElementsByTagName(name: "h3"): NodeListOf;
getElementsByTagName(name: "h4"): NodeListOf;
getElementsByTagName(name: "h5"): NodeListOf;
getElementsByTagName(name: "h6"): NodeListOf;
getElementsByTagName(name: "head"): NodeListOf;
getElementsByTagName(name: "header"): NodeListOf;
getElementsByTagName(name: "hgroup"): NodeListOf;
getElementsByTagName(name: "hr"): NodeListOf;
getElementsByTagName(name: "html"): NodeListOf;
getElementsByTagName(name: "i"): NodeListOf;
getElementsByTagName(name: "iframe"): NodeListOf;
getElementsByTagName(name: "img"): NodeListOf;
getElementsByTagName(name: "input"): NodeListOf;
getElementsByTagName(name: "ins"): NodeListOf;
getElementsByTagName(name: "isindex"): NodeListOf;
getElementsByTagName(name: "kbd"): NodeListOf;
getElementsByTagName(name: "keygen"): NodeListOf;
getElementsByTagName(name: "label"): NodeListOf;
getElementsByTagName(name: "legend"): NodeListOf;
getElementsByTagName(name: "li"): NodeListOf;
getElementsByTagName(name: "link"): NodeListOf;
getElementsByTagName(name: "listing"): NodeListOf;
getElementsByTagName(name: "map"): NodeListOf;
getElementsByTagName(name: "mark"): NodeListOf;
getElementsByTagName(name: "marquee"): NodeListOf;
getElementsByTagName(name: "menu"): NodeListOf;
getElementsByTagName(name: "meta"): NodeListOf;
getElementsByTagName(name: "nav"): NodeListOf;
getElementsByTagName(name: "nextid"): NodeListOf;
getElementsByTagName(name: "nobr"): NodeListOf;
getElementsByTagName(name: "noframes"): NodeListOf;
getElementsByTagName(name: "noscript"): NodeListOf;
getElementsByTagName(name: "object"): NodeListOf;
getElementsByTagName(name: "ol"): NodeListOf;
getElementsByTagName(name: "optgroup"): NodeListOf;
getElementsByTagName(name: "option"): NodeListOf;
getElementsByTagName(name: "p"): NodeListOf;
getElementsByTagName(name: "param"): NodeListOf;
getElementsByTagName(name: "plaintext"): NodeListOf;
getElementsByTagName(name: "pre"): NodeListOf;
getElementsByTagName(name: "progress"): NodeListOf;
getElementsByTagName(name: "q"): NodeListOf;
getElementsByTagName(name: "rt"): NodeListOf;
getElementsByTagName(name: "ruby"): NodeListOf;
getElementsByTagName(name: "s"): NodeListOf;
getElementsByTagName(name: "samp"): NodeListOf;
getElementsByTagName(name: "script"): NodeListOf;
getElementsByTagName(name: "section"): NodeListOf;
getElementsByTagName(name: "select"): NodeListOf;
getElementsByTagName(name: "small"): NodeListOf;
getElementsByTagName(name: "SOURCE"): NodeListOf;
getElementsByTagName(name: "span"): NodeListOf;
getElementsByTagName(name: "strike"): NodeListOf;
getElementsByTagName(name: "strong"): NodeListOf;
getElementsByTagName(name: "style"): NodeListOf;
getElementsByTagName(name: "sub"): NodeListOf;
getElementsByTagName(name: "sup"): NodeListOf;
getElementsByTagName(name: "table"): NodeListOf;
getElementsByTagName(name: "tbody"): NodeListOf;
getElementsByTagName(name: "td"): NodeListOf;
getElementsByTagName(name: "textarea"): NodeListOf;
getElementsByTagName(name: "tfoot"): NodeListOf;
getElementsByTagName(name: "th"): NodeListOf;
getElementsByTagName(name: "thead"): NodeListOf;
getElementsByTagName(name: "title"): NodeListOf;
getElementsByTagName(name: "tr"): NodeListOf;
getElementsByTagName(name: "track"): NodeListOf;
getElementsByTagName(name: "tt"): NodeListOf;
getElementsByTagName(name: "u"): NodeListOf;
getElementsByTagName(name: "ul"): NodeListOf;
getElementsByTagName(name: "var"): NodeListOf;
getElementsByTagName(name: "video"): NodeListOf;
getElementsByTagName(name: "wbr"): NodeListOf;
getElementsByTagName(name: "x-ms-webview"): NodeListOf;
getElementsByTagName(name: "xmp"): NodeListOf;
getElementsByTagName(name: string): NodeList;
/**
* Creates a new document.
*/
createDocumentFragment(): DocumentFragment;
/**
* Creates a style sheet for the document.
* @param href Specifies how to add the style sheet to the document. If a file name is specified for the URL, the style information is added as a link object. If the URL contains style information, it is added to the style object.
* @param index Specifies the index that indicates where the new style sheet is inserted in the styleSheets collection. The default is to insert the new style sheet at the end of the collection.
*/
createStyleSheet(href?: string, index?: number): CSSStyleSheet;
/**
* Gets a collection of objects based on the value of the NAME or ID attribute.
* @param elementName Gets a collection of objects based on the value of the NAME or ID attribute.
*/
getElementsByName(elementName: string): NodeList;
/**
* Returns a Boolean value that indicates the current state of the command.
* @param commandId String that specifies a command identifier.
*/
queryCommandState(commandId: string): boolean;
/**
* Gets a value indicating whether the object currently has focus.
*/
hasFocus(): boolean;
/**
* Displays help information for the given command identifier.
* @param commandId Displays help information for the given command identifier.
*/
execCommandShowHelp(commandId: string): boolean;
/**
* Creates an attribute object with a specified name.
* @param name String that sets the attribute object's name.
*/
createAttribute(name: string): Attr;
/**
* Creates a text string from the specified value.
* @param data String that specifies the nodeValue property of the text node.
*/
createTextNode(data: string): Text;
/**
* Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.
* @param root The root element or node to start traversing on.
* @param whatToShow The type of nodes or elements to appear in the node list
* @param filter A custom NodeFilter function to use. For more information, see filter. Use null for no filter.
* @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded.
*/
createNodeIterator(root: Node, whatToShow: number, filter: NodeFilter, entityReferenceExpansion: boolean): NodeIterator;
/**
* Generates an event object to pass event context information when you use the fireEvent method.
* @param eventObj An object that specifies an existing event object on which to base the new object.
*/
createEventObject(eventObj?: any): MSEventObj;
/**
* Returns an object representing the current selection of the document that is loaded into the object displaying a webpage.
*/
getSelection(): Selection;
msElementsFromPoint(x: number, y: number): NodeList;
msElementsFromRect(left: number, top: number, width: number, height: number): NodeList;
clear(): void;
msExitFullscreen(): void;
addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "help", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
addEventListener(type: "focusin", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "datasetchanged", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
addEventListener(type: "rowsdelete", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "controlselect", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "beforeupdate", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
addEventListener(type: "datasetcomplete", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "errorupdate", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
addEventListener(type: "msthumbnailclick", listener: (ev: MSSiteModeEvent) => any, useCapture?: boolean): void;
addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void;
addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "cellchange", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
addEventListener(type: "rowexit", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
addEventListener(type: "rowsinserted", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
addEventListener(type: "propertychange", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "stop", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "mssitemodejumplistitemremoved", listener: (ev: MSSiteModeEvent) => any, useCapture?: boolean): void;
addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
addEventListener(type: "beforeeditfocus", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
addEventListener(type: "contextmenu", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "afterupdate", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
addEventListener(type: "focusout", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
addEventListener(type: "selectionchange", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "storagecommit", listener: (ev: StorageEvent) => any, useCapture?: boolean): void;
addEventListener(type: "dataavailable", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
addEventListener(type: "readystatechange", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
addEventListener(type: "rowenter", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "mspointerdown", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "msgesturedoubletap", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "msmanipulationstatechanged", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "mspointerhover", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "mscontentzoom", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
addEventListener(type: "mspointermove", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "msgesturehold", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "msgesturechange", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "msgesturestart", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "mspointercancel", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "msgestureend", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "msgesturetap", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "mspointerout", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "msinertiastart", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "mspointerover", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "mspointerup", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "msfullscreenerror", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "mspointerenter", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "msfullscreenchange", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "mspointerleave", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
}
declare var Document: {
prototype: Document;
new(): Document;
}
interface Console {
info(message?: any, ...optionalParams: any[]): void;
warn(message?: any, ...optionalParams: any[]): void;
error(message?: any, ...optionalParams: any[]): void;
log(message?: any, ...optionalParams: any[]): void;
profile(reportName?: string): void;
assert(test?: boolean, message?: string, ...optionalParams: any[]): void;
msIsIndependentlyComposed(element: Element): boolean;
clear(): void;
dir(value?: any, ...optionalParams: any[]): void;
profileEnd(): void;
count(countTitle?: string): void;
groupEnd(): void;
time(timerName?: string): void;
timeEnd(timerName?: string): void;
trace(): void;
group(groupTitle?: string): void;
dirxml(value: any): void;
debug(message?: string, ...optionalParams: any[]): void;
groupCollapsed(groupTitle?: string): void;
select(element: Element): void;
}
declare var Console: {
prototype: Console;
new(): Console;
}
interface MSEventObj extends Event {
nextPage: string;
keyCode: number;
toElement: Element;
returnValue: any;
dataFld: string;
y: number;
dataTransfer: DataTransfer;
propertyName: string;
url: string;
offsetX: number;
recordset: any;
screenX: number;
buttonID: number;
wheelDelta: number;
reason: number;
origin: string;
data: string;
srcFilter: any;
boundElements: HTMLCollection;
cancelBubble: boolean;
altLeft: boolean;
behaviorCookie: number;
bookmarks: BookmarkCollection;
type: string;
repeat: boolean;
srcElement: Element;
source: Window;
fromElement: Element;
offsetY: number;
x: number;
behaviorPart: number;
qualifier: string;
altKey: boolean;
ctrlKey: boolean;
clientY: number;
shiftKey: boolean;
shiftLeft: boolean;
contentOverflow: boolean;
screenY: number;
ctrlLeft: boolean;
button: number;
srcUrn: string;
clientX: number;
actionURL: string;
getAttribute(strAttributeName: string, lFlags?: number): any;
setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void;
removeAttribute(strAttributeName: string, lFlags?: number): boolean;
}
declare var MSEventObj: {
prototype: MSEventObj;
new(): MSEventObj;
}
interface HTMLCanvasElement extends HTMLElement {
/**
* Gets or sets the width of a canvas element on a document.
*/
width: number;
/**
* Gets or sets the height of a canvas element on a document.
*/
height: number;
/**
* 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.
* @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");
*/
getContext(contextId: "2d"): CanvasRenderingContext2D;
/**
* 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.
* @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");
*/
getContext(contextId: "experimental-webgl"): WebGLRenderingContext;
/**
* 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.
* @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");
*/
getContext(contextId: string, ...args: any[]): any;
/**
* Returns the content of the current canvas as an image that you can use as a source for another canvas or an HTML element.
* @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.
*/
toDataURL(type?: string, ...args: any[]): string;
/**
* Returns a blob object encoded as a Portable Network Graphics (PNG) format from a canvas image or drawing.
*/
msToBlob(): Blob;
}
declare var HTMLCanvasElement: {
prototype: HTMLCanvasElement;
new(): HTMLCanvasElement;
}
interface Window extends EventTarget, MSEventAttachmentTarget, WindowLocalStorage, MSWindowExtensions, WindowSessionStorage, WindowTimers, WindowBase64, IDBEnvironment, WindowConsole, GlobalEventHandlers {
ondragend: (ev: DragEvent) => any;
onkeydown: (ev: KeyboardEvent) => any;
ondragover: (ev: DragEvent) => any;
onkeyup: (ev: KeyboardEvent) => any;
onreset: (ev: Event) => any;
onmouseup: (ev: MouseEvent) => any;
ondragstart: (ev: DragEvent) => any;
ondrag: (ev: DragEvent) => any;
screenX: number;
onmouseover: (ev: MouseEvent) => any;
ondragleave: (ev: DragEvent) => any;
history: History;
pageXOffset: number;
name: string;
onafterprint: (ev: Event) => any;
onpause: (ev: Event) => any;
onbeforeprint: (ev: Event) => any;
top: Window;
onmousedown: (ev: MouseEvent) => any;
onseeked: (ev: Event) => any;
opener: Window;
onclick: (ev: MouseEvent) => any;
innerHeight: number;
onwaiting: (ev: Event) => any;
ononline: (ev: Event) => any;
ondurationchange: (ev: Event) => any;
frames: Window;
onblur: (ev: FocusEvent) => any;
onemptied: (ev: Event) => any;
onseeking: (ev: Event) => any;
oncanplay: (ev: Event) => any;
outerWidth: number;
onstalled: (ev: Event) => any;
onmousemove: (ev: MouseEvent) => any;
innerWidth: number;
onoffline: (ev: Event) => any;
length: number;
screen: Screen;
onbeforeunload: (ev: BeforeUnloadEvent) => any;
onratechange: (ev: Event) => any;
onstorage: (ev: StorageEvent) => any;
onloadstart: (ev: Event) => any;
ondragenter: (ev: DragEvent) => any;
onsubmit: (ev: Event) => any;
self: Window;
document: Document;
onprogress: (ev: ProgressEvent) => any;
ondblclick: (ev: MouseEvent) => any;
pageYOffset: number;
oncontextmenu: (ev: MouseEvent) => any;
onchange: (ev: Event) => any;
onloadedmetadata: (ev: Event) => any;
onplay: (ev: Event) => any;
onerror: ErrorEventHandler;
onplaying: (ev: Event) => any;
parent: Window;
location: Location;
oncanplaythrough: (ev: Event) => any;
onabort: (ev: UIEvent) => any;
onreadystatechange: (ev: Event) => any;
outerHeight: number;
onkeypress: (ev: KeyboardEvent) => any;
frameElement: Element;
onloadeddata: (ev: Event) => any;
onsuspend: (ev: Event) => any;
window: Window;
onfocus: (ev: FocusEvent) => any;
onmessage: (ev: MessageEvent) => any;
ontimeupdate: (ev: Event) => any;
onresize: (ev: UIEvent) => any;
onselect: (ev: UIEvent) => any;
navigator: Navigator;
styleMedia: StyleMedia;
ondrop: (ev: DragEvent) => any;
onmouseout: (ev: MouseEvent) => any;
onended: (ev: Event) => any;
onhashchange: (ev: Event) => any;
onunload: (ev: Event) => any;
onscroll: (ev: UIEvent) => any;
screenY: number;
onmousewheel: (ev: MouseWheelEvent) => any;
onload: (ev: Event) => any;
onvolumechange: (ev: Event) => any;
oninput: (ev: Event) => any;
performance: Performance;
onmspointerdown: (ev: any) => any;
animationStartTime: number;
onmsgesturedoubletap: (ev: any) => any;
onmspointerhover: (ev: any) => any;
onmsgesturehold: (ev: any) => any;
onmspointermove: (ev: any) => any;
onmsgesturechange: (ev: any) => any;
onmsgesturestart: (ev: any) => any;
onmspointercancel: (ev: any) => any;
onmsgestureend: (ev: any) => any;
onmsgesturetap: (ev: any) => any;
onmspointerout: (ev: any) => any;
msAnimationStartTime: number;
applicationCache: ApplicationCache;
onmsinertiastart: (ev: any) => any;
onmspointerover: (ev: any) => any;
onpopstate: (ev: PopStateEvent) => any;
onmspointerup: (ev: any) => any;
onpageshow: (ev: PageTransitionEvent) => any;
ondevicemotion: (ev: DeviceMotionEvent) => any;
devicePixelRatio: number;
msCrypto: Crypto;
ondeviceorientation: (ev: DeviceOrientationEvent) => any;
doNotTrack: string;
onmspointerenter: (ev: any) => any;
onpagehide: (ev: PageTransitionEvent) => any;
onmspointerleave: (ev: any) => any;
alert(message?: any): void;
scroll(x?: number, y?: number): void;
focus(): void;
scrollTo(x?: number, y?: number): void;
print(): void;
prompt(message?: string, _default?: string): string;
toString(): string;
open(url?: string, target?: string, features?: string, replace?: boolean): Window;
scrollBy(x?: number, y?: number): void;
confirm(message?: string): boolean;
close(): void;
postMessage(message: any, targetOrigin: string, ports?: any): void;
showModalDialog(url?: string, argument?: any, options?: any): any;
blur(): void;
getSelection(): Selection;
getComputedStyle(elt: Element, pseudoElt?: string): CSSStyleDeclaration;
msCancelRequestAnimationFrame(handle: number): void;
matchMedia(mediaQuery: string): MediaQueryList;
cancelAnimationFrame(handle: number): void;
msIsStaticHTML(html: string): boolean;
msMatchMedia(mediaQuery: string): MediaQueryList;
requestAnimationFrame(callback: FrameRequestCallback): number;
msRequestAnimationFrame(callback: FrameRequestCallback): number;
addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
addEventListener(type: "help", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "focusout", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
addEventListener(type: "focusin", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void;
addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
addEventListener(type: "afterprint", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "beforeprint", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "online", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
addEventListener(type: "offline", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "beforeunload", listener: (ev: BeforeUnloadEvent) => any, useCapture?: boolean): void;
addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "storage", listener: (ev: StorageEvent) => any, useCapture?: boolean): void;
addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
addEventListener(type: "contextmenu", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
addEventListener(type: "readystatechange", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
addEventListener(type: "message", listener: (ev: MessageEvent) => any, useCapture?: boolean): void;
addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "resize", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "hashchange", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "unload", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void;
addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void;
addEventListener(type: "mspointerdown", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "msgesturedoubletap", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "mspointerhover", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "msgesturehold", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "mspointermove", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "msgesturechange", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "msgesturestart", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "mspointercancel", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "msgestureend", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "msgesturetap", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "mspointerout", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "msinertiastart", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "mspointerover", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "popstate", listener: (ev: PopStateEvent) => any, useCapture?: boolean): void;
addEventListener(type: "mspointerup", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "pageshow", listener: (ev: PageTransitionEvent) => any, useCapture?: boolean): void;
addEventListener(type: "devicemotion", listener: (ev: DeviceMotionEvent) => any, useCapture?: boolean): void;
addEventListener(type: "deviceorientation", listener: (ev: DeviceOrientationEvent) => any, useCapture?: boolean): void;
addEventListener(type: "mspointerenter", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: "pagehide", listener: (ev: PageTransitionEvent) => any, useCapture?: boolean): void;
addEventListener(type: "mspointerleave", listener: (ev: any) => any, useCapture?: boolean): void;
addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
}
declare var Window: {
prototype: Window;
new(): Window;
}
interface HTMLCollection extends MSHTMLCollectionExtensions {
/**
* Sets or retrieves the number of objects in a collection.
*/
length: number;
/**
* Retrieves an object from various collections.
*/
item(nameOrIndex?: any, optionalIndex?: any): Element;
/**
* Retrieves a select object or an object from an options collection.
*/
namedItem(name: string): Element;
// [name: string]: Element;
[index: number]: Element;
}
declare var HTMLCollection: {
prototype: HTMLCollection;
new(): HTMLCollection;
}
interface BlobPropertyBag {
type?: string;
endings?: string;
}
interface Blob {
type: string;
size: number;
msDetachStream(): any;
slice(start?: number, end?: number, contentType?: string): Blob;
msClose(): void;
}
declare var Blob: {
prototype: Blob;
new (blobParts?: any[], options?: BlobPropertyBag): Blob;
}
interface NavigatorID {
appVersion: string;
appName: string;
userAgent: string;
platform: string;
product: string;
vendor: string;
}
interface HTMLTableElement extends HTMLElement, MSDataBindingTableExtensions, MSDataBindingExtensions, DOML2DeprecatedBackgroundStyle, DOML2DeprecatedBackgroundColorStyle {
/**
* Sets or retrieves the width of the object.
*/
width: string;
/**
* Sets or retrieves the color for one of the two colors used to draw the 3-D border of the object.
*/
borderColorLight: any;
/**
* Sets or retrieves the amount of space between cells in a table.
*/
cellSpacing: string;
/**
* Retrieves the tFoot object of the table.
*/
tFoot: HTMLTableSectionElement;
/**
* Sets or retrieves the way the border frame around the table is displayed.
*/
frame: string;
/**
* Sets or retrieves the border color of the object.
*/
borderColor: any;
/**
* Sets or retrieves the number of horizontal rows contained in the object.
*/
rows: HTMLCollection;
/**
* Sets or retrieves which dividing lines (inner borders) are displayed.
*/
rules: string;
/**
* Sets or retrieves the number of columns in the table.
*/
cols: number;
/**
* Sets or retrieves a description and/or structure of the object.
*/
summary: string;
/**
* Retrieves the caption object of a table.
*/
caption: HTMLTableCaptionElement;
/**
* Retrieves a collection of all tBody objects in the table. Objects in this collection are in source order.
*/
tBodies: HTMLCollection;
/**
* Retrieves the tHead object of the table.
*/
tHead: HTMLTableSectionElement;
/**
* Sets or retrieves a value that indicates the table alignment.
*/
align: string;
/**
* Retrieves a collection of all cells in the table row or in the entire table.
*/
cells: HTMLCollection;
/**
* Sets or retrieves the height of the object.
*/
height: any;
/**
* Sets or retrieves the amount of space between the border of the cell and the content of the cell.
*/
cellPadding: string;
/**
* Sets or retrieves the width of the border to draw around the object.
*/
border: string;
/**
* Sets or retrieves the color for one of the two colors used to draw the 3-D border of the object.
*/
borderColorDark: any;
/**
* Removes the specified row (tr) from the element and from the rows collection.
* @param index Number that specifies the zero-based position in the rows collection of the row to remove.
*/
deleteRow(index?: number): void;
/**
* Creates an empty tBody element in the table.
*/
createTBody(): HTMLElement;
/**
* Deletes the caption element and its contents from the table.
*/
deleteCaption(): void;
/**
* Creates a new row (tr) in the table, and adds the row to the rows collection.
* @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.
*/
insertRow(index?: number): HTMLElement;
/**
* Deletes the tFoot element and its contents from the table.
*/
deleteTFoot(): void;
/**
* Returns the tHead element object if successful, or null otherwise.
*/
createTHead(): HTMLElement;
/**
* Deletes the tHead element and its contents from the table.
*/
deleteTHead(): void;
/**
* Creates an empty caption element in the table.
*/
createCaption(): HTMLElement;
/**
* Moves a table row to a new position.
* @param indexFrom Number that specifies the index in the rows collection of the table row that is moved.
* @param indexTo Number that specifies where the row is moved within the rows collection.
*/
moveRow(indexFrom?: number, indexTo?: number): any;
/**
* Creates an empty tFoot element in the table.
*/
createTFoot(): HTMLElement;
}
declare var HTMLTableElement: {
prototype: HTMLTableElement;
new(): HTMLTableElement;
}
interface TreeWalker {
whatToShow: number;
filter: NodeFilter;
root: Node;
currentNode: Node;
expandEntityReferences: boolean;
previousSibling(): Node;
lastChild(): Node;
nextSibling(): Node;
nextNode(): Node;
parentNode(): Node;
firstChild(): Node;
previousNode(): Node;
}
declare var TreeWalker: {
prototype: TreeWalker;
new(): TreeWalker;
}
interface GetSVGDocument {
getSVGDocument(): Document;
}
interface SVGPathSegCurvetoQuadraticRel extends SVGPathSeg {
y: number;
y1: number;
x: number;
x1: number;
}
declare var SVGPathSegCurvetoQuadraticRel: {
prototype: SVGPathSegCurvetoQuadraticRel;
new(): SVGPathSegCurvetoQuadraticRel;
}
interface Performance {
navigation: PerformanceNavigation;
timing: PerformanceTiming;
getEntriesByType(entryType: string): any;
toJSON(): any;
getMeasures(measureName?: string): any;
clearMarks(markName?: string): void;
getMarks(markName?: string): any;
clearResourceTimings(): void;
mark(markName: string): void;
measure(measureName: string, startMarkName?: string, endMarkName?: string): void;
getEntriesByName(name: string, entryType?: string): any;
getEntries(): any;
clearMeasures(measureName?: string): void;
setResourceTimingBufferSize(maxSize: number): void;
now(): number;
}
declare var Performance: {
prototype: Performance;
new(): Performance;
}
interface MSDataBindingTableExtensions {
dataPageSize: number;
nextPage(): void;
firstPage(): void;
refresh(): void;
previousPage(): void;
lastPage(): void;
}
interface CompositionEvent extends UIEvent {
data: string;
locale: string;
initCompositionEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, dataArg: string, locale: string): void;
}
declare var CompositionEvent: {
prototype: CompositionEvent;
new(): CompositionEvent;
}
interface WindowTimers extends WindowTimersExtension {
clearTimeout(handle: number): void;
setTimeout(handler: any, timeout?: any, ...args: any[]): number;
clearInterval(handle: number): void;
setInterval(handler: any, timeout?: any, ...args: any[]): number;
}
interface SVGMarkerElement extends SVGElement, SVGStylable, SVGLangSpace, SVGFitToViewBox, SVGExternalResourcesRequired {
orientType: SVGAnimatedEnumeration;
markerUnits: SVGAnimatedEnumeration;
markerWidth: SVGAnimatedLength;
markerHeight: SVGAnimatedLength;
orientAngle: SVGAnimatedAngle;
refY: SVGAnimatedLength;
refX: SVGAnimatedLength;
setOrientToAngle(angle: SVGAngle): void;
setOrientToAuto(): void;
SVG_MARKER_ORIENT_UNKNOWN: number;
SVG_MARKER_ORIENT_ANGLE: number;
SVG_MARKERUNITS_UNKNOWN: number;
SVG_MARKERUNITS_STROKEWIDTH: number;
SVG_MARKER_ORIENT_AUTO: number;
SVG_MARKERUNITS_USERSPACEONUSE: number;
}
declare var SVGMarkerElement: {
prototype: SVGMarkerElement;
new(): SVGMarkerElement;
SVG_MARKER_ORIENT_UNKNOWN: number;
SVG_MARKER_ORIENT_ANGLE: number;
SVG_MARKERUNITS_UNKNOWN: number;
SVG_MARKERUNITS_STROKEWIDTH: number;
SVG_MARKER_ORIENT_AUTO: number;
SVG_MARKERUNITS_USERSPACEONUSE: number;
}
interface CSSStyleDeclaration {
backgroundAttachment: string;
visibility: string;
textAlignLast: string;
borderRightStyle: string;
counterIncrement: string;
orphans: string;
cssText: string;
borderStyle: string;
pointerEvents: string;
borderTopColor: string;
markerEnd: string;
textIndent: string;
listStyleImage: string;
cursor: string;
listStylePosition: string;
wordWrap: string;
borderTopStyle: string;
alignmentBaseline: string;
opacity: string;
direction: string;
strokeMiterlimit: string;
maxWidth: string;
color: string;
clip: string;
borderRightWidth: string;
verticalAlign: string;
overflow: string;
mask: string;
borderLeftStyle: string;
emptyCells: string;
stopOpacity: string;
paddingRight: string;
parentRule: CSSRule;
background: string;
boxSizing: string;
textJustify: string;
height: string;
paddingTop: string;
length: number;
right: string;
baselineShift: string;
borderLeft: string;
widows: string;
lineHeight: string;
left: string;
textUnderlinePosition: string;
glyphOrientationHorizontal: string;
display: string;
textAnchor: string;
cssFloat: string;
strokeDasharray: string;
rubyAlign: string;
fontSizeAdjust: string;
borderLeftColor: string;
backgroundImage: string;
listStyleType: string;
strokeWidth: string;
textOverflow: string;
fillRule: string;
borderBottomColor: string;
zIndex: string;
position: string;
listStyle: string;
msTransformOrigin: string;
dominantBaseline: string;
overflowY: string;
fill: string;
captionSide: string;
borderCollapse: string;
boxShadow: string;
quotes: string;
tableLayout: string;
unicodeBidi: string;
borderBottomWidth: string;
backgroundSize: string;
textDecoration: string;
strokeDashoffset: string;
fontSize: string;
border: string;
pageBreakBefore: string;
borderTopRightRadius: string;
msTransform: string;
borderBottomLeftRadius: string;
textTransform: string;
rubyPosition: string;
strokeLinejoin: string;
clipPath: string;
borderRightColor: string;
fontFamily: string;
clear: string;
content: string;
backgroundClip: string;
marginBottom: string;
counterReset: string;
outlineWidth: string;
marginRight: string;
paddingLeft: string;
borderBottom: string;
wordBreak: string;
marginTop: string;
top: string;
fontWeight: string;
borderRight: string;
width: string;
kerning: string;
pageBreakAfter: string;
borderBottomStyle: string;
fontStretch: string;
padding: string;
strokeOpacity: string;
markerStart: string;
bottom: string;
borderLeftWidth: string;
clipRule: string;
backgroundPosition: string;
backgroundColor: string;
pageBreakInside: string;
backgroundOrigin: string;
strokeLinecap: string;
borderTopWidth: string;
outlineStyle: string;
borderTop: string;
outlineColor: string;
paddingBottom: string;
marginLeft: string;
font: string;
outline: string;
wordSpacing: string;
maxHeight: string;
fillOpacity: string;
letterSpacing: string;
borderSpacing: string;
backgroundRepeat: string;
borderRadius: string;
borderWidth: string;
borderBottomRightRadius: string;
whiteSpace: string;
fontStyle: string;
minWidth: string;
stopColor: string;
borderTopLeftRadius: string;
borderColor: string;
marker: string;
glyphOrientationVertical: string;
markerMid: string;
fontVariant: string;
minHeight: string;
stroke: string;
rubyOverhang: string;
overflowX: string;
textAlign: string;
margin: string;
animationFillMode: string;
floodColor: string;
animationIterationCount: string;
textShadow: string;
backfaceVisibility: string;
msAnimationIterationCount: string;
animationDelay: string;
animationTimingFunction: string;
columnWidth: any;
msScrollSnapX: string;
columnRuleColor: any;
columnRuleWidth: any;
transitionDelay: string;
transition: string;
msFlowFrom: string;
msScrollSnapType: string;
msContentZoomSnapType: string;
msGridColumns: string;
msAnimationName: string;
msGridRowAlign: string;
msContentZoomChaining: string;
msGridColumn: any;
msHyphenateLimitZone: any;
msScrollRails: string;
msAnimationDelay: string;
enableBackground: string;
msWrapThrough: string;
columnRuleStyle: string;
msAnimation: string;
msFlexFlow: string;
msScrollSnapY: string;
msHyphenateLimitLines: any;
msTouchAction: string;
msScrollLimit: string;
animation: string;
transform: string;
filter: string;
colorInterpolationFilters: string;
transitionTimingFunction: string;
msBackfaceVisibility: string;
animationPlayState: string;
transformOrigin: string;
msScrollLimitYMin: any;
msFontFeatureSettings: string;
msContentZoomLimitMin: any;
columnGap: any;
transitionProperty: string;
msAnimationDuration: string;
msAnimationFillMode: string;
msFlexDirection: string;
msTransitionDuration: string;
fontFeatureSettings: string;
breakBefore: string;
msFlexWrap: string;
perspective: string;
msFlowInto: string;
msTransformStyle: string;
msScrollTranslation: string;
msTransitionProperty: string;
msUserSelect: string;
msOverflowStyle: string;
msScrollSnapPointsY: string;
animationDirection: string;
animationDuration: string;
msFlex: string;
msTransitionTimingFunction: string;
animationName: string;
columnRule: string;
msGridColumnSpan: any;
msFlexNegative: string;
columnFill: string;
msGridRow: any;
msFlexOrder: string;
msFlexItemAlign: string;
msFlexPositive: string;
msContentZoomLimitMax: any;
msScrollLimitYMax: any;
msGridColumnAlign: string;
perspectiveOrigin: string;
lightingColor: string;
columns: string;
msScrollChaining: string;
msHyphenateLimitChars: string;
msTouchSelect: string;
floodOpacity: string;
msAnimationDirection: string;
msAnimationPlayState: string;
columnSpan: string;
msContentZooming: string;
msPerspective: string;
msFlexPack: string;
msScrollSnapPointsX: string;
msContentZoomSnapPoints: string;
msGridRowSpan: any;
msContentZoomSnap: string;
msScrollLimitXMin: any;
breakInside: string;
msHighContrastAdjust: string;
msFlexLinePack: string;
msGridRows: string;
transitionDuration: string;
msHyphens: string;
breakAfter: string;
msTransition: string;
msPerspectiveOrigin: string;
msContentZoomLimit: string;
msScrollLimitXMax: any;
msFlexAlign: string;
msWrapMargin: any;
columnCount: any;
msAnimationTimingFunction: string;
msTransitionDelay: string;
transformStyle: string;
msWrapFlow: string;
msFlexPreferredSize: string;
alignItems: string;
borderImageSource: string;
flexBasis: string;
borderImageWidth: string;
borderImageRepeat: string;
order: string;
flex: string;
alignContent: string;
msImeAlign: string;
flexShrink: string;
flexGrow: string;
borderImageSlice: string;
flexWrap: string;
borderImageOutset: string;
flexDirection: string;
touchAction: string;
flexFlow: string;
borderImage: string;
justifyContent: string;
alignSelf: string;
msTextCombineHorizontal: string;
getPropertyPriority(propertyName: string): string;
getPropertyValue(propertyName: string): string;
removeProperty(propertyName: string): string;
item(index: number): string;
[index: number]: string;
setProperty(propertyName: string, value: string, priority?: string): void;
}
declare var CSSStyleDeclaration: {
prototype: CSSStyleDeclaration;
new(): CSSStyleDeclaration;
}
interface SVGGElement extends SVGElement, SVGStylable, SVGTransformable, SVGLangSpace, SVGTests, SVGExternalResourcesRequired {
}
declare var SVGGElement: {
prototype: SVGGElement;
new(): SVGGElement;
}
interface MSStyleCSSProperties extends MSCSSProperties {
pixelWidth: number;
posHeight: number;
posLeft: number;
pixelTop: number;
pixelBottom: number;
textDecorationNone: boolean;
pixelLeft: number;
posTop: number;
posBottom: number;
textDecorationOverline: boolean;
posWidth: number;
textDecorationLineThrough: boolean;
pixelHeight: number;
textDecorationBlink: boolean;
posRight: number;
pixelRight: number;
textDecorationUnderline: boolean;
}
declare var MSStyleCSSProperties: {
prototype: MSStyleCSSProperties;
new(): MSStyleCSSProperties;
}
interface Navigator extends NavigatorID, NavigatorOnLine, NavigatorContentUtils, MSNavigatorExtensions, NavigatorGeolocation, MSNavigatorDoNotTrack, NavigatorStorageUtils, MSFileSaver {
msMaxTouchPoints: number;
msPointerEnabled: boolean;
msManipulationViewsEnabled: boolean;
pointerEnabled: boolean;
maxTouchPoints: number;
msLaunchUri(uri: string, successCallback?: MSLaunchUriCallback, noHandlerCallback?: MSLaunchUriCallback): void;
}
declare var Navigator: {
prototype: Navigator;
new(): Navigator;
}
interface SVGPathSegCurvetoCubicSmoothAbs extends SVGPathSeg {
y: number;
x2: number;
x: number;
y2: number;
}
declare var SVGPathSegCurvetoCubicSmoothAbs: {
prototype: SVGPathSegCurvetoCubicSmoothAbs;
new(): SVGPathSegCurvetoCubicSmoothAbs;
}
interface SVGZoomEvent extends UIEvent {
zoomRectScreen: SVGRect;
previousScale: number;
newScale: number;
previousTranslate: SVGPoint;
newTranslate: SVGPoint;
}
declare var SVGZoomEvent: {
prototype: SVGZoomEvent;
new(): SVGZoomEvent;
}
interface NodeSelector {
querySelectorAll(selectors: string): NodeList;
querySelector(selectors: string): Element;
}
interface HTMLTableDataCellElement extends HTMLTableCellElement {
}
declare var HTMLTableDataCellElement: {
prototype: HTMLTableDataCellElement;
new(): HTMLTableDataCellElement;
}
interface HTMLBaseElement extends HTMLElement {
/**
* Sets or retrieves the window or frame at which to target content.
*/
target: string;
/**
* Gets or sets the baseline URL on which relative links are based.
*/
href: string;
}
declare var HTMLBaseElement: {
prototype: HTMLBaseElement;
new(): HTMLBaseElement;
}
interface ClientRect {
left: number;
width: number;
right: number;
top: number;
bottom: number;
height: number;
}
declare var ClientRect: {
prototype: ClientRect;
new(): ClientRect;
}
interface PositionErrorCallback {
(error: PositionError): void;
}
interface DOMImplementation {
createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType;
createDocument(namespaceURI: string, qualifiedName: string, doctype: DocumentType): Document;
hasFeature(feature: string, version?: string): boolean;
createHTMLDocument(title: string): Document;
}
declare var DOMImplementation: {
prototype: DOMImplementation;
new(): DOMImplementation;
}
interface SVGUnitTypes {
SVG_UNIT_TYPE_UNKNOWN: number;
SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: number;
SVG_UNIT_TYPE_USERSPACEONUSE: number;
}
declare var SVGUnitTypes: SVGUnitTypes;
interface Element extends Node, NodeSelector, ElementTraversal, GlobalEventHandlers {
scrollTop: number;
clientLeft: number;
scrollLeft: number;
tagName: string;
clientWidth: number;
scrollWidth: number;
clientHeight: number;
clientTop: number;
scrollHeight: number;
msRegionOverflow: string;
onmspointerdown: (ev: any) => any;
onmsgotpointercapture: (ev: any) => any;
onmsgesturedoubletap: (ev: any) => any;
onmspointerhover: (ev: any) => any;
onmsgesturehold: (ev: any) => any;
onmspointermove: (ev: any) => any;
onmsgesturechange: (ev: any) => any;
onmsgesturestart: (ev: any) => any;
onmspointercancel: (ev: any) => any;
onmsgestureend: (ev: any) => any;
onmsgesturetap: (ev: any) => any;
onmspointerout: (ev: any) => any;
onmsinertiastart: (ev: any) => any;
onmslostpointercapture: (ev: any) => any;
onmspointerover: (ev: any) => any;
msContentZoomFactor: number;
onmspointerup: (ev: any) => any;
onlostpointercapture: (ev: PointerEvent) => any;
onmspointerenter: (ev: any) => any;
ongotpointercapture: (ev: PointerEvent) => any;
onmspointerleave: (ev: any) => any;
getAttribute(name?: string): string;
getElementsByTagNameNS(namespaceURI: string, localName: string): NodeList;
hasAttributeNS(namespaceURI: string, localName: string): boolean;
getBoundingClientRect(): ClientRect;
getAttributeNS(namespaceURI: string, localName: string): string;
getAttributeNodeNS(namespaceURI: string, localName: string): Attr;
setAttributeNodeNS(newAttr: Attr): Attr;
msMatchesSelector(selectors: string): boolean;
hasAttribute(name: string): boolean;
removeAttribute(name?: string): void;
setAttributeNS(namespaceURI: string, qualifiedName: string, value: string): void;
getAttributeNode(name: string): Attr;
fireEvent(eventName: string, eventObj?: any): boolean;
getElementsByTagName(name: "a"): NodeListOf;
getElementsByTagName(name: "abbr"): NodeListOf;
getElementsByTagName(name: "acronym"): NodeListOf;
getElementsByTagName(name: "address"): NodeListOf;
getElementsByTagName(name: "applet"): NodeListOf;
getElementsByTagName(name: "area"): NodeListOf;
getElementsByTagName(name: "article"): NodeListOf;
getElementsByTagName(name: "aside"): NodeListOf;
getElementsByTagName(name: "audio"): NodeListOf;
getElementsByTagName(name: "b"): NodeListOf;
getElementsByTagName(name: "base"): NodeListOf;
getElementsByTagName(name: "basefont"): NodeListOf;
getElementsByTagName(name: "bdo"): NodeListOf;
getElementsByTagName(name: "bgsound"): NodeListOf;
getElementsByTagName(name: "big"): NodeListOf;
getElementsByTagName(name: "blockquote"): NodeListOf;
getElementsByTagName(name: "body"): NodeListOf;
getElementsByTagName(name: "br"): NodeListOf;
getElementsByTagName(name: "button"): NodeListOf;
getElementsByTagName(name: "canvas"): NodeListOf;
getElementsByTagName(name: "caption"): NodeListOf;
getElementsByTagName(name: "center"): NodeListOf;
getElementsByTagName(name: "cite"): NodeListOf;
getElementsByTagName(name: "code"): NodeListOf;
getElementsByTagName(name: "col"): NodeListOf;
getElementsByTagName(name: "colgroup"): NodeListOf;
getElementsByTagName(name: "datalist"): NodeListOf;
getElementsByTagName(name: "dd"): NodeListOf;
getElementsByTagName(name: "del"): NodeListOf;
getElementsByTagName(name: "dfn"): NodeListOf;
getElementsByTagName(name: "dir"): NodeListOf;
getElementsByTagName(name: "div"): NodeListOf;
getElementsByTagName(name: "dl"): NodeListOf;
getElementsByTagName(name: "dt"): NodeListOf;
getElementsByTagName(name: "em"): NodeListOf;
getElementsByTagName(name: "embed"): NodeListOf;
getElementsByTagName(name: "fieldset"): NodeListOf;
getElementsByTagName(name: "figcaption"): NodeListOf;
getElementsByTagName(name: "figure"): NodeListOf;
getElementsByTagName(name: "font"): NodeListOf;
getElementsByTagName(name: "footer"): NodeListOf;
getElementsByTagName(name: "form"): NodeListOf;
getElementsByTagName(name: "frame"): NodeListOf;
getElementsByTagName(name: "frameset"): NodeListOf;
getElementsByTagName(name: "h1"): NodeListOf;
getElementsByTagName(name: "h2"): NodeListOf;
getElementsByTagName(name: "h3"): NodeListOf;
getElementsByTagName(name: "h4"): NodeListOf;
getElementsByTagName(name: "h5"): NodeListOf;
getElementsByTagName(name: "h6"): NodeListOf;
getElementsByTagName(name: "head"): NodeListOf;
getElementsByTagName(name: "header"): NodeListOf;
getElementsByTagName(name: "hgroup"): NodeListOf;
getElementsByTagName(name: "hr"): NodeListOf;
getElementsByTagName(name: "html"): NodeListOf;
getElementsByTagName(name: "i"): NodeListOf;
getElementsByTagName(name: "iframe"): NodeListOf;
getElementsByTagName(name: "img"): NodeListOf;
getElementsByTagName(name: "input"): NodeListOf;
getElementsByTagName(name: "ins"): NodeListOf;
getElementsByTagName(name: "isindex"): NodeListOf;
getElementsByTagName(name: "kbd"): NodeListOf;
getElementsByTagName(name: "keygen"): NodeListOf;
getElementsByTagName(name: "label"): NodeListOf;
getElementsByTagName(name: "legend"): NodeListOf;
getElementsByTagName(name: "li"): NodeListOf;
getElementsByTagName(name: "link"): NodeListOf;
getElementsByTagName(name: "listing"): NodeListOf;
getElementsByTagName(name: "map"): NodeListOf;
getElementsByTagName(name: "mark"): NodeListOf;
getElementsByTagName(name: "marquee"): NodeListOf;
getElementsByTagName(name: "menu"): NodeListOf;
getElementsByTagName(name: "meta"): NodeListOf;
getElementsByTagName(name: "nav"): NodeListOf;
getElementsByTagName(name: "nextid"): NodeListOf;
getElementsByTagName(name: "nobr"): NodeListOf;
getElementsByTagName(name: "noframes"): NodeListOf;
getElementsByTagName(name: "noscript"): NodeListOf;
getElementsByTagName(name: "object"): NodeListOf;
getElementsByTagName(name: "ol"): NodeListOf;
getElementsByTagName(name: "optgroup"): NodeListOf;
getElementsByTagName(name: "option"): NodeListOf;
getElementsByTagName(name: "p"): NodeListOf;
getElementsByTagName(name: "param"): NodeListOf;
getElementsByTagName(name: "plaintext"): NodeListOf;
getElementsByTagName(name: "pre"): NodeListOf;
getElementsByTagName(name: "progress"): NodeListOf;
getElementsByTagName(name: "q"): NodeListOf;
getElementsByTagName(name: "rt"): NodeListOf;
getElementsByTagName(name: "ruby"): NodeListOf;
getElementsByTagName(name: "s"): NodeListOf;
getElementsByTagName(name: "samp"): NodeListOf;
getElementsByTagName(name: "script"): NodeListOf;
getElementsByTagName(name: "section"): NodeListOf;
getElementsByTagName(name: "select"): NodeListOf;
getElementsByTagName(name: "small"): NodeListOf;
getElementsByTagName(name: "SOURCE"): NodeListOf;
getElementsByTagName(name: "span"): NodeListOf;
getElementsByTagName(name: "strike"): NodeListOf;
getElementsByTagName(name: "strong"): NodeListOf;
getElementsByTagName(name: "style"): NodeListOf;
getElementsByTagName(name: "sub"): NodeListOf;
getElementsByTagName(name: "sup"): NodeListOf