@cloudflare/workers-types 5.20261112.1 → 5.20261114.1

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.
@@ -15,60 +15,6 @@ and limitations under the License.
15
15
  /* eslint-disable */
16
16
  // noinspection JSUnusedGlobalSymbols
17
17
  declare var onmessage: never;
18
- /**
19
- * The **`DOMException`** interface represents an abnormal event (called an exception) that occurs as a result of calling a method or accessing a property of a web API. This is how error conditions are described in web APIs.
20
- *
21
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException)
22
- */
23
- declare class DOMException extends Error {
24
- constructor(message?: string, name?: string);
25
- /**
26
- * The **`message`** read-only property of the DOMException interface returns a string representing a message or description associated with the given error name.
27
- *
28
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/message)
29
- */
30
- readonly message: string;
31
- /**
32
- * The **`name`** read-only property of the DOMException interface returns a string that contains one of the strings associated with an error name.
33
- *
34
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/name)
35
- */
36
- readonly name: string;
37
- /**
38
- * The **`code`** read-only property of the DOMException interface returns one of the legacy error code constants, or 0 if none match.
39
- * @deprecated
40
- *
41
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)
42
- */
43
- readonly code: number;
44
- static readonly INDEX_SIZE_ERR: number;
45
- static readonly DOMSTRING_SIZE_ERR: number;
46
- static readonly HIERARCHY_REQUEST_ERR: number;
47
- static readonly WRONG_DOCUMENT_ERR: number;
48
- static readonly INVALID_CHARACTER_ERR: number;
49
- static readonly NO_DATA_ALLOWED_ERR: number;
50
- static readonly NO_MODIFICATION_ALLOWED_ERR: number;
51
- static readonly NOT_FOUND_ERR: number;
52
- static readonly NOT_SUPPORTED_ERR: number;
53
- static readonly INUSE_ATTRIBUTE_ERR: number;
54
- static readonly INVALID_STATE_ERR: number;
55
- static readonly SYNTAX_ERR: number;
56
- static readonly INVALID_MODIFICATION_ERR: number;
57
- static readonly NAMESPACE_ERR: number;
58
- static readonly INVALID_ACCESS_ERR: number;
59
- static readonly VALIDATION_ERR: number;
60
- static readonly TYPE_MISMATCH_ERR: number;
61
- static readonly SECURITY_ERR: number;
62
- static readonly NETWORK_ERR: number;
63
- static readonly ABORT_ERR: number;
64
- static readonly URL_MISMATCH_ERR: number;
65
- static readonly QUOTA_EXCEEDED_ERR: number;
66
- static readonly TIMEOUT_ERR: number;
67
- static readonly INVALID_NODE_TYPE_ERR: number;
68
- static readonly DATA_CLONE_ERR: number;
69
- get stack(): any;
70
- set stack(value: any);
71
- }
72
18
  type WorkerGlobalScopeEventMap = {
73
19
  fetch: FetchEvent;
74
20
  scheduled: ScheduledEvent;
@@ -813,7 +759,10 @@ interface DurableObjectStorage {
813
759
  snapshot(
814
760
  options?: DurableObjectSnapshotOptions,
815
761
  ): Promise<DurableObjectSnapshot>;
816
- onNextSessionRestore(target: DurableObjectSnapshot | string): Promise<string>;
762
+ onNextSessionRestore(
763
+ target: DurableObjectSnapshot | string,
764
+ options?: DurableObjectRestoreOptions,
765
+ ): Promise<string>;
817
766
  /** @deprecated Use `ctx.configureReadReplication()` instead. */
818
767
  ensureReplicas(): void;
819
768
  /** @deprecated Use `ctx.configureReadReplication()` instead. */
@@ -828,6 +777,9 @@ interface DurableObjectReadReplicationOptions {
828
777
  interface DurableObjectSnapshotOptions {
829
778
  bookmark?: string;
830
779
  }
780
+ interface DurableObjectRestoreOptions {
781
+ kvData?: Record<string, any>;
782
+ }
831
783
  interface DurableObjectListOptions {
832
784
  start?: string;
833
785
  startAfter?: string;
@@ -3568,116 +3520,6 @@ interface TraceMetrics {
3568
3520
  interface UnsafeTraceMetrics {
3569
3521
  fromTrace(item: TraceItem): TraceMetrics;
3570
3522
  }
3571
- /**
3572
- * The **`URLPattern`** interface of the URL Pattern API matches URLs or parts of URLs against a pattern. The pattern can contain capturing groups that extract parts of the matched URL.
3573
- *
3574
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern)
3575
- */
3576
- declare class URLPattern {
3577
- constructor(
3578
- input?: string | URLPatternInit,
3579
- baseURL?: string | URLPatternOptions,
3580
- patternOptions?: URLPatternOptions,
3581
- );
3582
- /**
3583
- * The **`protocol`** read-only property of the URLPattern interface is a string containing the pattern used to match the protocol part of a URL.
3584
- *
3585
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/protocol)
3586
- */
3587
- get protocol(): string;
3588
- /**
3589
- * The **`username`** read-only property of the URLPattern interface is a string containing the pattern used to match the username part of a URL.
3590
- *
3591
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/username)
3592
- */
3593
- get username(): string;
3594
- /**
3595
- * The **`password`** read-only property of the URLPattern interface is a string containing the pattern used to match the password part of a URL.
3596
- *
3597
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/password)
3598
- */
3599
- get password(): string;
3600
- /**
3601
- * The **`hostname`** read-only property of the URLPattern interface is a string containing the pattern used to match the hostname part of a URL.
3602
- *
3603
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hostname)
3604
- */
3605
- get hostname(): string;
3606
- /**
3607
- * The **`port`** read-only property of the URLPattern interface is a string containing the pattern used to match the port part of a URL.
3608
- *
3609
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/port)
3610
- */
3611
- get port(): string;
3612
- /**
3613
- * The **`pathname`** read-only property of the URLPattern interface is a string containing the pattern used to match the pathname part of a URL.
3614
- *
3615
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/pathname)
3616
- */
3617
- get pathname(): string;
3618
- /**
3619
- * The **`search`** read-only property of the URLPattern interface is a string containing the pattern used to match the search part of a URL.
3620
- *
3621
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/search)
3622
- */
3623
- get search(): string;
3624
- /**
3625
- * The **`hash`** read-only property of the URLPattern interface is a string containing the pattern used to match the fragment part of a URL.
3626
- *
3627
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hash)
3628
- */
3629
- get hash(): string;
3630
- /**
3631
- * The **`hasRegExpGroups`** read-only property of the URLPattern interface is a boolean indicating whether or not any of the URLPattern components contain regular expression capturing groups.
3632
- *
3633
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hasRegExpGroups)
3634
- */
3635
- get hasRegExpGroups(): boolean;
3636
- /**
3637
- * The **`test()`** method of the URLPattern interface takes a URL string or object of URL parts, and returns a boolean indicating if the given input matches the current pattern.
3638
- *
3639
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/test)
3640
- */
3641
- test(input?: string | URLPatternInit, baseURL?: string): boolean;
3642
- /**
3643
- * The **`exec()`** method of the URLPattern interface takes a URL or object of URL parts, and returns either an object containing the results of matching the URL to the pattern, or null if the URL does not match the pattern.
3644
- *
3645
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/exec)
3646
- */
3647
- exec(
3648
- input?: string | URLPatternInit,
3649
- baseURL?: string,
3650
- ): URLPatternResult | null;
3651
- }
3652
- interface URLPatternInit {
3653
- protocol?: string;
3654
- username?: string;
3655
- password?: string;
3656
- hostname?: string;
3657
- port?: string;
3658
- pathname?: string;
3659
- search?: string;
3660
- hash?: string;
3661
- baseURL?: string;
3662
- }
3663
- interface URLPatternComponentResult {
3664
- input: string;
3665
- groups: Record<string, string>;
3666
- }
3667
- interface URLPatternResult {
3668
- inputs: (string | URLPatternInit)[];
3669
- protocol: URLPatternComponentResult;
3670
- username: URLPatternComponentResult;
3671
- password: URLPatternComponentResult;
3672
- hostname: URLPatternComponentResult;
3673
- port: URLPatternComponentResult;
3674
- pathname: URLPatternComponentResult;
3675
- search: URLPatternComponentResult;
3676
- hash: URLPatternComponentResult;
3677
- }
3678
- interface URLPatternOptions {
3679
- ignoreCase?: boolean;
3680
- }
3681
3523
  type WebSocketEventMap = {
3682
3524
  close: CloseEvent;
3683
3525
  message: MessageEvent;
@@ -13674,6 +13516,49 @@ type BrowserRunDevtools = {
13674
13516
  type BrowserRunCloseSessionResult = {
13675
13517
  status: "closing" | "closed";
13676
13518
  };
13519
+ /** Library the script runs against. Omit it to receive a raw CDP client. */
13520
+ type BrowserRunScriptLibrary = "playwright" | "puppeteer";
13521
+ /** Options for `script()`. */
13522
+ type BrowserRunScriptOptions = {
13523
+ /** Library whose objects are passed to the script. Omit it for raw CDP. */
13524
+ library?: BrowserRunScriptLibrary;
13525
+ /** Maximum run time of the script in milliseconds, not counting browser
13526
+ * acquisition. Between 1 and 120000.
13527
+ * @default 60000
13528
+ */
13529
+ timeout?: number;
13530
+ /** How long the session stays open without activity after the run, in
13531
+ * milliseconds. Between 10000 and 1200000.
13532
+ * @default 60000
13533
+ */
13534
+ keepAlive?: number;
13535
+ /** Use the experimental pool, whose browsers enable Chrome features before
13536
+ * they reach stable Chrome.
13537
+ * @default false
13538
+ */
13539
+ lab?: boolean;
13540
+ /** Record the browser session. @default false */
13541
+ recording?: boolean;
13542
+ };
13543
+ /** Options for `scriptInSession()`. */
13544
+ type BrowserRunScriptSessionOptions = {
13545
+ /** Library whose objects are passed to the script. Omit it for raw CDP. */
13546
+ library?: BrowserRunScriptLibrary;
13547
+ /** Maximum run time of the script in milliseconds. Between 1 and 120000.
13548
+ * @default 60000
13549
+ */
13550
+ timeout?: number;
13551
+ /** Page target the script attaches to, such as the `cf-browser-target-id`
13552
+ * header returned by `script()`. Defaults to the session's first page.
13553
+ */
13554
+ targetId?: string;
13555
+ };
13556
+ /** JSON success body of `script()` and `scriptInSession()`. */
13557
+ type BrowserRunScriptSuccessResponse = {
13558
+ success: true;
13559
+ /** The script's return value, or `null` when it returned nothing. */
13560
+ result: unknown;
13561
+ };
13677
13562
  /**
13678
13563
  * Browser Run API binding for automating headless browsers.
13679
13564
  * @see https://developers.cloudflare.com/browser-run/
@@ -13888,6 +13773,57 @@ declare abstract class BrowserRun {
13888
13773
  getSession(sessionId: string): Promise<BrowserRunSession | null>;
13889
13774
  /** Close a browser session. */
13890
13775
  closeSession(sessionId: string): Promise<BrowserRunCloseSessionResult>;
13776
+ /**
13777
+ * Run a script against a new browser session.
13778
+ * @param code - Source of an async function. It receives the selected
13779
+ * library's objects (Playwright `{ page, context, browser }`, Puppeteer
13780
+ * `{ page, browser }`) or, without `library`, a CDP client.
13781
+ * @param options - Library, timeout and session launch options.
13782
+ * @returns A `Response` containing one of:
13783
+ *
13784
+ * **Success (HTTP 200):**
13785
+ * - `BrowserRunScriptSuccessResponse` JSON with `Content-Type: application/json`
13786
+ * when the script returns a JSON-serializable value or nothing
13787
+ * - The raw body and content type when the script returns binary or other
13788
+ * non-JSON output
13789
+ *
13790
+ * **Error:**
13791
+ * - JSON error body with an HTTP status code (400, 404, 408, 422, 429, 500, 503)
13792
+ * - HTTP 408 when the script exceeds `timeout`
13793
+ * - HTTP 422 when the script fails to compile or throws
13794
+ * - HTTP errors are returned as a `Response`, not thrown. Invalid `options`
13795
+ * throw before any request is made.
13796
+ *
13797
+ * **Headers:**
13798
+ * - `cf-browser-session-id`: Session kept open for `scriptInSession()`
13799
+ * - `cf-browser-target-id`: Page target the script ran on
13800
+ * - `X-Browser-Ms-Used`: Browser time consumed in milliseconds
13801
+ */
13802
+ script(code: string, options?: BrowserRunScriptOptions): Promise<Response>;
13803
+ /**
13804
+ * Run a script against an existing browser session, such as one kept open by
13805
+ * `script()`.
13806
+ * @param sessionId - Session to run in, such as the `cf-browser-session-id`
13807
+ * header returned by `script()`.
13808
+ * @param code - Source of an async function, as for `script()`.
13809
+ * @param options - Library, timeout and page target options.
13810
+ * @returns A `Response` with the same success bodies as `script()`.
13811
+ *
13812
+ * **Error:**
13813
+ * - JSON error body with an HTTP status code (400, 401, 404, 408, 410, 422, 500)
13814
+ * - HTTP 404 when the session or `targetId` does not exist
13815
+ * - HTTP 410 when the session is already closed
13816
+ * - HTTP errors are returned as a `Response`, not thrown. Invalid `options`
13817
+ * throw before any request is made.
13818
+ *
13819
+ * **Headers:**
13820
+ * - `X-Browser-Ms-Used`: Browser time consumed in milliseconds
13821
+ */
13822
+ scriptInSession(
13823
+ sessionId: string,
13824
+ code: string,
13825
+ options?: BrowserRunScriptSessionOptions,
13826
+ ): Promise<Response>;
13891
13827
  /** DevTools JSON methods exposed through one nested binding target. */
13892
13828
  get devtools(): BrowserRunDevtools;
13893
13829
  }
@@ -15204,6 +15140,60 @@ declare abstract class D1PreparedStatement {
15204
15140
  // TypeScript's interface merging will ensure our empty interface is effectively
15205
15141
  // ignored when `Disposable` is included in the standard lib.
15206
15142
  interface Disposable {}
15143
+ /**
15144
+ * The **`DOMException`** interface represents an abnormal event (called an exception) that occurs as a result of calling a method or accessing a property of a web API. This is how error conditions are described in web APIs.
15145
+ *
15146
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException)
15147
+ */
15148
+ declare class DOMException extends Error {
15149
+ constructor(message?: string, name?: string);
15150
+ /**
15151
+ * The **`message`** read-only property of the DOMException interface returns a string representing a message or description associated with the given error name.
15152
+ *
15153
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/message)
15154
+ */
15155
+ readonly message: string;
15156
+ /**
15157
+ * The **`name`** read-only property of the DOMException interface returns a string that contains one of the strings associated with an error name.
15158
+ *
15159
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/name)
15160
+ */
15161
+ readonly name: string;
15162
+ /**
15163
+ * The **`code`** read-only property of the DOMException interface returns one of the legacy error code constants, or 0 if none match.
15164
+ * @deprecated
15165
+ *
15166
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)
15167
+ */
15168
+ readonly code: number;
15169
+ static readonly INDEX_SIZE_ERR: number;
15170
+ static readonly DOMSTRING_SIZE_ERR: number;
15171
+ static readonly HIERARCHY_REQUEST_ERR: number;
15172
+ static readonly WRONG_DOCUMENT_ERR: number;
15173
+ static readonly INVALID_CHARACTER_ERR: number;
15174
+ static readonly NO_DATA_ALLOWED_ERR: number;
15175
+ static readonly NO_MODIFICATION_ALLOWED_ERR: number;
15176
+ static readonly NOT_FOUND_ERR: number;
15177
+ static readonly NOT_SUPPORTED_ERR: number;
15178
+ static readonly INUSE_ATTRIBUTE_ERR: number;
15179
+ static readonly INVALID_STATE_ERR: number;
15180
+ static readonly SYNTAX_ERR: number;
15181
+ static readonly INVALID_MODIFICATION_ERR: number;
15182
+ static readonly NAMESPACE_ERR: number;
15183
+ static readonly INVALID_ACCESS_ERR: number;
15184
+ static readonly VALIDATION_ERR: number;
15185
+ static readonly TYPE_MISMATCH_ERR: number;
15186
+ static readonly SECURITY_ERR: number;
15187
+ static readonly NETWORK_ERR: number;
15188
+ static readonly ABORT_ERR: number;
15189
+ static readonly URL_MISMATCH_ERR: number;
15190
+ static readonly QUOTA_EXCEEDED_ERR: number;
15191
+ static readonly TIMEOUT_ERR: number;
15192
+ static readonly INVALID_NODE_TYPE_ERR: number;
15193
+ static readonly DATA_CLONE_ERR: number;
15194
+ get stack(): any;
15195
+ set stack(value: any);
15196
+ }
15207
15197
  declare module "cloudflare:durable-objects" {
15208
15198
  /**
15209
15199
  * Marks Durable Object methods as safe to run more than once. The runtime may then retry calls
@@ -15271,6 +15261,10 @@ interface ForwardableEmailMessage extends EmailMessage {
15271
15261
  * Size of the email message content.
15272
15262
  */
15273
15263
  readonly rawSize: number;
15264
+ /**
15265
+ * Whether this email message can be forwarded with `forward()`.
15266
+ */
15267
+ readonly canBeForwarded: boolean;
15274
15268
  /**
15275
15269
  * Reject this email message by returning a permanent SMTP error back to the connecting client including the given reason.
15276
15270
  * @param reason The reject reason.
@@ -18173,6 +18167,119 @@ declare class URLSearchParams {
18173
18167
  toString(): string;
18174
18168
  [Symbol.iterator](): IterableIterator<[key: string, value: string]>;
18175
18169
  }
18170
+ // URLPattern, as the URLPattern standard declares it, for both parsers.
18171
+ // The legacy parser (the urlpattern_original compatibility flag, the
18172
+ // default before 2025-05-01) has no hasRegExpGroups.
18173
+ /**
18174
+ * The **`URLPattern`** interface of the URL Pattern API matches URLs or parts of URLs against a pattern. The pattern can contain capturing groups that extract parts of the matched URL.
18175
+ *
18176
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern)
18177
+ */
18178
+ declare class URLPattern {
18179
+ constructor(
18180
+ input?: string | URLPatternInit,
18181
+ baseURL?: string | URLPatternOptions,
18182
+ patternOptions?: URLPatternOptions,
18183
+ );
18184
+ /**
18185
+ * The **`protocol`** read-only property of the URLPattern interface is a string containing the pattern used to match the protocol part of a URL.
18186
+ *
18187
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/protocol)
18188
+ */
18189
+ get protocol(): string;
18190
+ /**
18191
+ * The **`username`** read-only property of the URLPattern interface is a string containing the pattern used to match the username part of a URL.
18192
+ *
18193
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/username)
18194
+ */
18195
+ get username(): string;
18196
+ /**
18197
+ * The **`password`** read-only property of the URLPattern interface is a string containing the pattern used to match the password part of a URL.
18198
+ *
18199
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/password)
18200
+ */
18201
+ get password(): string;
18202
+ /**
18203
+ * The **`hostname`** read-only property of the URLPattern interface is a string containing the pattern used to match the hostname part of a URL.
18204
+ *
18205
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hostname)
18206
+ */
18207
+ get hostname(): string;
18208
+ /**
18209
+ * The **`port`** read-only property of the URLPattern interface is a string containing the pattern used to match the port part of a URL.
18210
+ *
18211
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/port)
18212
+ */
18213
+ get port(): string;
18214
+ /**
18215
+ * The **`pathname`** read-only property of the URLPattern interface is a string containing the pattern used to match the pathname part of a URL.
18216
+ *
18217
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/pathname)
18218
+ */
18219
+ get pathname(): string;
18220
+ /**
18221
+ * The **`search`** read-only property of the URLPattern interface is a string containing the pattern used to match the search part of a URL.
18222
+ *
18223
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/search)
18224
+ */
18225
+ get search(): string;
18226
+ /**
18227
+ * The **`hash`** read-only property of the URLPattern interface is a string containing the pattern used to match the fragment part of a URL.
18228
+ *
18229
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hash)
18230
+ */
18231
+ get hash(): string;
18232
+ /**
18233
+ * The **`hasRegExpGroups`** read-only property of the URLPattern interface is a boolean indicating whether or not any of the URLPattern components contain regular expression capturing groups.
18234
+ *
18235
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hasRegExpGroups)
18236
+ */
18237
+ get hasRegExpGroups(): boolean;
18238
+ /**
18239
+ * The **`test()`** method of the URLPattern interface takes a URL string or object of URL parts, and returns a boolean indicating if the given input matches the current pattern.
18240
+ *
18241
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/test)
18242
+ */
18243
+ test(input?: string | URLPatternInit, baseURL?: string): boolean;
18244
+ /**
18245
+ * The **`exec()`** method of the URLPattern interface takes a URL or object of URL parts, and returns either an object containing the results of matching the URL to the pattern, or null if the URL does not match the pattern.
18246
+ *
18247
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/exec)
18248
+ */
18249
+ exec(
18250
+ input?: string | URLPatternInit,
18251
+ baseURL?: string,
18252
+ ): URLPatternResult | null;
18253
+ }
18254
+ interface URLPatternInit {
18255
+ protocol?: string;
18256
+ username?: string;
18257
+ password?: string;
18258
+ hostname?: string;
18259
+ port?: string;
18260
+ pathname?: string;
18261
+ search?: string;
18262
+ hash?: string;
18263
+ baseURL?: string;
18264
+ }
18265
+ interface URLPatternComponentResult {
18266
+ input: string;
18267
+ groups: Record<string, string | undefined>;
18268
+ }
18269
+ interface URLPatternResult {
18270
+ inputs: (string | URLPatternInit)[];
18271
+ protocol: URLPatternComponentResult;
18272
+ username: URLPatternComponentResult;
18273
+ password: URLPatternComponentResult;
18274
+ hostname: URLPatternComponentResult;
18275
+ port: URLPatternComponentResult;
18276
+ pathname: URLPatternComponentResult;
18277
+ search: URLPatternComponentResult;
18278
+ hash: URLPatternComponentResult;
18279
+ }
18280
+ interface URLPatternOptions {
18281
+ ignoreCase?: boolean;
18282
+ }
18176
18283
  // Copyright (c) 2022-2023 Cloudflare, Inc.
18177
18284
  // Licensed under the Apache 2.0 license found in the LICENSE file or at:
18178
18285
  // https://opensource.org/licenses/Apache-2.0