@cloudflare/workers-types 4.20240701.0 → 4.20240712.0

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.
@@ -54,7 +54,7 @@ declare class DOMException extends Error {
54
54
  get stack(): any;
55
55
  set stack(value: any);
56
56
  }
57
- declare type WorkerGlobalScopeEventMap = {
57
+ type WorkerGlobalScopeEventMap = {
58
58
  fetch: FetchEvent;
59
59
  scheduled: ScheduledEvent;
60
60
  queue: QueueEvent;
@@ -65,7 +65,7 @@ declare abstract class WorkerGlobalScope extends EventTarget<WorkerGlobalScopeEv
65
65
  EventTarget: typeof EventTarget;
66
66
  }
67
67
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console) */
68
- declare interface Console {
68
+ interface Console {
69
69
  "assert"(condition?: boolean, ...data: any[]): void;
70
70
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/clear_static) */
71
71
  clear(): void;
@@ -106,8 +106,8 @@ declare interface Console {
106
106
  warn(...data: any[]): void;
107
107
  }
108
108
  declare const console: Console;
109
- declare type BufferSource = ArrayBufferView | ArrayBuffer;
110
- declare type TypedArray =
109
+ type BufferSource = ArrayBufferView | ArrayBuffer;
110
+ type TypedArray =
111
111
  | Int8Array
112
112
  | Uint8Array
113
113
  | Uint8ClampedArray
@@ -198,7 +198,7 @@ declare namespace WebAssembly {
198
198
  *
199
199
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope)
200
200
  */
201
- declare interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
201
+ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
202
202
  DOMException: typeof DOMException;
203
203
  WorkerGlobalScope: typeof WorkerGlobalScope;
204
204
  btoa(data: string): string;
@@ -279,16 +279,16 @@ declare interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
279
279
  FixedLengthStream: typeof FixedLengthStream;
280
280
  IdentityTransformStream: typeof IdentityTransformStream;
281
281
  HTMLRewriter: typeof HTMLRewriter;
282
- GPUAdapter: typeof gpuGPUAdapter;
283
- GPUOutOfMemoryError: typeof gpuGPUOutOfMemoryError;
284
- GPUValidationError: typeof gpuGPUValidationError;
285
- GPUInternalError: typeof gpuGPUInternalError;
286
- GPUDeviceLostInfo: typeof gpuGPUDeviceLostInfo;
287
- GPUBufferUsage: typeof gpuGPUBufferUsage;
288
- GPUShaderStage: typeof gpuGPUShaderStage;
289
- GPUMapMode: typeof gpuGPUMapMode;
290
- GPUTextureUsage: typeof gpuGPUTextureUsage;
291
- GPUColorWrite: typeof gpuGPUColorWrite;
282
+ GPUAdapter: typeof GPUAdapter;
283
+ GPUOutOfMemoryError: typeof GPUOutOfMemoryError;
284
+ GPUValidationError: typeof GPUValidationError;
285
+ GPUInternalError: typeof GPUInternalError;
286
+ GPUDeviceLostInfo: typeof GPUDeviceLostInfo;
287
+ GPUBufferUsage: typeof GPUBufferUsage;
288
+ GPUShaderStage: typeof GPUShaderStage;
289
+ GPUMapMode: typeof GPUMapMode;
290
+ GPUTextureUsage: typeof GPUTextureUsage;
291
+ GPUColorWrite: typeof GPUColorWrite;
292
292
  }
