@d0paminedriven/fs 7.0.1 → 7.1.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.
package/dist/index.d.cts CHANGED
@@ -1,6 +1,7 @@
1
1
  export { default as Fs } from './fs/index.cjs';
2
+ export { ImageService } from './image/index.cjs';
2
3
  export { AllMimeTypes, FileExtension, FileExtensionToMimeType, InferTopLevelPresent, MimeService, MimeTopLevelType, MimeType, MimeTypeToFileExtension, PresentMimeTopLevelTypes, extMimeMap, mimeToExt } from './mime/index.cjs';
3
- export { Abortable, ArrFieldReplacer, ArrayBufferView, ArrayOrReadOnlyArray, BashEnv, BoxInfo, BufferEncodingUnion, CTR, CoercionUnion, CommonExecOptions, CommonOptions, ConditionalPromise, ConditionalToRequired, DX, DeepPartial, DeepPartialFields, DeepReplace, Depth, Dict, Equal, ExcludeFieldEnumerable, ExecSyncOptions, ExecSyncOptionsWithBufferEncoding, ExecSyncOptionsWithStringEncoding, ExecuteCommandProps, Expect, Extends, FieldToConditionallyNever, IOType, ImageSize, InferDepth, InjectScriptsProps, IsExact, IsOptional, MkDirOptions, MkDirSyncOptions, MkDirSyncProps, Mode, ObjEncodingOptions, OmitSrc, OnlyOptional, OnlyRequired, OpenMode, ParsedUrlInfo, ProcessEnv, ProcessEnvOptions, RTC, ReadDirOptions, ReadDirOptionsEntity, ReadDirProps, RemoveFields, RequireNested, RequiredToConditional, Rm, RmDirOptions, RmDirProps, Signals, SizeOpts, StdioOptions, TCN, TypedArray, Unenumerate, Unit, UnwrapPromise, Without, WriteFileAsyncDataUnion, WriteFileAsyncOptions, WriteFileAsyncProps, WriteStreamDataShape, WriteStreamOptions, WriteStreamProps, XOR, unitsObj } from './types/index.cjs';
4
+ export { Abortable, ArrFieldReplacer, ArrayBufferView, ArrayOrReadOnlyArray, BashEnv, BoxInfo, BufferEncodingUnion, CTR, CoercionUnion, CommonExecOptions, CommonOptions, ConditionalPromise, ConditionalToRequired, DX, DeepPartial, DeepPartialFields, DeepReplace, Depth, Dict, Equal, ExcludeFieldEnumerable, ExecSyncOptions, ExecSyncOptionsWithBufferEncoding, ExecSyncOptionsWithStringEncoding, ExecuteCommandProps, Expect, Extends, FieldToConditionallyNever, IOType, ImageSpecs, InferDepth, InjectScriptsProps, IsExact, IsOptional, MkDirOptions, MkDirSyncOptions, MkDirSyncProps, Mode, ObjEncodingOptions, OmitSrc, OnlyOptional, OnlyRequired, OpenMode, ParsedUrlInfo, ProcessEnv, ProcessEnvOptions, RTC, ReadDirOptions, ReadDirOptionsEntity, ReadDirProps, RemoveFields, RequireNested, RequiredToConditional, Rm, RmDirOptions, RmDirProps, Signals, SizeOpts, StdioOptions, TCN, TypedArray, Unenumerate, Unit, UnwrapPromise, Without, WriteFileAsyncDataUnion, WriteFileAsyncOptions, WriteFileAsyncProps, WriteStreamDataShape, WriteStreamOptions, WriteStreamProps, XOR, unitsObj } from './types/index.cjs';
4
5
  export { HandleQueryParamsOrHash, InferExtensionIfPresent, LastSegment, SplitForwardSlash, UrlFileExt, UrlService } from './url/index.cjs';
5
6
  export { UtilsService } from './utils/index.cjs';
6
7
  import 'dotenv-expand';
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export { default as Fs } from './fs/index.js';
2
+ export { ImageService } from './image/index.js';
2
3
  export { AllMimeTypes, FileExtension, FileExtensionToMimeType, InferTopLevelPresent, MimeService, MimeTopLevelType, MimeType, MimeTypeToFileExtension, PresentMimeTopLevelTypes, extMimeMap, mimeToExt } from './mime/index.js';
3
- export { Abortable, ArrFieldReplacer, ArrayBufferView, ArrayOrReadOnlyArray, BashEnv, BoxInfo, BufferEncodingUnion, CTR, CoercionUnion, CommonExecOptions, CommonOptions, ConditionalPromise, ConditionalToRequired, DX, DeepPartial, DeepPartialFields, DeepReplace, Depth, Dict, Equal, ExcludeFieldEnumerable, ExecSyncOptions, ExecSyncOptionsWithBufferEncoding, ExecSyncOptionsWithStringEncoding, ExecuteCommandProps, Expect, Extends, FieldToConditionallyNever, IOType, ImageSize, InferDepth, InjectScriptsProps, IsExact, IsOptional, MkDirOptions, MkDirSyncOptions, MkDirSyncProps, Mode, ObjEncodingOptions, OmitSrc, OnlyOptional, OnlyRequired, OpenMode, ParsedUrlInfo, ProcessEnv, ProcessEnvOptions, RTC, ReadDirOptions, ReadDirOptionsEntity, ReadDirProps, RemoveFields, RequireNested, RequiredToConditional, Rm, RmDirOptions, RmDirProps, Signals, SizeOpts, StdioOptions, TCN, TypedArray, Unenumerate, Unit, UnwrapPromise, Without, WriteFileAsyncDataUnion, WriteFileAsyncOptions, WriteFileAsyncProps, WriteStreamDataShape, WriteStreamOptions, WriteStreamProps, XOR, unitsObj } from './types/index.js';
4
+ export { Abortable, ArrFieldReplacer, ArrayBufferView, ArrayOrReadOnlyArray, BashEnv, BoxInfo, BufferEncodingUnion, CTR, CoercionUnion, CommonExecOptions, CommonOptions, ConditionalPromise, ConditionalToRequired, DX, DeepPartial, DeepPartialFields, DeepReplace, Depth, Dict, Equal, ExcludeFieldEnumerable, ExecSyncOptions, ExecSyncOptionsWithBufferEncoding, ExecSyncOptionsWithStringEncoding, ExecuteCommandProps, Expect, Extends, FieldToConditionallyNever, IOType, ImageSpecs, InferDepth, InjectScriptsProps, IsExact, IsOptional, MkDirOptions, MkDirSyncOptions, MkDirSyncProps, Mode, ObjEncodingOptions, OmitSrc, OnlyOptional, OnlyRequired, OpenMode, ParsedUrlInfo, ProcessEnv, ProcessEnvOptions, RTC, ReadDirOptions, ReadDirOptionsEntity, ReadDirProps, RemoveFields, RequireNested, RequiredToConditional, Rm, RmDirOptions, RmDirProps, Signals, SizeOpts, StdioOptions, TCN, TypedArray, Unenumerate, Unit, UnwrapPromise, Without, WriteFileAsyncDataUnion, WriteFileAsyncOptions, WriteFileAsyncProps, WriteStreamDataShape, WriteStreamOptions, WriteStreamProps, XOR, unitsObj } from './types/index.js';
4
5
  export { HandleQueryParamsOrHash, InferExtensionIfPresent, LastSegment, SplitForwardSlash, UrlFileExt, UrlService } from './url/index.js';
5
6
  export { UtilsService } from './utils/index.js';
6
7
  import 'dotenv-expand';
