• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2023 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16/**
17 * @file
18 * @kit ArkData
19 */
20
21/**
22 * Provides methods for uniform data type definition and query.
23 *
24 * @namespace uniformTypeDescriptor
25 * @syscap SystemCapability.DistributedDataManager.UDMF.Core
26 * @since 10
27 */
28/**
29 * Provides methods for uniform data type definition and query.
30 *
31 * @namespace uniformTypeDescriptor
32 * @syscap SystemCapability.DistributedDataManager.UDMF.Core
33 * @atomicservice
34 * @since 11
35 */
36declare namespace uniformTypeDescriptor {
37  /**
38   * Uniform data type IDs.
39   *
40   * @enum { string }
41   * @syscap SystemCapability.DistributedDataManager.UDMF.Core
42   * @since 10
43   */
44  /**
45   * Uniform data type IDs.
46   *
47   * @enum { string }
48   * @syscap SystemCapability.DistributedDataManager.UDMF.Core
49   * @atomicservice
50   * @since 11
51   */
52  enum UniformDataType {
53    /**
54     * Base data type for physical hierarchy, which identifies the physical representation of the data type.
55     *
56     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
57     * @since 11
58     */
59    ENTITY = 'general.entity',
60
61    /**
62     * Base data type for logical hierarchy, which identifies the logical content representation of the data type.
63     *
64     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
65     * @since 11
66     */
67    OBJECT = 'general.object',
68
69    /**
70     * Base data type for mixed object. For example, a PDF file contains both text and special formatting data.
71     *
72     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
73     * @since 11
74     */
75    COMPOSITE_OBJECT = 'general.composite-object',
76
77    /**
78     * Text data type.
79     *
80     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
81     * @since 10
82     */
83    /**
84     * Text data type.
85     *
86     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
87     * @atomicservice
88     * @since 11
89     */
90    TEXT = 'general.text',
91
92    /**
93     * Plain text data type.
94     *
95     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
96     * @since 10
97     */
98    /**
99     * Plain text data type.
100     *
101     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
102     * @atomicservice
103     * @since 11
104     */
105    PLAIN_TEXT = 'general.plain-text',
106
107    /**
108     * HTML data type.
109     *
110     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
111     * @since 10
112     */
113    /**
114     * HTML data type.
115     *
116     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
117     * @atomicservice
118     * @since 11
119     */
120    HTML = 'general.html',
121
122    /**
123     * Hyperlink data type.
124     *
125     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
126     * @since 10
127     */
128    /**
129     * Hyperlink data type.
130     *
131     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
132     * @atomicservice
133     * @since 11
134     */
135    HYPERLINK = 'general.hyperlink',
136
137    /**
138     * XML(Extensible Markup Language) data type.
139     *
140     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
141     * @since 11
142     */
143    XML = 'general.xml',
144
145    /**
146     * Xhtml data type.
147     *
148     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
149     * @since 12
150     */
151    XHTML = 'general.xhtml',
152
153    /**
154     * Rss data type.
155     *
156     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
157     * @since 12
158     */
159    RSS = 'general.rss',
160
161    /**
162     * Real synchronized multimedia integration language.
163     *
164     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
165     * @since 12
166     */
167    SMIL = 'com.real.smil',
168
169    /**
170     * Source code data type.
171     *
172     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
173     * @since 11
174     */
175    SOURCE_CODE = 'general.source-code',
176
177    /**
178     * Script data type.
179     *
180     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
181     * @since 11
182     */
183    SCRIPT = 'general.script',
184
185    /**
186     * Shell script data type.
187     *
188     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
189     * @since 11
190     */
191    SHELL_SCRIPT = 'general.shell-script',
192
193    /**
194     * C-shell script data type.
195     *
196     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
197     * @since 11
198     */
199    CSH_SCRIPT = 'general.csh-script',
200
201    /**
202     * Perl script data type.
203     *
204     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
205     * @since 11
206     */
207    PERL_SCRIPT = 'general.perl-script',
208
209    /**
210     * PHP script data type.
211     *
212     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
213     * @since 11
214     */
215    PHP_SCRIPT = 'general.php-script',
216
217    /**
218     * Python script data type.
219     *
220     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
221     * @since 11
222     */
223    PYTHON_SCRIPT = 'general.python-script',
224
225    /**
226     * Ruby script data type.
227     *
228     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
229     * @since 11
230     */
231    RUBY_SCRIPT = 'general.ruby-script',
232
233    /**
234     * TypeScript data type.
235     *
236     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
237     * @since 11
238     */
239    TYPE_SCRIPT = 'general.type-script',
240
241    /**
242     * JavaScript data type.
243     *
244     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
245     * @since 11
246     */
247    JAVA_SCRIPT = 'general.java-script',
248
249    /**
250     * Css data type.
251     *
252     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
253     * @since 12
254     */
255    CSS = 'general.css',
256
257    /**
258     * C header data type.
259     *
260     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
261     * @since 11
262     */
263    C_HEADER = 'general.c-header',
264
265    /**
266     * C source code data type.
267     *
268     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
269     * @since 11
270     */
271    C_SOURCE = 'general.c-source',
272
273    /**
274     * C++ header data type.
275     *
276     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
277     * @since 11
278     */
279    C_PLUS_PLUS_HEADER = 'general.c-plus-plus-header',
280
281    /**
282     * C++ source code data type.
283     *
284     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
285     * @since 11
286     */
287    C_PLUS_PLUS_SOURCE = 'general.c-plus-plus-source',
288
289    /**
290     * Java source code data type.
291     *
292     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
293     * @since 11
294     */
295    JAVA_SOURCE = 'general.java-source',
296
297    /**
298     * Tex source code data type.
299     *
300     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
301     * @since 12
302     */
303    TEX = 'general.tex',
304
305    /**
306     * Markdown format.
307     *
308     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
309     * @since 12
310     */
311    MARKDOWN = 'general.markdown',
312
313    /**
314     * Asc text data type.
315     *
316     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
317     * @since 12
318     */
319    ASC_TEXT = 'general.asc-text',
320
321    /**
322     * Rich text data type.
323     *
324     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
325     * @since 12
326     */
327    RICH_TEXT = 'general.rich-text',
328
329    /**
330     * Delimited values text data type.
331     *
332     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
333     * @since 12
334     */
335    DELIMITED_VALUES_TEXT = 'general.delimited-values-text',
336
337    /**
338     * Comma separated values text data type.
339     *
340     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
341     * @since 12
342     */
343    COMMA_SEPARATED_VALUES_TEXT = 'general.comma-separated-values-text',
344
345    /**
346     * Tab separated values text data type.
347     *
348     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
349     * @since 12
350     */
351    TAB_SEPARATED_VALUES_TEXT = 'general.tab-separated-values-text',
352
353    /**
354     * Ebook data type.
355     *
356     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
357     * @since 11
358     */
359    EBOOK = 'general.ebook',
360
361    /**
362     * EPUB ebook file format data type.
363     *
364     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
365     * @since 11
366     */
367    EPUB = 'general.epub',
368
369    /**
370     * AZW ebook file format data type.
371     *
372     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
373     * @since 11
374     */
375    AZW = 'com.amazon.azw',
376
377    /**
378     * AZW3 ebook file format data type.
379     *
380     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
381     * @since 11
382     */
383    AZW3 = 'com.amazon.azw3',
384
385    /**
386     * KFX ebook file format data type.
387     *
388     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
389     * @since 11
390     */
391    KFX = 'com.amazon.kfx',
392
393    /**
394     * MOBI ebook file format data type.
395     *
396     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
397     * @since 11
398     */
399    MOBI = 'com.amazon.mobi',
400
401    /**
402     * Media data type.
403     *
404     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
405     * @since 11
406     */
407    MEDIA = 'general.media',
408
409    /**
410     * Image data type.
411     *
412     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
413     * @since 10
414     */
415    /**
416     * Image data type.
417     *
418     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
419     * @atomicservice
420     * @since 11
421     */
422    IMAGE = 'general.image',
423
424    /**
425     * JPEG image format data type.
426     *
427     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
428     * @since 11
429     */
430    JPEG = 'general.jpeg',
431
432    /**
433     * PNG image format data type.
434     *
435     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
436     * @since 11
437     */
438    PNG = 'general.png',
439
440    /**
441     * Raw image format data type.
442     *
443     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
444     * @since 11
445     */
446    RAW_IMAGE = 'general.raw-image',
447
448    /**
449     * TIFF image format data type.
450     *
451     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
452     * @since 11
453     */
454    TIFF = 'general.tiff',
455
456    /**
457     * Windows bitmap image data type.
458     *
459     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
460     * @since 11
461     */
462    BMP = 'com.microsoft.bmp',
463
464    /**
465     * Windows icon data type.
466     *
467     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
468     * @since 11
469     */
470    ICO = 'com.microsoft.ico',
471
472    /**
473     * Adobe Photoshop document data type.
474     *
475     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
476     * @since 11
477     */
478    PHOTOSHOP_IMAGE = 'com.adobe.photoshop-image',
479
480    /**
481     * Adobe Illustrator document data type.
482     *
483     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
484     * @since 11
485     */
486    AI_IMAGE = 'com.adobe.illustrator.ai-image',
487
488    /**
489     * Base type for fax images.
490     *
491     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
492     * @since 12
493     */
494    FAX = 'general.fax',
495
496    /**
497     *  J2 jConnect fax file format.
498     *
499     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
500     * @since 12
501     */
502    JFX_FAX = 'com.j2.jfx-fax',
503
504    /**
505     * The electronic fax document format.
506     *
507     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
508     * @since 12
509     */
510    EFX_FAX = 'com.js.efx-fax',
511
512    /**
513     * X bitmap image.
514     *
515     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
516     * @since 12
517     */
518    XBITMAP_IMAGE = 'general.xbitmap-image',
519
520    /**
521     * Gif image format data type.
522     *
523     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
524     * @since 12
525     */
526    GIF = 'general.gif',
527
528    /**
529     * Tagged Graphics (TGA), a type of image format.
530     *
531     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
532     * @since 12
533     */
534    TGA_IMAGE = 'com.truevision.tga-image',
535
536    /**
537     * Silicon Graphics image.
538     *
539     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
540     * @since 12
541     */
542    SGI_IMAGE = 'com.sgi.sgi-image',
543
544    /**
545     * OpenEXR image.
546     *
547     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
548     * @since 12
549     */
550    OPENEXR_IMAGE = 'com.ilm.openexr-image',
551
552    /**
553     * FlashPix image.
554     *
555     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
556     * @since 12
557     */
558    FLASHPIX_IMAGE = 'com.kodak.flashpix.image',
559
560    /**
561     * Microsoft Word data type.
562     *
563     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
564     * @since 11
565     */
566    WORD_DOC = 'com.microsoft.word.doc',
567
568    /**
569     * Microsoft Excel data type.
570     *
571     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
572     * @since 11
573     */
574    EXCEL = 'com.microsoft.excel.xls',
575
576    /**
577     * Microsoft PowerPoint presentation data type.
578     *
579     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
580     * @since 11
581     */
582    PPT = 'com.microsoft.powerpoint.ppt',
583
584    /**
585     * Microsoft Word dot data type.
586     *
587     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
588     * @since 12
589     */
590    WORD_DOT = 'com.microsoft.word.dot',
591
592    /**
593     * Microsoft Powerpoint pps data type.
594     *
595     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
596     * @since 12
597     */
598    POWERPOINT_PPS = 'com.microsoft.powerpoint.pps',
599
600    /**
601     * Microsoft Powerpoint pot data type.
602     *
603     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
604     * @since 12
605     */
606    POWERPOINT_POT = 'com.microsoft.powerpoint.pot',
607
608    /**
609     * Microsoft Excel xlt data type.
610     *
611     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
612     * @since 12
613     */
614    EXCEL_XLT = 'com.microsoft.excel.xlt',
615
616    /**
617     * Microsoft Visio vsd data type.
618     *
619     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
620     * @since 12
621     */
622    VISIO_VSD = 'com.microsoft.visio.vsd',
623
624    /**
625     * PDF data type.
626     *
627     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
628     * @since 11
629     */
630    PDF = 'com.adobe.pdf',
631
632    /**
633     * PostScript data type.
634     *
635     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
636     * @since 11
637     */
638    POSTSCRIPT = 'com.adobe.postscript',
639
640    /**
641     * Encapsulated PostScript data type.
642     *
643     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
644     * @since 11
645     */
646    ENCAPSULATED_POSTSCRIPT = 'com.adobe.encapsulated-postscript',
647
648    /**
649     * Video data type.
650     *
651     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
652     * @since 10
653     */
654    /**
655     * Video data type.
656     *
657     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
658     * @atomicservice
659     * @since 11
660     */
661    VIDEO = 'general.video',
662
663    /**
664     * AVI video format data type.
665     *
666     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
667     * @since 11
668     */
669    AVI = 'general.avi',
670
671    /**
672     * MPEG video format data type.
673     *
674     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
675     * @since 11
676     */
677    MPEG = 'general.mpeg',
678
679    /**
680     * MPEG4 video format data type.
681     *
682     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
683     * @since 11
684     */
685    MPEG4 = 'general.mpeg-4',
686
687    /**
688     * 3GPP video format data type.
689     *
690     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
691     * @since 11
692     */
693    VIDEO_3GPP = 'general.3gpp',
694
695    /**
696     * 3GPP2 video format data type.
697     *
698     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
699     * @since 11
700     */
701    VIDEO_3GPP2 = 'general.3gpp2',
702
703    /**
704     * Ts video format data type.
705     *
706     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
707     * @since 12
708     */
709    TS = 'general.ts',
710
711    /**
712     * Mpegurl video format data type.
713     *
714     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
715     * @since 12
716     */
717    MPEGURL_VIDEO = 'general.mpegurl-video',
718
719    /**
720     * Windows WM video format data type.
721     *
722     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
723     * @since 11
724     */
725    WINDOWS_MEDIA_WM = 'com.microsoft.windows-media-wm',
726
727    /**
728     * Windows WMV video format data type.
729     *
730     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
731     * @since 11
732     */
733    WINDOWS_MEDIA_WMV = 'com.microsoft.windows-media-wmv',
734
735    /**
736     * Windows WMP video format data type.
737     *
738     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
739     * @since 11
740     */
741    WINDOWS_MEDIA_WMP = 'com.microsoft.windows-media-wmp',
742
743    /**
744     * Windows WVX video format data type.
745     *
746     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
747     * @since 11
748     */
749    WINDOWS_MEDIA_WVX = 'com.microsoft.windows-media-wvx',
750
751    /**
752     * Windows WMX video format data type.
753     *
754     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
755     * @since 11
756     */
757    WINDOWS_MEDIA_WMX = 'com.microsoft.windows-media-wmx',
758
759    /**
760     * RealMedia.
761     *
762     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
763     * @since 12
764     */
765    REALMEDIA = 'com.real.realmedia',
766
767    /**
768     * Matroska video format data type.
769     *
770     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
771     * @since 12
772     */
773    MATROSKA_VIDEO = 'org.matroska.mkv',
774
775    /**
776     * Flash data type.
777     *
778     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
779     * @since 12
780     */
781    FLASH = 'com.adobe.flash',
782
783    /**
784     * Audio data type.
785     *
786     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
787     * @since 10
788     */
789    /**
790     * Audio data type.
791     *
792     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
793     * @atomicservice
794     * @since 11
795     */
796    AUDIO = 'general.audio',
797
798    /**
799     * AAC audio format data type.
800     *
801     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
802     * @since 11
803     */
804    AAC = 'general.aac',
805
806    /**
807     * AIFF audio format data type.
808     *
809     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
810     * @since 11
811     */
812    AIFF = 'general.aiff',
813
814    /**
815     * ALAC audio format data type.
816     *
817     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
818     * @since 11
819     */
820    ALAC = 'general.alac',
821
822    /**
823     * FLAC audio format data type.
824     *
825     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
826     * @since 11
827     */
828    FLAC = 'general.flac',
829
830    /**
831     * MP3 audio format data type.
832     *
833     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
834     * @since 11
835     */
836    MP3 = 'general.mp3',
837
838    /**
839     * OGG audio format data type.
840     *
841     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
842     * @since 11
843     */
844    OGG = 'general.ogg',
845
846    /**
847     * PCM audio format data type.
848     *
849     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
850     * @since 11
851     */
852    PCM = 'general.pcm',
853
854    /**
855     * Windows WMA audio format data type.
856     *
857     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
858     * @since 11
859     */
860    WINDOWS_MEDIA_WMA = 'com.microsoft.windows-media-wma',
861
862    /**
863     * Waveform audio format data type created by Microsoft.
864     *
865     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
866     * @since 11
867     */
868    WAVEFORM_AUDIO = 'com.microsoft.waveform-audio',
869
870    /**
871     * Windows WAX audio format data type.
872     *
873     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
874     * @since 11
875     */
876    WINDOWS_MEDIA_WAX = 'com.microsoft.windows-media-wax',
877
878    /**
879     * Au file format.
880     *
881     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
882     * @since 12
883     */
884    AU_AUDIO = 'general.au-audio',
885
886    /**
887     * Audio Interchange File Format.
888     *
889     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
890     * @since 12
891     */
892    AIFC_AUDIO = 'general.aifc-audio',
893
894    /**
895     * Mpegurl audio format data type.
896     *
897     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
898     * @since 12
899     */
900    MPEGURL_AUDIO = 'general.mpegurl-audio',
901
902    /**
903     * Mpeg-4 audio format data type.
904     *
905     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
906     * @since 12
907     */
908    MPEG_4_AUDIO = 'general.mpeg-4-audio',
909
910    /**
911     * Mp2 audio format data type.
912     *
913     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
914     * @since 12
915     */
916    MP2 = 'general.mp2',
917
918    /**
919     * Mpeg audio format data type.
920     *
921     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
922     * @since 12
923     */
924    MPEG_AUDIO = 'general.mpeg-audio',
925
926    /**
927     * Ulaw audio format data type.
928     *
929     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
930     * @since 12
931     */
932    ULAW_AUDIO = 'general.ulaw-audio',
933
934    /**
935     * Digidesign Sound Designer II audio.
936     *
937     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
938     * @since 12
939     */
940    SD2_AUDIO = 'com.digidesign.sd2-audio',
941
942    /**
943     * RealMedia audio.
944     *
945     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
946     * @since 12
947     */
948    REALAUDIO = 'com.real.realaudio',
949
950    /**
951     * Matroska audio format data type.
952     *
953     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
954     * @since 12
955     */
956    MATROSKA_AUDIO = 'org.matroska.mka',
957
958    /**
959     * File data type.
960     *
961     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
962     * @since 10
963     */
964    /**
965     * File data type.
966     *
967     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
968     * @atomicservice
969     * @since 11
970     */
971    FILE = 'general.file',
972
973    /**
974     * Directory data type.
975     *
976     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
977     * @since 11
978     */
979    DIRECTORY = 'general.directory',
980
981    /**
982     * Folder data type.
983     *
984     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
985     * @since 10
986     */
987    /**
988     * Folder data type.
989     *
990     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
991     * @atomicservice
992     * @since 11
993     */
994    FOLDER = 'general.folder',
995
996    /**
997     * Symlink data type.
998     *
999     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1000     * @since 11
1001     */
1002    SYMLINK = 'general.symlink',
1003
1004    /**
1005     * Archive file data type.
1006     *
1007     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1008     * @since 11
1009     */
1010    ARCHIVE = 'general.archive',
1011
1012    /**
1013     * Bzip2 archive file data type.
1014     *
1015     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1016     * @since 11
1017     */
1018    BZ2_ARCHIVE = 'general.bz2-archive',
1019
1020    /**
1021     * Opg archive data type.
1022     *
1023     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1024     * @since 12
1025     */
1026    OPG = 'general.opg',
1027
1028    /**
1029     * Taz archive data type.
1030     *
1031     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1032     * @since 12
1033     */
1034    TAZ_ARCHIVE = 'general.taz-archive',
1035
1036    /**
1037     * Web archive data type.
1038     *
1039     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1040     * @since 12
1041     */
1042    WEB_ARCHIVE = 'general.web-archive',
1043
1044    /**
1045     * Disk image archive file data type.
1046     *
1047     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1048     * @since 11
1049     */
1050    DISK_IMAGE = 'general.disk-image',
1051
1052    /**
1053     * Iso data type.
1054     *
1055     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1056     * @since 12
1057     */
1058    ISO = 'general.iso',
1059
1060    /**
1061     * Tar archive data type.
1062     *
1063     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1064     * @since 11
1065     */
1066    TAR_ARCHIVE = 'general.tar-archive',
1067
1068    /**
1069     * Zip archive data type.
1070     *
1071     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1072     * @since 11
1073     */
1074    ZIP_ARCHIVE = 'general.zip-archive',
1075
1076    /**
1077     * Java archive data type.
1078     *
1079     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1080     * @since 11
1081     */
1082    JAVA_ARCHIVE = 'com.sun.java-archive',
1083
1084    /**
1085     * GNU archive data type.
1086     *
1087     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1088     * @since 11
1089     */
1090    GNU_TAR_ARCHIVE = 'org.gnu.gnu-tar-archive',
1091
1092    /**
1093     * Gzip archive data type.
1094     *
1095     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1096     * @since 11
1097     */
1098    GNU_ZIP_ARCHIVE = 'org.gnu.gnu-zip-archive',
1099
1100    /**
1101     * Gzip tar archive data type.
1102     *
1103     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1104     * @since 11
1105     */
1106    GNU_ZIP_TAR_ARCHIVE = 'org.gnu.gnu-zip-tar-archive',
1107
1108    /**
1109     * Office Open XML.
1110     *
1111     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1112     * @since 12
1113     */
1114    OPENXML = 'org.openxmlformats.openxml',
1115
1116    /**
1117     * Office Open XML Document.
1118     *
1119     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1120     * @since 12
1121     */
1122    WORDPROCESSINGML_DOCUMENT = 'org.openxmlformats.wordprocessingml.document',
1123
1124    /**
1125     * Office Open XML Workbook.
1126     *
1127     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1128     * @since 12
1129     */
1130    SPREADSHEETML_SHEET = 'org.openxmlformats.spreadsheetml.sheet',
1131
1132    /**
1133     * Office Open XML Presentation.
1134     *
1135     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1136     * @since 12
1137     */
1138    PRESENTATIONML_PRESENTATION = 'org.openxmlformats.presentationml.presentation',
1139
1140    /**
1141     * Office Open XML Drawingml visio.
1142     *
1143     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1144     * @since 12
1145     */
1146    DRAWINGML_VISIO = 'org.openxmlformats.drawingml.visio',
1147
1148    /**
1149     * Office Open XML Drawingml template.
1150     *
1151     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1152     * @since 12
1153     */
1154    DRAWINGML_TEMPLATE = 'org.openxmlformats.drawingml.template',
1155
1156    /**
1157     * Office Open XML Wordprocessingml template.
1158     *
1159     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1160     * @since 12
1161     */
1162    WORDPROCESSINGML_TEMPLATE = 'org.openxmlformats.wordprocessingml.template',
1163
1164    /**
1165     * Office Open XML Presentationml template.
1166     *
1167     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1168     * @since 12
1169     */
1170    PRESENTATIONML_TEMPLATE = 'org.openxmlformats.presentationml.template',
1171
1172    /**
1173     * Office Open XML Presentationml slideshow.
1174     *
1175     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1176     * @since 12
1177     */
1178    PRESENTATIONML_SLIDESHOW = 'org.openxmlformats.presentationml.slideshow',
1179
1180    /**
1181     * Office Open XML Spreadsheetml template.
1182     *
1183     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1184     * @since 12
1185     */
1186    SPREADSHEETML_TEMPLATE = 'org.openxmlformats.spreadsheetml.template',
1187
1188    /**
1189     * Open Document Format for Office Applications.
1190     *
1191     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1192     * @since 12
1193     */
1194    OPENDOCUMENT = 'org.oasis.opendocument',
1195
1196    /**
1197     * OpenDocument Text.
1198     *
1199     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1200     * @since 12
1201     */
1202    OPENDOCUMENT_TEXT = 'org.oasis.opendocument.text',
1203
1204    /**
1205     * OpenDocument Spreadsheet.
1206     *
1207     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1208     * @since 12
1209     */
1210    OPENDOCUMENT_SPREADSHEET = 'org.oasis.opendocument.spreadsheet',
1211
1212    /**
1213     * OpenDocument Presentation.
1214     *
1215     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1216     * @since 12
1217     */
1218    OPENDOCUMENT_PRESENTATION = 'org.oasis.opendocument.presentation',
1219
1220    /**
1221     * OpenDocument Graphics.
1222     *
1223     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1224     * @since 12
1225     */
1226    OPENDOCUMENT_GRAPHICS = 'org.oasis.opendocument.graphics',
1227
1228    /**
1229     * OpenDocument Formulat.
1230     *
1231     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1232     * @since 12
1233     */
1234    OPENDOCUMENT_FORMULA = 'org.oasis.opendocument.formula',
1235
1236    /**
1237     * Stuffit archive.
1238     *
1239     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1240     * @since 12
1241     */
1242    STUFFIT_ARCHIVE = 'com.allume.stuffit-archive',
1243
1244    /**
1245     * Rar archive.
1246     *
1247     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1248     * @since 12
1249     */
1250    RAR_ARCHIVE = 'com.rarlab.rar-archive',
1251
1252    /**
1253     * 7-zip archive.
1254     *
1255     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1256     * @since 12
1257     */
1258    SEVEN_ZIP_ARCHIVE = 'org.7-zip.7-zip-archive',
1259
1260    /**
1261     * Calendar data type.
1262     *
1263     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1264     * @since 11
1265     */
1266    CALENDAR = 'general.calendar',
1267
1268    /**
1269     * VCalendar type, a type of calendar format.
1270     *
1271     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1272     * @since 12
1273     */
1274    VCS = 'general.vcs',
1275
1276    /**
1277     * ICalendar type, a type of calendar format.
1278     *
1279     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1280     * @since 12
1281     */
1282    ICS = 'general.ics',
1283
1284    /**
1285     * Contact data type.
1286     *
1287     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1288     * @since 11
1289     */
1290    CONTACT = 'general.contact',
1291
1292    /**
1293     * Database data type.
1294     *
1295     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1296     * @since 11
1297     */
1298    DATABASE = 'general.database',
1299
1300    /**
1301     * Message data type.
1302     *
1303     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1304     * @since 11
1305     */
1306    MESSAGE = 'general.message',
1307
1308    /**
1309     * Base type for executable data.
1310     *
1311     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1312     * @since 12
1313     */
1314    EXECUTABLE = 'general.executable',
1315
1316    /**
1317     * Microsoft Windows application.
1318     *
1319     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1320     * @since 12
1321     */
1322    PORTABLE_EXECUTABLE = 'com.microsoft.portable-executable',
1323
1324    /**
1325     * Java class.
1326     *
1327     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1328     * @since 12
1329     */
1330    SUN_JAVA_CLASS = 'com.sun.java-class',
1331
1332    /**
1333     * A file format data type stand for electronic business card.
1334     *
1335     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1336     * @since 11
1337     */
1338    VCARD = 'general.vcard',
1339
1340    /**
1341     * Navigation data type.
1342     *
1343     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1344     * @since 11
1345     */
1346    NAVIGATION = 'general.navigation',
1347
1348    /**
1349     * Location data type.
1350     *
1351     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1352     * @since 11
1353     */
1354    LOCATION = 'general.location',
1355
1356    /**
1357     * Base type for fonts.
1358     *
1359     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1360     * @since 12
1361     */
1362    FONT = 'general.font',
1363
1364    /**
1365     * TrueType font.
1366     *
1367     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1368     * @since 12
1369     */
1370    TRUETYPE_FONT = 'general.truetype-font',
1371
1372    /**
1373     * TrueType collection font.
1374     *
1375     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1376     * @since 12
1377     */
1378    TRUETYPE_COLLECTION_FONT = 'general.truetype-collection-font',
1379
1380    /**
1381     * OpenType font.
1382     *
1383     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1384     * @since 12
1385     */
1386    OPENTYPE_FONT = 'general.opentype-font',
1387
1388    /**
1389     * PostScript font.
1390     *
1391     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1392     * @since 12
1393     */
1394    POSTSCRIPT_FONT = 'com.adobe.postscript-font',
1395
1396    /**
1397     * A Printer Font Binary version of Adobe's Type 1.
1398     *
1399     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1400     * @since 12
1401     */
1402    POSTSCRIPT_PFB_FONT = 'com.adobe.postscript-pfb-font',
1403
1404    /**
1405     * Adobe Type 1 font.
1406     *
1407     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1408     * @since 12
1409     */
1410    POSTSCRIPT_PFA_FONT = 'com.adobe.postscript-pfa-font',
1411
1412    /**
1413     * OpenHarmony system defined form data type(the data is provided and bound to OpenHarmony system).
1414     *
1415     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1416     * @since 10
1417     */
1418    /**
1419     * OpenHarmony system defined form data type(the data is provided and bound to OpenHarmony system).
1420     *
1421     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1422     * @atomicservice
1423     * @since 11
1424     */
1425    OPENHARMONY_FORM = 'openharmony.form',
1426
1427    /**
1428     * OpenHarmony system defined app item data type(the data is provided and bound to OpenHarmony system).
1429     *
1430     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1431     * @since 10
1432     */
1433    /**
1434     * OpenHarmony system defined app item data type(the data is provided and bound to OpenHarmony system).
1435     *
1436     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1437     * @atomicservice
1438     * @since 11
1439     */
1440    OPENHARMONY_APP_ITEM = 'openharmony.app-item',
1441
1442    /**
1443     * OpenHarmony system defined pixel map data type(the data is provided and bound to OpenHarmony system).
1444     *
1445     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1446     * @since 10
1447     */
1448    /**
1449     * OpenHarmony system defined pixel map data type(the data is provided and bound to OpenHarmony system).
1450     *
1451     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1452     * @atomicservice
1453     * @since 11
1454     */
1455    OPENHARMONY_PIXEL_MAP = 'openharmony.pixel-map',
1456
1457    /**
1458     * OpenHarmony system defined atomic service data type(the data is provided and bound to OpenHarmony system).
1459     *
1460     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1461     * @since 11
1462     */
1463    OPENHARMONY_ATOMIC_SERVICE = 'openharmony.atomic-service',
1464
1465    /**
1466     * OpenHarmony system defined package, which is a directory presented to the user as a file(the data is provided
1467     * <br>and bound to OpenHarmony system).
1468     *
1469     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1470     * @since 11
1471     */
1472    OPENHARMONY_PACKAGE = 'openharmony.package',
1473
1474    /**
1475     * OpenHarmony system defined ability package(the data is provided and bound to OpenHarmony system).
1476     *
1477     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1478     * @since 11
1479     */
1480    OPENHARMONY_HAP = 'openharmony.hap',
1481
1482    /**
1483     * OpenHarmony system AppNotepad data format.
1484     *
1485     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1486     * @since 12
1487     */
1488    OPENHARMONY_HDOC = 'openharmony.hdoc',
1489
1490    /**
1491     * OpenHarmony system Notes data format.
1492     *
1493     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1494     * @since 12
1495     */
1496    OPENHARMONY_HINOTE = 'openharmony.hinote',
1497
1498    /**
1499     * OpenHarmony system defined styled string.
1500     *
1501     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1502     * @since 12
1503     */
1504    OPENHARMONY_STYLED_STRING = 'openharmony.styled-string',
1505
1506    /**
1507     * OpenHarmony system defined Want.
1508     *
1509     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1510     * @since 12
1511     */
1512    OPENHARMONY_WANT = 'openharmony.want',
1513
1514    /**
1515     * Ofd data type.
1516     *
1517     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1518     * @since 12
1519     */
1520    OFD = 'general.ofd',
1521
1522    /**
1523     * Cad data type.
1524     *
1525     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1526     * @since 12
1527     */
1528    CAD = 'general.cad',
1529
1530    /**
1531     * Octet stream data type.
1532     *
1533     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1534     * @since 12
1535     */
1536    OCTET_STREAM = 'general.octet-stream'
1537  }
1538
1539  /**
1540   * Class describing the uniform data type defined in the {@code UniformDataType}, which consists of attributes and
1541   * <br>methods describing the uniform data type and its relationships to other uniform data types.
1542   *
1543   * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1544   * @since 11
1545   */
1546  class TypeDescriptor {
1547    /**
1548     * Type ID of the uniform data type, which corresponds to the enum string in the {@code UniformDataType}.
1549     *
1550     * @type { string }
1551     * @readonly
1552     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1553     * @since 11
1554     */
1555    readonly typeId: string;
1556
1557    /**
1558     * Uniform data type IDs that the uniform data type belongs to.
1559     *
1560     * @type { Array<string> }
1561     * @readonly
1562     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1563     * @since 11
1564     */
1565    readonly belongingToTypes: Array<string>;
1566
1567    /**
1568     * A textual description for the uniform data type.
1569     *
1570     * @type { string }
1571     * @readonly
1572     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1573     * @since 11
1574     */
1575    readonly description: string;
1576
1577    /**
1578     * Reference URL for the uniform data type, which describes the detail information of the type.
1579     *
1580     * @type { string }
1581     * @readonly
1582     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1583     * @since 11
1584     */
1585    readonly referenceURL: string;
1586
1587    /**
1588     * Default icon file path for the uniform data type.
1589     *
1590     * @type { string }
1591     * @readonly
1592     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1593     * @since 11
1594     */
1595    readonly iconFile: string;
1596
1597    /**
1598     * File name extensions for the uniform data type.
1599     *
1600     * @type { Array<string> }
1601     * @readonly
1602     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1603     * @since 12
1604     */
1605     readonly filenameExtensions: Array<string>;
1606
1607    /**
1608     * MIMETypes of the uniform data type.
1609     *
1610     * @type { Array<string> }
1611     * @readonly
1612     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1613     * @since 12
1614     */
1615    readonly mimeTypes: Array<string>;
1616
1617    /**
1618     * Checks whether the uniform data type belongs to the given uniform data type.
1619     *
1620     * @param { string } type - A uniform data type to be compared.
1621     * @returns { boolean } Returns true if the data type belongs to the given data type, else false.
1622     * @throws { BusinessError } 401 - Parameter error. Possible causes:1.Mandatory parameters are left unspecified;
1623     * <br>2.Incorrect parameters types.
1624     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1625     * @since 11
1626     */
1627    belongsTo(type: string): boolean;
1628
1629    /**
1630     * Checks whether the uniform data type is the lower level type of the given uniform data type.
1631     *
1632     * @param { string } type - A uniform data type to be compared.
1633     * @returns { boolean } Returns true if the data type is the lower level type of the given data type, else false.
1634     * @throws { BusinessError } 401 - Parameter error. Possible causes:1.Mandatory parameters are left unspecified;
1635     * <br>2.Incorrect parameters types.
1636     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1637     * @since 11
1638     */
1639    isLowerLevelType(type: string): boolean;
1640
1641    /**
1642     * Checks whether the uniform data type is the higher level type of the given uniform data type.
1643     *
1644     * @param { string } type - A uniform data type to be compared.
1645     * @returns { boolean } Returns true if the data type is the higher level type of the given data type, else false.
1646     * @throws { BusinessError } 401 - Parameter error. Possible causes:1.Mandatory parameters are left unspecified;
1647     * <br>2.Incorrect parameters types.
1648     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1649     * @since 11
1650     */
1651    isHigherLevelType(type: string): boolean;
1652
1653    /**
1654     * Checks whether the uniform type descriptor is equal to the given uniform type descriptor.
1655     *
1656     * @param { TypeDescriptor } typeDescriptor - A uniform type descriptor to be compared.
1657     * @returns { boolean } Returns true if the type descriptor is equal to the given type descriptor, else false.
1658     * @throws { BusinessError } 401 - Parameter error. Possible causes:1.Mandatory parameters are left unspecified;
1659     * <br>2.Incorrect parameters types.
1660     * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1661     * @since 11
1662     */
1663    equals(typeDescriptor: TypeDescriptor): boolean;
1664  }
1665
1666  /**
1667   * Queries and returns the uniform type descriptor by the given uniform data type ID.
1668   *
1669   * @param { string } typeId - Uniform data type ID.
1670   * @returns { TypeDescriptor } Returns the uniform type descriptor corresponding to the uniform data type ID or null
1671   * <br>if the uniform data type does not exist.
1672   * @throws { BusinessError } 401 - Parameter error. Possible causes:1.Mandatory parameters are left unspecified;
1673   * <br>2.Incorrect parameters types.
1674   * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1675   * @since 11
1676   */
1677  function getTypeDescriptor(typeId: string): TypeDescriptor;
1678
1679  /**
1680   * Queries and returns the uniform type descriptor by the given filename extension and the uniform data type it belongs to.
1681   *
1682   * @param { string } filenameExtension - Filename extension.
1683   * @param { string } [belongsTo] - A uniform data type ID it belongs to.
1684   * @returns { string } Returns the uniform data type ID corresponding to the given filename extension and the
1685   * <br>uniform data type it belongs to(If the 'belongsTo' parameter is set) or flexible type if the uniform data type does not exist.
1686   * @throws { BusinessError } 401 - Parameter error. Possible causes:1.Mandatory parameters are left unspecified;
1687   * <br>2.Incorrect parameters types.
1688   * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1689   * @since 11
1690   */
1691  function getUniformDataTypeByFilenameExtension(filenameExtension: string, belongsTo?: string): string;
1692
1693  /**
1694   * Queries and returns the uniform type descriptor by the given MIME type and the uniform data type it belongs to.
1695   *
1696   * @param { string } mimeType - MIME type.
1697   * @param { string } [belongsTo] - A uniform data type ID it belongs to.
1698   * @returns { string } Returns the uniform data type ID corresponding to the given MIME type and the uniform data type
1699   * <br>it belongs to(If the 'belongsTo' parameter is set) or flexible type if the uniform data type does not exist.
1700   * @throws { BusinessError } 401 - Parameter error. Possible causes:1.Mandatory parameters are left unspecified;
1701   * <br>2.Incorrect parameters types.
1702   * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1703   * @since 11
1704   */
1705  function getUniformDataTypeByMIMEType(mimeType: string, belongsTo?: string): string;
1706
1707  /**
1708   * Queries and returns the uniform type descriptor list by the given filename extension and the uniform data type it belongs to.
1709   *
1710   * @param { string } filenameExtension - Filename extension.
1711   * @param { string } [belongsTo] - A uniform data type ID it belongs to.
1712   * @returns { Array<string> } Returns the uniform data type ID list corresponding to the given filename extension and the
1713   * <br>uniform data type it belongs to(If the 'belongsTo' parameter is set) or flexible type if the uniform data type does not exist.
1714   * @throws { BusinessError } 401 - Parameter error. Possible causes:1.Mandatory parameters are left unspecified;
1715   * <br>2.Incorrect parameters types.
1716   * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1717   * @since 13
1718   */
1719  function getUniformDataTypesByFilenameExtension(filenameExtension: string, belongsTo?: string): Array<string>;
1720
1721  /**
1722   * Queries and returns the uniform type descriptor list by the given MIME type and the uniform data type it belongs to.
1723   *
1724   * @param { string } mimeType - MIME type.
1725   * @param { string } [belongsTo] - A uniform data type ID it belongs to.
1726   * @returns { Array<string> } Returns the uniform data type ID list corresponding to the given MIME type and the uniform data type
1727   * <br>it belongs to(If the 'belongsTo' parameter is set) or flexible type if the uniform data type does not exist.
1728   * @throws { BusinessError } 401 - Parameter error. Possible causes:1.Mandatory parameters are left unspecified;
1729   * <br>2.Incorrect parameters types.
1730   * @syscap SystemCapability.DistributedDataManager.UDMF.Core
1731   * @since 13
1732   */
1733  function getUniformDataTypesByMIMEType(mimeType: string, belongsTo?: string): Array<string>;
1734}
1735
1736export default uniformTypeDescriptor;
1737