zotero-types
Version:
This package contains type definitions for Zotero (https://www.zotero.org/) plugin.
2,224 lines (1,883 loc) • 1.06 MB
TypeScript
// @ts-nocheck
/**
* NOTE: Do not modify this file by hand.
* Content was generated from source .webidl files.
* If you're updating some of the sources, see README for instructions.
*/
/// <reference no-default-lib="true" />
type HTMLCollectionOf<T> = any;
type IsInstance<T> = (obj: any) => obj is T;
type NodeListOf<T> = any;
interface WindowProxy extends Window {}
/////////////////////////////
/// Window APIs
/////////////////////////////
interface ActivateMenuItemOptions {
altKey?: boolean;
button?: number;
ctrlKey?: boolean;
metaKey?: boolean;
shiftKey?: boolean;
}
interface AddEventListenerOptions extends EventListenerOptions {
once?: boolean;
passive?: boolean;
signal?: AbortSignal;
wantUntrusted?: boolean;
}
interface AddonEventInit extends EventInit {
id: string;
}
interface AddressErrors {
addressLine?: string;
city?: string;
country?: string;
dependentLocality?: string;
organization?: string;
phone?: string;
postalCode?: string;
recipient?: string;
region?: string;
regionCode?: string;
sortingCode?: string;
}
interface AnalyserOptions extends AudioNodeOptions {
fftSize?: number;
maxDecibels?: number;
minDecibels?: number;
smoothingTimeConstant?: number;
}
interface AnimationEventInit extends EventInit {
animationName?: string;
elapsedTime?: number;
pseudoElement?: string;
}
interface AnimationPlaybackEventInit extends EventInit {
currentTime?: number | null;
timelineTime?: number | null;
}
interface AnimationPropertyDetails {
property: string;
runningOnCompositor: boolean;
values: AnimationPropertyValueDetails[];
warning?: string;
}
interface AnimationPropertyValueDetails {
composite: CompositeOperation;
easing?: string;
offset: number;
value?: string;
}
interface AssignedNodesOptions {
flatten?: boolean;
}
interface AttributeNameValue {
name: string;
value: string;
}
interface AudioBufferOptions {
length: number;
numberOfChannels?: number;
sampleRate: number;
}
interface AudioBufferSourceOptions {
buffer?: AudioBuffer | null;
detune?: number;
loop?: boolean;
loopEnd?: number;
loopStart?: number;
playbackRate?: number;
}
interface AudioConfiguration {
bitrate?: number;
channels?: string;
contentType: string;
samplerate?: number;
}
interface AudioContextOptions {
sampleRate?: number;
}
interface AudioDataCopyToOptions {
format?: AudioSampleFormat;
frameCount?: number;
frameOffset?: number;
planeIndex: number;
}
interface AudioDataInit {
data: AllowSharedBufferSource;
format: AudioSampleFormat;
numberOfChannels: number;
numberOfFrames: number;
sampleRate: number;
timestamp: number;
transfer?: ArrayBuffer[];
}
interface AudioDecoderConfig {
codec: string;
description?: AllowSharedBufferSource;
numberOfChannels: number;
sampleRate: number;
}
interface AudioDecoderInit {
error: WebCodecsErrorCallback;
output: AudioDataOutputCallback;
}
interface AudioDecoderSupport {
config?: AudioDecoderConfig;
supported?: boolean;
}
interface AudioEncoderConfig {
bitrate?: number;
bitrateMode?: BitrateMode;
codec: string;
numberOfChannels?: number;
opus?: OpusEncoderConfig;
sampleRate?: number;
}
interface AudioEncoderInit {
error: WebCodecsErrorCallback;
output: EncodedAudioChunkOutputCallback;
}
interface AudioEncoderSupport {
config?: AudioEncoderConfig;
supported?: boolean;
}
interface AudioNodeOptions {
channelCount?: number;
channelCountMode?: ChannelCountMode;
channelInterpretation?: ChannelInterpretation;
}
interface AudioOutputOptions {
deviceId?: string;
}
interface AudioSinkDebugInfo {
audioEnded?: boolean;
hasErrored?: boolean;
isPlaying?: boolean;
isStarted?: boolean;
lastGoodPosition?: number;
outputRate?: number;
playbackComplete?: boolean;
startTime?: number;
written?: number;
}
interface AudioSinkWrapperDebugInfo {
audioEnded?: boolean;
audioSink?: AudioSinkDebugInfo;
isPlaying?: boolean;
isStarted?: boolean;
}
interface AudioTimestamp {
contextTime?: number;
performanceTime?: DOMHighResTimeStamp;
}
interface AudioWorkletNodeOptions extends AudioNodeOptions {
numberOfInputs?: number;
numberOfOutputs?: number;
outputChannelCount?: number[];
parameterData?: Record<string, number>;
processorOptions?: any;
}
interface AuthenticationExtensionsClientInputs {
appid?: string;
credProps?: boolean;
credentialProtectionPolicy?: CredentialProtectionPolicy;
enforceCredentialProtectionPolicy?: boolean;
hmacCreateSecret?: boolean;
largeBlob?: AuthenticationExtensionsLargeBlobInputs;
minPinLength?: boolean;
prf?: AuthenticationExtensionsPRFInputs;
}
interface AuthenticationExtensionsClientInputsJSON {
appid?: string;
credProps?: boolean;
credentialProtectionPolicy?: CredentialProtectionPolicy;
enforceCredentialProtectionPolicy?: boolean;
hmacCreateSecret?: boolean;
largeBlob?: AuthenticationExtensionsLargeBlobInputsJSON;
minPinLength?: boolean;
prf?: AuthenticationExtensionsPRFInputsJSON;
}
interface AuthenticationExtensionsClientOutputs {
appid?: boolean;
credProps?: CredentialPropertiesOutput;
hmacCreateSecret?: boolean;
largeBlob?: AuthenticationExtensionsLargeBlobOutputs;
prf?: AuthenticationExtensionsPRFOutputs;
}
interface AuthenticationExtensionsLargeBlobInputs {
read?: boolean;
support?: string;
write?: BufferSource;
}
interface AuthenticationExtensionsLargeBlobInputsJSON {
read?: boolean;
support?: string;
write?: Base64URLString;
}
interface AuthenticationExtensionsLargeBlobOutputs {
blob?: ArrayBuffer;
supported?: boolean;
written?: boolean;
}
interface AuthenticationExtensionsPRFInputs {
eval?: AuthenticationExtensionsPRFValues;
evalByCredential?: Record<string, AuthenticationExtensionsPRFValues>;
}
interface AuthenticationExtensionsPRFInputsJSON {
eval?: AuthenticationExtensionsPRFValuesJSON;
evalByCredential?: Record<string, AuthenticationExtensionsPRFValuesJSON>;
}
interface AuthenticationExtensionsPRFOutputs {
enabled?: boolean;
results?: AuthenticationExtensionsPRFValues;
}
interface AuthenticationExtensionsPRFValues {
first: BufferSource;
second?: BufferSource;
}
interface AuthenticationExtensionsPRFValuesJSON {
first: Base64URLString;
second?: Base64URLString;
}
interface AuthenticatorSelectionCriteria {
authenticatorAttachment?: string;
requireResidentKey?: boolean;
residentKey?: string;
userVerification?: string;
}
interface AutocompleteInfo {
addressType?: string;
canAutomaticallyPersist?: boolean;
contactType?: string;
credentialType?: string;
fieldName?: string;
section?: string;
}
interface AvcEncoderConfig {
format?: AvcBitstreamFormat;
}
interface Base64URLDecodeOptions {
padding: Base64URLDecodePadding;
}
interface Base64URLEncodeOptions {
pad: boolean;
}
interface BiquadFilterOptions extends AudioNodeOptions {
Q?: number;
detune?: number;
frequency?: number;
gain?: number;
type?: BiquadFilterType;
}
interface BlobEventInit extends EventInit {
data: Blob;
}
interface BlobPropertyBag {
endings?: EndingType;
type?: string;
}
interface BlockParsingOptions {
blockScriptCreated?: boolean;
}
interface BoxQuadOptions extends GeometryUtilsOptions {
box?: CSSBoxType;
ignoreTransforms?: boolean;
relativeTo?: GeometryNode;
}
interface BufferRange {
end?: number;
start?: number;
}
interface CDMInformation {
capabilities: string;
clearlead: boolean;
isHDCP22Compatible: boolean;
isHardwareDecryption: boolean;
keySystemName: string;
}
interface CSSCustomPropertyRegisteredEventInit extends EventInit {
propertyDefinition: InspectorCSSPropertyDefinition;
}
interface CSSStyleSheetInit {
baseURL?: string;
disabled?: boolean;
media?: MediaList | string;
}
interface CacheQueryOptions {
ignoreMethod?: boolean;
ignoreSearch?: boolean;
ignoreVary?: boolean;
}
interface CanvasRenderingContext2DDebugInfo {
backendType: number;
drawTargetType: number;
isAccelerated: boolean;
isShared: boolean;
}
interface CanvasRenderingContext2DSettings {
alpha?: boolean;
colorSpace?: PredefinedColorSpace;
desynchronized?: boolean;
forceSoftwareRendering?: boolean;
willReadFrequently?: boolean;
}
interface CaretPositionFromPointOptions {
shadowRoots?: ShadowRoot[];
}
interface CaretStateChangedEventInit extends EventInit {
boundingClientRect?: DOMRectReadOnly | null;
caretVisible?: boolean;
caretVisuallyVisible?: boolean;
clientX?: number;
clientY?: number;
collapsed?: boolean;
reason?: CaretChangedReason;
selectedTextContent?: string;
selectionEditable?: boolean;
selectionVisible?: boolean;
}
interface ChannelMergerOptions extends AudioNodeOptions {
numberOfInputs?: number;
}
interface ChannelSplitterOptions extends AudioNodeOptions {
numberOfOutputs?: number;
}
interface CheckVisibilityOptions {
checkOpacity?: boolean;
checkVisibilityCSS?: boolean;
contentVisibilityAuto?: boolean;
flush?: boolean;
opacityProperty?: boolean;
visibilityProperty?: boolean;
}
interface CheckerboardReport {
log?: string;
reason?: CheckerboardReason;
severity?: number;
timestamp?: DOMTimeStamp;
}
interface ChildProcInfoDictionary {
childID?: number;
cpuCycleCount?: number;
cpuTime?: number;
memory?: number;
origin?: string;
pid?: number;
threads?: ThreadInfoDictionary[];
type?: WebIDLProcType;
utilityActors?: UtilityActorsDictionary[];
windows?: WindowInfoDictionary[];
}
interface ChromeFilePropertyBag extends FilePropertyBag {
existenceCheck?: boolean;
name?: string;
}
interface ClearResourceCacheOptions {
pattern?: OriginAttributesPatternDictionary;
principal?: Principal;
schemelessSite?: string;
target?: ResourceCacheTarget;
types?: ResourceCacheType[];
url?: string;
}
interface ClientRectsAndTexts {
rectList: DOMRectList;
textList: string[];
}
interface ClipboardEventInit extends EventInit {
data?: string;
dataType?: string;
}
interface ClipboardItemOptions {
presentationStyle?: PresentationStyle;
}
interface CloseEventInit extends EventInit {
code?: number;
reason?: string;
wasClean?: boolean;
}
interface CloseWatcherOptions {
signal?: AbortSignal;
}
interface CollectedData {
children?: any[];
id?: Record<string, CollectedFormDataValue>;
innerHTML?: string;
scroll?: string;
url?: string;
xpath?: Record<string, CollectedFormDataValue>;
}
interface CommandEventInit extends EventInit {
command?: string;
source?: Element | null;
}
interface CompileScriptOptionsDictionary {
charset?: string;
filename?: string;
hasReturnValue?: boolean;
lazilyParse?: boolean;
}
interface CompositionEventInit extends UIEventInit {
data?: string;
}
interface ComputedEffectTiming extends EffectTiming {
activeDuration?: number;
currentIteration?: number | null;
endTime?: number;
localTime?: number | null;
progress?: number | null;
}
interface ConsoleInstanceOptions {
consoleID?: string;
dump?: ConsoleInstanceDumpCallback;
innerID?: string;
maxLogLevel?: ConsoleLogLevel;
maxLogLevelPref?: string;
prefix?: string;
}
interface ConstantSourceOptions {
offset?: number;
}
interface ConstrainBooleanParameters {
exact?: boolean;
ideal?: boolean;
}
interface ConstrainDOMStringParameters {
exact?: string | string[];
ideal?: string | string[];
}
interface ConstrainDoubleRange {
exact?: number;
ideal?: number;
max?: number;
min?: number;
}
interface ConstrainLongRange {
exact?: number;
ideal?: number;
max?: number;
min?: number;
}
interface ContentVisibilityAutoStateChangeEventInit extends EventInit {
skipped?: boolean;
}
interface ConvertCoordinateOptions extends GeometryUtilsOptions {
fromBox?: CSSBoxType;
toBox?: CSSBoxType;
}
interface ConvolverOptions extends AudioNodeOptions {
buffer?: AudioBuffer | null;
disableNormalization?: boolean;
}
interface CookieChangeEventInit extends EventInit {
changed?: CookieList;
deleted?: CookieList;
}
interface CookieInit {
domain?: string | null;
expires?: DOMHighResTimeStamp | null;
name: string;
partitioned?: boolean;
path?: string;
sameSite?: CookieSameSite;
value: string;
}
interface CookieListItem {
domain?: string | null;
expires?: DOMHighResTimeStamp | null;
name?: string;
partitioned?: boolean;
path?: string;
sameSite?: CookieSameSite;
secure?: boolean;
value?: string;
}
interface CookieStoreDeleteOptions {
domain?: string | null;
name: string;
partitioned?: boolean;
path?: string;
}
interface CookieStoreGetOptions {
name?: string;
url?: string;
}
interface CopyOptions {
noOverwrite?: boolean;
recursive?: boolean;
}
interface CredentialCreationOptions {
publicKey?: PublicKeyCredentialCreationOptions;
signal?: AbortSignal;
}
interface CredentialPropertiesOutput {
rk?: boolean;
}
interface CredentialRequestOptions {
identity?: IdentityCredentialRequestOptions;
mediation?: CredentialMediationRequirement;
publicKey?: PublicKeyCredentialRequestOptions;
signal?: AbortSignal;
}
interface CustomEventInit extends EventInit {
detail?: any;
}
interface DOMMatrix2DInit {
a?: number;
b?: number;
c?: number;
d?: number;
e?: number;
f?: number;
m11?: number;
m12?: number;
m21?: number;
m22?: number;
m41?: number;
m42?: number;
}
interface DOMMatrixInit extends DOMMatrix2DInit {
is2D?: boolean;
m13?: number;
m14?: number;
m23?: number;
m24?: number;
m31?: number;
m32?: number;
m33?: number;
m34?: number;
m43?: number;
m44?: number;
}
interface DOMPointInit {
w?: number;
x?: number;
y?: number;
z?: number;
}
interface DOMQuadInit {
p1?: DOMPointInit;
p2?: DOMPointInit;
p3?: DOMPointInit;
p4?: DOMPointInit;
}
interface DOMRectInit {
height?: number;
width?: number;
x?: number;
y?: number;
}
interface DateTimeValue {
day?: number;
hour?: number;
minute?: number;
month?: number;
year?: number;
}
interface DecodedStreamDataDebugInfo {
audioFramesWritten?: number;
haveSentFinishAudio?: boolean;
haveSentFinishVideo?: boolean;
instance?: string;
lastVideoEndTime?: number;
lastVideoStartTime?: number;
nextAudioTime?: number;
streamAudioWritten?: number;
streamVideoWritten?: number;
}
interface DecodedStreamDebugInfo {
audioQueueFinished?: boolean;
audioQueueSize?: number;
data?: DecodedStreamDataDebugInfo;
instance?: string;
lastAudio?: number;
lastOutputTime?: number;
playing?: number;
startTime?: number;
}
interface DelayOptions extends AudioNodeOptions {
delayTime?: number;
maxDelayTime?: number;
}
interface DeviceAccelerationInit {
x?: number | null;
y?: number | null;
z?: number | null;
}
interface DeviceLightEventInit extends EventInit {
value?: number;
}
interface DeviceMotionEventInit extends EventInit {
acceleration?: DeviceAccelerationInit;
accelerationIncludingGravity?: DeviceAccelerationInit;
interval?: number | null;
rotationRate?: DeviceRotationRateInit;
}
interface DeviceOrientationEventInit extends EventInit {
absolute?: boolean;
alpha?: number | null;
beta?: number | null;
gamma?: number | null;
}
interface DeviceRotationRateInit {
alpha?: number | null;
beta?: number | null;
gamma?: number | null;
}
interface DictWithAllowSharedBufferSource {
allowSharedArrayBuffer?: ArrayBuffer;
allowSharedArrayBufferView?: ArrayBufferView;
arrayBuffer?: ArrayBuffer;
arrayBufferView?: ArrayBufferView;
}
interface DisplayMediaStreamConstraints {
audio?: boolean | MediaTrackConstraints;
video?: boolean | MediaTrackConstraints;
}
interface DisplayNameOptions {
calendar?: string;
keys?: string[];
style?: string;
type?: string;
}
interface DisplayNameResult {
calendar?: string;
locale?: string;
style?: string;
type?: string;
values?: string[];
}
interface DocumentTimelineOptions {
originTime?: DOMHighResTimeStamp;
}
interface DoubleRange {
max?: number;
min?: number;
}
interface DragEventInit extends MouseEventInit {
dataTransfer?: DataTransfer | null;
}
interface DynamicsCompressorOptions extends AudioNodeOptions {
attack?: number;
knee?: number;
ratio?: number;
release?: number;
threshold?: number;
}
interface EMEDebugInfo {
keySystem?: string;
sessionsInfo?: string;
}
interface EffectTiming {
delay?: number;
direction?: PlaybackDirection;
duration?: number | string;
easing?: string;
endDelay?: number;
fill?: FillMode;
iterationStart?: number;
iterations?: number;
}
interface ElementCreationOptions {
is?: string;
pseudo?: string;
}
interface ElementDefinitionOptions {
extends?: string;
}
interface EncodedAudioChunkInit {
data: AllowSharedBufferSource;
duration?: number;
timestamp: number;
transfer?: ArrayBuffer[];
type: EncodedAudioChunkType;
}
interface EncodedAudioChunkMetadata {
decoderConfig?: AudioDecoderConfig;
}
interface EncodedVideoChunkInit {
data: AllowSharedBufferSource;
duration?: number;
timestamp: number;
type: EncodedVideoChunkType;
}
interface EncodedVideoChunkMetadata {
decoderConfig?: VideoDecoderConfig;
svc?: SvcOutputMetadata;
}
interface ErrorEventInit extends EventInit {
colno?: number;
error?: any;
filename?: string;
lineno?: number;
message?: string;
}
interface EventInit {
bubbles?: boolean;
cancelable?: boolean;
composed?: boolean;
}
interface EventListenerOptions {
capture?: boolean;
mozSystemGroup?: boolean;
}
interface EventModifierInit extends UIEventInit {
altKey?: boolean;
ctrlKey?: boolean;
metaKey?: boolean;
modifierAltGraph?: boolean;
modifierCapsLock?: boolean;
modifierFn?: boolean;
modifierFnLock?: boolean;
modifierNumLock?: boolean;
modifierOS?: boolean;
modifierScrollLock?: boolean;
modifierSymbol?: boolean;
modifierSymbolLock?: boolean;
shiftKey?: boolean;
}
interface EventSourceInit {
withCredentials?: boolean;
}
interface ExecuteInGlobalOptions {
reportExceptions?: boolean;
}
interface FailedCertSecurityInfo {
certChainStrings?: string[];
certValidityRangeNotAfter?: DOMTimeStamp;
certValidityRangeNotBefore?: DOMTimeStamp;
channelStatus?: number;
errorCodeString?: string;
errorIsOverridable?: boolean;
errorMessage?: string;
hasHPKP?: boolean;
hasHSTS?: boolean;
issuerCommonName?: string;
overridableErrorCategory?: OverridableErrorCategory;
validNotAfter?: DOMTimeStamp;
validNotBefore?: DOMTimeStamp;
}
interface FileInfo {
creationTime?: number;
lastAccessed?: number;
lastModified?: number;
path?: string;
permissions?: number;
size?: number;
type?: FileType;
}
interface FilePropertyBag extends BlobPropertyBag {
lastModified?: number;
}
interface FileSourceOptions {
addResourceOptions?: FluentBundleAddResourceOptions;
}
interface FileSystemCreateWritableOptions {
keepExistingData?: boolean;
}
interface FileSystemFlags {
create?: boolean;
exclusive?: boolean;
}
interface FileSystemGetDirectoryOptions {
create?: boolean;
}
interface FileSystemGetFileOptions {
create?: boolean;
}
interface FileSystemRemoveOptions {
recursive?: boolean;
}
interface FluentBundleAddResourceOptions {
allowOverrides?: boolean;
}
interface FluentBundleIteratorResult {
done: boolean;
value: FluentBundle | null;
}
interface FluentBundleOptions {
pseudoStrategy?: string;
useIsolating?: boolean;
}
interface FluentMessage {
attributes: Record<string, FluentPattern>;
value?: FluentPattern | null;
}
interface FluentTextElementItem {
attr?: string;
id?: string;
text?: string;
}
interface FocusEventInit extends UIEventInit {
relatedTarget?: EventTarget | null;
}
interface FocusOptions {
focusVisible?: boolean;
preventScroll?: boolean;
}
interface FontFaceDescriptors {
ascentOverride?: string;
descentOverride?: string;
display?: string;
featureSettings?: string;
lineGapOverride?: string;
sizeAdjust?: string;
stretch?: string;
style?: string;
unicodeRange?: string;
variant?: string;
variationSettings?: string;
weight?: string;
}
interface FontFaceSetIteratorResult {
done: boolean;
value: any;
}
interface FontFaceSetLoadEventInit extends EventInit {
fontfaces?: FontFace[];
}
interface FormAutofillConfidences {
ccName?: number;
ccNumber?: number;
}
interface FormDataEventInit extends EventInit {
formData: FormData;
}
interface FrameCrashedEventInit extends EventInit {
browsingContextId?: number;
childID?: number;
isTopFrame?: boolean;
}
interface GPUBindGroupDescriptor extends GPUObjectDescriptorBase {
entries: GPUBindGroupEntry[];
layout: GPUBindGroupLayout;
}
interface GPUBindGroupEntry {
binding: GPUIndex32;
resource: GPUBindingResource;
}
interface GPUBindGroupLayoutDescriptor extends GPUObjectDescriptorBase {
entries: GPUBindGroupLayoutEntry[];
}
interface GPUBindGroupLayoutEntry {
binding: GPUIndex32;
buffer?: GPUBufferBindingLayout;
sampler?: GPUSamplerBindingLayout;
storageTexture?: GPUStorageTextureBindingLayout;
texture?: GPUTextureBindingLayout;
visibility: GPUShaderStageFlags;
}
interface GPUBlendComponent {
dstFactor?: GPUBlendFactor;
operation?: GPUBlendOperation;
srcFactor?: GPUBlendFactor;
}
interface GPUBlendState {
alpha: GPUBlendComponent;
color: GPUBlendComponent;
}
interface GPUBufferBinding {
buffer: GPUBuffer;
offset?: GPUSize64;
size?: GPUSize64;
}
interface GPUBufferBindingLayout {
hasDynamicOffset?: boolean;
minBindingSize?: GPUSize64;
type?: GPUBufferBindingType;
}
interface GPUBufferDescriptor extends GPUObjectDescriptorBase {
mappedAtCreation?: boolean;
size: GPUSize64;
usage: GPUBufferUsageFlags;
}
interface GPUCanvasConfiguration {
alphaMode?: GPUCanvasAlphaMode;
device: GPUDevice;
format: GPUTextureFormat;
usage?: GPUTextureUsageFlags;
viewFormats?: GPUTextureFormat[];
}
interface GPUColorDict {
a: number;
b: number;
g: number;
r: number;
}
interface GPUColorTargetState {
blend?: GPUBlendState;
format: GPUTextureFormat;
writeMask?: GPUColorWriteFlags;
}
interface GPUCommandBufferDescriptor extends GPUObjectDescriptorBase {
}
interface GPUCommandEncoderDescriptor extends GPUObjectDescriptorBase {
}
interface GPUComputePassDescriptor extends GPUObjectDescriptorBase {
timestampWrites?: GPUComputePassTimestampWrites;
}
interface GPUComputePassTimestampWrites {
beginningOfPassWriteIndex?: GPUSize32;
endOfPassWriteIndex?: GPUSize32;
querySet: GPUQuerySet;
}
interface GPUComputePipelineDescriptor extends GPUPipelineDescriptorBase {
compute: GPUProgrammableStage;
}
interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
premultipliedAlpha?: boolean;
}
interface GPUCopyExternalImageSourceInfo {
flipY?: boolean;
origin?: GPUOrigin2D;
source: GPUCopyExternalImageSource;
}
interface GPUDepthStencilState {
depthBias?: GPUDepthBias;
depthBiasClamp?: number;
depthBiasSlopeScale?: number;
depthCompare?: GPUCompareFunction;
depthWriteEnabled?: boolean;
format: GPUTextureFormat;
stencilBack?: GPUStencilFaceState;
stencilFront?: GPUStencilFaceState;
stencilReadMask?: GPUStencilValue;
stencilWriteMask?: GPUStencilValue;
}
interface GPUDeviceDescriptor extends GPUObjectDescriptorBase {
defaultQueue?: GPUQueueDescriptor;
requiredFeatures?: GPUFeatureName[];
requiredLimits?: Record<string, GPUSize64>;
}
interface GPUExtent3DDict {
depthOrArrayLayers?: GPUIntegerCoordinate;
height?: GPUIntegerCoordinate;
width: GPUIntegerCoordinate;
}
interface GPUFragmentState extends GPUProgrammableStage {
targets: GPUColorTargetState[];
}
interface GPUMultisampleState {
alphaToCoverageEnabled?: boolean;
count?: GPUSize32;
mask?: GPUSampleMask;
}
interface GPUObjectDescriptorBase {
label?: string;
}
interface GPUOrigin2DDict {
x?: GPUIntegerCoordinate;
y?: GPUIntegerCoordinate;
}
interface GPUOrigin3DDict {
x?: GPUIntegerCoordinate;
y?: GPUIntegerCoordinate;
z?: GPUIntegerCoordinate;
}
interface GPUPipelineDescriptorBase extends GPUObjectDescriptorBase {
layout: GPUPipelineLayout | GPUAutoLayoutMode;
}
interface GPUPipelineErrorInit {
reason: GPUPipelineErrorReason;
}
interface GPUPipelineLayoutDescriptor extends GPUObjectDescriptorBase {
bindGroupLayouts: GPUBindGroupLayout[];
}
interface GPUPrimitiveState {
cullMode?: GPUCullMode;
frontFace?: GPUFrontFace;
stripIndexFormat?: GPUIndexFormat;
topology?: GPUPrimitiveTopology;
unclippedDepth?: boolean;
}
interface GPUProgrammableStage {
constants?: Record<string, GPUPipelineConstantValue>;
entryPoint?: string;
module: GPUShaderModule;
}
interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase {
count: GPUSize32;
type: GPUQueryType;
}
interface GPUQueueDescriptor extends GPUObjectDescriptorBase {
}
interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
}
interface GPURenderBundleEncoderDescriptor extends GPURenderPassLayout {
depthReadOnly?: boolean;
stencilReadOnly?: boolean;
}
interface GPURenderPassColorAttachment {
clearValue?: GPUColor;
depthSlice?: GPUIntegerCoordinate;
loadOp: GPULoadOp;
resolveTarget?: GPUTextureView;
storeOp: GPUStoreOp;
view: GPUTextureView;
}
interface GPURenderPassDepthStencilAttachment {
depthClearValue?: number;
depthLoadOp?: GPULoadOp;
depthReadOnly?: boolean;
depthStoreOp?: GPUStoreOp;
stencilClearValue?: GPUStencilValue;
stencilLoadOp?: GPULoadOp;
stencilReadOnly?: boolean;
stencilStoreOp?: GPUStoreOp;
view: GPUTextureView;
}
interface GPURenderPassDescriptor extends GPUObjectDescriptorBase {
colorAttachments: GPURenderPassColorAttachment[];
depthStencilAttachment?: GPURenderPassDepthStencilAttachment;
occlusionQuerySet?: GPUQuerySet;
timestampWrites?: GPURenderPassTimestampWrites;
}
interface GPURenderPassLayout extends GPUObjectDescriptorBase {
colorFormats: GPUTextureFormat[];
depthStencilFormat?: GPUTextureFormat;
sampleCount?: GPUSize32;
}
interface GPURenderPassTimestampWrites {
beginningOfPassWriteIndex?: GPUSize32;
endOfPassWriteIndex?: GPUSize32;
querySet: GPUQuerySet;
}
interface GPURenderPipelineDescriptor extends GPUPipelineDescriptorBase {
depthStencil?: GPUDepthStencilState;
fragment?: GPUFragmentState;
multisample?: GPUMultisampleState;
primitive?: GPUPrimitiveState;
vertex: GPUVertexState;
}
interface GPURequestAdapterOptions {
featureLevel?: string;
forceFallbackAdapter?: boolean;
powerPreference?: GPUPowerPreference;
xrCompatible?: boolean;
}
interface GPUSamplerBindingLayout {
type?: GPUSamplerBindingType;
}
interface GPUSamplerDescriptor extends GPUObjectDescriptorBase {
addressModeU?: GPUAddressMode;
addressModeV?: GPUAddressMode;
addressModeW?: GPUAddressMode;
compare?: GPUCompareFunction;
lodMaxClamp?: number;
lodMinClamp?: number;
magFilter?: GPUFilterMode;
maxAnisotropy?: number;
minFilter?: GPUFilterMode;
mipmapFilter?: GPUMipmapFilterMode;
}
interface GPUShaderModuleCompilationHint {
entryPoint: string;
layout?: GPUPipelineLayout | GPUAutoLayoutMode;
}
interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase {
code: string;
compilationHints?: GPUShaderModuleCompilationHint[];
}
interface GPUStencilFaceState {
compare?: GPUCompareFunction;
depthFailOp?: GPUStencilOperation;
failOp?: GPUStencilOperation;
passOp?: GPUStencilOperation;
}
interface GPUStorageTextureBindingLayout {
access?: GPUStorageTextureAccess;
format: GPUTextureFormat;
viewDimension?: GPUTextureViewDimension;
}
interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
buffer: GPUBuffer;
}
interface GPUTexelCopyBufferLayout {
bytesPerRow?: GPUSize32;
offset?: GPUSize64;
rowsPerImage?: GPUSize32;
}
interface GPUTexelCopyTextureInfo {
aspect?: GPUTextureAspect;
mipLevel?: GPUIntegerCoordinate;
origin?: GPUOrigin3D;
texture: GPUTexture;
}
interface GPUTextureBindingLayout {
multisampled?: boolean;
sampleType?: GPUTextureSampleType;
viewDimension?: GPUTextureViewDimension;
}
interface GPUTextureDescriptor extends GPUObjectDescriptorBase {
dimension?: GPUTextureDimension;
format: GPUTextureFormat;
mipLevelCount?: GPUIntegerCoordinate;
sampleCount?: GPUSize32;
size: GPUExtent3D;
usage: GPUTextureUsageFlags;
viewFormats?: GPUTextureFormat[];
}
interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
arrayLayerCount?: GPUIntegerCoordinate;
aspect?: GPUTextureAspect;
baseArrayLayer?: GPUIntegerCoordinate;
baseMipLevel?: GPUIntegerCoordinate;
dimension?: GPUTextureViewDimension;
format?: GPUTextureFormat;
mipLevelCount?: GPUIntegerCoordinate;
}
interface GPUUncapturedErrorEventInit extends EventInit {
error: GPUError;
}
interface GPUVertexAttribute {
format: GPUVertexFormat;
offset: GPUSize64;
shaderLocation: GPUIndex32;
}
interface GPUVertexBufferLayout {
arrayStride: GPUSize64;
attributes: GPUVertexAttribute[];
stepMode?: GPUVertexStepMode;
}
interface GPUVertexState extends GPUProgrammableStage {
buffers?: (GPUVertexBufferLayout | null)[];
}
interface GainOptions extends AudioNodeOptions {
gain?: number;
}
interface GamepadAxisMoveEventInit extends GamepadEventInit {
axis?: number;
value?: number;
}
interface GamepadButtonEventInit extends GamepadEventInit {
button?: number;
}
interface GamepadEventInit extends EventInit {
gamepad?: Gamepad | null;
}
interface GamepadLightColor {
blue: number;
green: number;
red: number;
}
interface GeometryUtilsOptions {
createFramesForSuppressedWhitespace?: boolean;
flush?: boolean;
}
interface GetAnimationsOptions {
subtree?: boolean;
}
interface GetChildrenOptions {
ignoreAbsent?: boolean;
}
interface GetComposedRangesOptions {
shadowRoots?: ShadowRoot[];
}
interface GetHTMLOptions {
serializableShadowRoots?: boolean;
shadowRoots?: ShadowRoot[];
}
interface GetNotificationOptions {
tag?: string;
}
interface GetRootNodeOptions {
composed?: boolean;
}
interface GleanDistributionData {
count: number;
sum: number;
values: Record<string, number>;
}
interface GleanEventRecord {
category: string;
extra?: Record<string, string>;
name: string;
timestamp: number;
}
interface GleanRateData {
denominator: number;
numerator: number;
}
interface HTMLMediaElementDebugInfo {
EMEInfo?: EMEDebugInfo;
compositorDroppedFrames?: number;
decoder?: MediaDecoderDebugInfo;
}
interface HasChildrenOptions {
ignoreAbsent?: boolean;
}
interface HashChangeEventInit extends EventInit {
newURL?: string;
oldURL?: string;
}
interface HeapSnapshotBoundaries {
debugger?: any;
globals?: any[];
runtime?: boolean;
}
interface IDBDatabaseInfo {
name?: string;
version?: number;
}
interface IDBIndexParameters {
locale?: string | null;
multiEntry?: boolean;
unique?: boolean;
}
interface IDBObjectStoreParameters {
autoIncrement?: boolean;
keyPath?: string | string[] | null;
}
interface IDBOpenDBOptions {
version?: number;
}
interface IDBTransactionOptions {
durability?: IDBTransactionDurability;
}
interface IDBVersionChangeEventInit extends EventInit {
newVersion?: number | null;
oldVersion?: number;
}
interface IIRFilterOptions extends AudioNodeOptions {
feedback: number[];
feedforward: number[];
}
interface IdentityCredentialDisconnectOptions extends IdentityProviderConfig {
accountHint: string;
}
interface IdentityCredentialRequestOptions {
mode?: IdentityCredentialRequestOptionsMode;
providers: IdentityProviderRequestOptions[];
}
interface IdentityProviderConfig {
clientId: string;
configURL: string;
}
interface IdentityProviderRequestOptions extends IdentityProviderConfig {
domainHint?: string;
loginHint?: string;
nonce?: string;
}
interface IdentityResolveOptions {
accountId?: string;
}
interface IdleRequestOptions {
timeout?: number;
}
interface ImageBitmapOptions {
colorSpaceConversion?: ColorSpaceConversion;
imageOrientation?: ImageOrientation;
premultiplyAlpha?: PremultiplyAlpha;
resizeHeight?: number;
resizeWidth?: number;
}
interface ImageCaptureErrorEventInit extends EventInit {
imageCaptureError?: ImageCaptureError | null;
}
interface ImageDecodeOptions {
completeFramesOnly?: boolean;
frameIndex?: number;
}
interface ImageDecodeResult {
complete: boolean;
image: VideoFrame;
}
interface ImageDecoderInit {
colorSpaceConversion?: ColorSpaceConversion;
data: ImageBufferSource;
desiredHeight?: number;
desiredWidth?: number;
preferAnimation?: boolean;
transfer?: ArrayBuffer[];
type: string;
}
interface ImageEncodeOptions {
quality?: number;
type?: string;
}
interface ImageText {
confidence: number;
quad: DOMQuad;
string: string;
}
interface ImportESModuleOptionsDictionary {
global?: ImportESModuleTargetGlobal;
}
interface InferenceSessionRunOptions {
logSeverityLevel?: number;
logVerbosityLevel?: number;
tag?: string;
terminate?: boolean;
}
interface InferenceSessionSessionOptions {
enableCpuMemArena?: boolean;
enableGraphCapture?: boolean;
enableMemPattern?: boolean;
enableProfiling?: boolean;
executionMode?: string;
executionProviders?: any[];
extra?: Record<string, any>;
freeDimensionOverrides?: Record<string, number>;
graphOptimizationLevel?: string;
interOpNumThreads?: number;
intraOpNumThreads?: number;
logId?: string;
logSeverityLevel?: number;
logVerbosityLevel?: number;
optimizedModelFilePath?: string;
preferredOutputLocation?: TensorDataLocation | Record<string, TensorDataLocation>;
profileFilePrefix?: string;
}
interface InputEventInit extends UIEventInit {
data?: string | null;
dataTransfer?: DataTransfer | null;
inputType?: string;
isComposing?: boolean;
targetRanges?: StaticRange[];
}
interface InspectorCSSPropertyDefinition {
fromJS: boolean;
inherits: boolean;
initialValue: string | null;
name: string;
syntax: string;
}
interface InspectorCSSToken {
number?: number | null;
text: string;
tokenType: string;
unit: string | null;
value: string | null;
}
interface InspectorColorToResult {
adjusted: boolean;
color: string;
components: number[] | Float32Array;
}
interface InspectorDeclaration {
declarationOrigin: DeclarationOrigin;
style: CSSStyleDeclaration;
}
interface InspectorFontFeature {
languageSystem: string;
script: string;
tag: string;
}
interface InspectorRGBATuple {
a?: number;
b?: number;
g?: number;
r?: number;
}
interface InspectorStyleSheetRuleCountAndAtRulesResult {
atRules: CSSRule[];
ruleCount: number;
}
interface InspectorVariationAxis {
defaultValue: number;
maxValue: number;
minValue: number;
name: string;
tag: string;
}
interface InspectorVariationInstance {
name: string;
values: InspectorVariationValue[];
}
interface InspectorVariationValue {
axis: string;
value: number;
}
interface InstallTriggerData {
Hash?: string | null;
IconURL?: string | null;
URL?: string;
}
interface InteractionData {
interactionCount?: number;
interactionTimeInMilliseconds?: number;
scrollingDistanceInPixels?: number;
}
interface IntersectionObserverInit {
root?: Element | Document | null;
rootMargin?: string;
scrollMargin?: string;
threshold?: number | number[];
}
interface KeySystemTrackConfiguration {
encryptionScheme?: string | null;
robustness?: string;
}
interface KeyboardEventInit extends EventModifierInit {
charCode?: number;
code?: string;
isComposing?: boolean;
key?: string;
keyCode?: number;
location?: number;
repeat?: boolean;
which?: number;
}
interface KeyframeAnimationOptions extends KeyframeEffectOptions {
id?: string;
}
interface KeyframeEffectOptions extends EffectTiming {
composite?: CompositeOperation;
iterationComposite?: IterationCompositeOperation;
pseudoElement?: string | null;
}
interface L10nFileSourceMockFile {
path: string;
source: string;
}
interface L10nIdArgs {
args?: L10nArgs | null;
id?: string | null;
}
interface L10nMessage {
attributes?: AttributeNameValue[] | null;
value?: string | null;
}
interface L10nOverlaysError {
code?: number;
l10nName?: string;
sourceElementName?: string;
translatedElementName?: string;
}
interface L10nRegistryOptions {
bundleOptions?: FluentBundleOptions;
}
interface LibcConstants {
AT_EACCESS?: number;
EACCES?: number;
EAGAIN?: number;
EINTR?: number;
EINVAL?: number;
ENOSYS?: number;
EPERM?: number;
FD_CLOEXEC?: number;
F_SETFD?: number;
F_SETFL?: number;
O_CREAT?: number;
O_NONBLOCK?: number;
O_WRONLY?: number;
POLLERR?: number;
POLLHUP?: number;
POLLIN?: number;
POLLNVAL?: number;
POLLOUT?: number;
PR_CAPBSET_READ?: number;
WNOHANG?: number;
}
interface LoadURIOptions {
baseURI?: URI | null;
cancelContentJSEpoch?: number;
csp?: ContentSecurityPolicy | null;
hasValidUserGestureActivation?: boolean;
headers?: InputStream | null;
loadFlags?: number;
postData?: InputStream | null;
referrerInfo?: ReferrerInfo | null;
remoteTypeOverride?: string | null;
schemelessInput?: number;
textDirectiveUserActivation?: boolean;
triggeringPrincipal?: Principal | null;
triggeringRemoteType?: string | null;
triggeringSandboxFlags?: number;
triggeringStorageAccess?: boolean;
triggeringWindowId?: number;
}
interface LockInfo {
clientId?: string;
mode?: LockMode;
name?: string;
}
interface LockManagerSnapshot {
held?: LockInfo[];
pending?: LockInfo[];
}
interface LockOptions {
ifAvailable?: boolean;
mode?: LockMode;
signal?: AbortSignal;
steal?: boolean;
}
interface MIDIConnectionEventInit extends EventInit {
port?: MIDIPort | null;
}
interface MIDIMessageEventInit extends EventInit {
data?: Uint8Array;
}
interface MIDIOptions {
software?: boolean;
sysex?: boolean;
}
interface MLSBytes {
content: Uint8Array;
type: MLSObjectType;
}
interface MLSCommitOutput {
clientId?: Uint8Array;
commit: Uint8Array;
groupId: Uint8Array;
groupInfo?: Uint8Array;
ratchetTree?: Uint8Array;
type: MLSObjectType;
welcome?: Uint8Array;
}
interface MLSExporterOutput {
context: Uint8Array;
groupEpoch: Uint8Array;
groupId: Uint8Array;
label: Uint8Array;
secret: Uint8Array;
type: MLSObjectType;
}
interface MLSGroupDetails {
groupEpoch: Uint8Array;
groupId: Uint8Array;
members: MLSGroupMember[];
type: MLSObjectType;
}
interface MLSGroupMember {
clientId: Uint8Array;
credential: Uint8Array;
}
interface MLSReceived {
commitOutput?: MLSCommitOutput;
content?: Uint8Array;
groupEpoch?: Uint8Array;
groupId: Uint8Array;
type: MLSObjectType;
}
interface MakeDirectoryOptions {
createAncestors?: boolean;
ignoreExisting?: boolean;
permissions?: number;
}
interface MatchPatternOptions {
ignorePath?: boolean;
restrictSchemes?: boolean;
}
interface MediaCacheStreamDebugInfo {
cacheSuspended?: boolean;
channelEnded?: boolean;
channelOffset?: number;
loadID?: number;
streamLength?: number;
}
interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
keySystemAccess: MediaKeySystemAccess | null;
}
interface MediaCapabilitiesInfo {
powerEfficient: boolean;
smooth: boolean;
supported: boolean;
}
interface MediaCapabilitiesKeySystemConfiguration {
audio?: KeySystemTrackConfiguration;
distinctiveIdentifier?: MediaKeysRequirement;
initDataType?: string;
keySystem: string;
persistentState?: MediaKeysRequirement;
sessionTypes?: string[];
video?: KeySystemTrackConfiguration;
}
interface MediaConfiguration {
audio?: AudioConfiguration;
video?: VideoConfiguration;
}
interface MediaDecoderDebugInfo {
PlayState?: string;
channels?: number;
containerType?: string;
hasAudio?: boolean;
hasVideo?: boolean;
instance?: string;
rate?: number;
reader?: MediaFormatReaderDebugInfo;
resource?: MediaResourceDebugInfo;
stateMachine?: MediaDecoderStateMachineDebugInfo;
}
interface MediaDecoderStateMachineDebugInfo {
audioCompleted?: boolean;
audioRequestStatus?: string;
clock?: number;
decodedAudioEndTime?: number;
decodedVideoEndTime?: number;
duration?: number;
isPlaying?: boolean;
mediaSink?: MediaSinkDebugInfo;
mediaTime?: number;
playState?: number;
sentFirstFrameLoadedEvent?: boolean;
state?: string;
stateObj?: MediaDecoderStateMachineDecodingStateDebugInfo;
totalBufferingTimeMs?: number;
videoCompleted?: boolean;
videoRequestStatus?: string;
}
interface MediaDecoderStateMachineDecodingStateDebugInfo {
isPrerolling?: boolean;
}
interface MediaDecodingConfiguration extends MediaConfiguration {
keySystemConfiguration?: MediaCapabilitiesKeySystemConfiguration;
type: MediaDecodingType;
}
interface MediaElementAudioSourceOptions {
mediaElement: HTMLMediaElement;
}
interface MediaEncodingConfiguration extends MediaConfiguration {
type: MediaEncodingType;
}
interface MediaFormatReaderDebugInfo {
audioChannels?: number;
audioDecoderName?: string;
audioFramesDecoded?: number;
audioRate?: number;
audioState?: MediaStateDebugInfo;
audioType?: string;
frameStats?: MediaFrameStats;
totalReadMetadataTimeMs?: number;
totalWaitingForVideoDataTimeMs?: number;
videoDecoderName?: string;
videoHardwareAccelerated?: boolean;
videoHeight?: number;
videoNumSamplesOutputTotal?: number;
videoNumSamplesSkippedTotal?: number;
videoRate?: number;
videoState?: MediaStateDebugInfo;
videoType?: string;
videoWidth?: number;
}
interface MediaFrameStats {
droppedCompositorFrames?: number;
droppedDecodedFrames?: number;
droppedSinkFrames?: number;
}
interface MediaImage {
sizes?: string;
src: string;
type?: string;
}
interface MediaKeyMessageEventInit extends EventInit {
message: ArrayBuffer;
messageType: MediaKeyMessageType;
}
interface MediaKeyNeededEventInit extends EventInit {
initData?: ArrayBuffer | null;
initDataType?: string;
}
interface MediaKeySystemConfiguration {
audioCapabilities?: MediaKeySystemMediaCapability[];
distinctiveIdentifier?: MediaKeysRequirement;
initDataTypes?: string[];
label?: string;
persistentState?: MediaKeysRequirement;
sessionTypes?: string[];
videoCapabilities?: MediaKeySystemMediaCapability[];
}
interface MediaKeySystemMediaCapability {
contentType?: string;
encryptionScheme?: string | null;
robustness?: string;
}
interface MediaKeysPolicy {
minHdcpVersion?: HDCPVersion;
}
interface MediaMetadataInit {
album?: string;
artist?: string;
artwork?: MediaImage[];
title?: string;
}
interface MediaPositionState {
duration?: number;
playbackRate?: number;
position?: number;
}
interface MediaQueryListEventInit extends EventInit {
matches?: boolean;
media?: string;
}
interface MediaRecorderErrorEventInit extends EventInit {
error: DOMException;
}
interface MediaRecorderOptions {
audioBitsPerSecond?: number;
bitsPerSecond?: number;
mimeType?: string;
videoBitsPerSecond?: number;
}
interface MediaResourceDebugInfo {
cacheStream?: MediaCacheStreamDebugInfo;
}
interface MediaSessionActionDetails {
action: MediaSessionAction;
fastSeek?: boolean;
seekOffset?: number;
seekTime?: number;
}
interface MediaSinkDebugInfo {
audioSinkWrapper?: AudioSinkWrapperDebugInfo;
decodedStream?: DecodedStreamDebugInfo;
videoSink?: VideoSinkDebugInfo;
}
interface MediaSourceDecoderDebugInfo {
demuxer?: MediaSourceDemuxerDebugInfo;
reader?: MediaFormatReaderDebugInfo;
}
interface MediaSourceDemuxerDebugInfo {
audioTrack?: TrackBuffersManagerDebugInfo;
videoTrack?: TrackBuffersManagerDebugInfo;
}
interface MediaStateDebugInfo {
demuxEOS?: number;
demuxQueueSize?: number;
drainState?: number;
hasDecoder?: boolean;
hasDemuxRequest?: boolean;
hasPromise?: boolean;
lastStreamSourceID?: number;
needInput?: boolean;
numSamplesInput?: number;
numSamplesOutput?: number;
pending?: number;
queueSize?: number;
timeTreshold?: number;
timeTresholdHasSeeked?: boolean;
waitingForData?: boolean;
waitingForKey?: boolean;
waitingPromise?: boolean;
}
interface MediaStreamAudioSourceOptions {
mediaStream: MediaStream;
}
interface MediaStreamConstraints {
audio?: boolean | MediaTrackConstraints;
fake?: boolean;
peerIdentity?: string | null;
picture?: boolean;
video?: boolean | MediaTrackConstraints;
}
interface MediaStreamEventInit extends EventInit {
stream?: MediaStream | null;
}
interface MediaStreamTrackAudioSourceOptions {
mediaStreamTrack: MediaStreamTrack;
}
interface MediaStreamTrackEventInit extends EventInit {
track: MediaStreamTrack;
}
interface MediaTrackCapabilities {
autoGainControl?: boolean[];
channelCount?: ULongRange;
deviceId?: string;
echoCancellation?: boolean[];
facingMode?: string[];
frameRate?: DoubleRange;
groupId?: string;
height?: ULongRange;
noiseSuppression?: boolean[];
resizeMode?: string[];
width?: ULongRange;
}
interface MediaTrackConstraintSet {
autoGainControl?: ConstrainBoolean;
browserWindow?: number;
channelCount?: ConstrainLong;
deviceId?: ConstrainDOMString;
echoCancellation?: ConstrainBoolean;
facingMode?: ConstrainDOMString;
frameRate?: ConstrainDouble;
groupId?: ConstrainDOMString;
height?: ConstrainLong;
mediaSource?: string;
noiseSuppression?: ConstrainBoolean;
resizeMode?: ConstrainDOMString;
scrollWithPage?: boolean;
viewportHeight?: ConstrainLong;
viewportOffsetX?: ConstrainLong;
viewportOffsetY?: ConstrainLong;
viewportWidth?: ConstrainLong;
width?: ConstrainLong;
}
interface MediaTrackConstraints extends MediaTrackConstraintSet {
advanced?: MediaTrackConstraintSet[];
}
interface MediaTrackSettings {
autoGainControl?: boolean;
browserWindow?: number;
channelCount?: number;
deviceId?: string;
echoCancellation?: boolean;
facingMode?: string;
frameRate?: number;
groupId?: string;
height?: number;
mediaSource?: string;
noiseSuppression?: boolean;
resizeMode?: string;
scrollWithPage?: boolean;
viewportHeight?: number;
viewportOffsetX?: number;
viewportOffsetY?: number;
viewportWidth?: number;
width?: number;
}
interface MediaTrackSupportedConstraints {
aspectRatio?: boolean;
autoGainControl?: boolean;
browserWindow?: boolean;
channelCount?: boolean;
deviceId?: boolean;
echoCancellation?: boolean;
facingMode?: boolean;
frameRate?: boolean;
groupId?: boolean;
height?: boolean;
latency?: boolean;
mediaSource?: boolean;
noiseSuppression?: boolean;
resizeMode?: boolean;
sampleRate?: boolean;
sampleSize?: boolean;
scrollWithPage?: boolean;
viewportHeight?: boolean;
viewportOffsetX?: boolean;
viewportOffsetY?: boolean;
viewportWidth?: boolean;
volume?: boolean;
width?: boolean;
}
interface MerchantValidationEventInit extends EventInit {
methodName?: string;
validationURL?: string;
}
interface MessageEventInit extends EventInit {
data?: any;
lastEventId?: string;
origin?: string;
ports?: MessagePort[];
source?: MessageEventSource | null;
}
interface MouseEventInit extends EventModifierInit {
button?: number;
buttons?: number;
clientX?: number;
clientY?: number;
movementX?: number;
movementY?: number;
relatedTarget?: EventTarget | null;
screenX?: number;
screenY?: number;
}
interface MoveOptions {
noOverwrite?: boolean;
}
interface MozDocumentMatcherInit {
allFrames?: boolean;
checkPermissions?: boolean;
excludeGlobs?: MatchGlobOrString[] | null;
exclu