293
293
  declare function addEventListener<Type extends keyof WorkerGlobalScopeEventMap>(
294
294
  type: Type,
@@ -360,45 +360,42 @@ declare const caches: CacheStorage;
360
360
  declare const scheduler: Scheduler;
361
361
  declare const performance: Performance;
362
362
  declare const origin: string;
363
- declare interface TestController {}
364
- declare interface ExecutionContext {
363
+ interface TestController {}
364
+ interface ExecutionContext {
365
365
  waitUntil(promise: Promise<any>): void;
366
366
  passThroughOnException(): void;
367
367
  }
368
- declare type ExportedHandlerFetchHandler<
369
- Env = unknown,
370
- CfHostMetadata = unknown,
371
- > = (
368
+ type ExportedHandlerFetchHandler<Env = unknown, CfHostMetadata = unknown> = (
372
369
  request: Request<CfHostMetadata, IncomingRequestCfProperties<CfHostMetadata>>,
373
370
  env: Env,
374
371
  ctx: ExecutionContext,
375
372
  ) => Response | Promise<Response>;
376
- declare type ExportedHandlerTailHandler<Env = unknown> = (
373
+ type ExportedHandlerTailHandler<Env = unknown> = (
377
374
  events: TraceItem[],
378
375
  env: Env,
379
376
  ctx: ExecutionContext,
380
377
  ) => void | Promise<void>;
381
- declare type ExportedHandlerTraceHandler<Env = unknown> = (
378
+ type ExportedHandlerTraceHandler<Env = unknown> = (
382
379
  traces: TraceItem[],
383
380
  env: Env,
384
381
  ctx: ExecutionContext,
385
382
  ) => void | Promise<void>;
386
- declare type ExportedHandlerScheduledHandler<Env = unknown> = (
383
+ type ExportedHandlerScheduledHandler<Env = unknown> = (
387
384
  controller: ScheduledController,
388
385
  env: Env,
389
386
  ctx: ExecutionContext,
390
387
  ) => void | Promise<void>;
391
- declare type ExportedHandlerQueueHandler<Env = unknown, Message = unknown> = (
388
+ type ExportedHandlerQueueHandler<Env = unknown, Message = unknown> = (
392
389
  batch: MessageBatch<Message>,
393
390
  env: Env,
394
391
  ctx: ExecutionContext,
395
392
  ) => void | Promise<void>;
396
- declare type ExportedHandlerTestHandler<Env = unknown> = (
393
+ type ExportedHandlerTestHandler<Env = unknown> = (
397
394
  controller: TestController,
398
395
  env: Env,
399
396
  ctx: ExecutionContext,
400
397
  ) => void | Promise<void>;
401
- declare interface ExportedHandler<
398
+ interface ExportedHandler<
402
399
  Env = unknown,
403
400
  QueueHandlerMessage = unknown,
404
401
  CfHostMetadata = unknown,
@@ -411,7 +408,7 @@ declare interface ExportedHandler<
411
408
  email?: EmailExportedHandler<Env>;
412
409
  queue?: ExportedHandlerQueueHandler<Env, QueueHandlerMessage>;
413
410
  }
414
- declare interface StructuredSerializeOptions {
411
+ interface StructuredSerializeOptions {
415
412
  transfer?: any[];
416
413
  }
417
414
  declare abstract class PromiseRejectionEvent extends Event {
@@ -425,17 +422,17 @@ declare abstract class PromiseRejectionEvent extends Event {
425
422
  *
426
423
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance)
427
424
  */
428
- declare interface Performance {
425
+ interface Performance {
429
426
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/timeOrigin) */
430
427
  readonly timeOrigin: number;
431
428
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/now) */
432
429
  now(): number;
433
430
  }
434
- declare interface AlarmInvocationInfo {
431
+ interface AlarmInvocationInfo {
435
432
  readonly isRetry: boolean;
436
433
  readonly retryCount: number;
437
434
  }
438
- declare interface DurableObject {
435
+ interface DurableObject {
439
436
  fetch(request: Request): Response | Promise<Response>;
440
437
  alarm?(): void | Promise<void>;
441
438
  webSocketMessage?(
@@ -450,7 +447,7 @@ declare interface DurableObject {
450
447
  ): void | Promise<void>;
451
448
  webSocketError?(ws: WebSocket, error: unknown): void | Promise<void>;
452
449
  }
453
- declare type DurableObjectStub<
450
+ type DurableObjectStub<
454
451
  T extends Rpc.DurableObjectBranded | undefined = undefined,
455
452
  > = Fetcher<
456
453
  T,
@@ -459,12 +456,12 @@ declare type DurableObjectStub<
459
456
  readonly id: DurableObjectId;
460
457
  readonly name?: string;
461
458
  };
462
- declare interface DurableObjectId {
459
+ interface DurableObjectId {
463
460
  toString(): string;
464
461
  equals(other: DurableObjectId): boolean;
465
462
  readonly name?: string;
466
463
  }
467
- declare interface DurableObjectNamespace<
464
+ interface DurableObjectNamespace<
468
465
  T extends Rpc.DurableObjectBranded | undefined = undefined,
469
466
  > {
470
467
  newUniqueId(
@@ -480,11 +477,11 @@ declare interface DurableObjectNamespace<
480
477
  jurisdiction: DurableObjectJurisdiction,
481
478
  ): DurableObjectNamespace<T>;
482
479
  }
483
- declare type DurableObjectJurisdiction = "eu" | "fedramp";
484
- declare interface DurableObjectNamespaceNewUniqueIdOptions {
480
+ type DurableObjectJurisdiction = "eu" | "fedramp";
481
+ interface DurableObjectNamespaceNewUniqueIdOptions {
485
482
  jurisdiction?: DurableObjectJurisdiction;
486
483
  }
487
- declare type DurableObjectLocationHint =
484
+ type DurableObjectLocationHint =
488
485
  | "wnam"
489
486
  | "enam"
490
487
  | "sam"
@@ -494,10 +491,10 @@ declare type DurableObjectLocationHint =
494
491
  | "oc"
495
492
  | "afr"
496
493
  | "me";
497
- declare interface DurableObjectNamespaceGetDurableObjectOptions {
494
+ interface DurableObjectNamespaceGetDurableObjectOptions {
498
495
  locationHint?: DurableObjectLocationHint;
499
496
  }
500
- declare interface DurableObjectState {
497
+ interface DurableObjectState {
501
498
  waitUntil(promise: Promise<any>): void;
502
499
  readonly id: DurableObjectId;
503
500
  readonly storage: DurableObjectStorage;
@@ -511,7 +508,7 @@ declare interface DurableObjectState {
511
508
  getHibernatableWebSocketEventTimeout(): number | null;
512
509
  getTags(ws: WebSocket): string[];
513
510
  }
514
- declare interface DurableObjectTransaction {
511
+ interface DurableObjectTransaction {
515
512
  get<T = unknown>(
516
513
  key: string,
517
514
  options?: DurableObjectGetOptions,
@@ -542,7 +539,7 @@ declare interface DurableObjectTransaction {
542
539
  ): Promise<void>;
543
540
  deleteAlarm(options?: DurableObjectSetAlarmOptions): Promise<void>;
544
541
  }
545
- declare interface DurableObjectStorage {
542
+ interface DurableObjectStorage {
546
543
  get<T = unknown>(
547
544
  key: string,
548
545
  options?: DurableObjectGetOptions,
@@ -578,7 +575,7 @@ declare interface DurableObjectStorage {
578
575
  sync(): Promise<void>;
579
576
  transactionSync<T>(closure: () => T): T;
580
577
  }
581
- declare interface DurableObjectListOptions {
578
+ interface DurableObjectListOptions {
582
579
  start?: string;
583
580
  startAfter?: string;
584
581
  end?: string;
@@ -588,19 +585,19 @@ declare interface DurableObjectListOptions {
588
585
  allowConcurrency?: boolean;
589
586
  noCache?: boolean;
590
587
  }
591
- declare interface DurableObjectGetOptions {
588
+ interface DurableObjectGetOptions {
592
589
  allowConcurrency?: boolean;
593
590
  noCache?: boolean;
594
591
  }
595
- declare interface DurableObjectGetAlarmOptions {
592
+ interface DurableObjectGetAlarmOptions {
596
593
  allowConcurrency?: boolean;
597
594
  }
598
- declare interface DurableObjectPutOptions {
595
+ interface DurableObjectPutOptions {
599
596
  allowConcurrency?: boolean;
600
597
  allowUnconfirmed?: boolean;
601
598
  noCache?: boolean;
602
599
  }
603
- declare interface DurableObjectSetAlarmOptions {
600
+ interface DurableObjectSetAlarmOptions {
604
601
  allowConcurrency?: boolean;
605
602
  allowUnconfirmed?: boolean;
606
603
  }
@@ -609,10 +606,10 @@ declare class WebSocketRequestResponsePair {
609
606
  get request(): string;
610
607
  get response(): string;
611
608
  }
612
- declare interface AnalyticsEngineDataset {
609
+ interface AnalyticsEngineDataset {
613
610
  writeDataPoint(event?: AnalyticsEngineDataPoint): void;
614
611
  }
615
- declare interface AnalyticsEngineDataPoint {
612
+ interface AnalyticsEngineDataPoint {
616
613
  indexes?: ((ArrayBuffer | string) | null)[];
617
614
  doubles?: number[];
618
615
  blobs?: ((ArrayBuffer | string) | null)[];
@@ -726,20 +723,20 @@ declare class Event {
726
723
  static readonly AT_TARGET: number;
727
724
  static readonly BUBBLING_PHASE: number;
728
725
  }
729
- declare interface EventInit {
726
+ interface EventInit {
730
727
  bubbles?: boolean;
731
728
  cancelable?: boolean;
732
729
  composed?: boolean;
733
730
  }
734
- declare type EventListener<EventType extends Event = Event> = (
731
+ type EventListener<EventType extends Event = Event> = (
735
732
  event: EventType,
736
733
  ) => void;
737
- declare interface EventListenerObject<EventType extends Event = Event> {
734
+ interface EventListenerObject<EventType extends Event = Event> {
738
735
  handleEvent(event: EventType): void;
739
736
  }
740
- declare type EventListenerOrEventListenerObject<
741
- EventType extends Event = Event,
742
- > = EventListener<EventType> | EventListenerObject<EventType>;
737
+ type EventListenerOrEventListenerObject<EventType extends Event = Event> =
738
+ | EventListener<EventType>
739
+ | EventListenerObject<EventType>;
743
740
  declare class EventTarget<
744
741
  EventMap extends Record<string, Event> = Record<string, Event>,
745
742
  > {
@@ -783,16 +780,16 @@ declare class EventTarget<
783
780
  */
784
781
  dispatchEvent(event: EventMap[keyof EventMap]): boolean;
785
782
  }
786
- declare interface EventTargetEventListenerOptions {
783
+ interface EventTargetEventListenerOptions {
787
784
  capture?: boolean;
788
785
  }
789
- declare interface EventTargetAddEventListenerOptions {
786
+ interface EventTargetAddEventListenerOptions {
790
787
  capture?: boolean;
791
788
  passive?: boolean;
792
789
  once?: boolean;
793
790
  signal?: AbortSignal;
794
791
  }
795
- declare interface EventTargetHandlerObject {
792
+ interface EventTargetHandlerObject {
796
793
  handleEvent: (event: Event) => any | undefined;
797
794
  }
798
795
  declare class AbortController {
@@ -831,10 +828,10 @@ declare abstract class AbortSignal extends EventTarget {
831
828
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/throwIfAborted) */
832
829
  throwIfAborted(): void;
833
830
  }
834
- declare interface Scheduler {
831
+ interface Scheduler {
835
832
  wait(delay: number, maybeOptions?: SchedulerWaitOptions): Promise<void>;
836
833
  }
837
- declare interface SchedulerWaitOptions {
834
+ interface SchedulerWaitOptions {
838
835
  signal?: AbortSignal;
839
836
  }
840
837
  declare abstract class ExtendableEvent extends Event {
@@ -850,7 +847,7 @@ declare class CustomEvent<T = any> extends Event {
850
847
  */
851
848
  get detail(): T;
852
849
  }
853
- declare interface CustomEventCustomEventInit {
850
+ interface CustomEventCustomEventInit {
854
851
  bubbles?: boolean;
855
852
  cancelable?: boolean;
856
853
  composed?: boolean;
@@ -875,7 +872,7 @@ declare class Blob {
875
872
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream) */
876
873
  stream(): ReadableStream;
877
874
  }
878
- declare interface BlobOptions {
875
+ interface BlobOptions {
879
876
  type?: string;
880
877
  }
881
878
  declare class File extends Blob {
@@ -889,7 +886,7 @@ declare class File extends Blob {
889
886
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified) */
890
887
  get lastModified(): number;
891
888
  }
892
- declare interface FileOptions {
889
+ interface FileOptions {
893
890
  type?: string;
894
891
  lastModified?: number;
895
892
  }
@@ -906,7 +903,7 @@ declare abstract class Cache {
906
903
  ): Promise<Response | undefined>;
907
904
  put(request: RequestInfo, response: Response): Promise<void>;
908
905
  }
909
- declare interface CacheQueryOptions {
906
+ interface CacheQueryOptions {
910
907
  ignoreMethod?: boolean;
911
908
  }
912
909
  declare abstract class Crypto {
@@ -1027,11 +1024,11 @@ declare abstract class CryptoKey {
1027
1024
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/usages) */
1028
1025
  readonly usages: string[];
1029
1026
  }
1030
- declare interface CryptoKeyPair {
1027
+ interface CryptoKeyPair {
1031
1028
  publicKey: CryptoKey;
1032
1029
  privateKey: CryptoKey;
1033
1030
  }
1034
- declare interface JsonWebKey {
1031
+ interface JsonWebKey {
1035
1032
  kty: string;
1036
1033
  use?: string;
1037
1034
  key_ops?: string[];
@@ -1051,12 +1048,12 @@ declare interface JsonWebKey {
1051
1048
  oth?: RsaOtherPrimesInfo[];
1052
1049
  k?: string;
1053
1050
  }
1054
- declare interface RsaOtherPrimesInfo {
1051
+ interface RsaOtherPrimesInfo {
1055
1052
  r?: string;
1056
1053
  d?: string;
1057
1054
  t?: string;
1058
1055
  }
1059
- declare interface SubtleCryptoDeriveKeyAlgorithm {
1056
+ interface SubtleCryptoDeriveKeyAlgorithm {
1060
1057
  name: string;
1061
1058
  salt?: ArrayBuffer;
1062
1059
  iterations?: number;
@@ -1064,7 +1061,7 @@ declare interface SubtleCryptoDeriveKeyAlgorithm {
1064
1061
  $public?: CryptoKey;
1065
1062
  info?: ArrayBuffer;
1066
1063
  }
1067
- declare interface SubtleCryptoEncryptAlgorithm {
1064
+ interface SubtleCryptoEncryptAlgorithm {
1068
1065
  name: string;
1069
1066
  iv?: ArrayBuffer;
1070
1067
  additionalData?: ArrayBuffer;
@@ -1073,7 +1070,7 @@ declare interface SubtleCryptoEncryptAlgorithm {
1073
1070
  length?: number;
1074
1071
  label?: ArrayBuffer;
1075
1072
  }
1076
- declare interface SubtleCryptoGenerateKeyAlgorithm {
1073
+ interface SubtleCryptoGenerateKeyAlgorithm {
1077
1074
  name: string;
1078
1075
  hash?: string | SubtleCryptoHashAlgorithm;
1079
1076
  modulusLength?: number;
@@ -1081,45 +1078,45 @@ declare interface SubtleCryptoGenerateKeyAlgorithm {
1081
1078
  length?: number;
1082
1079
  namedCurve?: string;
1083
1080
  }
1084
- declare interface SubtleCryptoHashAlgorithm {
1081
+ interface SubtleCryptoHashAlgorithm {
1085
1082
  name: string;
1086
1083
  }
1087
- declare interface SubtleCryptoImportKeyAlgorithm {
1084
+ interface SubtleCryptoImportKeyAlgorithm {
1088
1085
  name: string;
1089
1086
  hash?: string | SubtleCryptoHashAlgorithm;
1090
1087
  length?: number;
1091
1088
  namedCurve?: string;
1092
1089
  compressed?: boolean;
1093
1090
  }
1094
- declare interface SubtleCryptoSignAlgorithm {
1091
+ interface SubtleCryptoSignAlgorithm {
1095
1092
  name: string;
1096
1093
  hash?: string | SubtleCryptoHashAlgorithm;
1097
1094
  dataLength?: number;
1098
1095
  saltLength?: number;
1099
1096
  }
1100
- declare interface CryptoKeyKeyAlgorithm {
1097
+ interface CryptoKeyKeyAlgorithm {
1101
1098
  name: string;
1102
1099
  }
1103
- declare interface CryptoKeyAesKeyAlgorithm {
1100
+ interface CryptoKeyAesKeyAlgorithm {
1104
1101
  name: string;
1105
1102
  length: number;
1106
1103
  }
1107
- declare interface CryptoKeyHmacKeyAlgorithm {
1104
+ interface CryptoKeyHmacKeyAlgorithm {
1108
1105
  name: string;
1109
1106
  hash: CryptoKeyKeyAlgorithm;
1110
1107
  length: number;
1111
1108
  }
1112
- declare interface CryptoKeyRsaKeyAlgorithm {
1109
+ interface CryptoKeyRsaKeyAlgorithm {
1113
1110
  name: string;
1114
1111
  modulusLength: number;
1115
1112
  publicExponent: ArrayBuffer | (ArrayBuffer | ArrayBufferView);
1116
1113
  hash?: CryptoKeyKeyAlgorithm;
1117
1114
  }
1118
- declare interface CryptoKeyEllipticKeyAlgorithm {
1115
+ interface CryptoKeyEllipticKeyAlgorithm {
1119
1116
  name: string;
1120
1117
  namedCurve: string;
1121
1118
  }
1122
- declare interface CryptoKeyArbitraryKeyAlgorithm {
1119
+ interface CryptoKeyArbitraryKeyAlgorithm {
1123
1120
  name: string;
1124
1121
  hash?: CryptoKeyKeyAlgorithm;
1125
1122
  namedCurve?: string;
@@ -1176,14 +1173,14 @@ declare class TextEncoder {
1176
1173
  ): TextEncoderEncodeIntoResult;
1177
1174
  get encoding(): string;
1178
1175
  }
1179
- declare interface TextDecoderConstructorOptions {
1176
+ interface TextDecoderConstructorOptions {
1180
1177
  fatal: boolean;
1181
1178
  ignoreBOM: boolean;
1182
1179
  }
1183
- declare interface TextDecoderDecodeOptions {
1180
+ interface TextDecoderDecodeOptions {
1184
1181
  stream: boolean;
1185
1182
  }
1186
- declare interface TextEncoderEncodeIntoResult {
1183
+ interface TextEncoderEncodeIntoResult {
1187
1184
  read: number;
1188
1185
  written: number;
1189
1186
  }
@@ -1200,7 +1197,7 @@ declare class ErrorEvent extends Event {
1200
1197
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/error) */
1201
1198
  get error(): any;
1202
1199
  }
1203
- declare interface ErrorEventErrorEventInit {
1200
+ interface ErrorEventErrorEventInit {
1204
1201
  message?: string;
1205
1202
  filename?: string;
1206
1203
  lineno?: number;
@@ -1234,7 +1231,7 @@ declare class FormData {
1234
1231
  ): void;
1235
1232
  [Symbol.iterator](): IterableIterator<[key: string, value: File | string]>;
1236
1233
  }
1237
- declare interface ContentOptions {
1234
+ interface ContentOptions {
1238
1235
  html?: boolean;
1239
1236
  }
1240
1237
  declare class HTMLRewriter {
@@ -1246,23 +1243,23 @@ declare class HTMLRewriter {
1246
1243
  onDocument(handlers: HTMLRewriterDocumentContentHandlers): HTMLRewriter;
1247
1244
  transform(response: Response): Response;
1248
1245
  }
1249
- declare interface HTMLRewriterElementContentHandlers {
1246
+ interface HTMLRewriterElementContentHandlers {
1250
1247
  element?(element: Element): void | Promise<void>;
1251
1248
  comments?(comment: Comment): void | Promise<void>;
1252
1249
  text?(element: Text): void | Promise<void>;
1253
1250
  }
1254
- declare interface HTMLRewriterDocumentContentHandlers {
1251
+ interface HTMLRewriterDocumentContentHandlers {
1255
1252
  doctype?(doctype: Doctype): void | Promise<void>;
1256
1253
  comments?(comment: Comment): void | Promise<void>;
1257
1254
  text?(text: Text): void | Promise<void>;
1258
1255
  end?(end: DocumentEnd): void | Promise<void>;
1259
1256
  }
1260
- declare interface Doctype {
1257
+ interface Doctype {
1261
1258
  readonly name: string | null;
1262
1259
  readonly publicId: string | null;
1263
1260
  readonly systemId: string | null;
1264
1261
  }
1265
- declare interface Element {
1262
+ interface Element {
1266
1263
  tagName: string;
1267
1264
  readonly attributes: IterableIterator<string[]>;
1268
1265
  readonly removed: boolean;
@@ -1281,13 +1278,13 @@ declare interface Element {
1281
1278
  setInnerContent(content: string, options?: ContentOptions): Element;
1282
1279
  onEndTag(handler: (tag: EndTag) => void | Promise<void>): void;
1283
1280
  }
1284
- declare interface EndTag {
1281
+ interface EndTag {
1285
1282
  name: string;
1286
1283
  before(content: string, options?: ContentOptions): EndTag;
1287
1284
  after(content: string, options?: ContentOptions): EndTag;
1288
1285
  remove(): EndTag;
1289
1286
  }
1290
- declare interface Comment {
1287
+ interface Comment {
1291
1288
  text: string;
1292
1289
  readonly removed: boolean;
1293
1290
  before(content: string, options?: ContentOptions): Comment;
@@ -1295,7 +1292,7 @@ declare interface Comment {
1295
1292
  replace(content: string, options?: ContentOptions): Comment;
1296
1293
  remove(): Comment;
1297
1294
  }
1298
- declare interface Text {
1295
+ interface Text {
1299
1296
  readonly text: string;
1300
1297
  readonly lastInTextNode: boolean;
1301
1298
  readonly removed: boolean;
@@ -1304,7 +1301,7 @@ declare interface Text {
1304
1301
  replace(content: string, options?: ContentOptions): Text;
1305
1302
  remove(): Text;
1306
1303
  }
1307
- declare interface DocumentEnd {
1304
+ interface DocumentEnd {
1308
1305
  append(content: string, options?: ContentOptions): DocumentEnd;
1309
1306
  }
1310
1307
  declare abstract class FetchEvent extends ExtendableEvent {
@@ -1314,7 +1311,7 @@ declare abstract class FetchEvent extends ExtendableEvent {
1314
1311
  respondWith(promise: Response | Promise<Response>): void;
1315
1312
  passThroughOnException(): void;
1316
1313
  }
1317
- declare type HeadersInit =
1314
+ type HeadersInit =
1318
1315
  | Headers
1319
1316
  | Iterable<Iterable<string>>
1320
1317
  | Record<string, string>;
@@ -1338,7 +1335,7 @@ declare class Headers {
1338
1335
  values(): IterableIterator<string>;
1339
1336
  [Symbol.iterator](): IterableIterator<[key: string, value: string]>;
1340
1337
  }
1341
- declare type BodyInit =
1338
+ type BodyInit =
1342
1339
  | ReadableStream<Uint8Array>
1343
1340
  | string
1344
1341
  | ArrayBuffer
@@ -1379,7 +1376,7 @@ declare class Response extends Body {
1379
1376
  get webSocket(): WebSocket | null;
1380
1377
  get cf(): any | undefined;
1381
1378
  }
1382
- declare interface ResponseInit {
1379
+ interface ResponseInit {
1383
1380
  status?: number;
1384
1381
  statusText?: string;
1385
1382
  headers?: HeadersInit;
@@ -1387,10 +1384,10 @@ declare interface ResponseInit {
1387
1384
  webSocket?: WebSocket | null;
1388
1385
  encodeBody?: "automatic" | "manual";
1389
1386
  }
1390
- declare type RequestInfo<
1391
- CfHostMetadata = unknown,
1392
- Cf = CfProperties<CfHostMetadata>,
1393
- > = Request<CfHostMetadata, Cf> | string | URL;
1387
+ type RequestInfo<CfHostMetadata = unknown, Cf = CfProperties<CfHostMetadata>> =
1388
+ | Request<CfHostMetadata, Cf>
1389
+ | string
1390
+ | URL;
1394
1391
  declare class Request<
1395
1392
  CfHostMetadata = unknown,
1396
1393
  Cf = CfProperties<CfHostMetadata>,
@@ -1443,7 +1440,7 @@ declare class Request<
1443
1440
  */
1444
1441
  get keepalive(): boolean;
1445
1442
  }
1446
- declare interface RequestInit<Cf = CfProperties> {
1443
+ interface RequestInit<Cf = CfProperties> {
1447
1444
  /** A string to set request's method. */
1448
1445
  method?: string;
1449
1446
  /** A Headers object, an object literal, or an array of two-item arrays to set request's headers. */
@@ -1459,10 +1456,9 @@ declare interface RequestInit<Cf = CfProperties> {
1459
1456
  /** An AbortSignal to set request's signal. */
1460
1457
  signal?: AbortSignal | null;
1461
1458
  }
1462
- declare type Service<
1463
- T extends Rpc.WorkerEntrypointBranded | undefined = undefined,
1464
- > = Fetcher<T>;
1465
- declare type Fetcher<
1459
+ type Service<T extends Rpc.WorkerEntrypointBranded | undefined = undefined> =
1460
+ Fetcher<T>;
1461
+ type Fetcher<
1466
1462
  T extends Rpc.EntrypointBranded | undefined = undefined,
1467
1463
  Reserved extends string = never,
1468
1464
  > = (T extends Rpc.EntrypointBranded
@@ -1471,16 +1467,16 @@ declare type Fetcher<
1471
1467
  fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
1472
1468
  connect(address: SocketAddress | string, options?: SocketOptions): Socket;
1473
1469
  };
1474
- declare interface FetcherPutOptions {
1470
+ interface FetcherPutOptions {
1475
1471
  expiration?: number;
1476
1472
  expirationTtl?: number;
1477
1473
  }
1478
- declare interface KVNamespaceListKey<Metadata, Key extends string = string> {
1474
+ interface KVNamespaceListKey<Metadata, Key extends string = string> {
1479
1475
  name: Key;
1480
1476
  expiration?: number;
1481
1477
  metadata?: Metadata;
1482
1478
  }
1483
- declare type KVNamespaceListResult<Metadata, Key extends string = string> =
1479
+ type KVNamespaceListResult<Metadata, Key extends string = string> =
1484
1480
  | {
1485
1481
  list_complete: false;
1486
1482
  keys: KVNamespaceListKey<Metadata, Key>[];
@@ -1492,7 +1488,7 @@ declare type KVNamespaceListResult<Metadata, Key extends string = string> =
1492
1488
  keys: KVNamespaceListKey<Metadata, Key>[];
1493
1489
  cacheStatus: string | null;
1494
1490
  };
1495
- declare interface KVNamespace<Key extends string = string> {
1491
+ interface KVNamespace<Key extends string = string> {
1496
1492
  get(
1497
1493
  key: Key,
1498
1494
  options?: Partial<KVNamespaceGetOptions<undefined>>,
@@ -1566,49 +1562,49 @@ declare interface KVNamespace<Key extends string = string> {
1566
1562
  ): Promise<KVNamespaceGetWithMetadataResult<ReadableStream, Metadata>>;
1567
1563
  delete(key: Key): Promise<void>;
1568
1564
  }
1569
- declare interface KVNamespaceListOptions {
1565
+ interface KVNamespaceListOptions {
1570
1566
  limit?: number;
1571
1567
  prefix?: string | null;
1572
1568
  cursor?: string | null;
1573
1569
  }
1574
- declare interface KVNamespaceGetOptions<Type> {
1570
+ interface KVNamespaceGetOptions<Type> {
1575
1571
  type: Type;
1576
1572
  cacheTtl?: number;
1577
1573
  }
1578
- declare interface KVNamespacePutOptions {
1574
+ interface KVNamespacePutOptions {
1579
1575
  expiration?: number;
1580
1576
  expirationTtl?: number;
1581
1577
  metadata?: any | null;
1582
1578
  }
1583
- declare interface KVNamespaceGetWithMetadataResult<Value, Metadata> {
1579
+ interface KVNamespaceGetWithMetadataResult<Value, Metadata> {
1584
1580
  value: Value | null;
1585
1581
  metadata: Metadata | null;
1586
1582
  cacheStatus: string | null;
1587
1583
  }
1588
- declare type QueueContentType = "text" | "bytes" | "json" | "v8";
1589
- declare interface Queue<Body = unknown> {
1584
+ type QueueContentType = "text" | "bytes" | "json" | "v8";
1585
+ interface Queue<Body = unknown> {
1590
1586
  send(message: Body, options?: QueueSendOptions): Promise<void>;
1591
1587
  sendBatch(
1592
1588
  messages: Iterable<MessageSendRequest<Body>>,
1593
1589
  options?: QueueSendBatchOptions,
1594
1590
  ): Promise<void>;
1595
1591
  }
1596
- declare interface QueueSendOptions {
1592
+ interface QueueSendOptions {
1597
1593
  contentType?: QueueContentType;
1598
1594
  delaySeconds?: number;
1599
1595
  }
1600
- declare interface QueueSendBatchOptions {
1596
+ interface QueueSendBatchOptions {
1601
1597
  delaySeconds?: number;
1602
1598
  }
1603
- declare interface MessageSendRequest<Body = unknown> {
1599
+ interface MessageSendRequest<Body = unknown> {
1604
1600
  body: Body;
1605
1601
  contentType?: QueueContentType;
1606
1602
  delaySeconds?: number;
1607
1603
  }
1608
- declare interface QueueRetryOptions {
1604
+ interface QueueRetryOptions {
1609
1605
  delaySeconds?: number;
1610
1606
  }
1611
- declare interface Message<Body = unknown> {
1607
+ interface Message<Body = unknown> {
1612
1608
  readonly id: string;
1613
1609
  readonly timestamp: Date;
1614
1610
  readonly body: Body;
@@ -1616,26 +1612,26 @@ declare interface Message<Body = unknown> {
1616
1612
  retry(options?: QueueRetryOptions): void;
1617
1613
  ack(): void;
1618
1614
  }
1619
- declare interface QueueEvent<Body = unknown> extends ExtendableEvent {
1615
+ interface QueueEvent<Body = unknown> extends ExtendableEvent {
1620
1616
  readonly messages: readonly Message<Body>[];
1621
1617
  readonly queue: string;
1622
1618
  retryAll(options?: QueueRetryOptions): void;
1623
1619
  ackAll(): void;
1624
1620
  }
1625
- declare interface MessageBatch<Body = unknown> {
1621
+ interface MessageBatch<Body = unknown> {
1626
1622
  readonly messages: readonly Message<Body>[];
1627
1623
  readonly queue: string;
1628
1624
  retryAll(options?: QueueRetryOptions): void;
1629
1625
  ackAll(): void;
1630
1626
  }
1631
- declare interface R2Error extends Error {
1627
+ interface R2Error extends Error {
1632
1628
  readonly name: string;
1633
1629
  readonly code: number;
1634
1630
  readonly message: string;
1635
1631
  readonly action: string;
1636
1632
  readonly stack: any;
1637
1633
  }
1638
- declare interface R2ListOptions {
1634
+ interface R2ListOptions {
1639
1635
  limit?: number;
1640
1636
  prefix?: string;
1641
1637
  cursor?: string;
@@ -1683,7 +1679,7 @@ declare abstract class R2Bucket {
1683
1679
  delete(keys: string | string[]): Promise<void>;
1684
1680
  list(options?: R2ListOptions): Promise<R2Objects>;
1685
1681
  }
1686
- declare interface R2MultipartUpload {
1682
+ interface R2MultipartUpload {
1687
1683
  readonly key: string;
1688
1684
  readonly uploadId: string;
1689
1685
  uploadPart(
@@ -1693,7 +1689,7 @@ declare interface R2MultipartUpload {
1693
1689
  abort(): Promise<void>;
1694
1690
  complete(uploadedParts: R2UploadedPart[]): Promise<R2Object>;
1695
1691
  }
1696
- declare interface R2UploadedPart {
1692
+ interface R2UploadedPart {
1697
1693
  partNumber: number;
1698
1694
  etag: string;
1699
1695
  }
@@ -1711,7 +1707,7 @@ declare abstract class R2Object {
1711
1707
  readonly storageClass: string;
1712
1708
  writeHttpMetadata(headers: Headers): void;
1713
1709
  }
1714
- declare interface R2ObjectBody extends R2Object {
1710
+ interface R2ObjectBody extends R2Object {
1715
1711
  get body(): ReadableStream;
1716
1712
  get bodyUsed(): boolean;
1717
1713
  arrayBuffer(): Promise<ArrayBuffer>;
@@ -1719,7 +1715,7 @@ declare interface R2ObjectBody extends R2Object {
1719
1715
  json<T>(): Promise<T>;
1720
1716
  blob(): Promise<Blob>;
1721
1717
  }
1722
- declare type R2Range =
1718
+ type R2Range =
1723
1719
  | {
1724
1720
  offset: number;
1725
1721
  length?: number;
@@ -1731,18 +1727,18 @@ declare type R2Range =
1731
1727
  | {
1732
1728
  suffix: number;
1733
1729
  };
1734
- declare interface R2Conditional {
1730
+ interface R2Conditional {
1735
1731
  etagMatches?: string;
1736
1732
  etagDoesNotMatch?: string;
1737
1733
  uploadedBefore?: Date;
1738
1734
  uploadedAfter?: Date;
1739
1735
  secondsGranularity?: boolean;
1740
1736
  }
1741
- declare interface R2GetOptions {
1737
+ interface R2GetOptions {
1742
1738
  onlyIf?: R2Conditional | Headers;
1743
1739
  range?: R2Range | Headers;
1744
1740
  }
1745
- declare interface R2PutOptions {
1741
+ interface R2PutOptions {
1746
1742
  onlyIf?: R2Conditional | Headers;
1747
1743
  httpMetadata?: R2HTTPMetadata | Headers;
1748
1744
  customMetadata?: Record<string, string>;
@@ -1753,12 +1749,12 @@ declare interface R2PutOptions {
1753
1749
  sha512?: ArrayBuffer | string;
1754
1750
  storageClass?: string;
1755
1751
  }
1756
- declare interface R2MultipartOptions {
1752
+ interface R2MultipartOptions {
1757
1753
  httpMetadata?: R2HTTPMetadata | Headers;
1758
1754
  customMetadata?: Record<string, string>;
1759
1755
  storageClass?: string;
1760
1756
  }
1761
- declare interface R2Checksums {
1757
+ interface R2Checksums {
1762
1758
  readonly md5?: ArrayBuffer;
1763
1759
  readonly sha1?: ArrayBuffer;
1764
1760
  readonly sha256?: ArrayBuffer;
@@ -1766,14 +1762,14 @@ declare interface R2Checksums {
1766
1762
  readonly sha512?: ArrayBuffer;
1767
1763
  toJSON(): R2StringChecksums;
1768
1764
  }
1769
- declare interface R2StringChecksums {
1765
+ interface R2StringChecksums {
1770
1766
  md5?: string;
1771
1767
  sha1?: string;
1772
1768
  sha256?: string;
1773
1769
  sha384?: string;
1774
1770
  sha512?: string;
1775
1771
  }
1776
- declare interface R2HTTPMetadata {
1772
+ interface R2HTTPMetadata {
1777
1773
  contentType?: string;
1778
1774
  contentLanguage?: string;
1779
1775
  contentDisposition?: string;
@@ -1781,7 +1777,7 @@ declare interface R2HTTPMetadata {
1781
1777
  cacheControl?: string;
1782
1778
  cacheExpiry?: Date;
1783
1779
  }
1784
- declare type R2Objects = {
1780
+ type R2Objects = {
1785
1781
  objects: R2Object[];
1786
1782
  delimitedPrefixes: string[];
1787
1783
  } & (
@@ -1798,16 +1794,16 @@ declare abstract class ScheduledEvent extends ExtendableEvent {
1798
1794
  readonly cron: string;
1799
1795
  noRetry(): void;
1800
1796
  }
1801
- declare interface ScheduledController {
1797
+ interface ScheduledController {
1802
1798
  readonly scheduledTime: number;
1803
1799
  readonly cron: string;
1804
1800
  noRetry(): void;
1805
1801
  }
1806
- declare interface QueuingStrategy<T = any> {
1802
+ interface QueuingStrategy<T = any> {
1807
1803
  highWaterMark?: number | bigint;
1808
1804
  size?: (chunk: T) => number | bigint;
1809
1805
  }
1810
- declare interface UnderlyingSink<W = any> {
1806
+ interface UnderlyingSink<W = any> {
1811
1807
  type?: string;
1812
1808
  start?: (controller: WritableStreamDefaultController) => void | Promise<void>;
1813
1809
  write?: (
@@ -1817,14 +1813,14 @@ declare interface UnderlyingSink<W = any> {
1817
1813
  abort?: (reason: any) => void | Promise<void>;
1818
1814
  close?: () => void | Promise<void>;
1819
1815
  }
1820
- declare interface UnderlyingByteSource {
1816
+ interface UnderlyingByteSource {
1821
1817
  type: "bytes";
1822
1818
  autoAllocateChunkSize?: number;
1823
1819
  start?: (controller: ReadableByteStreamController) => void | Promise<void>;
1824
1820
  pull?: (controller: ReadableByteStreamController) => void | Promise<void>;
1825
1821
  cancel?: (reason: any) => void | Promise<void>;
1826
1822
  }
1827
- declare interface UnderlyingSource<R = any> {
1823
+ interface UnderlyingSource<R = any> {
1828
1824
  type?: "" | undefined;
1829
1825
  start?: (
1830
1826
  controller: ReadableStreamDefaultController<R>,
@@ -1835,7 +1831,7 @@ declare interface UnderlyingSource<R = any> {
1835
1831
  cancel?: (reason: any) => void | Promise<void>;
1836
1832
  expectedLength?: number | bigint;
1837
1833
  }
1838
- declare interface Transformer<I = any, O = any> {
1834
+ interface Transformer<I = any, O = any> {
1839
1835
  readableType?: string;
1840
1836
  writableType?: string;
1841
1837
  start?: (
@@ -1851,7 +1847,7 @@ declare interface Transformer<I = any, O = any> {
1851
1847
  cancel?: (reason: any) => void | Promise<void>;
1852
1848
  expectedLength?: number;
1853
1849
  }
1854
- declare interface StreamPipeOptions {
1850
+ interface StreamPipeOptions {
1855
1851
  /**
1856
1852
  * Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.
1857
1853
  *
@@ -1874,7 +1870,7 @@ declare interface StreamPipeOptions {
1874
1870
  preventCancel?: boolean;
1875
1871
  signal?: AbortSignal;
1876
1872
  }
1877
- declare type ReadableStreamReadResult<R = any> =
1873
+ type ReadableStreamReadResult<R = any> =
1878
1874
  | {
1879
1875
  done: false;
1880
1876
  value: R;
@@ -1888,7 +1884,7 @@ declare type ReadableStreamReadResult<R = any> =
1888
1884
  *
1889
1885
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream)
1890
1886
  */
1891
- declare interface ReadableStream<R = any> {
1887
+ interface ReadableStream<R = any> {
1892
1888
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/locked) */
1893
1889
  get locked(): boolean;
1894
1890
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/cancel) */
@@ -1949,10 +1945,10 @@ declare class ReadableStreamBYOBReader {
1949
1945
  view: T,
1950
1946
  ): Promise<ReadableStreamReadResult<T>>;
1951
1947
  }
1952
- declare interface ReadableStreamBYOBReaderReadableStreamBYOBReaderReadOptions {
1948
+ interface ReadableStreamBYOBReaderReadableStreamBYOBReaderReadOptions {
1953
1949
  min?: number;
1954
1950
  }
1955
- declare interface ReadableStreamGetReaderOptions {
1951
+ interface ReadableStreamGetReaderOptions {
1956
1952
  /**
1957
1953
  * Creates a ReadableStreamBYOBReader and locks the stream to the new reader.
1958
1954
  *
@@ -1961,7 +1957,7 @@ declare interface ReadableStreamGetReaderOptions {
1961
1957
  mode: "byob";
1962
1958
  }
1963
1959
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest) */
1964
- declare interface ReadableStreamBYOBRequest {
1960
+ interface ReadableStreamBYOBRequest {
1965
1961
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view) */
1966
1962
  get view(): Uint8Array | null;
1967
1963
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respond) */
@@ -1971,7 +1967,7 @@ declare interface ReadableStreamBYOBRequest {
1971
1967
  get atLeast(): number | null;
1972
1968
  }
1973
1969
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController) */
1974
- declare interface ReadableStreamDefaultController<R = any> {
1970
+ interface ReadableStreamDefaultController<R = any> {
1975
1971
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/desiredSize) */
1976
1972
  get desiredSize(): number | null;
1977
1973
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/close) */
@@ -1982,7 +1978,7 @@ declare interface ReadableStreamDefaultController<R = any> {
1982
1978
  error(reason: any): void;
1983
1979
  }
1984
1980
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController) */
1985
- declare interface ReadableByteStreamController {
1981
+ interface ReadableByteStreamController {
1986
1982
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/byobRequest) */
1987
1983
  get byobRequest(): ReadableStreamBYOBRequest | null;
1988
1984
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/desiredSize) */
@@ -1999,14 +1995,14 @@ declare interface ReadableByteStreamController {
1999
1995
  *
2000
1996
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController)
2001
1997
  */
2002
- declare interface WritableStreamDefaultController {
1998
+ interface WritableStreamDefaultController {
2003
1999
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/signal) */
2004
2000
  get signal(): AbortSignal;
2005
2001
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/error) */
2006
2002
  error(reason?: any): void;
2007
2003
  }
2008
2004
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController) */
2009
- declare interface TransformStreamDefaultController<O = any> {
2005
+ interface TransformStreamDefaultController<O = any> {
2010
2006
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/desiredSize) */
2011
2007
  get desiredSize(): number | null;
2012
2008
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/enqueue) */
@@ -2016,7 +2012,7 @@ declare interface TransformStreamDefaultController<O = any> {
2016
2012
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/terminate) */
2017
2013
  terminate(): void;
2018
2014
  }
2019
- declare interface ReadableWritablePair<R = any, W = any> {
2015
+ interface ReadableWritablePair<R = any, W = any> {
2020
2016
  /**
2021
2017
  * Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use.
2022
2018
  *
@@ -2079,10 +2075,10 @@ declare class IdentityTransformStream extends TransformStream<
2079
2075
  > {
2080
2076
  constructor(queuingStrategy?: IdentityTransformStreamQueuingStrategy);
2081
2077
  }
2082
- declare interface IdentityTransformStreamQueuingStrategy {
2078
+ interface IdentityTransformStreamQueuingStrategy {
2083
2079
  highWaterMark?: number | bigint;
2084
2080
  }
2085
- declare interface ReadableStreamValuesOptions {
2081
+ interface ReadableStreamValuesOptions {
2086
2082
  preventCancel?: boolean;
2087
2083
  }
2088
2084
  declare class CompressionStream extends TransformStream<
@@ -2110,7 +2106,7 @@ declare class TextDecoderStream extends TransformStream<
2110
2106
  get fatal(): boolean;
2111
2107
  get ignoreBOM(): boolean;
2112
2108
  }
2113
- declare interface TextDecoderStreamTextDecoderStreamInit {
2109
+ interface TextDecoderStreamTextDecoderStreamInit {
2114
2110
  fatal?: boolean;
2115
2111
  ignoreBOM?: boolean;
2116
2112
  }
@@ -2130,7 +2126,7 @@ declare class CountQueuingStrategy implements QueuingStrategy {
2130
2126
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/size) */
2131
2127
  get size(): (chunk?: any) => number;
2132
2128
  }
2133
- declare interface QueuingStrategyInit {
2129
+ interface QueuingStrategyInit {
2134
2130
  /**
2135
2131
  * Creates a new ByteLengthQueuingStrategy with the provided high water mark.
2136
2132
  *
@@ -2138,7 +2134,7 @@ declare interface QueuingStrategyInit {
2138
2134
  */
2139
2135
  highWaterMark: number;
2140
2136
  }
2141
- declare interface ScriptVersion {
2137
+ interface ScriptVersion {
2142
2138
  id?: string;
2143
2139
  tag?: string;
2144
2140
  message?: string;
@@ -2147,7 +2143,7 @@ declare abstract class TailEvent extends ExtendableEvent {
2147
2143
  readonly events: TraceItem[];
2148
2144
  readonly traces: TraceItem[];
2149
2145
  }
2150
- declare interface TraceItem {
2146
+ interface TraceItem {
2151
2147
  readonly event:
2152
2148
  | (
2153
2149
  | TraceItemFetchEventInfo
@@ -2172,84 +2168,84 @@ declare interface TraceItem {
2172
2168
  readonly scriptTags?: string[];
2173
2169
  readonly outcome: string;
2174
2170
  }
2175
- declare interface TraceItemAlarmEventInfo {
2171
+ interface TraceItemAlarmEventInfo {
2176
2172
  readonly scheduledTime: Date;
2177
2173
  }
2178
- declare interface TraceItemCustomEventInfo {}
2179
- declare interface TraceItemScheduledEventInfo {
2174
+ interface TraceItemCustomEventInfo {}
2175
+ interface TraceItemScheduledEventInfo {
2180
2176
  readonly scheduledTime: number;
2181
2177
  readonly cron: string;
2182
2178
  }
2183
- declare interface TraceItemQueueEventInfo {
2179
+ interface TraceItemQueueEventInfo {
2184
2180
  readonly queue: string;
2185
2181
  readonly batchSize: number;
2186
2182
  }
2187
- declare interface TraceItemEmailEventInfo {
2183
+ interface TraceItemEmailEventInfo {
2188
2184
  readonly mailFrom: string;
2189
2185
  readonly rcptTo: string;
2190
2186
  readonly rawSize: number;
2191
2187
  }
2192
- declare interface TraceItemTailEventInfo {
2188
+ interface TraceItemTailEventInfo {
2193
2189
  readonly consumedEvents: TraceItemTailEventInfoTailItem[];
2194
2190
  }
2195
- declare interface TraceItemTailEventInfoTailItem {
2191
+ interface TraceItemTailEventInfoTailItem {
2196
2192
  readonly scriptName: string | null;
2197
2193
  }
2198
- declare interface TraceItemFetchEventInfo {
2194
+ interface TraceItemFetchEventInfo {
2199
2195
  readonly response?: TraceItemFetchEventInfoResponse;
2200
2196
  readonly request: TraceItemFetchEventInfoRequest;
2201
2197
  }
2202
- declare interface TraceItemFetchEventInfoRequest {
2198
+ interface TraceItemFetchEventInfoRequest {
2203
2199
  readonly cf?: any;
2204
2200
  readonly headers: Record<string, string>;
2205
2201
  readonly method: string;
2206
2202
  readonly url: string;
2207
2203
  getUnredacted(): TraceItemFetchEventInfoRequest;
2208
2204
  }
2209
- declare interface TraceItemFetchEventInfoResponse {
2205
+ interface TraceItemFetchEventInfoResponse {
2210
2206
  readonly status: number;
2211
2207
  }
2212
- declare interface TraceItemJsRpcEventInfo {
2208
+ interface TraceItemJsRpcEventInfo {
2213
2209
  readonly rpcMethod: string;
2214
2210
  }
2215
- declare interface TraceItemHibernatableWebSocketEventInfo {
2211
+ interface TraceItemHibernatableWebSocketEventInfo {
2216
2212
  readonly getWebSocketEvent:
2217
2213
  | TraceItemHibernatableWebSocketEventInfoMessage
2218
2214
  | TraceItemHibernatableWebSocketEventInfoClose
2219
2215
  | TraceItemHibernatableWebSocketEventInfoError;
2220
2216
  }
2221
- declare interface TraceItemHibernatableWebSocketEventInfoMessage {
2217
+ interface TraceItemHibernatableWebSocketEventInfoMessage {
2222
2218
  readonly webSocketEventType: string;
2223
2219
  }
2224
- declare interface TraceItemHibernatableWebSocketEventInfoClose {
2220
+ interface TraceItemHibernatableWebSocketEventInfoClose {
2225
2221
  readonly webSocketEventType: string;
2226
2222
  readonly code: number;
2227
2223
  readonly wasClean: boolean;
2228
2224
  }
2229
- declare interface TraceItemHibernatableWebSocketEventInfoError {
2225
+ interface TraceItemHibernatableWebSocketEventInfoError {
2230
2226
  readonly webSocketEventType: string;
2231
2227
  }
2232
- declare interface TraceLog {
2228
+ interface TraceLog {
2233
2229
  readonly timestamp: number;
2234
2230
  readonly level: string;
2235
2231
  readonly message: any;
2236
2232
  }
2237
- declare interface TraceException {
2233
+ interface TraceException {
2238
2234
  readonly timestamp: number;
2239
2235
  readonly message: string;
2240
2236
  readonly name: string;
2241
2237
  readonly stack?: string;
2242
2238
  }
2243
- declare interface TraceDiagnosticChannelEvent {
2239
+ interface TraceDiagnosticChannelEvent {
2244
2240
  readonly timestamp: number;
2245
2241
  readonly channel: string;
2246
2242
  readonly message: any;
2247
2243
  }
2248
- declare interface TraceMetrics {
2244
+ interface TraceMetrics {
2249
2245
  readonly cpuTime: number;
2250
2246
  readonly wallTime: number;
2251
2247
  }
2252
- declare interface UnsafeTraceMetrics {
2248
+ interface UnsafeTraceMetrics {
2253
2249
  fromTrace(item: TraceItem): TraceMetrics;
2254
2250
  }
2255
2251
  declare class URL {
@@ -2356,7 +2352,7 @@ declare class URLPattern {
2356
2352
  baseURL?: string,
2357
2353
  ): URLPatternURLPatternResult | null;
2358
2354
  }
2359
- declare interface URLPatternURLPatternInit {
2355
+ interface URLPatternURLPatternInit {
2360
2356
  protocol?: string;
2361
2357
  username?: string;
2362
2358
  password?: string;
@@ -2367,11 +2363,11 @@ declare interface URLPatternURLPatternInit {
2367
2363
  hash?: string;
2368
2364
  baseURL?: string;
2369
2365
  }
2370
- declare interface URLPatternURLPatternComponentResult {
2366
+ interface URLPatternURLPatternComponentResult {
2371
2367
  input: string;
2372
2368
  groups: Record<string, string>;
2373
2369
  }
2374
- declare interface URLPatternURLPatternResult {
2370
+ interface URLPatternURLPatternResult {
2375
2371
  inputs: (string | URLPatternURLPatternInit)[];
2376
2372
  protocol: URLPatternURLPatternComponentResult;
2377
2373
  username: URLPatternURLPatternComponentResult;
@@ -2382,7 +2378,7 @@ declare interface URLPatternURLPatternResult {
2382
2378
  search: URLPatternURLPatternComponentResult;
2383
2379
  hash: URLPatternURLPatternComponentResult;
2384
2380
  }
2385
- declare interface URLPatternURLPatternOptions {
2381
+ interface URLPatternURLPatternOptions {
2386
2382
  ignoreCase?: boolean;
2387
2383
  }
2388
2384
  declare class CloseEvent extends Event {
@@ -2406,7 +2402,7 @@ declare class CloseEvent extends Event {
2406
2402
  */
2407
2403
  readonly wasClean: boolean;
2408
2404
  }
2409
- declare interface CloseEventInit {
2405
+ interface CloseEventInit {
2410
2406
  code?: number;
2411
2407
  reason?: string;
2412
2408
  wasClean?: boolean;
@@ -2415,10 +2411,10 @@ declare class MessageEvent extends Event {
2415
2411
  constructor(type: string, initializer: MessageEventInit);
2416
2412
  readonly data: ArrayBuffer | string;
2417
2413
  }
2418
- declare interface MessageEventInit {
2414
+ interface MessageEventInit {
2419
2415
  data: ArrayBuffer | string;
2420
2416
  }
2421
- declare type WebSocketEventMap = {
2417
+ type WebSocketEventMap = {
2422
2418
  close: CloseEvent;
2423
2419
  message: MessageEvent;
2424
2420
  open: Event;
@@ -2480,7 +2476,7 @@ declare const WebSocketPair: {
2480
2476
  1: WebSocket;
2481
2477
  };
2482
2478
  };
2483
- declare interface Socket {
2479
+ interface Socket {
2484
2480
  get readable(): ReadableStream;
2485
2481
  get writable(): WritableStream;
2486
2482
  get closed(): Promise<void>;
@@ -2488,76 +2484,74 @@ declare interface Socket {
2488
2484
  close(): Promise<void>;
2489
2485
  startTls(options?: TlsOptions): Socket;
2490
2486
  }
2491
- declare interface SocketOptions {
2487
+ interface SocketOptions {
2492
2488
  secureTransport?: string;
2493
2489
  allowHalfOpen: boolean;
2494
2490
  highWaterMark?: number | bigint;
2495
2491
  }
2496
- declare interface SocketAddress {
2492
+ interface SocketAddress {
2497
2493
  hostname: string;
2498
2494
  port: number;
2499
2495
  }
2500
- declare interface TlsOptions {
2496
+ interface TlsOptions {
2501
2497
  expectedServerHostname?: string;
2502
2498
  }
2503
- declare interface SocketInfo {
2499
+ interface SocketInfo {
2504
2500
  remoteAddress?: string;
2505
2501
  localAddress?: string;
2506
2502
  }
2507
- declare abstract class gpuGPUAdapter {
2508
- requestDevice(param1?: gpuGPUDeviceDescriptor): Promise<gpuGPUDevice>;
2509
- requestAdapterInfo(unmaskHints?: string[]): Promise<gpuGPUAdapterInfo>;
2510
- get features(): gpuGPUSupportedFeatures;
2511
- get limits(): gpuGPUSupportedLimits;
2503
+ declare abstract class GPUAdapter {
2504
+ requestDevice(param1?: GPUDeviceDescriptor): Promise<GPUDevice>;
2505
+ requestAdapterInfo(unmaskHints?: string[]): Promise<GPUAdapterInfo>;
2506
+ get features(): GPUSupportedFeatures;
2507
+ get limits(): GPUSupportedLimits;
2512
2508
  }
2513
- declare interface gpuGPUDevice extends EventTarget {
2514
- createBuffer(param1: gpuGPUBufferDescriptor): gpuGPUBuffer;
2509
+ interface GPUDevice extends EventTarget {
2510
+ createBuffer(param1: GPUBufferDescriptor): GPUBuffer;
2515
2511
  createBindGroupLayout(
2516
- descriptor: gpuGPUBindGroupLayoutDescriptor,
2517
- ): gpuGPUBindGroupLayout;
2518
- createBindGroup(descriptor: gpuGPUBindGroupDescriptor): gpuGPUBindGroup;
2519
- createSampler(descriptor: gpuGPUSamplerDescriptor): gpuGPUSampler;
2520
- createShaderModule(
2521
- descriptor: gpuGPUShaderModuleDescriptor,
2522
- ): gpuGPUShaderModule;
2512
+ descriptor: GPUBindGroupLayoutDescriptor,
2513
+ ): GPUBindGroupLayout;
2514
+ createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
2515
+ createSampler(descriptor: GPUSamplerDescriptor): GPUSampler;
2516
+ createShaderModule(descriptor: GPUShaderModuleDescriptor): GPUShaderModule;
2523
2517
  createPipelineLayout(
2524
- descriptor: gpuGPUPipelineLayoutDescriptor,
2525
- ): gpuGPUPipelineLayout;
2518
+ descriptor: GPUPipelineLayoutDescriptor,
2519
+ ): GPUPipelineLayout;
2526
2520
  createComputePipeline(
2527
- descriptor: gpuGPUComputePipelineDescriptor,
2528
- ): gpuGPUComputePipeline;
2521
+ descriptor: GPUComputePipelineDescriptor,
2522
+ ): GPUComputePipeline;
2529
2523
  createRenderPipeline(
2530
- descriptor: gpuGPURenderPipelineDescriptor,
2531
- ): gpuGPURenderPipeline;
2524
+ descriptor: GPURenderPipelineDescriptor,
2525
+ ): GPURenderPipeline;
2532
2526
  createCommandEncoder(
2533
- descriptor?: gpuGPUCommandEncoderDescriptor,
2534
- ): gpuGPUCommandEncoder;
2535
- createTexture(param1: gpuGPUTextureDescriptor): gpuGPUTexture;
2527
+ descriptor?: GPUCommandEncoderDescriptor,
2528
+ ): GPUCommandEncoder;
2529
+ createTexture(param1: GPUTextureDescriptor): GPUTexture;
2536
2530
  destroy(): void;
2537
- createQuerySet(descriptor: gpuGPUQuerySetDescriptor): gpuGPUQuerySet;
2531
+ createQuerySet(descriptor: GPUQuerySetDescriptor): GPUQuerySet;
2538
2532
  pushErrorScope(filter: string): void;
2539
- popErrorScope(): Promise<gpuGPUError | null>;
2540
- get queue(): gpuGPUQueue;
2541
- get lost(): Promise<gpuGPUDeviceLostInfo>;
2542
- get features(): gpuGPUSupportedFeatures;
2543
- get limits(): gpuGPUSupportedLimits;
2533
+ popErrorScope(): Promise<GPUError | null>;
2534
+ get queue(): GPUQueue;
2535
+ get lost(): Promise<GPUDeviceLostInfo>;
2536
+ get features(): GPUSupportedFeatures;
2537
+ get limits(): GPUSupportedLimits;
2544
2538
  }
2545
- declare interface gpuGPUDeviceDescriptor {
2539
+ interface GPUDeviceDescriptor {
2546
2540
  label?: string;
2547
2541
  requiredFeatures?: string[];
2548
2542
  requiredLimits?: Record<string, number | bigint>;
2549
- defaultQueue?: gpuGPUQueueDescriptor;
2543
+ defaultQueue?: GPUQueueDescriptor;
2550
2544
  }
2551
- declare interface gpuGPUBufferDescriptor {
2545
+ interface GPUBufferDescriptor {
2552
2546
  label: string;
2553
2547
  size: number | bigint;
2554
2548
  usage: number;
2555
2549
  mappedAtCreation: boolean;
2556
2550
  }
2557
- declare interface gpuGPUQueueDescriptor {
2551
+ interface GPUQueueDescriptor {
2558
2552
  label?: string;
2559
2553
  }
2560
- declare abstract class gpuGPUBufferUsage {
2554
+ declare abstract class GPUBufferUsage {
2561
2555
  static readonly MAP_READ: number;
2562
2556
  static readonly MAP_WRITE: number;
2563
2557
  static readonly COPY_SRC: number;
@@ -2569,7 +2563,7 @@ declare abstract class gpuGPUBufferUsage {
2569
2563
  static readonly INDIRECT: number;
2570
2564
  static readonly QUERY_RESOLVE: number;
2571
2565
  }
2572
- declare interface gpuGPUBuffer {
2566
+ interface GPUBuffer {
2573
2567
  getMappedRange(size?: number | bigint, param2?: number | bigint): ArrayBuffer;
2574
2568
  unmap(): void;
2575
2569
  destroy(): void;
@@ -2582,59 +2576,59 @@ declare interface gpuGPUBuffer {
2582
2576
  get usage(): number;
2583
2577
  get mapState(): string;
2584
2578
  }
2585
- declare abstract class gpuGPUShaderStage {
2579
+ declare abstract class GPUShaderStage {
2586
2580
  static readonly VERTEX: number;
2587
2581
  static readonly FRAGMENT: number;
2588
2582
  static readonly COMPUTE: number;
2589
2583
  }
2590
- declare interface gpuGPUBindGroupLayoutDescriptor {
2584
+ interface GPUBindGroupLayoutDescriptor {
2591
2585
  label?: string;
2592
- entries: gpuGPUBindGroupLayoutEntry[];
2586
+ entries: GPUBindGroupLayoutEntry[];
2593
2587
  }
2594
- declare interface gpuGPUBindGroupLayoutEntry {
2588
+ interface GPUBindGroupLayoutEntry {
2595
2589
  binding: number;
2596
2590
  visibility: number;
2597
- buffer?: gpuGPUBufferBindingLayout;
2598
- sampler?: gpuGPUSamplerBindingLayout;
2599
- texture?: gpuGPUTextureBindingLayout;
2600
- storageTexture?: gpuGPUStorageTextureBindingLayout;
2591
+ buffer?: GPUBufferBindingLayout;
2592
+ sampler?: GPUSamplerBindingLayout;
2593
+ texture?: GPUTextureBindingLayout;
2594
+ storageTexture?: GPUStorageTextureBindingLayout;
2601
2595
  }
2602
- declare interface gpuGPUStorageTextureBindingLayout {
2596
+ interface GPUStorageTextureBindingLayout {
2603
2597
  access?: string;
2604
2598
  format: string;
2605
2599
  viewDimension?: string;
2606
2600
  }
2607
- declare interface gpuGPUTextureBindingLayout {
2601
+ interface GPUTextureBindingLayout {
2608
2602
  sampleType?: string;
2609
2603
  viewDimension?: string;
2610
2604
  multisampled?: boolean;
2611
2605
  }
2612
- declare interface gpuGPUSamplerBindingLayout {
2606
+ interface GPUSamplerBindingLayout {
2613
2607
  type?: string;
2614
2608
  }
2615
- declare interface gpuGPUBufferBindingLayout {
2609
+ interface GPUBufferBindingLayout {
2616
2610
  type?: string;
2617
2611
  hasDynamicOffset?: boolean;
2618
2612
  minBindingSize?: number | bigint;
2619
2613
  }
2620
- declare interface gpuGPUBindGroupLayout {}
2621
- declare interface gpuGPUBindGroup {}
2622
- declare interface gpuGPUBindGroupDescriptor {
2614
+ interface GPUBindGroupLayout {}
2615
+ interface GPUBindGroup {}
2616
+ interface GPUBindGroupDescriptor {
2623
2617
  label?: string;
2624
- layout: gpuGPUBindGroupLayout;
2625
- entries: gpuGPUBindGroupEntry[];
2618
+ layout: GPUBindGroupLayout;
2619
+ entries: GPUBindGroupEntry[];
2626
2620
  }
2627
- declare interface gpuGPUBindGroupEntry {
2621
+ interface GPUBindGroupEntry {
2628
2622
  binding: number;
2629
- resource: gpuGPUBufferBinding | gpuGPUSampler;
2623
+ resource: GPUBufferBinding | GPUSampler;
2630
2624
  }
2631
- declare interface gpuGPUBufferBinding {
2632
- buffer: gpuGPUBuffer;
2625
+ interface GPUBufferBinding {
2626
+ buffer: GPUBuffer;
2633
2627
  offset?: number | bigint;
2634
2628
  size?: number | bigint;
2635
2629
  }
2636
- declare interface gpuGPUSampler {}
2637
- declare interface gpuGPUSamplerDescriptor {
2630
+ interface GPUSampler {}
2631
+ interface GPUSamplerDescriptor {
2638
2632
  label?: string;
2639
2633
  addressModeU?: string;
2640
2634
  addressModeV?: string;
@@ -2647,76 +2641,74 @@ declare interface gpuGPUSamplerDescriptor {
2647
2641
  compare: string;
2648
2642
  maxAnisotropy?: number;
2649
2643
  }
2650
- declare interface gpuGPUShaderModule {
2651
- getCompilationInfo(): Promise<gpuGPUCompilationInfo>;
2644
+ interface GPUShaderModule {
2645
+ getCompilationInfo(): Promise<GPUCompilationInfo>;
2652
2646
  }
2653
- declare interface gpuGPUShaderModuleDescriptor {
2647
+ interface GPUShaderModuleDescriptor {
2654
2648
  label?: string;
2655
2649
  code: string;
2656
2650
  }
2657
- declare interface gpuGPUPipelineLayout {}
2658
- declare interface gpuGPUPipelineLayoutDescriptor {
2651
+ interface GPUPipelineLayout {}
2652
+ interface GPUPipelineLayoutDescriptor {
2659
2653
  label?: string;
2660
- bindGroupLayouts: gpuGPUBindGroupLayout[];
2654
+ bindGroupLayouts: GPUBindGroupLayout[];
2661
2655
  }
2662
- declare interface gpuGPUComputePipeline {
2663
- getBindGroupLayout(index: number): gpuGPUBindGroupLayout;
2656
+ interface GPUComputePipeline {
2657
+ getBindGroupLayout(index: number): GPUBindGroupLayout;
2664
2658
  }
2665
- declare interface gpuGPUComputePipelineDescriptor {
2659
+ interface GPUComputePipelineDescriptor {
2666
2660
  label?: string;
2667
- compute: gpuGPUProgrammableStage;
2668
- layout: string | gpuGPUPipelineLayout;
2661
+ compute: GPUProgrammableStage;
2662
+ layout: string | GPUPipelineLayout;
2669
2663
  }
2670
- declare interface gpuGPUProgrammableStage {
2671
- module: gpuGPUShaderModule;
2664
+ interface GPUProgrammableStage {
2665
+ module: GPUShaderModule;
2672
2666
  entryPoint: string;
2673
2667
  constants?: Record<string, number>;
2674
2668
  }
2675
- declare interface gpuGPUCommandEncoder {
2669
+ interface GPUCommandEncoder {
2676
2670
  get label(): string;
2677
2671
  beginComputePass(
2678
- descriptor?: gpuGPUComputePassDescriptor,
2679
- ): gpuGPUComputePassEncoder;
2680
- beginRenderPass(
2681
- descriptor: gpuGPURenderPassDescriptor,
2682
- ): gpuGPURenderPassEncoder;
2672
+ descriptor?: GPUComputePassDescriptor,
2673
+ ): GPUComputePassEncoder;
2674
+ beginRenderPass(descriptor: GPURenderPassDescriptor): GPURenderPassEncoder;
2683
2675
  copyBufferToBuffer(
2684
- source: gpuGPUBuffer,
2676
+ source: GPUBuffer,
2685
2677
  sourceOffset: number | bigint,
2686
- destination: gpuGPUBuffer,
2678
+ destination: GPUBuffer,
2687
2679
  destinationOffset: number | bigint,
2688
2680
  size: number | bigint,
2689
2681
  ): void;
2690
- finish(param0?: gpuGPUCommandBufferDescriptor): gpuGPUCommandBuffer;
2682
+ finish(param0?: GPUCommandBufferDescriptor): GPUCommandBuffer;
2691
2683
  copyTextureToBuffer(
2692
- source: gpuGPUImageCopyTexture,
2693
- destination: gpuGPUImageCopyBuffer,
2694
- copySize: Iterable<number> | gpuGPUExtent3DDict,
2684
+ source: GPUImageCopyTexture,
2685
+ destination: GPUImageCopyBuffer,
2686
+ copySize: Iterable<number> | GPUExtent3DDict,
2695
2687
  ): void;
2696
2688
  copyBufferToTexture(
2697
- source: gpuGPUImageCopyBuffer,
2698
- destination: gpuGPUImageCopyTexture,
2699
- copySize: Iterable<number> | gpuGPUExtent3DDict,
2689
+ source: GPUImageCopyBuffer,
2690
+ destination: GPUImageCopyTexture,
2691
+ copySize: Iterable<number> | GPUExtent3DDict,
2700
2692
  ): void;
2701
2693
  copyTextureToTexture(
2702
- source: gpuGPUImageCopyTexture,
2703
- destination: gpuGPUImageCopyTexture,
2704
- copySize: Iterable<number> | gpuGPUExtent3DDict,
2694
+ source: GPUImageCopyTexture,
2695
+ destination: GPUImageCopyTexture,
2696
+ copySize: Iterable<number> | GPUExtent3DDict,
2705
2697
  ): void;
2706
2698
  clearBuffer(
2707
- buffer: gpuGPUBuffer,
2699
+ buffer: GPUBuffer,
2708
2700
  offset?: number | bigint,
2709
2701
  size?: number | bigint,
2710
2702
  ): void;
2711
2703
  }
2712
- declare interface gpuGPUCommandEncoderDescriptor {
2704
+ interface GPUCommandEncoderDescriptor {
2713
2705
  label?: string;
2714
2706
  }
2715
- declare interface gpuGPUComputePassEncoder {
2716
- setPipeline(pipeline: gpuGPUComputePipeline): void;
2707
+ interface GPUComputePassEncoder {
2708
+ setPipeline(pipeline: GPUComputePipeline): void;
2717
2709
  setBindGroup(
2718
2710
  index: number,
2719
- bindGroup: gpuGPUBindGroup | null,
2711
+ bindGroup: GPUBindGroup | null,
2720
2712
  dynamicOffsets?: Iterable<number>,
2721
2713
  ): void;
2722
2714
  dispatchWorkgroups(
@@ -2726,48 +2718,48 @@ declare interface gpuGPUComputePassEncoder {
2726
2718
  ): void;
2727
2719
  end(): void;
2728
2720
  }
2729
- declare interface gpuGPUComputePassDescriptor {
2721
+ interface GPUComputePassDescriptor {
2730
2722
  label?: string;
2731
- timestampWrites?: gpuGPUComputePassTimestampWrites;
2723
+ timestampWrites?: GPUComputePassTimestampWrites;
2732
2724
  }
2733
- declare interface gpuGPUQuerySet {}
2734
- declare interface gpuGPUQuerySetDescriptor {
2725
+ interface GPUQuerySet {}
2726
+ interface GPUQuerySetDescriptor {
2735
2727
  label?: string;
2736
2728
  }
2737
- declare interface gpuGPUComputePassTimestampWrites {
2738
- querySet: gpuGPUQuerySet;
2729
+ interface GPUComputePassTimestampWrites {
2730
+ querySet: GPUQuerySet;
2739
2731
  beginningOfPassWriteIndex?: number;
2740
2732
  endOfPassWriteIndex?: number;
2741
2733
  }
2742
- declare interface gpuGPUCommandBufferDescriptor {
2734
+ interface GPUCommandBufferDescriptor {
2743
2735
  label?: string;
2744
2736
  }
2745
- declare interface gpuGPUCommandBuffer {}
2746
- declare interface gpuGPUQueue {
2747
- submit(commandBuffers: gpuGPUCommandBuffer[]): void;
2737
+ interface GPUCommandBuffer {}
2738
+ interface GPUQueue {
2739
+ submit(commandBuffers: GPUCommandBuffer[]): void;
2748
2740
  writeBuffer(
2749
- buffer: gpuGPUBuffer,
2741
+ buffer: GPUBuffer,
2750
2742
  bufferOffset: number | bigint,
2751
2743
  data: ArrayBuffer | ArrayBufferView,
2752
2744
  dataOffset?: number | bigint,
2753
2745
  size?: number | bigint,
2754
2746
  ): void;
2755
2747
  }
2756
- declare abstract class gpuGPUMapMode {
2748
+ declare abstract class GPUMapMode {
2757
2749
  static readonly READ: number;
2758
2750
  static readonly WRITE: number;
2759
2751
  }
2760
- declare interface gpuGPUAdapterInfo {
2752
+ interface GPUAdapterInfo {
2761
2753
  get vendor(): string;
2762
2754
  get architecture(): string;
2763
2755
  get device(): string;
2764
2756
  get description(): string;
2765
2757
  }
2766
- declare interface gpuGPUSupportedFeatures {
2758
+ interface GPUSupportedFeatures {
2767
2759
  has(name: string): boolean;
2768
2760
  keys(): string[];
2769
2761
  }
2770
- declare interface gpuGPUSupportedLimits {
2762
+ interface GPUSupportedLimits {
2771
2763
  get maxTextureDimension1D(): number;
2772
2764
  get maxTextureDimension2D(): number;
2773
2765
  get maxTextureDimension3D(): number;
@@ -2800,17 +2792,17 @@ declare interface gpuGPUSupportedLimits {
2800
2792
  get maxComputeWorkgroupSizeZ(): number;
2801
2793
  get maxComputeWorkgroupsPerDimension(): number;
2802
2794
  }
2803
- declare abstract class gpuGPUError {
2795
+ declare abstract class GPUError {
2804
2796
  get message(): string;
2805
2797
  }
2806
- declare abstract class gpuGPUOutOfMemoryError extends gpuGPUError {}
2807
- declare abstract class gpuGPUInternalError extends gpuGPUError {}
2808
- declare abstract class gpuGPUValidationError extends gpuGPUError {}
2809
- declare abstract class gpuGPUDeviceLostInfo {
2798
+ declare abstract class GPUOutOfMemoryError extends GPUError {}
2799
+ declare abstract class GPUInternalError extends GPUError {}
2800
+ declare abstract class GPUValidationError extends GPUError {}
2801
+ declare abstract class GPUDeviceLostInfo {
2810
2802
  get message(): string;
2811
2803
  get reason(): string;
2812
2804
  }
2813
- declare interface gpuGPUCompilationMessage {
2805
+ interface GPUCompilationMessage {
2814
2806
  get message(): string;
2815
2807
  get type(): string;
2816
2808
  get lineNum(): number;
@@ -2818,19 +2810,19 @@ declare interface gpuGPUCompilationMessage {
2818
2810
  get offset(): number;
2819
2811
  get length(): number;
2820
2812
  }
2821
- declare interface gpuGPUCompilationInfo {
2822
- get messages(): gpuGPUCompilationMessage[];
2813
+ interface GPUCompilationInfo {
2814
+ get messages(): GPUCompilationMessage[];
2823
2815
  }
2824
- declare abstract class gpuGPUTextureUsage {
2816
+ declare abstract class GPUTextureUsage {
2825
2817
  static readonly COPY_SRC: number;
2826
2818
  static readonly COPY_DST: number;
2827
2819
  static readonly TEXTURE_BINDING: number;
2828
2820
  static readonly STORAGE_BINDING: number;
2829
2821
  static readonly RENDER_ATTACHMENT: number;
2830
2822
  }
2831
- declare interface gpuGPUTextureDescriptor {
2823
+ interface GPUTextureDescriptor {
2832
2824
  label: string;
2833
- size: number[] | gpuGPUExtent3DDict;
2825
+ size: number[] | GPUExtent3DDict;
2834
2826
  mipLevelCount?: number;
2835
2827
  sampleCount?: number;
2836
2828
  dimension?: string;
@@ -2838,13 +2830,13 @@ declare interface gpuGPUTextureDescriptor {
2838
2830
  usage: number;
2839
2831
  viewFormats?: string[];
2840
2832
  }
2841
- declare interface gpuGPUExtent3DDict {
2833
+ interface GPUExtent3DDict {
2842
2834
  width: number;
2843
2835
  height?: number;
2844
2836
  depthOrArrayLayers?: number;
2845
2837
  }
2846
- declare interface gpuGPUTexture {
2847
- createView(descriptor?: gpuGPUTextureViewDescriptor): gpuGPUTextureView;
2838
+ interface GPUTexture {
2839
+ createView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
2848
2840
  destroy(): void;
2849
2841
  get width(): number;
2850
2842
  get height(): number;
@@ -2854,8 +2846,8 @@ declare interface gpuGPUTexture {
2854
2846
  get format(): string;
2855
2847
  get usage(): number;
2856
2848
  }
2857
- declare interface gpuGPUTextureView {}
2858
- declare interface gpuGPUTextureViewDescriptor {
2849
+ interface GPUTextureView {}
2850
+ interface GPUTextureViewDescriptor {
2859
2851
  label: string;
2860
2852
  format: string;
2861
2853
  dimension: string;
@@ -2865,91 +2857,91 @@ declare interface gpuGPUTextureViewDescriptor {
2865
2857
  baseArrayLayer?: number;
2866
2858
  arrayLayerCount: number;
2867
2859
  }
2868
- declare abstract class gpuGPUColorWrite {
2860
+ declare abstract class GPUColorWrite {
2869
2861
  static readonly RED: number;
2870
2862
  static readonly GREEN: number;
2871
2863
  static readonly BLUE: number;
2872
2864
  static readonly ALPHA: number;
2873
2865
  static readonly ALL: number;
2874
2866
  }
2875
- declare interface gpuGPURenderPipeline {}
2876
- declare interface gpuGPURenderPipelineDescriptor {
2867
+ interface GPURenderPipeline {}
2868
+ interface GPURenderPipelineDescriptor {
2877
2869
  label?: string;
2878
- layout: string | gpuGPUPipelineLayout;
2879
- vertex: gpuGPUVertexState;
2880
- primitive?: gpuGPUPrimitiveState;
2881
- depthStencil?: gpuGPUDepthStencilState;
2882
- multisample?: gpuGPUMultisampleState;
2883
- fragment?: gpuGPUFragmentState;
2884
- }
2885
- declare interface gpuGPUVertexState {
2886
- module: gpuGPUShaderModule;
2870
+ layout: string | GPUPipelineLayout;
2871
+ vertex: GPUVertexState;
2872
+ primitive?: GPUPrimitiveState;
2873
+ depthStencil?: GPUDepthStencilState;
2874
+ multisample?: GPUMultisampleState;
2875
+ fragment?: GPUFragmentState;
2876
+ }
2877
+ interface GPUVertexState {
2878
+ module: GPUShaderModule;
2887
2879
  entryPoint: string;
2888
2880
  constants?: Record<string, number>;
2889
- buffers?: gpuGPUVertexBufferLayout[];
2881
+ buffers?: GPUVertexBufferLayout[];
2890
2882
  }
2891
- declare interface gpuGPUVertexBufferLayout {
2883
+ interface GPUVertexBufferLayout {
2892
2884
  arrayStride: number | bigint;
2893
2885
  stepMode?: string;
2894
- attributes: gpuGPUVertexAttribute[];
2886
+ attributes: GPUVertexAttribute[];
2895
2887
  }
2896
- declare interface gpuGPUVertexAttribute {
2888
+ interface GPUVertexAttribute {
2897
2889
  format: string;
2898
2890
  offset: number | bigint;
2899
2891
  shaderLocation: number;
2900
2892
  }
2901
- declare interface gpuGPUPrimitiveState {
2893
+ interface GPUPrimitiveState {
2902
2894
  topology?: string;
2903
2895
  stripIndexFormat?: string;
2904
2896
  frontFace?: string;
2905
2897
  cullMode?: string;
2906
2898
  unclippedDepth?: boolean;
2907
2899
  }
2908
- declare interface gpuGPUStencilFaceState {
2900
+ interface GPUStencilFaceState {
2909
2901
  compare?: string;
2910
2902
  failOp?: string;
2911
2903
  depthFailOp?: string;
2912
2904
  passOp?: string;
2913
2905
  }
2914
- declare interface gpuGPUDepthStencilState {
2906
+ interface GPUDepthStencilState {
2915
2907
  format: string;
2916
2908
  depthWriteEnabled: boolean;
2917
2909
  depthCompare: string;
2918
- stencilFront?: gpuGPUStencilFaceState;
2919
- stencilBack?: gpuGPUStencilFaceState;
2910
+ stencilFront?: GPUStencilFaceState;
2911
+ stencilBack?: GPUStencilFaceState;
2920
2912
  stencilReadMask?: number;
2921
2913
  stencilWriteMask?: number;
2922
2914
  depthBias?: number;
2923
2915
  depthBiasSlopeScale?: number;
2924
2916
  depthBiasClamp?: number;
2925
2917
  }
2926
- declare interface gpuGPUMultisampleState {
2918
+ interface GPUMultisampleState {
2927
2919
  count?: number;
2928
2920
  mask?: number;
2929
2921
  alphaToCoverageEnabled?: boolean;
2930
2922
  }
2931
- declare interface gpuGPUFragmentState {
2932
- module: gpuGPUShaderModule;
2923
+ interface GPUFragmentState {
2924
+ module: GPUShaderModule;
2933
2925
  entryPoint: string;
2934
2926
  constants?: Record<string, number>;
2935
- targets: gpuGPUColorTargetState[];
2927
+ targets: GPUColorTargetState[];
2936
2928
  }
2937
- declare interface gpuGPUColorTargetState {
2929
+ interface GPUColorTargetState {
2938
2930
  format: string;
2939
- blend: gpuGPUBlendState;
2931
+ blend: GPUBlendState;
2940
2932
  writeMask?: number;
2941
2933
  }
2942
- declare interface gpuGPUBlendState {
2943
- color: gpuGPUBlendComponent;
2944
- alpha: gpuGPUBlendComponent;
2934
+ interface GPUBlendState {
2935
+ color: GPUBlendComponent;
2936
+ alpha: GPUBlendComponent;
2945
2937
  }
2946
- declare interface gpuGPUBlendComponent {
2938
+ interface GPUBlendComponent {
2947
2939
  operation?: string;
2948
2940
  srcFactor?: string;
2949
2941
  dstFactor?: string;
2950
2942
  }
2951
- declare interface gpuGPURenderPassEncoder {
2952
- setPipeline(pipeline: gpuGPURenderPipeline): void;
2943
+ interface GPURenderPassEncoder {
2944
+ setPipeline(pipeline: GPURenderPipeline): void;
2953
2945
  draw(
2954
2946
  vertexCount: number,
2955
2947
  instanceCount?: number,
@@ -2958,30 +2950,30 @@ declare interface gpuGPURenderPassEncoder {
2958
2950
  ): void;
2959
2951
  end(): void;
2960
2952
  }
2961
- declare interface gpuGPURenderPassDescriptor {
2953
+ interface GPURenderPassDescriptor {
2962
2954
  label?: string;
2963
- colorAttachments: gpuGPURenderPassColorAttachment[];
2964
- depthStencilAttachment?: gpuGPURenderPassDepthStencilAttachment;
2965
- occlusionQuerySet?: gpuGPUQuerySet;
2966
- timestampWrites?: gpuGPURenderPassTimestampWrites;
2955
+ colorAttachments: GPURenderPassColorAttachment[];
2956
+ depthStencilAttachment?: GPURenderPassDepthStencilAttachment;
2957
+ occlusionQuerySet?: GPUQuerySet;
2958
+ timestampWrites?: GPURenderPassTimestampWrites;
2967
2959
  maxDrawCount?: number | bigint;
2968
2960
  }
2969
- declare interface gpuGPURenderPassColorAttachment {
2970
- view: gpuGPUTextureView;
2961
+ interface GPURenderPassColorAttachment {
2962
+ view: GPUTextureView;
2971
2963
  depthSlice?: number;
2972
- resolveTarget?: gpuGPUTextureView;
2973
- clearValue?: number[] | gpuGPUColorDict;
2964
+ resolveTarget?: GPUTextureView;
2965
+ clearValue?: number[] | GPUColorDict;
2974
2966
  loadOp: string;
2975
2967
  storeOp: string;
2976
2968
  }
2977
- declare interface gpuGPUColorDict {
2969
+ interface GPUColorDict {
2978
2970
  r: number;
2979
2971
  g: number;
2980
2972
  b: number;
2981
2973
  a: number;
2982
2974
  }
2983
- declare interface gpuGPURenderPassDepthStencilAttachment {
2984
- view: gpuGPUTextureView;
2975
+ interface GPURenderPassDepthStencilAttachment {
2976
+ view: GPUTextureView;
2985
2977
  depthClearValue?: number;
2986
2978
  depthLoadOp?: string;
2987
2979
  depthStoreOp?: string;
@@ -2991,24 +2983,24 @@ declare interface gpuGPURenderPassDepthStencilAttachment {
2991
2983
  stencilStoreOp?: string;
2992
2984
  stencilReadOnly?: boolean;
2993
2985
  }
2994
- declare interface gpuGPURenderPassTimestampWrites {
2995
- querySet: gpuGPUQuerySet;
2986
+ interface GPURenderPassTimestampWrites {
2987
+ querySet: GPUQuerySet;
2996
2988
  beginningOfPassWriteIndex?: number;
2997
2989
  endOfPassWriteIndex?: number;
2998
2990
  }
2999
- declare interface gpuGPUImageCopyTexture {
3000
- texture: gpuGPUTexture;
2991
+ interface GPUImageCopyTexture {
2992
+ texture: GPUTexture;
3001
2993
  mipLevel?: number;
3002
- origin?: number[] | gpuGPUOrigin3DDict;
2994
+ origin?: number[] | GPUOrigin3DDict;
3003
2995
  aspect?: string;
3004
2996
  }
3005
- declare interface gpuGPUImageCopyBuffer {
3006
- buffer: gpuGPUBuffer;
2997
+ interface GPUImageCopyBuffer {
2998
+ buffer: GPUBuffer;
3007
2999
  offset?: number | bigint;
3008
3000
  bytesPerRow?: number;
3009
3001
  rowsPerImage?: number;
3010
3002
  }
3011
- declare interface gpuGPUOrigin3DDict {
3003
+ interface GPUOrigin3DDict {
3012
3004
  x?: number;
3013
3005
  y?: number;
3014
3006
  z?: number;
@@ -3056,14 +3048,14 @@ declare class EventSource {
3056
3048
  static readonly CLOSED: number;
3057
3049
  static from(stream: ReadableStream): EventSource;
3058
3050
  }
3059
- declare interface EventSourceEventSourceInit {
3051
+ interface EventSourceEventSourceInit {
3060
3052
  withCredentials?: boolean;
3061
3053
  fetcher?: Fetcher;
3062
3054
  }
3063
- declare type AiImageClassificationInput = {
3055
+ type AiImageClassificationInput = {
3064
3056
  image: number[];
3065
3057
  };
3066
- declare type AiImageClassificationOutput = {
3058
+ type AiImageClassificationOutput = {
3067
3059
  score?: number;
3068
3060
  label?: string;
3069
3061
  }[];
@@ -3071,7 +3063,7 @@ declare abstract class BaseAiImageClassification {
3071
3063
  inputs: AiImageClassificationInput;
3072
3064
  postProcessedOutputs: AiImageClassificationOutput;
3073
3065
  }
3074
- declare type AiImageToTextInput = {
3066
+ type AiImageToTextInput = {
3075
3067
  image: number[];
3076
3068
  prompt?: string;
3077
3069
  max_tokens?: number;
@@ -3085,17 +3077,17 @@ declare type AiImageToTextInput = {
3085
3077
  raw?: boolean;
3086
3078
  messages?: RoleScopedChatInput[];
3087
3079
  };
3088
- declare type AiImageToTextOutput = {
3080
+ type AiImageToTextOutput = {
3089
3081
  description: string;
3090
3082
  };
3091
3083
  declare abstract class BaseAiImageToText {
3092
3084
  inputs: AiImageToTextInput;
3093
3085
  postProcessedOutputs: AiImageToTextOutput;
3094
3086
  }
3095
- declare type AiObjectDetectionInput = {
3087
+ type AiObjectDetectionInput = {
3096
3088
  image: number[];
3097
3089
  };
3098
- declare type AiObjectDetectionOutput = {
3090
+ type AiObjectDetectionOutput = {
3099
3091
  score?: number;
3100
3092
  label?: string;
3101
3093
  }[];
@@ -3103,19 +3095,19 @@ declare abstract class BaseAiObjectDetection {
3103
3095
  inputs: AiObjectDetectionInput;
3104
3096
  postProcessedOutputs: AiObjectDetectionOutput;
3105
3097
  }
3106
- declare type AiSentenceSimilarityInput = {
3098
+ type AiSentenceSimilarityInput = {
3107
3099
  source: string;
3108
3100
  sentences: string[];
3109
3101
  };
3110
- declare type AiSentenceSimilarityOutput = number[];
3102
+ type AiSentenceSimilarityOutput = number[];
3111
3103
  declare abstract class BaseAiSentenceSimilarity {
3112
3104
  inputs: AiSentenceSimilarityInput;
3113
3105
  postProcessedOutputs: AiSentenceSimilarityOutput;
3114
3106
  }
3115
- declare type AiSpeechRecognitionInput = {
3107
+ type AiSpeechRecognitionInput = {
3116
3108
  audio: number[];
3117
3109
  };
3118
- declare type AiSpeechRecognitionOutput = {
3110
+ type AiSpeechRecognitionOutput = {
3119
3111
  text?: string;
3120
3112
  words?: {
3121
3113
  word: string;
@@ -3128,21 +3120,21 @@ declare abstract class BaseAiSpeechRecognition {
3128
3120
  inputs: AiSpeechRecognitionInput;
3129
3121
  postProcessedOutputs: AiSpeechRecognitionOutput;
3130
3122
  }
3131
- declare type AiSummarizationInput = {
3123
+ type AiSummarizationInput = {
3132
3124
  input_text: string;
3133
3125
  max_length?: number;
3134
3126
  };
3135
- declare type AiSummarizationOutput = {
3127
+ type AiSummarizationOutput = {
3136
3128
  summary: string;
3137
3129
  };
3138
3130
  declare abstract class BaseAiSummarization {
3139
3131
  inputs: AiSummarizationInput;
3140
3132
  postProcessedOutputs: AiSummarizationOutput;
3141
3133
  }
3142
- declare type AiTextClassificationInput = {
3134
+ type AiTextClassificationInput = {
3143
3135
  text: string;
3144
3136
  };
3145
- declare type AiTextClassificationOutput = {
3137
+ type AiTextClassificationOutput = {
3146
3138
  score?: number;
3147
3139
  label?: string;
3148
3140
  }[];
@@ -3150,10 +3142,10 @@ declare abstract class BaseAiTextClassification {
3150
3142
  inputs: AiTextClassificationInput;
3151
3143
  postProcessedOutputs: AiTextClassificationOutput;
3152
3144
  }
3153
- declare type AiTextEmbeddingsInput = {
3145
+ type AiTextEmbeddingsInput = {
3154
3146
  text: string | string[];
3155
3147
  };
3156
- declare type AiTextEmbeddingsOutput = {
3148
+ type AiTextEmbeddingsOutput = {
3157
3149
  shape: number[];
3158
3150
  data: number[][];
3159
3151
  };
@@ -3161,11 +3153,11 @@ declare abstract class BaseAiTextEmbeddings {
3161
3153
  inputs: AiTextEmbeddingsInput;
3162
3154
  postProcessedOutputs: AiTextEmbeddingsOutput;
3163
3155
  }
3164
- declare type RoleScopedChatInput = {
3156
+ type RoleScopedChatInput = {
3165
3157
  role: "user" | "assistant" | "system" | "tool";
3166
3158
  content: string;
3167
3159
  };
3168
- declare type AiTextGenerationToolInput = {
3160
+ type AiTextGenerationToolInput = {
3169
3161
  type: "function";
3170
3162
  function: {
3171
3163
  name: string;
@@ -3182,7 +3174,7 @@ declare type AiTextGenerationToolInput = {
3182
3174
  };
3183
3175
  };
3184
3176
  };
3185
- declare type AiTextGenerationInput = {
3177
+ type AiTextGenerationInput = {
3186
3178
  prompt?: string;
3187
3179
  raw?: boolean;
3188
3180
  stream?: boolean;
@@ -3197,7 +3189,7 @@ declare type AiTextGenerationInput = {
3197
3189
  messages?: RoleScopedChatInput[];
3198
3190
  tools?: AiTextGenerationToolInput[];
3199
3191
  };
3200
- declare type AiTextGenerationOutput =
3192
+ type AiTextGenerationOutput =
3201
3193
  | {
3202
3194
  response?: string;
3203
3195
  tool_calls?: {
@@ -3210,7 +3202,7 @@ declare abstract class BaseAiTextGeneration {
3210
3202
  inputs: AiTextGenerationInput;
3211
3203
  postProcessedOutputs: AiTextGenerationOutput;
3212
3204
  }
3213
- declare type AiTextToImageInput = {
3205
+ type AiTextToImageInput = {
3214
3206
  prompt: string;
3215
3207
  image?: number[];
3216
3208
  mask?: number[];
@@ -3218,53 +3210,52 @@ declare type AiTextToImageInput = {
3218
3210
  strength?: number;
3219
3211
  guidance?: number;
3220
3212
  };
3221
- declare type AiTextToImageOutput = Uint8Array;
3213
+ type AiTextToImageOutput = Uint8Array;
3222
3214
  declare abstract class BaseAiTextToImage {
3223
3215
  inputs: AiTextToImageInput;
3224
3216
  postProcessedOutputs: AiTextToImageOutput;
3225
3217
  }
3226
- declare type AiTranslationInput = {
3218
+ type AiTranslationInput = {
3227
3219
  text: string;
3228
3220
  target_lang: string;
3229
3221
  source_lang?: string;
3230
3222
  };
3231
- declare type AiTranslationOutput = {
3223
+ type AiTranslationOutput = {
3232
3224
  translated_text?: string;
3233
3225
  };
3234
3226
  declare abstract class BaseAiTranslation {
3235
3227
  inputs: AiTranslationInput;
3236
3228
  postProcessedOutputs: AiTranslationOutput;
3237
3229
  }
3238
- declare type GatewayOptions = {
3230
+ type GatewayOptions = {
3239
3231
  id: string;
3240
3232
  cacheTtl?: number;
3241
3233
  skipCache?: boolean;
3242
3234
  metadata?: Record<string, number | string | boolean | null | bigint>;
3243
3235
  };
3244
- declare type AiOptions = {
3236
+ type AiOptions = {
3245
3237
  gateway?: GatewayOptions;
3246
3238
  prefix?: string;
3247
3239
  extraHeaders?: object;
3248
3240
  };
3249
- declare type BaseAiTextClassificationModels =
3250
- "@cf/huggingface/distilbert-sst-2-int8";
3251
- declare type BaseAiTextToImageModels =
3241
+ type BaseAiTextClassificationModels = "@cf/huggingface/distilbert-sst-2-int8";
3242
+ type BaseAiTextToImageModels =
3252
3243
  | "@cf/stabilityai/stable-diffusion-xl-base-1.0"
3253
3244
  | "@cf/runwayml/stable-diffusion-v1-5-inpainting"
3254
3245
  | "@cf/runwayml/stable-diffusion-v1-5-img2img"
3255
3246
  | "@cf/lykon/dreamshaper-8-lcm"
3256
3247
  | "@cf/bytedance/stable-diffusion-xl-lightning";
3257
- declare type BaseAiTextEmbeddingsModels =
3248
+ type BaseAiTextEmbeddingsModels =
3258
3249
  | "@cf/baai/bge-small-en-v1.5"
3259
3250
  | "@cf/baai/bge-base-en-v1.5"
3260
3251
  | "@cf/baai/bge-large-en-v1.5";
3261
- declare type BaseAiSpeechRecognitionModels =
3252
+ type BaseAiSpeechRecognitionModels =
3262
3253
  | "@cf/openai/whisper"
3263
3254
  | "@cf/openai/whisper-tiny-en"
3264
3255
  | "@cf/openai/whisper-sherpa";
3265
- declare type BaseAiImageClassificationModels = "@cf/microsoft/resnet-50";
3266
- declare type BaseAiObjectDetectionModels = "@cf/facebook/detr-resnet-50";
3267
- declare type BaseAiTextGenerationModels =
3256
+ type BaseAiImageClassificationModels = "@cf/microsoft/resnet-50";
3257
+ type BaseAiObjectDetectionModels = "@cf/facebook/detr-resnet-50";
3258
+ type BaseAiTextGenerationModels =
3268
3259
  | "@cf/meta/llama-3-8b-instruct"
3269
3260
  | "@cf/meta/llama-3-8b-instruct-awq"
3270
3261
  | "@cf/meta/llama-2-7b-chat-int8"
@@ -3300,9 +3291,9 @@ declare type BaseAiTextGenerationModels =
3300
3291
  | "@cf/meta-llama/llama-2-7b-chat-hf-lora"
3301
3292
  | "@cf/fblgit/una-cybertron-7b-v2-bf16"
3302
3293
  | "@cf/fblgit/una-cybertron-7b-v2-awq";
3303
- declare type BaseAiTranslationModels = "@cf/meta/m2m100-1.2b";
3304
- declare type BaseAiSummarizationModels = "@cf/facebook/bart-large-cnn";
3305
- declare type BaseAiImageToTextModels =
3294
+ type BaseAiTranslationModels = "@cf/meta/m2m100-1.2b";
3295
+ type BaseAiSummarizationModels = "@cf/facebook/bart-large-cnn";
3296
+ type BaseAiImageToTextModels =
3306
3297
  | "@cf/unum/uform-gen2-qwen-500m"
3307
3298
  | "@cf/llava-hf/llava-1.5-7b-hf";
3308
3299
  declare abstract class Ai {
@@ -3357,7 +3348,7 @@ declare abstract class Ai {
3357
3348
  options?: AiOptions,
3358
3349
  ): Promise<BaseAiImageToText["postProcessedOutputs"]>;
3359
3350
  }
3360
- declare interface BasicImageTransformations {
3351
+ interface BasicImageTransformations {
3361
3352
  /**
3362
3353
  * Maximum width in image pixels. The value must be an integer.
3363
3354
  */
@@ -3423,7 +3414,7 @@ declare interface BasicImageTransformations {
3423
3414
  */
3424
3415
  rotate?: 0 | 90 | 180 | 270 | 360;
3425
3416
  }
3426
- declare interface BasicImageTransformationsGravityCoordinates {
3417
+ interface BasicImageTransformationsGravityCoordinates {
3427
3418
  x: number;
3428
3419
  y: number;
3429
3420
  }
@@ -3436,7 +3427,7 @@ declare interface BasicImageTransformationsGravityCoordinates {
3436
3427
  * Note: Currently, these properties cannot be tested in the
3437
3428
  * playground.
3438
3429
  */
3439
- declare interface RequestInitCfProperties extends Record<string, unknown> {
3430
+ interface RequestInitCfProperties extends Record<string, unknown> {
3440
3431
  cacheEverything?: boolean;
3441
3432
  /**
3442
3433
  * A request's cache key is what determines if two requests are
@@ -3487,8 +3478,7 @@ declare interface RequestInitCfProperties extends Record<string, unknown> {
3487
3478
  */
3488
3479
  resolveOverride?: string;
3489
3480
  }
3490
- declare interface RequestInitCfPropertiesImageDraw
3491
- extends BasicImageTransformations {
3481
+ interface RequestInitCfPropertiesImageDraw extends BasicImageTransformations {
3492
3482
  /**
3493
3483
  * Absolute URL of the image file to use for the drawing. It can be any of
3494
3484
  * the supported file formats. For drawing of watermarks or non-rectangular
@@ -3525,8 +3515,7 @@ declare interface RequestInitCfPropertiesImageDraw
3525
3515
  bottom?: number;
3526
3516
  right?: number;
3527
3517
  }
3528
- declare interface RequestInitCfPropertiesImage
3529
- extends BasicImageTransformations {
3518
+ interface RequestInitCfPropertiesImage extends BasicImageTransformations {
3530
3519
  /**
3531
3520
  * Device Pixel Ratio. Default 1. Multiplier for width/height that makes it
3532
3521
  * easier to specify higher-DPI sizes in <img srcset>.
@@ -3651,12 +3640,12 @@ declare interface RequestInitCfPropertiesImage
3651
3640
  */
3652
3641
  compression?: "fast";
3653
3642
  }
3654
- declare interface RequestInitCfPropertiesImageMinify {
3643
+ interface RequestInitCfPropertiesImageMinify {
3655
3644
  javascript?: boolean;
3656
3645
  css?: boolean;
3657
3646
  html?: boolean;
3658
3647
  }
3659
- declare interface RequestInitCfPropertiesR2 {
3648
+ interface RequestInitCfPropertiesR2 {
3660
3649
  /**
3661
3650
  * Colo id of bucket that an object is stored in
3662
3651
  */
@@ -3665,14 +3654,13 @@ declare interface RequestInitCfPropertiesR2 {
3665
3654
  /**
3666
3655
  * Request metadata provided by Cloudflare's edge.
3667
3656
  */
3668
- declare type IncomingRequestCfProperties<HostMetadata = unknown> =
3657
+ type IncomingRequestCfProperties<HostMetadata = unknown> =
3669
3658
  IncomingRequestCfPropertiesBase &
3670
3659
  IncomingRequestCfPropertiesBotManagementEnterprise &
3671
3660
  IncomingRequestCfPropertiesCloudflareForSaaSEnterprise<HostMetadata> &
3672
3661
  IncomingRequestCfPropertiesGeographicInformation &
3673
3662
  IncomingRequestCfPropertiesCloudflareAccessOrApiShield;
3674
- declare interface IncomingRequestCfPropertiesBase
3675
- extends Record<string, unknown> {
3663
+ interface IncomingRequestCfPropertiesBase extends Record<string, unknown> {
3676
3664
  /**
3677
3665
  * [ASN](https://www.iana.org/assignments/as-numbers/as-numbers.xhtml) of the incoming request.
3678
3666
  *
@@ -3750,7 +3738,7 @@ declare interface IncomingRequestCfPropertiesBase
3750
3738
  */
3751
3739
  tlsExportedAuthenticator?: IncomingRequestCfPropertiesExportedAuthenticatorMetadata;
3752
3740
  }
3753
- declare interface IncomingRequestCfPropertiesBotManagementBase {
3741
+ interface IncomingRequestCfPropertiesBotManagementBase {
3754
3742
  /**
3755
3743
  * Cloudflare’s [level of certainty](https://developers.cloudflare.com/bots/concepts/bot-score/) that a request comes from a bot,
3756
3744
  * represented as an integer percentage between `1` (almost certainly a bot) and `99` (almost certainly human).
@@ -3777,7 +3765,7 @@ declare interface IncomingRequestCfPropertiesBotManagementBase {
3777
3765
  */
3778
3766
  detectionIds: number[];
3779
3767
  }
3780
- declare interface IncomingRequestCfPropertiesBotManagement {
3768
+ interface IncomingRequestCfPropertiesBotManagement {
3781
3769
  /**
3782
3770
  * Results of Cloudflare's Bot Management analysis
3783
3771
  */
@@ -3789,7 +3777,7 @@ declare interface IncomingRequestCfPropertiesBotManagement {
3789
3777
  */
3790
3778
  clientTrustScore: number;
3791
3779
  }
3792
- declare interface IncomingRequestCfPropertiesBotManagementEnterprise
3780
+ interface IncomingRequestCfPropertiesBotManagementEnterprise
3793
3781
  extends IncomingRequestCfPropertiesBotManagement {
3794
3782
  /**
3795
3783
  * Results of Cloudflare's Bot Management analysis
@@ -3802,9 +3790,7 @@ declare interface IncomingRequestCfPropertiesBotManagementEnterprise
3802
3790
  ja3Hash: string;
3803
3791
  };
3804
3792
  }
3805
- declare interface IncomingRequestCfPropertiesCloudflareForSaaSEnterprise<
3806
- HostMetadata,
3807
- > {
3793
+ interface IncomingRequestCfPropertiesCloudflareForSaaSEnterprise<HostMetadata> {
3808
3794
  /**
3809
3795
  * Custom metadata set per-host in [Cloudflare for SaaS](https://developers.cloudflare.com/cloudflare-for-platforms/cloudflare-for-saas/).
3810
3796
  *
@@ -3813,7 +3799,7 @@ declare interface IncomingRequestCfPropertiesCloudflareForSaaSEnterprise<
3813
3799
  */
3814
3800
  hostMetadata: HostMetadata;
3815
3801
  }
3816
- declare interface IncomingRequestCfPropertiesCloudflareAccessOrApiShield {
3802
+ interface IncomingRequestCfPropertiesCloudflareAccessOrApiShield {
3817
3803
  /**
3818
3804
  * Information about the client certificate presented to Cloudflare.
3819
3805
  *
@@ -3835,7 +3821,7 @@ declare interface IncomingRequestCfPropertiesCloudflareAccessOrApiShield {
3835
3821
  /**
3836
3822
  * Metadata about the request's TLS handshake
3837
3823
  */
3838
- declare interface IncomingRequestCfPropertiesExportedAuthenticatorMetadata {
3824
+ interface IncomingRequestCfPropertiesExportedAuthenticatorMetadata {
3839
3825
  /**
3840
3826
  * The client's [`HELLO` message](https://www.rfc-editor.org/rfc/rfc5246#section-7.4.1.2), encoded in hexadecimal
3841
3827
  *
@@ -3864,7 +3850,7 @@ declare interface IncomingRequestCfPropertiesExportedAuthenticatorMetadata {
3864
3850
  /**
3865
3851
  * Geographic data about the request's origin.
3866
3852
  */
3867
- declare interface IncomingRequestCfPropertiesGeographicInformation {
3853
+ interface IncomingRequestCfPropertiesGeographicInformation {
3868
3854
  /**
3869
3855
  * The [ISO 3166-1 Alpha 2](https://www.iso.org/iso-3166-country-codes.html) country code the request originated from.
3870
3856
  *
@@ -3941,7 +3927,7 @@ declare interface IncomingRequestCfPropertiesGeographicInformation {
3941
3927
  metroCode?: string;
3942
3928
  }
3943
3929
  /** Data about the incoming request's TLS certificate */
3944
- declare interface IncomingRequestCfPropertiesTLSClientAuth {
3930
+ interface IncomingRequestCfPropertiesTLSClientAuth {
3945
3931
  /** Always `"1"`, indicating that the certificate was presented */
3946
3932
  certPresented: "1";
3947
3933
  /**
@@ -4034,7 +4020,7 @@ declare interface IncomingRequestCfPropertiesTLSClientAuth {
4034
4020
  certNotAfter: string;
4035
4021
  }
4036
4022
  /** Placeholder values for TLS Client Authorization */
4037
- declare interface IncomingRequestCfPropertiesTLSClientAuthPlaceholder {
4023
+ interface IncomingRequestCfPropertiesTLSClientAuthPlaceholder {
4038
4024
  certPresented: "0";
4039
4025
  certVerified: "NONE";
4040
4026
  certRevoked: "0";
@@ -4332,10 +4318,10 @@ declare type Iso3166Alpha2Code =
4332
4318
  | "ZW";
4333
4319
  /** The 2-letter continent codes Cloudflare uses */
4334
4320
  declare type ContinentCode = "AF" | "AN" | "AS" | "EU" | "NA" | "OC" | "SA";
4335
- declare type CfProperties<HostMetadata = unknown> =
4321
+ type CfProperties<HostMetadata = unknown> =
4336
4322
  | IncomingRequestCfProperties<HostMetadata>
4337
4323
  | RequestInitCfProperties;
4338
- declare interface D1Meta {
4324
+ interface D1Meta {
4339
4325
  duration: number;
4340
4326
  size_after: number;
4341
4327
  rows_read: number;
@@ -4344,15 +4330,15 @@ declare interface D1Meta {
4344
4330
  changed_db: boolean;
4345
4331
  changes: number;
4346
4332
  }
4347
- declare interface D1Response {
4333
+ interface D1Response {
4348
4334
  success: true;
4349
4335
  meta: D1Meta & Record<string, unknown>;
4350
4336
  error?: never;
4351
4337
  }
4352
- declare type D1Result<T = unknown> = D1Response & {
4338
+ type D1Result<T = unknown> = D1Response & {
4353
4339
  results: T[];
4354
4340
  };
4355
- declare interface D1ExecResult {
4341
+ interface D1ExecResult {
4356
4342
  count: number;
4357
4343
  duration: number;
4358
4344
  }
@@ -4379,11 +4365,11 @@ declare abstract class D1PreparedStatement {
4379
4365
  // but this will ensure type checking on older versions still passes.
4380
4366
  // TypeScript's interface merging will ensure our empty interface is effectively
4381
4367
  // ignored when `Disposable` is included in the standard lib.
4382
- declare interface Disposable {}
4368
+ interface Disposable {}
4383
4369
  /**
4384
4370
  * An email message that can be sent from a Worker.
4385
4371
  */
4386
- declare interface EmailMessage {
4372
+ interface EmailMessage {
4387
4373
  /**
4388
4374
  * Envelope From attribute of the email message.
4389
4375
  */
@@ -4396,7 +4382,7 @@ declare interface EmailMessage {
4396
4382
  /**
4397
4383
  * An email message that is sent to a consumer Worker and can be rejected/forwarded.
4398
4384
  */
4399
- declare interface ForwardableEmailMessage extends EmailMessage {
4385
+ interface ForwardableEmailMessage extends EmailMessage {
4400
4386
  /**
4401
4387
  * Stream of the email message content.
4402
4388
  */
@@ -4426,7 +4412,7 @@ declare interface ForwardableEmailMessage extends EmailMessage {
4426
4412
  /**
4427
4413
  * A binding that allows a Worker to send email messages.
4428
4414
  */
4429
- declare interface SendEmail {
4415
+ interface SendEmail {
4430
4416
  send(message: EmailMessage): Promise<void>;
4431
4417
  }
4432
4418
  declare abstract class EmailEvent extends ExtendableEvent {
@@ -4444,7 +4430,7 @@ declare module "cloudflare:email" {
4444
4430
  };
4445
4431
  export { _EmailMessage as EmailMessage };
4446
4432
  }
4447
- declare interface Hyperdrive {
4433
+ interface Hyperdrive {
4448
4434
  /**
4449
4435
  * Connect directly to Hyperdrive as if it's your database, returning a TCP socket.
4450
4436
  *
@@ -4491,8 +4477,8 @@ declare interface Hyperdrive {
4491
4477
  */
4492
4478
  readonly database: string;
4493
4479
  }
4494
- declare type Params<P extends string = any> = Record<P, string | string[]>;
4495
- declare type EventContext<Env, P extends string, Data> = {
4480
+ type Params<P extends string = any> = Record<P, string | string[]>;
4481
+ type EventContext<Env, P extends string, Data> = {
4496
4482
  request: Request<unknown, IncomingRequestCfProperties<unknown>>;
4497
4483
  functionPath: string;
4498
4484
  waitUntil: (promise: Promise<any>) => void;
@@ -4506,12 +4492,12 @@ declare type EventContext<Env, P extends string, Data> = {
4506
4492
  params: Params<P>;
4507
4493
  data: Data;
4508
4494
  };
4509
- declare type PagesFunction<
4495
+ type PagesFunction<
4510
4496
  Env = unknown,
4511
4497
  Params extends string = any,
4512
4498
  Data extends Record<string, unknown> = Record<string, unknown>,
4513
4499
  > = (context: EventContext<Env, Params, Data>) => Response | Promise<Response>;
4514
- declare type EventPluginContext<Env, P extends string, Data, PluginArgs> = {
4500
+ type EventPluginContext<Env, P extends string, Data, PluginArgs> = {
4515
4501
  request: Request<unknown, IncomingRequestCfProperties<unknown>>;
4516
4502
  functionPath: string;
4517
4503
  waitUntil: (promise: Promise<any>) => void;
@@ -4526,7 +4512,7 @@ declare type EventPluginContext<Env, P extends string, Data, PluginArgs> = {
4526
4512
  data: Data;
4527
4513
  pluginArgs: PluginArgs;
4528
4514
  };
4529
- declare type PagesPluginFunction<
4515
+ type PagesPluginFunction<
4530
4516
  Env = unknown,
4531
4517
  Params extends string = any,
4532
4518
  Data extends Record<string, unknown> = Record<string, unknown>,
@@ -4541,7 +4527,7 @@ declare module "assets:*" {
4541
4527
  // The message includes metadata about the broker, the client, and the payload
4542
4528
  // itself.
4543
4529
  // https://developers.cloudflare.com/pub-sub/
4544
- declare interface PubSubMessage {
4530
+ interface PubSubMessage {
4545
4531
  // Message ID
4546
4532
  readonly mid: number;
4547
4533
  // MQTT broker FQDN in the form mqtts://BROKER.NAMESPACE.cloudflarepubsub.com:PORT
@@ -4567,10 +4553,24 @@ declare interface PubSubMessage {
4567
4553
  payload: string | Uint8Array;
4568
4554
  }
4569
4555
  // JsonWebKey extended by kid parameter
4570
- declare interface JsonWebKeyWithKid extends JsonWebKey {
4556
+ interface JsonWebKeyWithKid extends JsonWebKey {
4571
4557
  // Key Identifier of the JWK
4572
4558
  readonly kid: string;
4573
4559
  }
4560
+ interface RateLimitOptions {
4561
+ key: string;
4562
+ }
4563
+ interface RateLimitOutcome {
4564
+ success: boolean;
4565
+ }
4566
+ interface RateLimit {
4567
+ /**
4568
+ * Rate limit a request based on the provided options.
4569
+ * @see https://developers.cloudflare.com/workers/runtime-apis/bindings/rate-limit/
4570
+ * @returns A promise that resolves with the outcome of the rate limit.
4571
+ */
4572
+ limit(options: RateLimitOptions): Promise<RateLimitOutcome>;
4573
+ }
4574
4574
  // Namespace for RPC utility types. Unfortunately, we can't use a `module` here as these types need
4575
4575
  // to referenced by `Fetcher`. This is included in the "importable" version of the types which
4576
4576
  // strips all `module` blocks.
@@ -4778,19 +4778,15 @@ declare module "cloudflare:sockets" {
4778
4778
  /**
4779
4779
  * Data types supported for holding vector metadata.
4780
4780
  */
4781
- declare type VectorizeVectorMetadataValue =
4782
- | string
4783
- | number
4784
- | boolean
4785
- | string[];
4781
+ type VectorizeVectorMetadataValue = string | number | boolean | string[];
4786
4782
  /**
4787
4783
  * Additional information to associate with a vector.
4788
4784
  */
4789
- declare type VectorizeVectorMetadata =
4785
+ type VectorizeVectorMetadata =
4790
4786
  | VectorizeVectorMetadataValue
4791
4787
  | Record<string, VectorizeVectorMetadataValue>;
4792
- declare type VectorFloatArray = Float32Array | Float64Array;
4793
- declare interface VectorizeError {
4788
+ type VectorFloatArray = Float32Array | Float64Array;
4789
+ interface VectorizeError {
4794
4790
  code?: number;
4795
4791
  error: string;
4796
4792
  }
@@ -4799,11 +4795,11 @@ declare interface VectorizeError {
4799
4795
  *
4800
4796
  * This list is expected to grow as support for more operations are released.
4801
4797
  */
4802
- declare type VectorizeVectorMetadataFilterOp = "$eq" | "$ne";
4798
+ type VectorizeVectorMetadataFilterOp = "$eq" | "$ne";
4803
4799
  /**
4804
4800
  * Filter criteria for vector metadata used to limit the retrieved query result set.
4805
4801
  */
4806
- declare type VectorizeVectorMetadataFilter = {
4802
+ type VectorizeVectorMetadataFilter = {
4807
4803
  [field: string]:
4808
4804
  | Exclude<VectorizeVectorMetadataValue, string[]>
4809
4805
  | null
@@ -4818,8 +4814,8 @@ declare type VectorizeVectorMetadataFilter = {
4818
4814
  * Supported distance metrics for an index.
4819
4815
  * Distance metrics determine how other "similar" vectors are determined.
4820
4816
  */
4821
- declare type VectorizeDistanceMetric = "euclidean" | "cosine" | "dot-product";
4822
- declare interface VectorizeQueryOptions {
4817
+ type VectorizeDistanceMetric = "euclidean" | "cosine" | "dot-product";
4818
+ interface VectorizeQueryOptions {
4823
4819
  topK?: number;
4824
4820
  namespace?: string;
4825
4821
  returnValues?: boolean;
@@ -4829,7 +4825,7 @@ declare interface VectorizeQueryOptions {
4829
4825
  /**
4830
4826
  * Information about the configuration of an index.
4831
4827
  */
4832
- declare type VectorizeIndexConfig =
4828
+ type VectorizeIndexConfig =
4833
4829
  | {
4834
4830
  dimensions: number;
4835
4831
  metric: VectorizeDistanceMetric;
@@ -4840,7 +4836,7 @@ declare type VectorizeIndexConfig =
4840
4836
  /**
4841
4837
  * Metadata about an existing index.
4842
4838
  */
4843
- declare interface VectorizeIndexDetails {
4839
+ interface VectorizeIndexDetails {
4844
4840
  /** The unique ID of the index */
4845
4841
  readonly id: string;
4846
4842
  /** The name of the index. */
@@ -4855,7 +4851,7 @@ declare interface VectorizeIndexDetails {
4855
4851
  /**
4856
4852
  * Represents a single vector value set along with its associated metadata.
4857
4853
  */
4858
- declare interface VectorizeVector {
4854
+ interface VectorizeVector {
4859
4855
  /** The ID for the vector. This can be user-defined, and must be unique. It should uniquely identify the object, and is best set based on the ID of what the vector represents. */
4860
4856
  id: string;
4861
4857
  /** The vector values */
@@ -4868,7 +4864,7 @@ declare interface VectorizeVector {
4868
4864
  /**
4869
4865
  * Represents a matched vector for a query along with its score and (if specified) the matching vector information.
4870
4866
  */
4871
- declare type VectorizeMatch = Pick<Partial<VectorizeVector>, "values"> &
4867
+ type VectorizeMatch = Pick<Partial<VectorizeVector>, "values"> &
4872
4868
  Omit<VectorizeVector, "values"> & {
4873
4869
  /** The score or rank for similarity, when returned as a result */
4874
4870
  score: number;
@@ -4876,7 +4872,7 @@ declare type VectorizeMatch = Pick<Partial<VectorizeVector>, "values"> &
4876
4872
  /**
4877
4873
  * A set of vector {@link VectorizeMatch} for a particular query.
4878
4874
  */
4879
- declare interface VectorizeMatches {
4875
+ interface VectorizeMatches {
4880
4876
  matches: VectorizeMatch[];
4881
4877
  count: number;
4882
4878
  }
@@ -4884,7 +4880,7 @@ declare interface VectorizeMatches {
4884
4880
  * Results of an operation that performed a mutation on a set of vectors.
4885
4881
  * Here, `ids` is a list of vectors that were successfully processed.
4886
4882
  */
4887
- declare interface VectorizeVectorMutation {
4883
+ interface VectorizeVectorMutation {
4888
4884
  /* List of ids of vectors that were successfully processed. */
4889
4885
  ids: string[];
4890
4886
  /* Total count of the number of processed vectors. */
@@ -4895,7 +4891,7 @@ declare interface VectorizeVectorMutation {
4895
4891
  * with the v2 version of Vectorize.
4896
4892
  * Here, `mutationId` is the identifier for the last mutation processed by Vectorize.
4897
4893
  */
4898
- declare interface VectorizeVectorMutationV2 {
4894
+ interface VectorizeVectorMutationV2 {
4899
4895
  /* The identifier for the last mutation processed by Vectorize. */
4900
4896
  mutationId: string;
4901
4897
  }
@@ -4944,7 +4940,7 @@ declare abstract class VectorizeIndex {
4944
4940
  * The interface for "version_metadata" binding
4945
4941
  * providing metadata about the Worker Version using this binding.
4946
4942
  */
4947
- declare type WorkerVersionMetadata = {
4943
+ type WorkerVersionMetadata = {
4948
4944
  /** The ID of the Worker Version using this binding */
4949
4945
  id: string;
4950
4946
  /** The tag of the Worker Version using this binding */
@@ -4952,7 +4948,7 @@ declare type WorkerVersionMetadata = {
4952
4948
  /** The timestamp of when the Worker Version was uploaded */
4953
4949
  timestamp: string;
4954
4950
  };
4955
- declare interface DynamicDispatchLimits {
4951
+ interface DynamicDispatchLimits {
4956
4952
  /**
4957
4953
  * Limit CPU time in milliseconds.
4958
4954
  */
@@ -4962,7 +4958,7 @@ declare interface DynamicDispatchLimits {
4962
4958
  */
4963
4959
  subRequests?: number;
4964
4960
  }
4965
- declare interface DynamicDispatchOptions {
4961
+ interface DynamicDispatchOptions {
4966
4962
  /**
4967
4963
  * Limit resources of invoked Worker script.
4968
4964
  */
@@ -4974,7 +4970,7 @@ declare interface DynamicDispatchOptions {
4974
4970
  [key: string]: any;
4975
4971
  };
4976
4972
  }
4977
- declare interface DispatchNamespace {
4973
+ interface DispatchNamespace {
4978
4974
  /**
4979
4975
  * @param name Name of the Worker script.
4980
4976
  * @param args Arguments to Worker script.