@typescript-deploys/pr-build 5.1.0-pr-53134-21 → 5.1.0-pr-53098-13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -65,11 +65,30 @@ interface AudioConfiguration {
65
65
  spatialRendering?: boolean;
66
66
  }
67
67
 
68
+ interface AvcEncoderConfig {
69
+ format?: AvcBitstreamFormat;
70
+ }
71
+
68
72
  interface BlobPropertyBag {
69
73
  endings?: EndingType;
70
74
  type?: string;
71
75
  }
72
76
 
77
+ interface CSSMatrixComponentOptions {
78
+ is2D?: boolean;
79
+ }
80
+
81
+ interface CSSNumericType {
82
+ angle?: number;
83
+ flex?: number;
84
+ frequency?: number;
85
+ length?: number;
86
+ percent?: number;
87
+ percentHint?: CSSNumericBaseType;
88
+ resolution?: number;
89
+ time?: number;
90
+ }
91
+
73
92
  interface CacheQueryOptions {
74
93
  ignoreMethod?: boolean;
75
94
  ignoreSearch?: boolean;
@@ -162,6 +181,17 @@ interface EcdsaParams extends Algorithm {
162
181
  hash: HashAlgorithmIdentifier;
163
182
  }
164
183
 
184
+ interface EncodedVideoChunkInit {
185
+ data: BufferSource;
186
+ duration?: number;
187
+ timestamp: number;
188
+ type: EncodedVideoChunkType;
189
+ }
190
+
191
+ interface EncodedVideoChunkMetadata {
192
+ decoderConfig?: VideoDecoderConfig;
193
+ }
194
+
165
195
  interface ErrorEventInit extends EventInit {
166
196
  colno?: number;
167
197
  error?: any;
@@ -454,6 +484,11 @@ interface PermissionDescriptor {
454
484
  name: PermissionName;
455
485
  }
456
486
 
487
+ interface PlaneLayout {
488
+ offset: number;
489
+ stride: number;
490
+ }
491
+
457
492
  interface ProgressEventInit extends EventInit {
458
493
  lengthComputable?: boolean;
459
494
  loaded?: number;
@@ -545,6 +580,11 @@ interface RegistrationOptions {
545
580
  updateViaCache?: ServiceWorkerUpdateViaCache;
546
581
  }
547
582
 
583
+ interface ReportingObserverOptions {
584
+ buffered?: boolean;
585
+ types?: string[];
586
+ }
587
+
548
588
  interface RequestInit {
549
589
  /** A BodyInit object or null to set request's body. */
550
590
  body?: BodyInit | null;
@@ -727,6 +767,85 @@ interface VideoConfiguration {
727
767
  width: number;
728
768
  }
729
769
 
770
+ interface VideoDecoderConfig {
771
+ codec: string;
772
+ codedHeight?: number;
773
+ codedWidth?: number;
774
+ colorSpace?: VideoColorSpaceInit;
775
+ description?: BufferSource;
776
+ displayAspectHeight?: number;
777
+ displayAspectWidth?: number;
778
+ hardwareAcceleration?: HardwareAcceleration;
779
+ optimizeForLatency?: boolean;
780
+ }
781
+
782
+ interface VideoDecoderInit {
783
+ error: WebCodecsErrorCallback;
784
+ output: VideoFrameOutputCallback;
785
+ }
786
+
787
+ interface VideoDecoderSupport {
788
+ config?: VideoDecoderConfig;
789
+ supported?: boolean;
790
+ }
791
+
792
+ interface VideoEncoderConfig {
793
+ alpha?: AlphaOption;
794
+ avc?: AvcEncoderConfig;
795
+ bitrate?: number;
796
+ bitrateMode?: BitrateMode;
797
+ codec: string;
798
+ displayHeight?: number;
799
+ displayWidth?: number;
800
+ framerate?: number;
801
+ hardwareAcceleration?: HardwareAcceleration;
802
+ height: number;
803
+ latencyMode?: LatencyMode;
804
+ scalabilityMode?: string;
805
+ width: number;
806
+ }
807
+
808
+ interface VideoEncoderEncodeOptions {
809
+ keyFrame?: boolean;
810
+ }
811
+
812
+ interface VideoEncoderInit {
813
+ error: WebCodecsErrorCallback;
814
+ output: EncodedVideoChunkOutputCallback;
815
+ }
816
+
817
+ interface VideoEncoderSupport {
818
+ config?: VideoEncoderConfig;
819
+ supported?: boolean;
820
+ }
821
+
822
+ interface VideoFrameBufferInit {
823
+ codedHeight: number;
824
+ codedWidth: number;
825
+ colorSpace?: VideoColorSpaceInit;
826
+ displayHeight?: number;
827
+ displayWidth?: number;
828
+ duration?: number;
829
+ format: VideoPixelFormat;
830
+ layout?: PlaneLayout[];
831
+ timestamp: number;
832
+ visibleRect?: DOMRectInit;
833
+ }
834
+
835
+ interface VideoFrameCopyToOptions {
836
+ layout?: PlaneLayout[];
837
+ rect?: DOMRectInit;
838
+ }
839
+
840
+ interface VideoFrameInit {
841
+ alpha?: AlphaOption;
842
+ displayHeight?: number;
843
+ displayWidth?: number;
844
+ duration?: number;
845
+ timestamp?: number;
846
+ visibleRect?: DOMRectInit;
847
+ }
848
+
730
849
  interface WebGLContextAttributes {
731
850
  alpha?: boolean;
732
851
  antialias?: boolean;
@@ -872,6 +991,271 @@ declare var ByteLengthQueuingStrategy: {
872
991
  new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;
873
992
  };
874
993
 
994
+ interface CSSImageValue extends CSSStyleValue {
995
+ }
996
+
997
+ declare var CSSImageValue: {
998
+ prototype: CSSImageValue;
999
+ new(): CSSImageValue;
1000
+ };
1001
+
1002
+ interface CSSKeywordValue extends CSSStyleValue {
1003
+ value: string;
1004
+ }
1005
+
1006
+ declare var CSSKeywordValue: {
1007
+ prototype: CSSKeywordValue;
1008
+ new(value: string): CSSKeywordValue;
1009
+ };
1010
+
1011
+ interface CSSMathClamp extends CSSMathValue {
1012
+ readonly lower: CSSNumericValue;
1013
+ readonly upper: CSSNumericValue;
1014
+ readonly value: CSSNumericValue;
1015
+ }
1016
+
1017
+ declare var CSSMathClamp: {
1018
+ prototype: CSSMathClamp;
1019
+ new(lower: CSSNumberish, value: CSSNumberish, upper: CSSNumberish): CSSMathClamp;
1020
+ };
1021
+
1022
+ interface CSSMathInvert extends CSSMathValue {
1023
+ readonly value: CSSNumericValue;
1024
+ }
1025
+
1026
+ declare var CSSMathInvert: {
1027
+ prototype: CSSMathInvert;
1028
+ new(arg: CSSNumberish): CSSMathInvert;
1029
+ };
1030
+
1031
+ interface CSSMathMax extends CSSMathValue {
1032
+ readonly values: CSSNumericArray;
1033
+ }
1034
+
1035
+ declare var CSSMathMax: {
1036
+ prototype: CSSMathMax;
1037
+ new(...args: CSSNumberish[]): CSSMathMax;
1038
+ };
1039
+
1040
+ interface CSSMathMin extends CSSMathValue {
1041
+ readonly values: CSSNumericArray;
1042
+ }
1043
+
1044
+ declare var CSSMathMin: {
1045
+ prototype: CSSMathMin;
1046
+ new(...args: CSSNumberish[]): CSSMathMin;
1047
+ };
1048
+
1049
+ interface CSSMathNegate extends CSSMathValue {
1050
+ readonly value: CSSNumericValue;
1051
+ }
1052
+
1053
+ declare var CSSMathNegate: {
1054
+ prototype: CSSMathNegate;
1055
+ new(arg: CSSNumberish): CSSMathNegate;
1056
+ };
1057
+
1058
+ interface CSSMathProduct extends CSSMathValue {
1059
+ readonly values: CSSNumericArray;
1060
+ }
1061
+
1062
+ declare var CSSMathProduct: {
1063
+ prototype: CSSMathProduct;
1064
+ new(...args: CSSNumberish[]): CSSMathProduct;
1065
+ };
1066
+
1067
+ interface CSSMathSum extends CSSMathValue {
1068
+ readonly values: CSSNumericArray;
1069
+ }
1070
+
1071
+ declare var CSSMathSum: {
1072
+ prototype: CSSMathSum;
1073
+ new(...args: CSSNumberish[]): CSSMathSum;
1074
+ };
1075
+
1076
+ interface CSSMathValue extends CSSNumericValue {
1077
+ readonly operator: CSSMathOperator;
1078
+ }
1079
+
1080
+ declare var CSSMathValue: {
1081
+ prototype: CSSMathValue;
1082
+ new(): CSSMathValue;
1083
+ };
1084
+
1085
+ interface CSSMatrixComponent extends CSSTransformComponent {
1086
+ matrix: DOMMatrix;
1087
+ }
1088
+
1089
+ declare var CSSMatrixComponent: {
1090
+ prototype: CSSMatrixComponent;
1091
+ new(matrix: DOMMatrixReadOnly, options?: CSSMatrixComponentOptions): CSSMatrixComponent;
1092
+ };
1093
+
1094
+ interface CSSNumericArray {
1095
+ readonly length: number;
1096
+ forEach(callbackfn: (value: CSSNumericValue, key: number, parent: CSSNumericArray) => void, thisArg?: any): void;
1097
+ [index: number]: CSSNumericValue;
1098
+ }
1099
+
1100
+ declare var CSSNumericArray: {
1101
+ prototype: CSSNumericArray;
1102
+ new(): CSSNumericArray;
1103
+ };
1104
+
1105
+ interface CSSNumericValue extends CSSStyleValue {
1106
+ add(...values: CSSNumberish[]): CSSNumericValue;
1107
+ div(...values: CSSNumberish[]): CSSNumericValue;
1108
+ equals(...value: CSSNumberish[]): boolean;
1109
+ max(...values: CSSNumberish[]): CSSNumericValue;
1110
+ min(...values: CSSNumberish[]): CSSNumericValue;
1111
+ mul(...values: CSSNumberish[]): CSSNumericValue;
1112
+ sub(...values: CSSNumberish[]): CSSNumericValue;
1113
+ to(unit: string): CSSUnitValue;
1114
+ toSum(...units: string[]): CSSMathSum;
1115
+ type(): CSSNumericType;
1116
+ }
1117
+
1118
+ declare var CSSNumericValue: {
1119
+ prototype: CSSNumericValue;
1120
+ new(): CSSNumericValue;
1121
+ };
1122
+
1123
+ interface CSSPerspective extends CSSTransformComponent {
1124
+ length: CSSPerspectiveValue;
1125
+ }
1126
+
1127
+ declare var CSSPerspective: {
1128
+ prototype: CSSPerspective;
1129
+ new(length: CSSPerspectiveValue): CSSPerspective;
1130
+ };
1131
+
1132
+ interface CSSRotate extends CSSTransformComponent {
1133
+ angle: CSSNumericValue;
1134
+ x: CSSNumberish;
1135
+ y: CSSNumberish;
1136
+ z: CSSNumberish;
1137
+ }
1138
+
1139
+ declare var CSSRotate: {
1140
+ prototype: CSSRotate;
1141
+ new(angle: CSSNumericValue): CSSRotate;
1142
+ new(x: CSSNumberish, y: CSSNumberish, z: CSSNumberish, angle: CSSNumericValue): CSSRotate;
1143
+ };
1144
+
1145
+ interface CSSScale extends CSSTransformComponent {
1146
+ x: CSSNumberish;
1147
+ y: CSSNumberish;
1148
+ z: CSSNumberish;
1149
+ }
1150
+
1151
+ declare var CSSScale: {
1152
+ prototype: CSSScale;
1153
+ new(x: CSSNumberish, y: CSSNumberish, z?: CSSNumberish): CSSScale;
1154
+ };
1155
+
1156
+ interface CSSSkew extends CSSTransformComponent {
1157
+ ax: CSSNumericValue;
1158
+ ay: CSSNumericValue;
1159
+ }
1160
+
1161
+ declare var CSSSkew: {
1162
+ prototype: CSSSkew;
1163
+ new(ax: CSSNumericValue, ay: CSSNumericValue): CSSSkew;
1164
+ };
1165
+
1166
+ interface CSSSkewX extends CSSTransformComponent {
1167
+ ax: CSSNumericValue;
1168
+ }
1169
+
1170
+ declare var CSSSkewX: {
1171
+ prototype: CSSSkewX;
1172
+ new(ax: CSSNumericValue): CSSSkewX;
1173
+ };
1174
+
1175
+ interface CSSSkewY extends CSSTransformComponent {
1176
+ ay: CSSNumericValue;
1177
+ }
1178
+
1179
+ declare var CSSSkewY: {
1180
+ prototype: CSSSkewY;
1181
+ new(ay: CSSNumericValue): CSSSkewY;
1182
+ };
1183
+
1184
+ interface CSSStyleValue {
1185
+ toString(): string;
1186
+ }
1187
+
1188
+ declare var CSSStyleValue: {
1189
+ prototype: CSSStyleValue;
1190
+ new(): CSSStyleValue;
1191
+ };
1192
+
1193
+ interface CSSTransformComponent {
1194
+ is2D: boolean;
1195
+ toMatrix(): DOMMatrix;
1196
+ toString(): string;
1197
+ }
1198
+
1199
+ declare var CSSTransformComponent: {
1200
+ prototype: CSSTransformComponent;
1201
+ new(): CSSTransformComponent;
1202
+ };
1203
+
1204
+ interface CSSTransformValue extends CSSStyleValue {
1205
+ readonly is2D: boolean;
1206
+ readonly length: number;
1207
+ toMatrix(): DOMMatrix;
1208
+ forEach(callbackfn: (value: CSSTransformComponent, key: number, parent: CSSTransformValue) => void, thisArg?: any): void;
1209
+ [index: number]: CSSTransformComponent;
1210
+ }
1211
+
1212
+ declare var CSSTransformValue: {
1213
+ prototype: CSSTransformValue;
1214
+ new(transforms: CSSTransformComponent[]): CSSTransformValue;
1215
+ };
1216
+
1217
+ interface CSSTranslate extends CSSTransformComponent {
1218
+ x: CSSNumericValue;
1219
+ y: CSSNumericValue;
1220
+ z: CSSNumericValue;
1221
+ }
1222
+
1223
+ declare var CSSTranslate: {
1224
+ prototype: CSSTranslate;
1225
+ new(x: CSSNumericValue, y: CSSNumericValue, z?: CSSNumericValue): CSSTranslate;
1226
+ };
1227
+
1228
+ interface CSSUnitValue extends CSSNumericValue {
1229
+ readonly unit: string;
1230
+ value: number;
1231
+ }
1232
+
1233
+ declare var CSSUnitValue: {
1234
+ prototype: CSSUnitValue;
1235
+ new(value: number, unit: string): CSSUnitValue;
1236
+ };
1237
+
1238
+ interface CSSUnparsedValue extends CSSStyleValue {
1239
+ readonly length: number;
1240
+ forEach(callbackfn: (value: CSSUnparsedSegment, key: number, parent: CSSUnparsedValue) => void, thisArg?: any): void;
1241
+ [index: number]: CSSUnparsedSegment;
1242
+ }
1243
+
1244
+ declare var CSSUnparsedValue: {
1245
+ prototype: CSSUnparsedValue;
1246
+ new(members: CSSUnparsedSegment[]): CSSUnparsedValue;
1247
+ };
1248
+
1249
+ interface CSSVariableReferenceValue {
1250
+ readonly fallback: CSSUnparsedValue | null;
1251
+ variable: string;
1252
+ }
1253
+
1254
+ declare var CSSVariableReferenceValue: {
1255
+ prototype: CSSVariableReferenceValue;
1256
+ new(variable: string, fallback?: CSSUnparsedValue | null): CSSVariableReferenceValue;
1257
+ };
1258
+
875
1259
  /**
876
1260
  * Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec.
877
1261
  * Available only in secure contexts.
@@ -1094,6 +1478,14 @@ declare var CloseEvent: {
1094
1478
  new(type: string, eventInitDict?: CloseEventInit): CloseEvent;
1095
1479
  };
1096
1480
 
1481
+ interface CompressionStream extends GenericTransformStream {
1482
+ }
1483
+
1484
+ declare var CompressionStream: {
1485
+ prototype: CompressionStream;
1486
+ new(format: string): CompressionStream;
1487
+ };
1488
+
1097
1489
  /** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */
1098
1490
  interface CountQueuingStrategy extends QueuingStrategy {
1099
1491
  readonly highWaterMark: number;
@@ -1398,6 +1790,14 @@ declare var DOMStringList: {
1398
1790
  new(): DOMStringList;
1399
1791
  };
1400
1792
 
1793
+ interface DecompressionStream extends GenericTransformStream {
1794
+ }
1795
+
1796
+ declare var DecompressionStream: {
1797
+ prototype: DecompressionStream;
1798
+ new(format: string): DecompressionStream;
1799
+ };
1800
+
1401
1801
  interface DedicatedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
1402
1802
  "message": MessageEvent;
1403
1803
  "messageerror": MessageEvent;
@@ -1488,6 +1888,19 @@ interface EXT_texture_norm16 {
1488
1888
  readonly RGBA16_SNORM_EXT: 0x8F9B;
1489
1889
  }
1490
1890
 
1891
+ interface EncodedVideoChunk {
1892
+ readonly byteLength: number;
1893
+ readonly duration: number | null;
1894
+ readonly timestamp: number;
1895
+ readonly type: EncodedVideoChunkType;
1896
+ copyTo(destination: BufferSource): void;
1897
+ }
1898
+
1899
+ declare var EncodedVideoChunk: {
1900
+ prototype: EncodedVideoChunk;
1901
+ new(init: EncodedVideoChunkInit): EncodedVideoChunk;
1902
+ };
1903
+
1491
1904
  /** Events providing information related to errors in scripts or in files. */
1492
1905
  interface ErrorEvent extends Event {
1493
1906
  readonly colno: number;
@@ -3019,6 +3432,38 @@ interface ReadableStreamGenericReader {
3019
3432
  cancel(reason?: any): Promise<void>;
3020
3433
  }
3021
3434
 
3435
+ interface Report {
3436
+ readonly body: ReportBody | null;
3437
+ readonly type: string;
3438
+ readonly url: string;
3439
+ toJSON(): any;
3440
+ }
3441
+
3442
+ declare var Report: {
3443
+ prototype: Report;
3444
+ new(): Report;
3445
+ };
3446
+
3447
+ interface ReportBody {
3448
+ toJSON(): any;
3449
+ }
3450
+
3451
+ declare var ReportBody: {
3452
+ prototype: ReportBody;
3453
+ new(): ReportBody;
3454
+ };
3455
+
3456
+ interface ReportingObserver {
3457
+ disconnect(): void;
3458
+ observe(): void;
3459
+ takeRecords(): ReportList;
3460
+ }
3461
+
3462
+ declare var ReportingObserver: {
3463
+ prototype: ReportingObserver;
3464
+ new(callback: ReportingObserverCallback, options?: ReportingObserverOptions): ReportingObserver;
3465
+ };
3466
+
3022
3467
  /** This Fetch API interface represents a resource request. */
3023
3468
  interface Request extends Body {
3024
3469
  /** Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser's cache when fetching. */
@@ -3254,6 +3699,19 @@ declare var StorageManager: {
3254
3699
  new(): StorageManager;
3255
3700
  };
3256
3701
 
3702
+ interface StylePropertyMapReadOnly {
3703
+ readonly size: number;
3704
+ get(property: string): undefined | CSSStyleValue;
3705
+ getAll(property: string): CSSStyleValue[];
3706
+ has(property: string): boolean;
3707
+ forEach(callbackfn: (value: CSSStyleValue[], key: string, parent: StylePropertyMapReadOnly) => void, thisArg?: any): void;
3708
+ }
3709
+
3710
+ declare var StylePropertyMapReadOnly: {
3711
+ prototype: StylePropertyMapReadOnly;
3712
+ new(): StylePropertyMapReadOnly;
3713
+ };
3714
+
3257
3715
  /**
3258
3716
  * This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via Window.crypto).
3259
3717
  * Available only in secure contexts.
@@ -3444,7 +3902,6 @@ interface URLSearchParams {
3444
3902
  declare var URLSearchParams: {
3445
3903
  prototype: URLSearchParams;
3446
3904
  new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
3447
- toString(): string;
3448
3905
  };
3449
3906
 
3450
3907
  interface VideoColorSpace {
@@ -3460,6 +3917,81 @@ declare var VideoColorSpace: {
3460
3917
  new(init?: VideoColorSpaceInit): VideoColorSpace;
3461
3918
  };
3462
3919
 
3920
+ interface VideoDecoderEventMap {
3921
+ "dequeue": Event;
3922
+ }
3923
+
3924
+ /** Available only in secure contexts. */
3925
+ interface VideoDecoder extends EventTarget {
3926
+ readonly decodeQueueSize: number;
3927
+ ondequeue: ((this: VideoDecoder, ev: Event) => any) | null;
3928
+ readonly state: CodecState;
3929
+ close(): void;
3930
+ configure(config: VideoDecoderConfig): void;
3931
+ decode(chunk: EncodedVideoChunk): void;
3932
+ flush(): Promise<void>;
3933
+ reset(): void;
3934
+ addEventListener<K extends keyof VideoDecoderEventMap>(type: K, listener: (this: VideoDecoder, ev: VideoDecoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
3935
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
3936
+ removeEventListener<K extends keyof VideoDecoderEventMap>(type: K, listener: (this: VideoDecoder, ev: VideoDecoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
3937
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
3938
+ }
3939
+
3940
+ declare var VideoDecoder: {
3941
+ prototype: VideoDecoder;
3942
+ new(init: VideoDecoderInit): VideoDecoder;
3943
+ isConfigSupported(config: VideoDecoderConfig): Promise<VideoDecoderSupport>;
3944
+ };
3945
+
3946
+ interface VideoEncoderEventMap {
3947
+ "dequeue": Event;
3948
+ }
3949
+
3950
+ /** Available only in secure contexts. */
3951
+ interface VideoEncoder extends EventTarget {
3952
+ readonly encodeQueueSize: number;
3953
+ ondequeue: ((this: VideoEncoder, ev: Event) => any) | null;
3954
+ readonly state: CodecState;
3955
+ close(): void;
3956
+ configure(config: VideoEncoderConfig): void;
3957
+ encode(frame: VideoFrame, options?: VideoEncoderEncodeOptions): void;
3958
+ flush(): Promise<void>;
3959
+ reset(): void;
3960
+ addEventListener<K extends keyof VideoEncoderEventMap>(type: K, listener: (this: VideoEncoder, ev: VideoEncoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
3961
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
3962
+ removeEventListener<K extends keyof VideoEncoderEventMap>(type: K, listener: (this: VideoEncoder, ev: VideoEncoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
3963
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
3964
+ }
3965
+
3966
+ declare var VideoEncoder: {
3967
+ prototype: VideoEncoder;
3968
+ new(init: VideoEncoderInit): VideoEncoder;
3969
+ isConfigSupported(config: VideoEncoderConfig): Promise<VideoEncoderSupport>;
3970
+ };
3971
+
3972
+ interface VideoFrame {
3973
+ readonly codedHeight: number;
3974
+ readonly codedRect: DOMRectReadOnly | null;
3975
+ readonly codedWidth: number;
3976
+ readonly colorSpace: VideoColorSpace;
3977
+ readonly displayHeight: number;
3978
+ readonly displayWidth: number;
3979
+ readonly duration: number | null;
3980
+ readonly format: VideoPixelFormat | null;
3981
+ readonly timestamp: number;
3982
+ readonly visibleRect: DOMRectReadOnly | null;
3983
+ allocationSize(options?: VideoFrameCopyToOptions): number;
3984
+ clone(): VideoFrame;
3985
+ close(): void;
3986
+ copyTo(destination: BufferSource, options?: VideoFrameCopyToOptions): Promise<PlaneLayout[]>;
3987
+ }
3988
+
3989
+ declare var VideoFrame: {
3990
+ prototype: VideoFrame;
3991
+ new(image: CanvasImageSource, init?: VideoFrameInit): VideoFrame;
3992
+ new(data: BufferSource, init: VideoFrameBufferInit): VideoFrame;
3993
+ };
3994
+
3463
3995
  interface WEBGL_color_buffer_float {
3464
3996
  readonly RGBA32F_EXT: 0x8814;
3465
3997
  readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211;
@@ -3515,6 +4047,13 @@ interface WEBGL_compressed_texture_etc1 {
3515
4047
  readonly COMPRESSED_RGB_ETC1_WEBGL: 0x8D64;
3516
4048
  }
3517
4049
 
4050
+ interface WEBGL_compressed_texture_pvrtc {
4051
+ readonly COMPRESSED_RGB_PVRTC_4BPPV1_IMG: 0x8C00;
4052
+ readonly COMPRESSED_RGB_PVRTC_2BPPV1_IMG: 0x8C01;
4053
+ readonly COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: 0x8C02;
4054
+ readonly COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: 0x8C03;
4055
+ }
4056
+
3518
4057
  /** The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats. */
3519
4058
  interface WEBGL_compressed_texture_s3tc {
3520
4059
  readonly COMPRESSED_RGB_S3TC_DXT1_EXT: 0x83F0;
@@ -4931,6 +5470,7 @@ declare var WebGLRenderingContext: {
4931
5470
  };
4932
5471
 
4933
5472
  interface WebGLRenderingContextBase {
5473
+ drawingBufferColorSpace: PredefinedColorSpace;
4934
5474
  readonly drawingBufferHeight: GLsizei;
4935
5475
  readonly drawingBufferWidth: GLsizei;
4936
5476
  activeTexture(texture: GLenum): void;
@@ -5015,6 +5555,7 @@ interface WebGLRenderingContextBase {
5015
5555
  getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;
5016
5556
  getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;
5017
5557
  getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;
5558
+ getExtension(extensionName: "WEBGL_compressed_texture_pvrtc"): WEBGL_compressed_texture_pvrtc | null;
5018
5559
  getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
5019
5560
  getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;
5020
5561
  getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;
@@ -5655,6 +6196,7 @@ declare var WorkerLocation: {
5655
6196
  /** A subset of the Navigator interface allowed to be accessed from a Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.navigator property obtained by calling window.self.navigator. */
5656
6197
  interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorStorage {
5657
6198
  readonly mediaCapabilities: MediaCapabilities;
6199
+ readonly permissions: Permissions;
5658
6200
  }
5659
6201
 
5660
6202
  declare var WorkerNavigator: {
@@ -5999,6 +6541,10 @@ declare namespace WebAssembly {
5999
6541
  function validate(bytes: BufferSource): boolean;
6000
6542
  }
6001
6543
 
6544
+ interface EncodedVideoChunkOutputCallback {
6545
+ (chunk: EncodedVideoChunk, metadata?: EncodedVideoChunkMetadata): void;
6546
+ }
6547
+
6002
6548
  interface FrameRequestCallback {
6003
6549
  (time: DOMHighResTimeStamp): void;
6004
6550
  }
@@ -6019,6 +6565,10 @@ interface QueuingStrategySize<T = any> {
6019
6565
  (chunk: T): number;
6020
6566
  }
6021
6567
 
6568
+ interface ReportingObserverCallback {
6569
+ (reports: Report[], observer: ReportingObserver): void;
6570
+ }
6571
+
6022
6572
  interface TransformerFlushCallback<O> {
6023
6573
  (controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
6024
6574
  }
@@ -6059,10 +6609,18 @@ interface UnderlyingSourceStartCallback<R> {
6059
6609
  (controller: ReadableStreamController<R>): any;
6060
6610
  }
6061
6611
 
6612
+ interface VideoFrameOutputCallback {
6613
+ (output: VideoFrame): void;
6614
+ }
6615
+
6062
6616
  interface VoidFunction {
6063
6617
  (): void;
6064
6618
  }
6065
6619
 
6620
+ interface WebCodecsErrorCallback {
6621
+ (error: DOMException): void;
6622
+ }
6623
+
6066
6624
  /** Returns dedicatedWorkerGlobal's name, i.e. the value given to the Worker constructor. Primarily useful for debugging. */
6067
6625
  declare var name: string;
6068
6626
  declare var onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
@@ -6123,7 +6681,11 @@ type BinaryData = ArrayBuffer | ArrayBufferView;
6123
6681
  type BlobPart = BufferSource | Blob | string;
6124
6682
  type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
6125
6683
  type BufferSource = ArrayBufferView | ArrayBuffer;
6126
- type CanvasImageSource = ImageBitmap | OffscreenCanvas;
6684
+ type CSSKeywordish = string | CSSKeywordValue;
6685
+ type CSSNumberish = number | CSSNumericValue;
6686
+ type CSSPerspectiveValue = CSSNumericValue | CSSKeywordish;
6687
+ type CSSUnparsedSegment = string | CSSVariableReferenceValue;
6688
+ type CanvasImageSource = ImageBitmap | OffscreenCanvas | VideoFrame;
6127
6689
  type DOMHighResTimeStamp = number;
6128
6690
  type EpochTimeStamp = number;
6129
6691
  type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
@@ -6155,14 +6717,20 @@ type PushMessageDataInit = BufferSource | string;
6155
6717
  type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
6156
6718
  type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
6157
6719
  type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;
6720
+ type ReportList = Report[];
6158
6721
  type RequestInfo = Request | string;
6159
- type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas;
6722
+ type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas | VideoFrame;
6160
6723
  type TimerHandler = string | Function;
6161
- type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer;
6724
+ type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | VideoFrame | ArrayBuffer;
6162
6725
  type Uint32List = Uint32Array | GLuint[];
6163
6726
  type VibratePattern = number | number[];
6164
6727
  type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
6728
+ type AlphaOption = "discard" | "keep";
6729
+ type AvcBitstreamFormat = "annexb" | "avc";
6165
6730
  type BinaryType = "arraybuffer" | "blob";
6731
+ type BitrateMode = "constant" | "variable";
6732
+ type CSSMathOperator = "clamp" | "invert" | "max" | "min" | "negate" | "product" | "sum";
6733
+ type CSSNumericBaseType = "angle" | "flex" | "frequency" | "length" | "percent" | "resolution" | "time";
6166
6734
  type CanvasDirection = "inherit" | "ltr" | "rtl";
6167
6735
  type CanvasFillRule = "evenodd" | "nonzero";
6168
6736
  type CanvasFontKerning = "auto" | "none" | "normal";
@@ -6174,9 +6742,11 @@ type CanvasTextAlign = "center" | "end" | "left" | "right" | "start";
6174
6742
  type CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top";
6175
6743
  type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" | "optimizeSpeed";
6176
6744
  type ClientTypes = "all" | "sharedworker" | "window" | "worker";
6745
+ type CodecState = "closed" | "configured" | "unconfigured";
6177
6746
  type ColorGamut = "p3" | "rec2020" | "srgb";
6178
6747
  type ColorSpaceConversion = "default" | "none";
6179
6748
  type DocumentVisibilityState = "hidden" | "visible";
6749
+ type EncodedVideoChunkType = "delta" | "key";
6180
6750
  type EndingType = "native" | "transparent";
6181
6751
  type FileSystemHandleKind = "directory" | "file";
6182
6752
  type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
@@ -6184,6 +6754,7 @@ type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
6184
6754
  type FontFaceSetLoadStatus = "loaded" | "loading";
6185
6755
  type FrameType = "auxiliary" | "nested" | "none" | "top-level";
6186
6756
  type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor";
6757
+ type HardwareAcceleration = "no-preference" | "prefer-hardware" | "prefer-software";
6187
6758
  type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
6188
6759
  type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
6189
6760
  type IDBRequestReadyState = "done" | "pending";
@@ -6194,6 +6765,7 @@ type ImageSmoothingQuality = "high" | "low" | "medium";
6194
6765
  type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
6195
6766
  type KeyType = "private" | "public" | "secret";
6196
6767
  type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
6768
+ type LatencyMode = "quality" | "realtime";
6197
6769
  type LockMode = "exclusive" | "shared";
6198
6770
  type MediaDecodingType = "file" | "media-source" | "webrtc";
6199
6771
  type MediaEncodingType = "record" | "webrtc";
@@ -6222,6 +6794,7 @@ type ServiceWorkerUpdateViaCache = "all" | "imports" | "none";
6222
6794
  type TransferFunction = "hlg" | "pq" | "srgb";
6223
6795
  type VideoColorPrimaries = "bt470bg" | "bt709" | "smpte170m";
6224
6796
  type VideoMatrixCoefficients = "bt470bg" | "bt709" | "rgb" | "smpte170m";
6797
+ type VideoPixelFormat = "BGRA" | "BGRX" | "I420" | "I420A" | "I422" | "I444" | "NV12" | "RGBA" | "RGBX";
6225
6798
  type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m";
6226
6799
  type WebGLPowerPreference = "default" | "high-performance" | "low-power";
6227
6800
  type WorkerType = "classic" | "module";