@@ -769,6 +769,26 @@ interface ImageDataSettings {
769769 colorSpace?: PredefinedColorSpace;
770770}
771771
772+ interface ImageDecodeOptions {
773+ completeFramesOnly?: boolean;
774+ frameIndex?: number;
775+ }
776+
777+ interface ImageDecodeResult {
778+ complete: boolean;
779+ image: VideoFrame;
780+ }
781+
782+ interface ImageDecoderInit {
783+ colorSpaceConversion?: ColorSpaceConversion;
784+ data: ImageBufferSource;
785+ desiredHeight?: number;
786+ desiredWidth?: number;
787+ preferAnimation?: boolean;
788+ transfer?: ArrayBuffer[];
789+ type: string;
790+ }
791+
772792interface ImageEncodeOptions {
773793 quality?: number;
774794 type?: string;
@@ -10170,9 +10190,17 @@ interface HTMLButtonElement extends HTMLElement, PopoverInvokerElement {
1017010190 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formMethod)
1017110191 */
1017210192 formMethod: string;
10173- /** Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option. */
10193+ /**
10194+ * Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option.
10195+ *
10196+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formNoValidate)
10197+ */
1017410198 formNoValidate: boolean;
10175- /** Overrides the target attribute on a form element. */
10199+ /**
10200+ * Overrides the target attribute on a form element.
10201+ *
10202+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formTarget)
10203+ */
1017610204 formTarget: string;
1017710205 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/labels) */
1017810206 readonly labels: NodeListOf<HTMLLabelElement>;
@@ -10799,7 +10827,11 @@ interface HTMLFormElement extends HTMLElement {
1079910827 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/name)
1080010828 */
1080110829 name: string;
10802- /** Designates a form that is not validated when submitted. */
10830+ /**
10831+ * Designates a form that is not validated when submitted.
10832+ *
10833+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/noValidate)
10834+ */
1080310835 noValidate: boolean;
1080410836 rel: string;
1080510837 readonly relList: DOMTokenList;
@@ -11452,9 +11484,17 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
1145211484 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formMethod)
1145311485 */
1145411486 formMethod: string;
11455- /** Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option. */
11487+ /**
11488+ * Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option.
11489+ *
11490+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formNoValidate)
11491+ */
1145611492 formNoValidate: boolean;
11457- /** Overrides the target attribute on a form element. */
11493+ /**
11494+ * Overrides the target attribute on a form element.
11495+ *
11496+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formTarget)
11497+ */
1145811498 formTarget: string;
1145911499 /**
1146011500 * Sets or retrieves the height of the object.
@@ -14869,6 +14909,70 @@ declare var ImageData: {
1486914909 new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
1487014910};
1487114911
14912+ /**
14913+ * Available only in secure contexts.
14914+ *
14915+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder)
14916+ */
14917+ interface ImageDecoder {
14918+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/complete) */
14919+ readonly complete: boolean;
14920+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/completed) */
14921+ readonly completed: Promise<undefined>;
14922+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/tracks) */
14923+ readonly tracks: ImageTrackList;
14924+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/type) */
14925+ readonly type: string;
14926+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/close) */
14927+ close(): void;
14928+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/decode) */
14929+ decode(options?: ImageDecodeOptions): Promise<ImageDecodeResult>;
14930+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/reset) */
14931+ reset(): void;
14932+ }
14933+
14934+ declare var ImageDecoder: {
14935+ prototype: ImageDecoder;
14936+ new(init: ImageDecoderInit): ImageDecoder;
14937+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/isTypeSupported_static) */
14938+ isTypeSupported(type: string): Promise<boolean>;
14939+ };
14940+
14941+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack) */
14942+ interface ImageTrack {
14943+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/animated) */
14944+ readonly animated: boolean;
14945+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/frameCount) */
14946+ readonly frameCount: number;
14947+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/repetitionCount) */
14948+ readonly repetitionCount: number;
14949+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/selected) */
14950+ selected: boolean;
14951+ }
14952+
14953+ declare var ImageTrack: {
14954+ prototype: ImageTrack;
14955+ new(): ImageTrack;
14956+ };
14957+
14958+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList) */
14959+ interface ImageTrackList {
14960+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/length) */
14961+ readonly length: number;
14962+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/ready) */
14963+ readonly ready: Promise<undefined>;
14964+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/selectedIndex) */
14965+ readonly selectedIndex: number;
14966+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/selectedTrack) */
14967+ readonly selectedTrack: ImageTrack | null;
14968+ [index: number]: ImageTrack;
14969+ }
14970+
14971+ declare var ImageTrackList: {
14972+ prototype: ImageTrackList;
14973+ new(): ImageTrackList;
14974+ };
14975+
1487214976interface ImportMeta {
1487314977 url: string;
1487414978 resolve(specifier: string): string;
@@ -28816,6 +28920,7 @@ type HashAlgorithmIdentifier = AlgorithmIdentifier;
2881628920type HeadersInit = [string, string][] | Record<string, string> | Headers;
2881728921type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
2881828922type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
28923+ type ImageBufferSource = AllowSharedBufferSource | ReadableStream;
2881928924type Int32List = Int32Array | GLint[];
2882028925type LineAndPositionSetting = number | AutoKeyword;
2882128926type MediaProvider = MediaStream | MediaSource | Blob;
0 commit comments