package/dist/index.js CHANGED
@@ -1,14 +1,17 @@
1
1
  import {
2
2
  Fs
3
- } from "./chunk-CTA73JRX.js";
3
+ } from "./chunk-3REIEDSC.js";
4
+ import {
5
+ ImageService
6
+ } from "./chunk-LFHV4PPA.js";
4
7
  import {
5
8
  MimeService,
6
9
  extMimeMap,
7
10
  mimeToExt
8
- } from "./chunk-CN45SMBB.js";
11
+ } from "./chunk-3WB2TSBO.js";
9
12
  import {
10
13
  unitsObj
11
- } from "./chunk-G27YIWW7.js";
14
+ } from "./chunk-RJ2YQE3C.js";
12
15
  import {
13
16
  UrlService
14
17
  } from "./chunk-QBG7TFHM.js";
@@ -18,6 +21,7 @@ import {
18
21
  import "./chunk-7QVYU63E.js";
19
22
  export {
20
23
  Fs,
24
+ ImageService,
21
25
  MimeService,
22
26
  UrlService,
23
27
  UtilsService,
@@ -197,6 +197,7 @@ var extMimeMap = {
197
197
  csh: ["application/x-csh"],
198
198
  css: ["text/css"],
199
199
  csv: ["text/csv"],
200
+ cur: ["image/x-icon"],
200
201
  doc: ["application/msword"],
201
202
  docx: [
202
203
  "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
@@ -213,11 +214,14 @@ var extMimeMap = {
213
214
  hmpg: ["haptics/hmpg"],
214
215
  htm: ["text/html"],
215
216
  html: ["text/html"],
216
- ico: ["image/vnd.microsoft.icon"],
217
+ ico: ["image/vnd.microsoft.icon", "image/x-icon"],
217
218
  ics: ["text/calendar"],
218
219
  ivs: ["haptics/ivs"],
219
220
  ivt: ["haptics/ivs"],
220
221
  jar: ["application/java-archive"],
222
+ jfif: ["image/jpeg"],
223
+ jif: ["image/jpeg"],
224
+ jpe: ["image/jpeg"],
221
225
  jpeg: ["image/jpeg"],
222
226
  jpg: ["image/jpeg"],
223
227
  js: ["application/node", "text/javascript"],
@@ -235,8 +239,10 @@ var extMimeMap = {
235
239
  mjs: ["text/javascript"],
236
240
  mp3: ["audio/mpeg"],
237
241
  mp4: ["video/mp4"],
242
+ mpd: ["application/dash+xml"],
238
243
  mpeg: ["video/mpeg"],
239
244
  mpkg: ["application/vnd.apple.installer+xml"],
245
+ mtlx: ["application/xml"],
240
246
  ndjson: ["application/x-ndjson"],
241
247
  node: ["application/node", "text/javascript"],
242
248
  obj: ["model/obj", "application/octet-stream", "text/plain"],
@@ -252,6 +258,8 @@ var extMimeMap = {
252
258
  png: ["image/png"],
253
259
  pdf: ["application/pdf"],
254
260
  php: ["application/x-httpd-php"],
261
+ pjp: ["image/jpeg"],
262
+ pjpeg: ["image/jpeg"],
255
263
  pkpass: ["application/vnd.apple.pkpass"],
256
264
  ppt: ["application/vnd.ms-powerpoint"],
257
265
  pptx: [
@@ -278,14 +286,16 @@ var extMimeMap = {
278
286
  vtt: ["text/vtt"],
279
287
  wasm: ["application/wasm"],
280
288
  wav: ["audio/wav"],
281
- weba: ["video/webm"],
289
+ weba: ["audio/webm"],
290
+ webm: ["video/webm"],
291
+ webmanifest: ["application/manifest+json"],
282
292
  webp: ["image/webp"],
283
293
  woff: ["font/woff"],
284
294
  woff2: ["font/woff2"],
285
295
  xhtml: ["application/xhtml+xml"],
286
296
  xls: ["application/vnd.ms-excel"],
287
297
  xlsx: ["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],
288
- xml: ["application/xml"],
298
+ xml: ["application/xml", "text/xml"],
289
299
  xul: ["application/vnd.mozilla.xul+xml"],
290
300
  yaml: ["application/yaml"],
291
301
  yml: ["application/yaml"],
@@ -295,12 +305,14 @@ var extMimeMap = {
295
305
  "7z": ["application/x-7z-compressed"]
296
306
  };
297
307
  var mimeToExt = {
308
+ "application/dash+xml": ["mpd"],
298
309
  "application/epub+zip": ["epub"],
299
310
  "application/font-sfnt": ["ttf"],
300
311
  "application/gzip": ["gz"],
301
312
  "application/java-archive": ["jar"],
302
313
  "application/json": ["json"],
303
314
  "application/ld+json": ["jsonld"],
315
+ "application/manifest+json": ["webmanifest"],
304
316
  "application/msword": ["doc"],
305
317
  "application/node": ["node", "js"],
306
318
  "application/octet-stream": ["bin", "obj"],
@@ -346,7 +358,7 @@ var mimeToExt = {
346
358
  "application/x-tar": ["tar"],
347
359
  "application/x-zip-compressed": ["zip"],
348
360
  "application/xhtml+xml": ["xhtml"],
349
- "application/xml": ["xml"],
361
+ "application/xml": ["xml", "mtlx"],
350
362
  "application/yaml": ["yml", "yaml"],
351
363
  "application/zip": ["zip"],
352
364
  "audio/aac": ["aac"],
@@ -355,6 +367,7 @@ var mimeToExt = {
355
367
  "audio/mpeg": ["mp3"],
356
368
  "audio/ogg": ["opus", "ogg", "oga"],
357
369
  "audio/wav": ["wav"],
370
+ "audio/webm": ["weba"],
358
371
  "audio/x-midi": ["midi"],
359
372
  "font/otf": ["otf"],
360
373
  "font/ttf": ["ttf"],
@@ -371,7 +384,7 @@ var mimeToExt = {
371
384
  "image/dpx": ["dpx"],
372
385
  "image/emf": ["emf"],
373
386
  "image/gif": ["gif"],
374
- "image/jpeg": ["jpg", "jpeg"],
387
+ "image/jpeg": ["jpg", "jpeg", "jpe", "jif", "jfif", "pjp", "pjpeg"],
375
388
  "image/ktx": ["ktx"],
376
389
  "image/ktx2": ["ktx2"],
377
390
  "image/png": ["png"],
@@ -379,6 +392,7 @@ var mimeToExt = {
379
392
  "image/tiff": ["tiff", "tif"],
380
393
  "image/vnd.microsoft.icon": ["ico"],
381
394
  "image/webp": ["webp"],
395
+ "image/x-icon": ["cur", "ico"],
382
396
  "model/gltf-binary": ["glb"],
383
397
  "model/gltf+json": ["gltf"],
384
398
  "model/obj": ["obj"],
@@ -387,14 +401,15 @@ var mimeToExt = {
387
401
  "text/calendar": ["ics"],
388
402
  "text/css": ["css"],
389
403
  "text/csv": ["csv"],
390
- "text/event-stream": ["sse", "ts", "rs", "py", "txt"],
404
+ "text/event-stream": ["sse"],
391
405
  "text/html": ["html", "htm"],
392
- "text/javascript": ["cjs", "js", "mjs"],
406
+ "text/javascript": ["js", "mjs", "cjs"],
393
407
  "text/markdown": ["md"],
394
408
  "text/plain": ["txt"],
395
409
  "text/rust": ["rs"],
396
410
  "text/typescript": ["ts"],
397
411
  "text/vtt": ["vtt"],
412
+ "text/xml": ["xml"],
398
413
  "text/x-python": ["py"],
399
414
  "video/3gpp": ["3gp"],
400
415
  "video/3gpp2": ["3g2"],
@@ -403,7 +418,7 @@ var mimeToExt = {
403
418
  "video/mpeg": ["mpeg"],
404
419
  "video/ogg": ["ogv"],
405
420
  "video/vnd.dlna.mpeg-tts": ["ts"],
406
- "video/webm": ["weba"],
421
+ "video/webm": ["webm"],
407
422
  "video/x-msvideo": ["avi"]
408
423
  };
409
424
  var MimeService = class extends UrlService {
@@ -453,8 +468,8 @@ var MimeService = class extends UrlService {
453
468
  if (mime === "audio/ogg") return "ogg";
454
469
  return extensions[0];
455
470
  }
456
- if (extensions.length === 5) {
457
- return "sse";
471
+ if (extensions.length === 7) {
472
+ return extensions[0];
458
473
  }
459
474
  return extensions[0];
460
475
  }
@@ -23,6 +23,7 @@ declare const extMimeMap: {
23
23
  readonly csh: readonly ["application/x-csh"];
24
24
  readonly css: readonly ["text/css"];
25
25
  readonly csv: readonly ["text/csv"];
26
+ readonly cur: readonly ["image/x-icon"];
26
27
  readonly doc: readonly ["application/msword"];
27
28
  readonly docx: readonly ["application/vnd.openxmlformats-officedocument.wordprocessingml.document"];
28
29
  readonly dpx: readonly ["image/dpx"];
@@ -37,11 +38,14 @@ declare const extMimeMap: {
37
38
  readonly hmpg: readonly ["haptics/hmpg"];
38
39
  readonly htm: readonly ["text/html"];
39
40
  readonly html: readonly ["text/html"];
40
- readonly ico: readonly ["image/vnd.microsoft.icon"];
41
+ readonly ico: readonly ["image/vnd.microsoft.icon", "image/x-icon"];
41
42
  readonly ics: readonly ["text/calendar"];
42
43
  readonly ivs: readonly ["haptics/ivs"];
43
44
  readonly ivt: readonly ["haptics/ivs"];
44
45
  readonly jar: readonly ["application/java-archive"];
46
+ readonly jfif: readonly ["image/jpeg"];
47
+ readonly jif: readonly ["image/jpeg"];
48
+ readonly jpe: readonly ["image/jpeg"];
45
49
  readonly jpeg: readonly ["image/jpeg"];
46
50
  readonly jpg: readonly ["image/jpeg"];
47
51
  readonly js: readonly ["application/node", "text/javascript"];
@@ -59,8 +63,10 @@ declare const extMimeMap: {
59
63
  readonly mjs: readonly ["text/javascript"];
60
64
  readonly mp3: readonly ["audio/mpeg"];
61
65
  readonly mp4: readonly ["video/mp4"];
66
+ readonly mpd: readonly ["application/dash+xml"];
62
67
  readonly mpeg: readonly ["video/mpeg"];
63
68
  readonly mpkg: readonly ["application/vnd.apple.installer+xml"];
69
+ readonly mtlx: readonly ["application/xml"];
64
70
  readonly ndjson: readonly ["application/x-ndjson"];
65
71
  readonly node: readonly ["application/node", "text/javascript"];
66
72
  readonly obj: readonly ["model/obj", "application/octet-stream", "text/plain"];
@@ -76,6 +82,8 @@ declare const extMimeMap: {
76
82
  readonly png: readonly ["image/png"];
77
83
  readonly pdf: readonly ["application/pdf"];
78
84
  readonly php: readonly ["application/x-httpd-php"];
85
+ readonly pjp: readonly ["image/jpeg"];
86
+ readonly pjpeg: readonly ["image/jpeg"];
79
87
  readonly pkpass: readonly ["application/vnd.apple.pkpass"];
80
88
  readonly ppt: readonly ["application/vnd.ms-powerpoint"];
81
89
  readonly pptx: readonly ["application/vnd.openxmlformats-officedocument.presentationml.presentation"];
@@ -100,14 +108,16 @@ declare const extMimeMap: {
100
108
  readonly vtt: readonly ["text/vtt"];
101
109
  readonly wasm: readonly ["application/wasm"];
102
110
  readonly wav: readonly ["audio/wav"];
103
- readonly weba: readonly ["video/webm"];
111
+ readonly weba: readonly ["audio/webm"];
112
+ readonly webm: readonly ["video/webm"];
113
+ readonly webmanifest: readonly ["application/manifest+json"];
104
114
  readonly webp: readonly ["image/webp"];
105
115
  readonly woff: readonly ["font/woff"];
106
116
  readonly woff2: readonly ["font/woff2"];
107
117
  readonly xhtml: readonly ["application/xhtml+xml"];
108
118
  readonly xls: readonly ["application/vnd.ms-excel"];
109
119
  readonly xlsx: readonly ["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"];
110
- readonly xml: readonly ["application/xml"];
120
+ readonly xml: readonly ["application/xml", "text/xml"];
111
121
  readonly xul: readonly ["application/vnd.mozilla.xul+xml"];
112
122
  readonly yaml: readonly ["application/yaml"];
113
123
  readonly yml: readonly ["application/yaml"];
@@ -117,12 +127,14 @@ declare const extMimeMap: {
117
127
  readonly "7z": readonly ["application/x-7z-compressed"];
118
128
  };
119
129
  declare const mimeToExt: {
130
+ readonly "application/dash+xml": readonly ["mpd"];
120
131
  readonly "application/epub+zip": readonly ["epub"];
121
132
  readonly "application/font-sfnt": readonly ["ttf"];
122
133
  readonly "application/gzip": readonly ["gz"];
123
134
  readonly "application/java-archive": readonly ["jar"];
124
135
  readonly "application/json": readonly ["json"];
125
136
  readonly "application/ld+json": readonly ["jsonld"];
137
+ readonly "application/manifest+json": readonly ["webmanifest"];
126
138
  readonly "application/msword": readonly ["doc"];
127
139
  readonly "application/node": readonly ["node", "js"];
128
140
  readonly "application/octet-stream": readonly ["bin", "obj"];
@@ -164,7 +176,7 @@ declare const mimeToExt: {
164
176
  readonly "application/x-tar": readonly ["tar"];
165
177
  readonly "application/x-zip-compressed": readonly ["zip"];
166
178
  readonly "application/xhtml+xml": readonly ["xhtml"];
167
- readonly "application/xml": readonly ["xml"];
179
+ readonly "application/xml": readonly ["xml", "mtlx"];
168
180
  readonly "application/yaml": readonly ["yml", "yaml"];
169
181
  readonly "application/zip": readonly ["zip"];
170
182
  readonly "audio/aac": readonly ["aac"];
@@ -173,6 +185,7 @@ declare const mimeToExt: {
173
185
  readonly "audio/mpeg": readonly ["mp3"];
174
186
  readonly "audio/ogg": readonly ["opus", "ogg", "oga"];
175
187
  readonly "audio/wav": readonly ["wav"];
188
+ readonly "audio/webm": readonly ["weba"];
176
189
  readonly "audio/x-midi": readonly ["midi"];
177
190
  readonly "font/otf": readonly ["otf"];
178
191
  readonly "font/ttf": readonly ["ttf"];
@@ -189,7 +202,7 @@ declare const mimeToExt: {
189
202
  readonly "image/dpx": readonly ["dpx"];
190
203
  readonly "image/emf": readonly ["emf"];
191
204
  readonly "image/gif": readonly ["gif"];
192
- readonly "image/jpeg": readonly ["jpg", "jpeg"];
205
+ readonly "image/jpeg": readonly ["jpg", "jpeg", "jpe", "jif", "jfif", "pjp", "pjpeg"];
193
206
  readonly "image/ktx": readonly ["ktx"];
194
207
  readonly "image/ktx2": readonly ["ktx2"];
195
208
  readonly "image/png": readonly ["png"];
@@ -197,6 +210,7 @@ declare const mimeToExt: {
197
210
  readonly "image/tiff": readonly ["tiff", "tif"];
198
211
  readonly "image/vnd.microsoft.icon": readonly ["ico"];
199
212
  readonly "image/webp": readonly ["webp"];
213
+ readonly "image/x-icon": readonly ["cur", "ico"];
200
214
  readonly "model/gltf-binary": readonly ["glb"];
201
215
  readonly "model/gltf+json": readonly ["gltf"];
202
216
  readonly "model/obj": readonly ["obj"];
@@ -205,14 +219,15 @@ declare const mimeToExt: {
205
219
  readonly "text/calendar": readonly ["ics"];
206
220
  readonly "text/css": readonly ["css"];
207
221
  readonly "text/csv": readonly ["csv"];
208
- readonly "text/event-stream": readonly ["sse", "ts", "rs", "py", "txt"];
222
+ readonly "text/event-stream": readonly ["sse"];
209
223
  readonly "text/html": readonly ["html", "htm"];
210
- readonly "text/javascript": readonly ["cjs", "js", "mjs"];
224
+ readonly "text/javascript": readonly ["js", "mjs", "cjs"];
211
225
  readonly "text/markdown": readonly ["md"];
212
226
  readonly "text/plain": readonly ["txt"];
213
227
  readonly "text/rust": readonly ["rs"];
214
228
  readonly "text/typescript": readonly ["ts"];
215
229
  readonly "text/vtt": readonly ["vtt"];
230
+ readonly "text/xml": readonly ["xml"];
216
231
  readonly "text/x-python": readonly ["py"];
217
232
  readonly "video/3gpp": readonly ["3gp"];
218
233
  readonly "video/3gpp2": readonly ["3g2"];
@@ -221,7 +236,7 @@ declare const mimeToExt: {
221
236
  readonly "video/mpeg": readonly ["mpeg"];
222
237
  readonly "video/ogg": readonly ["ogv"];
223
238
  readonly "video/vnd.dlna.mpeg-tts": readonly ["ts"];
224
- readonly "video/webm": readonly ["weba"];
239
+ readonly "video/webm": readonly ["webm"];
225
240
  readonly "video/x-msvideo": readonly ["avi"];
226
241
  };
227
242
  type FileExtension = keyof typeof extMimeMap;
@@ -253,6 +268,7 @@ declare class MimeService extends UrlService {
253
268
  readonly csh: readonly ["application/x-csh"];
254
269
  readonly css: readonly ["text/css"];
255
270
  readonly csv: readonly ["text/csv"];
271
+ readonly cur: readonly ["image/x-icon"];
256
272
  readonly doc: readonly ["application/msword"];
257
273
  readonly docx: readonly ["application/vnd.openxmlformats-officedocument.wordprocessingml.document"];
258
274
  readonly dpx: readonly ["image/dpx"];
@@ -267,11 +283,14 @@ declare class MimeService extends UrlService {
267
283
  readonly hmpg: readonly ["haptics/hmpg"];
268
284
  readonly htm: readonly ["text/html"];
269
285
  readonly html: readonly ["text/html"];
270
- readonly ico: readonly ["image/vnd.microsoft.icon"];
286
+ readonly ico: readonly ["image/vnd.microsoft.icon", "image/x-icon"];
271
287
  readonly ics: readonly ["text/calendar"];
272
288
  readonly ivs: readonly ["haptics/ivs"];
273
289
  readonly ivt: readonly ["haptics/ivs"];
274
290
  readonly jar: readonly ["application/java-archive"];
291
+ readonly jfif: readonly ["image/jpeg"];
292
+ readonly jif: readonly ["image/jpeg"];
293
+ readonly jpe: readonly ["image/jpeg"];
275
294
  readonly jpeg: readonly ["image/jpeg"];
276
295
  readonly jpg: readonly ["image/jpeg"];
277
296
  readonly js: readonly ["application/node", "text/javascript"];
@@ -289,8 +308,10 @@ declare class MimeService extends UrlService {
289
308
  readonly mjs: readonly ["text/javascript"];
290
309
  readonly mp3: readonly ["audio/mpeg"];
291
310
  readonly mp4: readonly ["video/mp4"];
311
+ readonly mpd: readonly ["application/dash+xml"];
292
312
  readonly mpeg: readonly ["video/mpeg"];
293
313
  readonly mpkg: readonly ["application/vnd.apple.installer+xml"];
314
+ readonly mtlx: readonly ["application/xml"];
294
315
  readonly ndjson: readonly ["application/x-ndjson"];
295
316
  readonly node: readonly ["application/node", "text/javascript"];
296
317
  readonly obj: readonly ["model/obj", "application/octet-stream", "text/plain"];
@@ -306,6 +327,8 @@ declare class MimeService extends UrlService {
306
327
  readonly png: readonly ["image/png"];
307
328
  readonly pdf: readonly ["application/pdf"];
308
329
  readonly php: readonly ["application/x-httpd-php"];
330
+ readonly pjp: readonly ["image/jpeg"];
331
+ readonly pjpeg: readonly ["image/jpeg"];
309
332
  readonly pkpass: readonly ["application/vnd.apple.pkpass"];
310
333
  readonly ppt: readonly ["application/vnd.ms-powerpoint"];
311
334
  readonly pptx: readonly ["application/vnd.openxmlformats-officedocument.presentationml.presentation"];
@@ -330,14 +353,16 @@ declare class MimeService extends UrlService {
330
353
  readonly vtt: readonly ["text/vtt"];
331
354
  readonly wasm: readonly ["application/wasm"];
332
355
  readonly wav: readonly ["audio/wav"];
333
- readonly weba: readonly ["video/webm"];
356
+ readonly weba: readonly ["audio/webm"];
357
+ readonly webm: readonly ["video/webm"];
358
+ readonly webmanifest: readonly ["application/manifest+json"];
334
359
  readonly webp: readonly ["image/webp"];
335
360
  readonly woff: readonly ["font/woff"];
336
361
  readonly woff2: readonly ["font/woff2"];
337
362
  readonly xhtml: readonly ["application/xhtml+xml"];
338
363
  readonly xls: readonly ["application/vnd.ms-excel"];
339
364
  readonly xlsx: readonly ["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"];
340
- readonly xml: readonly ["application/xml"];
365
+ readonly xml: readonly ["application/xml", "text/xml"];
341
366
  readonly xul: readonly ["application/vnd.mozilla.xul+xml"];
342
367
  readonly yaml: readonly ["application/yaml"];
343
368
  readonly yml: readonly ["application/yaml"];
@@ -347,12 +372,14 @@ declare class MimeService extends UrlService {
347
372
  readonly "7z": readonly ["application/x-7z-compressed"];
348
373
  };
349
374
  readonly toExtObj: {
375
+ readonly "application/dash+xml": readonly ["mpd"];
350
376
  readonly "application/epub+zip": readonly ["epub"];
351
377
  readonly "application/font-sfnt": readonly ["ttf"];
352
378
  readonly "application/gzip": readonly ["gz"];
353
379
  readonly "application/java-archive": readonly ["jar"];
354
380
  readonly "application/json": readonly ["json"];
355
381
  readonly "application/ld+json": readonly ["jsonld"];
382
+ readonly "application/manifest+json": readonly ["webmanifest"];
356
383
  readonly "application/msword": readonly ["doc"];
357
384
  readonly "application/node": readonly ["node", "js"];
358
385
  readonly "application/octet-stream": readonly ["bin", "obj"];
@@ -394,7 +421,7 @@ declare class MimeService extends UrlService {
394
421
  readonly "application/x-tar": readonly ["tar"];
395
422
  readonly "application/x-zip-compressed": readonly ["zip"];
396
423
  readonly "application/xhtml+xml": readonly ["xhtml"];
397
- readonly "application/xml": readonly ["xml"];
424
+ readonly "application/xml": readonly ["xml", "mtlx"];
398
425
  readonly "application/yaml": readonly ["yml", "yaml"];
399
426
  readonly "application/zip": readonly ["zip"];
400
427
  readonly "audio/aac": readonly ["aac"];
@@ -403,6 +430,7 @@ declare class MimeService extends UrlService {
403
430
  readonly "audio/mpeg": readonly ["mp3"];
404
431
  readonly "audio/ogg": readonly ["opus", "ogg", "oga"];
405
432
  readonly "audio/wav": readonly ["wav"];
433
+ readonly "audio/webm": readonly ["weba"];
406
434
  readonly "audio/x-midi": readonly ["midi"];
407
435
  readonly "font/otf": readonly ["otf"];
408
436
  readonly "font/ttf": readonly ["ttf"];
@@ -419,7 +447,7 @@ declare class MimeService extends UrlService {
419
447
  readonly "image/dpx": readonly ["dpx"];
420
448
  readonly "image/emf": readonly ["emf"];
421
449
  readonly "image/gif": readonly ["gif"];
422
- readonly "image/jpeg": readonly ["jpg", "jpeg"];
450
+ readonly "image/jpeg": readonly ["jpg", "jpeg", "jpe", "jif", "jfif", "pjp", "pjpeg"];
423
451
  readonly "image/ktx": readonly ["ktx"];
424
452
  readonly "image/ktx2": readonly ["ktx2"];
425
453
  readonly "image/png": readonly ["png"];
@@ -427,6 +455,7 @@ declare class MimeService extends UrlService {
427
455
  readonly "image/tiff": readonly ["tiff", "tif"];
428
456
  readonly "image/vnd.microsoft.icon": readonly ["ico"];
429
457
  readonly "image/webp": readonly ["webp"];
458
+ readonly "image/x-icon": readonly ["cur", "ico"];
430
459
  readonly "model/gltf-binary": readonly ["glb"];
431
460
  readonly "model/gltf+json": readonly ["gltf"];
432
461
  readonly "model/obj": readonly ["obj"];
@@ -435,14 +464,15 @@ declare class MimeService extends UrlService {
435
464
  readonly "text/calendar": readonly ["ics"];
436
465
  readonly "text/css": readonly ["css"];
437
466
  readonly "text/csv": readonly ["csv"];
438
- readonly "text/event-stream": readonly ["sse", "ts", "rs", "py", "txt"];
467
+ readonly "text/event-stream": readonly ["sse"];
439
468
  readonly "text/html": readonly ["html", "htm"];
440
- readonly "text/javascript": readonly ["cjs", "js", "mjs"];
469
+ readonly "text/javascript": readonly ["js", "mjs", "cjs"];
441
470
  readonly "text/markdown": readonly ["md"];
442
471
  readonly "text/plain": readonly ["txt"];
443
472
  readonly "text/rust": readonly ["rs"];
444
473
  readonly "text/typescript": readonly ["ts"];
445
474
  readonly "text/vtt": readonly ["vtt"];
475
+ readonly "text/xml": readonly ["xml"];
446
476
  readonly "text/x-python": readonly ["py"];
447
477
  readonly "video/3gpp": readonly ["3gp"];
448
478
  readonly "video/3gpp2": readonly ["3g2"];
@@ -451,22 +481,22 @@ declare class MimeService extends UrlService {
451
481
  readonly "video/mpeg": readonly ["mpeg"];
452
482
  readonly "video/ogg": readonly ["ogv"];
453
483
  readonly "video/vnd.dlna.mpeg-tts": readonly ["ts"];
454
- readonly "video/webm": readonly ["weba"];
484
+ readonly "video/webm": readonly ["webm"];
455
485
  readonly "video/x-msvideo": readonly ["avi"];
456
486
  };
457
487
  compareMimeToExt(p?: "mime" | "ext"): {
458
488
  [k: string]: number;
459
489
  };
460
- mimeToExt(mime: keyof typeof this.toExtObj): "png" | "gif" | "bmp" | "webp" | "avif" | "epub" | "ttf" | "gz" | "jar" | "json" | "jsonld" | "doc" | "node" | "bin" | "obj" | "ogx" | "pdf" | "rtf" | "sql" | "toml" | "azw" | "mpkg" | "m3u8" | "pkpass" | "xul" | "xls" | "eot" | "ppt" | "odp" | "ods" | "odt" | "pptx" | "xlsx" | "docx" | "rar" | "vsd" | "wasm" | "7z" | "abw" | "bz" | "bz2" | "cda" | "csh" | "arc" | "php" | "mdx" | "ndjson" | "pyc" | "sh" | "tar" | "zip" | "xhtml" | "xml" | "yml" | "aac" | "mid" | "m4a" | "mp3" | "opus" | "ogg" | "wav" | "midi" | "otf" | "woff" | "woff2" | "hjif" | "hmpg" | "ivs" | "aces" | "apng" | "avci" | "dpx" | "emf" | "jpg" | "ktx" | "ktx2" | "svg" | "tiff" | "ico" | "glb" | "gltf" | "usdz" | "ics" | "css" | "csv" | "sse" | "ts" | "rs" | "py" | "txt" | "html" | "cjs" | "md" | "vtt" | "3gp" | "3g2" | "mp4" | "mpeg" | "ogv" | "weba" | "avi";
461
- assetType<const T extends string>(url: T): "png" | "jpeg" | "gif" | "bmp" | "webp" | "avif" | "epub" | "ttf" | "gz" | "jar" | "json" | "jsonld" | "doc" | "node" | "js" | "bin" | "obj" | "ogx" | "pdf" | "rtf" | "sql" | "toml" | "azw" | "mpkg" | "m3u8" | "pkpass" | "xul" | "xls" | "eot" | "ppt" | "odp" | "ods" | "odt" | "pptx" | "xlsx" | "docx" | "rar" | "vsd" | "wasm" | "7z" | "abw" | "bz" | "bz2" | "cda" | "csh" | "arc" | "php" | "mdx" | "ndjson" | "pyc" | "sh" | "tar" | "zip" | "xhtml" | "xml" | "yml" | "yaml" | "aac" | "mid" | "m4a" | "mp3" | "opus" | "ogg" | "oga" | "wav" | "midi" | "otf" | "woff" | "woff2" | "hjif" | "hmpg" | "ivs" | "ivt" | "aces" | "apng" | "avci" | "dpx" | "emf" | "jpg" | "ktx" | "ktx2" | "svg" | "tiff" | "tif" | "ico" | "glb" | "gltf" | "usdz" | "ics" | "css" | "csv" | "sse" | "ts" | "rs" | "py" | "txt" | "html" | "htm" | "cjs" | "mjs" | "md" | "vtt" | "3gp" | "3g2" | "mp4" | "m4v" | "mpeg" | "ogv" | "weba" | "avi" | undefined;
462
- getMimes<const E extends FileExtension>(ext: E): readonly ["audio/aac"] | readonly ["application/x-abiword"] | readonly ["image/aces"] | readonly ["image/apng"] | readonly ["application/x-freearc"] | readonly ["image/avci"] | readonly ["image/avif"] | readonly ["video/x-msvideo"] | readonly ["application/vnd.amazon.ebook"] | readonly ["application/octet-stream", "multipart/voice-message"] | readonly ["image/bmp"] | readonly ["application/x-bzip"] | readonly ["application/x-bzip2"] | readonly ["application/x-cdf"] | readonly ["application/node", "text/javascript"] | readonly ["application/x-csh"] | readonly ["text/css"] | readonly ["text/csv"] | readonly ["application/msword"] | readonly ["application/vnd.openxmlformats-officedocument.wordprocessingml.document"] | readonly ["image/dpx"] | readonly ["image/emf"] | readonly ["application/vnd.ms-fontobject"] | readonly ["application/epub+zip"] | readonly ["image/gif"] | readonly ["model/gltf-binary"] | readonly ["model/gltf+json"] | readonly ["application/gzip", "application/x-gzip"] | readonly ["haptics/hjif"] | readonly ["haptics/hmpg"] | readonly ["text/html"] | readonly ["image/vnd.microsoft.icon"] | readonly ["text/calendar"] | readonly ["haptics/ivs"] | readonly ["application/java-archive"] | readonly ["image/jpeg"] | readonly ["application/json"] | readonly ["application/ld+json"] | readonly ["image/ktx"] | readonly ["image/ktx2"] | readonly ["application/vnd.apple.mpegurl"] | readonly ["audio/mp4"] | readonly ["video/mp4"] | readonly ["text/markdown"] | readonly ["application/x-mdx"] | readonly ["audio/midi"] | readonly ["audio/x-midi"] | readonly ["text/javascript"] | readonly ["audio/mpeg"] | readonly ["video/mpeg"] | readonly ["application/vnd.apple.installer+xml"] | readonly ["application/x-ndjson"] | readonly ["model/obj", "application/octet-stream", "text/plain"] | readonly ["application/vnd.oasis.opendocument.presentation"] | readonly ["application/vnd.oasis.opendocument.spreadsheet"] | readonly ["application/vnd.oasis.opendocument.text"] | readonly ["audio/ogg"] | readonly ["video/ogg"] | readonly ["application/ogg"] | readonly ["font/otf"] | readonly ["image/png"] | readonly ["application/pdf"] | readonly ["application/x-httpd-php"] | readonly ["application/vnd.apple.pkpass"] | readonly ["application/vnd.ms-powerpoint"] | readonly ["application/vnd.openxmlformats-officedocument.presentationml.presentation"] | readonly ["text/x-python"] | readonly ["application/x-python-code"] | readonly ["application/vnd.rar"] | readonly ["text/rust"] | readonly ["application/rtf"] | readonly ["application/x-sh"] | readonly ["application/sql"] | readonly ["text/event-stream"] | readonly ["image/svg+xml"] | readonly ["application/x-tar"] | readonly ["image/tiff"] | readonly ["application/toml"] | readonly ["text/typescript", "video/mp2t", "video/vnd.dlna.mpeg-tts"] | readonly ["application/font-sfnt", "font/ttf"] | readonly ["text/plain"] | readonly ["model/vnd.usdz+zip"] | readonly ["application/vnd.visio"] | readonly ["text/vtt"] | readonly ["application/wasm"] | readonly ["audio/wav"] | readonly ["video/webm"] | readonly ["image/webp"] | readonly ["font/woff"] | readonly ["font/woff2"] | readonly ["application/xhtml+xml"] | readonly ["application/vnd.ms-excel"] | readonly ["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"] | readonly ["application/xml"] | readonly ["application/vnd.mozilla.xul+xml"] | readonly ["application/yaml"] | readonly ["application/zip", "application/x-zip-compressed"] | readonly ["video/3gpp"] | readonly ["video/3gpp2"] | readonly ["application/x-7z-compressed"];
490
+ mimeToExt(mime: keyof typeof this.toExtObj): "png" | "gif" | "bmp" | "webp" | "avif" | "mpd" | "epub" | "ttf" | "gz" | "jar" | "json" | "jsonld" | "webmanifest" | "doc" | "node" | "js" | "bin" | "obj" | "ogx" | "pdf" | "rtf" | "sql" | "toml" | "azw" | "mpkg" | "m3u8" | "pkpass" | "xul" | "xls" | "eot" | "ppt" | "odp" | "ods" | "odt" | "pptx" | "xlsx" | "docx" | "rar" | "vsd" | "wasm" | "7z" | "abw" | "bz" | "bz2" | "cda" | "csh" | "arc" | "php" | "mdx" | "ndjson" | "pyc" | "sh" | "tar" | "zip" | "xhtml" | "xml" | "yml" | "aac" | "mid" | "m4a" | "mp3" | "opus" | "ogg" | "wav" | "weba" | "midi" | "otf" | "woff" | "woff2" | "hjif" | "hmpg" | "ivs" | "aces" | "apng" | "avci" | "dpx" | "emf" | "jpg" | "ktx" | "ktx2" | "svg" | "tiff" | "ico" | "cur" | "glb" | "gltf" | "usdz" | "ics" | "css" | "csv" | "sse" | "html" | "md" | "txt" | "rs" | "ts" | "vtt" | "py" | "3gp" | "3g2" | "mp4" | "mpeg" | "ogv" | "webm" | "avi";
491
+ assetType<const T extends string>(url: T): "png" | "jpeg" | "gif" | "bmp" | "webp" | "avif" | "mpd" | "epub" | "ttf" | "gz" | "jar" | "json" | "jsonld" | "webmanifest" | "doc" | "node" | "js" | "bin" | "obj" | "ogx" | "pdf" | "rtf" | "sql" | "toml" | "azw" | "mpkg" | "m3u8" | "pkpass" | "xul" | "xls" | "eot" | "ppt" | "odp" | "ods" | "odt" | "pptx" | "xlsx" | "docx" | "rar" | "vsd" | "wasm" | "7z" | "abw" | "bz" | "bz2" | "cda" | "csh" | "arc" | "php" | "mdx" | "ndjson" | "pyc" | "sh" | "tar" | "zip" | "xhtml" | "xml" | "mtlx" | "yml" | "yaml" | "aac" | "mid" | "m4a" | "mp3" | "opus" | "ogg" | "oga" | "wav" | "weba" | "midi" | "otf" | "woff" | "woff2" | "hjif" | "hmpg" | "ivs" | "ivt" | "aces" | "apng" | "avci" | "dpx" | "emf" | "jpg" | "jpe" | "jif" | "jfif" | "pjp" | "pjpeg" | "ktx" | "ktx2" | "svg" | "tiff" | "tif" | "ico" | "cur" | "glb" | "gltf" | "usdz" | "ics" | "css" | "csv" | "sse" | "html" | "htm" | "mjs" | "cjs" | "md" | "txt" | "rs" | "ts" | "vtt" | "py" | "3gp" | "3g2" | "mp4" | "m4v" | "mpeg" | "ogv" | "webm" | "avi" | undefined;
492
+ getMimes<const E extends FileExtension>(ext: E): readonly ["audio/aac"] | readonly ["application/x-abiword"] | readonly ["image/aces"] | readonly ["image/apng"] | readonly ["application/x-freearc"] | readonly ["image/avci"] | readonly ["image/avif"] | readonly ["video/x-msvideo"] | readonly ["application/vnd.amazon.ebook"] | readonly ["application/octet-stream", "multipart/voice-message"] | readonly ["image/bmp"] | readonly ["application/x-bzip"] | readonly ["application/x-bzip2"] | readonly ["application/x-cdf"] | readonly ["application/node", "text/javascript"] | readonly ["application/x-csh"] | readonly ["text/css"] | readonly ["text/csv"] | readonly ["image/x-icon"] | readonly ["application/msword"] | readonly ["application/vnd.openxmlformats-officedocument.wordprocessingml.document"] | readonly ["image/dpx"] | readonly ["image/emf"] | readonly ["application/vnd.ms-fontobject"] | readonly ["application/epub+zip"] | readonly ["image/gif"] | readonly ["model/gltf-binary"] | readonly ["model/gltf+json"] | readonly ["application/gzip", "application/x-gzip"] | readonly ["haptics/hjif"] | readonly ["haptics/hmpg"] | readonly ["text/html"] | readonly ["image/vnd.microsoft.icon", "image/x-icon"] | readonly ["text/calendar"] | readonly ["haptics/ivs"] | readonly ["application/java-archive"] | readonly ["image/jpeg"] | readonly ["application/json"] | readonly ["application/ld+json"] | readonly ["image/ktx"] | readonly ["image/ktx2"] | readonly ["application/vnd.apple.mpegurl"] | readonly ["audio/mp4"] | readonly ["video/mp4"] | readonly ["text/markdown"] | readonly ["application/x-mdx"] | readonly ["audio/midi"] | readonly ["audio/x-midi"] | readonly ["text/javascript"] | readonly ["audio/mpeg"] | readonly ["application/dash+xml"] | readonly ["video/mpeg"] | readonly ["application/vnd.apple.installer+xml"] | readonly ["application/xml"] | readonly ["application/x-ndjson"] | readonly ["model/obj", "application/octet-stream", "text/plain"] | readonly ["application/vnd.oasis.opendocument.presentation"] | readonly ["application/vnd.oasis.opendocument.spreadsheet"] | readonly ["application/vnd.oasis.opendocument.text"] | readonly ["audio/ogg"] | readonly ["video/ogg"] | readonly ["application/ogg"] | readonly ["font/otf"] | readonly ["image/png"] | readonly ["application/pdf"] | readonly ["application/x-httpd-php"] | readonly ["application/vnd.apple.pkpass"] | readonly ["application/vnd.ms-powerpoint"] | readonly ["application/vnd.openxmlformats-officedocument.presentationml.presentation"] | readonly ["text/x-python"] | readonly ["application/x-python-code"] | readonly ["application/vnd.rar"] | readonly ["text/rust"] | readonly ["application/rtf"] | readonly ["application/x-sh"] | readonly ["application/sql"] | readonly ["text/event-stream"] | readonly ["image/svg+xml"] | readonly ["application/x-tar"] | readonly ["image/tiff"] | readonly ["application/toml"] | readonly ["text/typescript", "video/mp2t", "video/vnd.dlna.mpeg-tts"] | readonly ["application/font-sfnt", "font/ttf"] | readonly ["text/plain"] | readonly ["model/vnd.usdz+zip"] | readonly ["application/vnd.visio"] | readonly ["text/vtt"] | readonly ["application/wasm"] | readonly ["audio/wav"] | readonly ["audio/webm"] | readonly ["video/webm"] | readonly ["application/manifest+json"] | readonly ["image/webp"] | readonly ["font/woff"] | readonly ["font/woff2"] | readonly ["application/xhtml+xml"] | readonly ["application/vnd.ms-excel"] | readonly ["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"] | readonly ["application/xml", "text/xml"] | readonly ["application/vnd.mozilla.xul+xml"] | readonly ["application/yaml"] | readonly ["application/zip", "application/x-zip-compressed"] | readonly ["video/3gpp"] | readonly ["video/3gpp2"] | readonly ["application/x-7z-compressed"];
463
493
  getMimeFor<const E extends FileExtension>(ext: E, opts?: {
464
494
  type?: MimeTopLevelType;
465
495
  }): FileExtensionToMimeType<E>;
466
- isMimeFor<const E extends FileExtension>(ext: E, mime: FileExtensionToMimeType<E>): "audio/aac" | "application/x-abiword" | "image/aces" | "image/apng" | "application/x-freearc" | "image/avci" | "image/avif" | "video/x-msvideo" | "application/vnd.amazon.ebook" | "application/octet-stream" | "multipart/voice-message" | "image/bmp" | "application/x-bzip" | "application/x-bzip2" | "application/x-cdf" | "application/node" | "text/javascript" | "application/x-csh" | "text/css" | "text/csv" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "image/dpx" | "image/emf" | "application/vnd.ms-fontobject" | "application/epub+zip" | "image/gif" | "model/gltf-binary" | "model/gltf+json" | "application/gzip" | "application/x-gzip" | "haptics/hjif" | "haptics/hmpg" | "text/html" | "image/vnd.microsoft.icon" | "text/calendar" | "haptics/ivs" | "application/java-archive" | "image/jpeg" | "application/json" | "application/ld+json" | "image/ktx" | "image/ktx2" | "application/vnd.apple.mpegurl" | "audio/mp4" | "video/mp4" | "text/markdown" | "application/x-mdx" | "audio/midi" | "audio/x-midi" | "audio/mpeg" | "video/mpeg" | "application/vnd.apple.installer+xml" | "application/x-ndjson" | "model/obj" | "text/plain" | "application/vnd.oasis.opendocument.presentation" | "application/vnd.oasis.opendocument.spreadsheet" | "application/vnd.oasis.opendocument.text" | "audio/ogg" | "video/ogg" | "application/ogg" | "font/otf" | "image/png" | "application/pdf" | "application/x-httpd-php" | "application/vnd.apple.pkpass" | "application/vnd.ms-powerpoint" | "application/vnd.openxmlformats-officedocument.presentationml.presentation" | "text/x-python" | "application/x-python-code" | "application/vnd.rar" | "text/rust" | "application/rtf" | "application/x-sh" | "application/sql" | "text/event-stream" | "image/svg+xml" | "application/x-tar" | "image/tiff" | "application/toml" | "text/typescript" | "video/mp2t" | "video/vnd.dlna.mpeg-tts" | "application/font-sfnt" | "font/ttf" | "model/vnd.usdz+zip" | "application/vnd.visio" | "text/vtt" | "application/wasm" | "audio/wav" | "video/webm" | "image/webp" | "font/woff" | "font/woff2" | "application/xhtml+xml" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "application/xml" | "application/vnd.mozilla.xul+xml" | "application/yaml" | "application/zip" | "application/x-zip-compressed" | "video/3gpp" | "video/3gpp2" | "application/x-7z-compressed" | undefined;
496
+ isMimeFor<const E extends FileExtension>(ext: E, mime: FileExtensionToMimeType<E>): "audio/aac" | "application/x-abiword" | "image/aces" | "image/apng" | "application/x-freearc" | "image/avci" | "image/avif" | "video/x-msvideo" | "application/vnd.amazon.ebook" | "application/octet-stream" | "multipart/voice-message" | "image/bmp" | "application/x-bzip" | "application/x-bzip2" | "application/x-cdf" | "application/node" | "text/javascript" | "application/x-csh" | "text/css" | "text/csv" | "image/x-icon" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "image/dpx" | "image/emf" | "application/vnd.ms-fontobject" | "application/epub+zip" | "image/gif" | "model/gltf-binary" | "model/gltf+json" | "application/gzip" | "application/x-gzip" | "haptics/hjif" | "haptics/hmpg" | "text/html" | "image/vnd.microsoft.icon" | "text/calendar" | "haptics/ivs" | "application/java-archive" | "image/jpeg" | "application/json" | "application/ld+json" | "image/ktx" | "image/ktx2" | "application/vnd.apple.mpegurl" | "audio/mp4" | "video/mp4" | "text/markdown" | "application/x-mdx" | "audio/midi" | "audio/x-midi" | "audio/mpeg" | "application/dash+xml" | "video/mpeg" | "application/vnd.apple.installer+xml" | "application/xml" | "application/x-ndjson" | "model/obj" | "text/plain" | "application/vnd.oasis.opendocument.presentation" | "application/vnd.oasis.opendocument.spreadsheet" | "application/vnd.oasis.opendocument.text" | "audio/ogg" | "video/ogg" | "application/ogg" | "font/otf" | "image/png" | "application/pdf" | "application/x-httpd-php" | "application/vnd.apple.pkpass" | "application/vnd.ms-powerpoint" | "application/vnd.openxmlformats-officedocument.presentationml.presentation" | "text/x-python" | "application/x-python-code" | "application/vnd.rar" | "text/rust" | "application/rtf" | "application/x-sh" | "application/sql" | "text/event-stream" | "image/svg+xml" | "application/x-tar" | "image/tiff" | "application/toml" | "text/typescript" | "video/mp2t" | "video/vnd.dlna.mpeg-tts" | "application/font-sfnt" | "font/ttf" | "model/vnd.usdz+zip" | "application/vnd.visio" | "text/vtt" | "application/wasm" | "audio/wav" | "audio/webm" | "video/webm" | "application/manifest+json" | "image/webp" | "font/woff" | "font/woff2" | "application/xhtml+xml" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "text/xml" | "application/vnd.mozilla.xul+xml" | "application/yaml" | "application/zip" | "application/x-zip-compressed" | "video/3gpp" | "video/3gpp2" | "application/x-7z-compressed" | undefined;
467
497
  getMimeTypeForPath<T extends string>(path: T, opts?: {
468
498
  type?: MimeTopLevelType;
469
- }): "audio/aac" | "application/x-abiword" | "image/aces" | "image/apng" | "application/x-freearc" | "image/avci" | "image/avif" | "video/x-msvideo" | "application/vnd.amazon.ebook" | "application/octet-stream" | "multipart/voice-message" | "image/bmp" | "application/x-bzip" | "application/x-bzip2" | "application/x-cdf" | "application/node" | "text/javascript" | "application/x-csh" | "text/css" | "text/csv" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "image/dpx" | "image/emf" | "application/vnd.ms-fontobject" | "application/epub+zip" | "image/gif" | "model/gltf-binary" | "model/gltf+json" | "application/gzip" | "application/x-gzip" | "haptics/hjif" | "haptics/hmpg" | "text/html" | "image/vnd.microsoft.icon" | "text/calendar" | "haptics/ivs" | "application/java-archive" | "image/jpeg" | "application/json" | "application/ld+json" | "image/ktx" | "image/ktx2" | "application/vnd.apple.mpegurl" | "audio/mp4" | "video/mp4" | "text/markdown" | "application/x-mdx" | "audio/midi" | "audio/x-midi" | "audio/mpeg" | "video/mpeg" | "application/vnd.apple.installer+xml" | "application/x-ndjson" | "model/obj" | "text/plain" | "application/vnd.oasis.opendocument.presentation" | "application/vnd.oasis.opendocument.spreadsheet" | "application/vnd.oasis.opendocument.text" | "audio/ogg" | "video/ogg" | "application/ogg" | "font/otf" | "image/png" | "application/pdf" | "application/x-httpd-php" | "application/vnd.apple.pkpass" | "application/vnd.ms-powerpoint" | "application/vnd.openxmlformats-officedocument.presentationml.presentation" | "text/x-python" | "application/x-python-code" | "application/vnd.rar" | "text/rust" | "application/rtf" | "application/x-sh" | "application/sql" | "text/event-stream" | "image/svg+xml" | "application/x-tar" | "image/tiff" | "application/toml" | "text/typescript" | "video/mp2t" | "video/vnd.dlna.mpeg-tts" | "application/font-sfnt" | "font/ttf" | "model/vnd.usdz+zip" | "application/vnd.visio" | "text/vtt" | "application/wasm" | "audio/wav" | "video/webm" | "image/webp" | "font/woff" | "font/woff2" | "application/xhtml+xml" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "application/xml" | "application/vnd.mozilla.xul+xml" | "application/yaml" | "application/zip" | "application/x-zip-compressed" | "video/3gpp" | "video/3gpp2" | "application/x-7z-compressed";
499
+ }): "audio/aac" | "application/x-abiword" | "image/aces" | "image/apng" | "application/x-freearc" | "image/avci" | "image/avif" | "video/x-msvideo" | "application/vnd.amazon.ebook" | "application/octet-stream" | "multipart/voice-message" | "image/bmp" | "application/x-bzip" | "application/x-bzip2" | "application/x-cdf" | "application/node" | "text/javascript" | "application/x-csh" | "text/css" | "text/csv" | "image/x-icon" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "image/dpx" | "image/emf" | "application/vnd.ms-fontobject" | "application/epub+zip" | "image/gif" | "model/gltf-binary" | "model/gltf+json" | "application/gzip" | "application/x-gzip" | "haptics/hjif" | "haptics/hmpg" | "text/html" | "image/vnd.microsoft.icon" | "text/calendar" | "haptics/ivs" | "application/java-archive" | "image/jpeg" | "application/json" | "application/ld+json" | "image/ktx" | "image/ktx2" | "application/vnd.apple.mpegurl" | "audio/mp4" | "video/mp4" | "text/markdown" | "application/x-mdx" | "audio/midi" | "audio/x-midi" | "audio/mpeg" | "application/dash+xml" | "video/mpeg" | "application/vnd.apple.installer+xml" | "application/xml" | "application/x-ndjson" | "model/obj" | "text/plain" | "application/vnd.oasis.opendocument.presentation" | "application/vnd.oasis.opendocument.spreadsheet" | "application/vnd.oasis.opendocument.text" | "audio/ogg" | "video/ogg" | "application/ogg" | "font/otf" | "image/png" | "application/pdf" | "application/x-httpd-php" | "application/vnd.apple.pkpass" | "application/vnd.ms-powerpoint" | "application/vnd.openxmlformats-officedocument.presentationml.presentation" | "text/x-python" | "application/x-python-code" | "application/vnd.rar" | "text/rust" | "application/rtf" | "application/x-sh" | "application/sql" | "text/event-stream" | "image/svg+xml" | "application/x-tar" | "image/tiff" | "application/toml" | "text/typescript" | "video/mp2t" | "video/vnd.dlna.mpeg-tts" | "application/font-sfnt" | "font/ttf" | "model/vnd.usdz+zip" | "application/vnd.visio" | "text/vtt" | "application/wasm" | "audio/wav" | "audio/webm" | "video/webm" | "application/manifest+json" | "image/webp" | "font/woff" | "font/woff2" | "application/xhtml+xml" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "text/xml" | "application/vnd.mozilla.xul+xml" | "application/yaml" | "application/zip" | "application/x-zip-compressed" | "video/3gpp" | "video/3gpp2" | "application/x-7z-compressed";
470
500
  }
471
501
 
472
502
  export { type AllMimeTypes, type FileExtension, type FileExtensionToMimeType, type InferTopLevelPresent, MimeService, type MimeTopLevelType, type MimeType, type MimeTypeToFileExtension, type PresentMimeTopLevelTypes, extMimeMap, mimeToExt };