• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2021-2024 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 LocalizationKit
19 */
20
21import { RawFileDescriptor as _RawFileDescriptor } from './global/rawFileDescriptor';
22import { Resource as _Resource } from './global/resource';
23import { AsyncCallback as _AsyncCallback } from './@ohos.base';
24import { DrawableDescriptor } from './@ohos.arkui.drawableDescriptor';
25
26/**
27 * Provides resource related APIs.
28 *
29 * @namespace resourceManager
30 * @syscap SystemCapability.Global.ResourceManager
31 * @since 6
32 */
33/**
34 * Provides resource related APIs.
35 *
36 * @namespace resourceManager
37 * @syscap SystemCapability.Global.ResourceManager
38 * @crossplatform
39 * @since 10
40 */
41/**
42 * Provides resource related APIs.
43 *
44 * @namespace resourceManager
45 * @syscap SystemCapability.Global.ResourceManager
46 * @crossplatform
47 * @atomicservice
48 * @since 11
49 */
50declare namespace resourceManager {
51  /**
52   * Enumerates screen directions.
53   *
54   * @enum { number }
55   * @syscap SystemCapability.Global.ResourceManager
56   * @since 6
57   */
58  /**
59   * Enumerates screen directions.
60   *
61   * @enum { number }
62   * @syscap SystemCapability.Global.ResourceManager
63   * @crossplatform
64   * @since 10
65   */
66  /**
67   * Enumerates screen directions.
68   *
69   * @enum { number }
70   * @syscap SystemCapability.Global.ResourceManager
71   * @crossplatform
72   * @atomicservice
73   * @since 11
74   */
75  export enum Direction {
76    /**
77     * Indicates the vertical direction.
78     *
79     * @syscap SystemCapability.Global.ResourceManager
80     * @since 6
81     */
82    /**
83     * Indicates the vertical direction.
84     *
85     * @syscap SystemCapability.Global.ResourceManager
86     * @crossplatform
87     * @since 10
88     */
89    /**
90     * Indicates the vertical direction.
91     *
92     * @syscap SystemCapability.Global.ResourceManager
93     * @crossplatform
94     * @atomicservice
95     * @since 11
96     */
97    DIRECTION_VERTICAL = 0,
98
99    /**
100     * Indicates the horizontal direction.
101     *
102     * @syscap SystemCapability.Global.ResourceManager
103     * @since 6
104     */
105    /**
106     * Indicates the horizontal direction.
107     *
108     * @syscap SystemCapability.Global.ResourceManager
109     * @crossplatform
110     * @since 10
111     */
112    /**
113     * Indicates the horizontal direction.
114     *
115     * @syscap SystemCapability.Global.ResourceManager
116     * @crossplatform
117     * @atomicservice
118     * @since 11
119     */
120    DIRECTION_HORIZONTAL = 1
121  }
122
123  /**
124   * Enumerates device types.
125   *
126   * @enum { number }
127   * @syscap SystemCapability.Global.ResourceManager
128   * @since 6
129   */
130  /**
131   * Enumerates device types.
132   *
133   * @enum { number }
134   * @syscap SystemCapability.Global.ResourceManager
135   * @crossplatform
136   * @since 10
137   */
138  /**
139   * Enumerates device types.
140   *
141   * @enum { number }
142   * @syscap SystemCapability.Global.ResourceManager
143   * @crossplatform
144   * @atomicservice
145   * @since 11
146   */
147  export enum DeviceType {
148    /**
149     * Indicates a phone.
150     *
151     * @syscap SystemCapability.Global.ResourceManager
152     * @since 6
153     */
154    /**
155     * Indicates a phone.
156     *
157     * @syscap SystemCapability.Global.ResourceManager
158     * @crossplatform
159     * @since 10
160     */
161    /**
162     * Indicates a phone.
163     *
164     * @syscap SystemCapability.Global.ResourceManager
165     * @crossplatform
166     * @atomicservice
167     * @since 11
168     */
169    DEVICE_TYPE_PHONE = 0x00,
170
171    /**
172     * Indicates a tablet.
173     *
174     * @syscap SystemCapability.Global.ResourceManager
175     * @since 6
176     */
177    /**
178     * Indicates a tablet.
179     *
180     * @syscap SystemCapability.Global.ResourceManager
181     * @since 10
182     */
183    /**
184     * Indicates a tablet.
185     *
186     * @syscap SystemCapability.Global.ResourceManager
187     * @crossplatform
188     * @atomicservice
189     * @since 11
190     */
191    DEVICE_TYPE_TABLET = 0x01,
192
193    /**
194     * Indicates a car.
195     *
196     * @syscap SystemCapability.Global.ResourceManager
197     * @since 6
198     */
199    /**
200     * Indicates a car.
201     *
202     * @syscap SystemCapability.Global.ResourceManager
203     * @since 10
204     */
205    /**
206     * Indicates a car.
207     *
208     * @syscap SystemCapability.Global.ResourceManager
209     * @crossplatform
210     * @atomicservice
211     * @since 11
212     */
213    DEVICE_TYPE_CAR = 0x02,
214
215    /**
216     * Indicates a PC.
217     *
218     * @syscap SystemCapability.Global.ResourceManager
219     * @since 6
220     */
221    /**
222     * Indicates a PC.
223     *
224     * @syscap SystemCapability.Global.ResourceManager
225     * @since 10
226     */
227    /**
228     * Indicates a PC.
229     *
230     * @syscap SystemCapability.Global.ResourceManager
231     * @crossplatform
232     * @atomicservice
233     * @since 11
234     */
235    DEVICE_TYPE_PC = 0x03,
236
237    /**
238     * Indicates a smart TV.
239     *
240     * @syscap SystemCapability.Global.ResourceManager
241     * @since 6
242     */
243    /**
244     * Indicates a smart TV.
245     *
246     * @syscap SystemCapability.Global.ResourceManager
247     * @since 10
248     */
249    /**
250     * Indicates a smart TV.
251     *
252     * @syscap SystemCapability.Global.ResourceManager
253     * @crossplatform
254     * @atomicservice
255     * @since 11
256     */
257    DEVICE_TYPE_TV = 0x04,
258
259    /**
260     * Indicates a wearable device.
261     *
262     * @syscap SystemCapability.Global.ResourceManager
263     * @since 6
264     */
265    /**
266     * Indicates a wearable device.
267     *
268     * @syscap SystemCapability.Global.ResourceManager
269     * @since 10
270     */
271    /**
272     * Indicates a wearable device.
273     *
274     * @syscap SystemCapability.Global.ResourceManager
275     * @crossplatform
276     * @atomicservice
277     * @since 11
278     */
279    DEVICE_TYPE_WEARABLE = 0x06,
280
281    /**
282     * Indicates a 2in1 device.
283     *
284     * @syscap SystemCapability.Global.ResourceManager
285     * @crossplatform
286     * @atomicservice
287     * @since 11
288     */
289    DEVICE_TYPE_2IN1 = 0x07
290  }
291
292  /**
293   * Enumerates screen density types.
294   *
295   * @enum { number }
296   * @syscap SystemCapability.Global.ResourceManager
297   * @since 6
298   */
299  /**
300   * Enumerates screen density types.
301   *
302   * @enum { number }
303   * @syscap SystemCapability.Global.ResourceManager
304   * @crossplatform
305   * @since 10
306   */
307  /**
308   * Enumerates screen density types.
309   *
310   * @enum { number }
311   * @syscap SystemCapability.Global.ResourceManager
312   * @crossplatform
313   * @atomicservice
314   * @since 11
315   */
316  export enum ScreenDensity {
317    /**
318     * Indicates small screen density.
319     *
320     * @syscap SystemCapability.Global.ResourceManager
321     * @since 6
322     */
323    /**
324     * Indicates small screen density.
325     *
326     * @syscap SystemCapability.Global.ResourceManager
327     * @crossplatform
328     * @since 10
329     */
330    /**
331     * Indicates small screen density.
332     *
333     * @syscap SystemCapability.Global.ResourceManager
334     * @crossplatform
335     * @atomicservice
336     * @since 11
337     */
338    SCREEN_SDPI = 120,
339
340    /**
341     * Indicates medium screen density.
342     *
343     * @syscap SystemCapability.Global.ResourceManager
344     * @since 6
345     */
346    /**
347     * Indicates medium screen density.
348     *
349     * @syscap SystemCapability.Global.ResourceManager
350     * @crossplatform
351     * @since 10
352     */
353    /**
354     * Indicates medium screen density.
355     *
356     * @syscap SystemCapability.Global.ResourceManager
357     * @crossplatform
358     * @atomicservice
359     * @since 11
360     */
361    SCREEN_MDPI = 160,
362
363    /**
364     * Indicates large screen density.
365     *
366     * @syscap SystemCapability.Global.ResourceManager
367     * @since 6
368     */
369    /**
370     * Indicates large screen density.
371     *
372     * @syscap SystemCapability.Global.ResourceManager
373     * @crossplatform
374     * @since 10
375     */
376    /**
377     * Indicates large screen density.
378     *
379     * @syscap SystemCapability.Global.ResourceManager
380     * @crossplatform
381     * @atomicservice
382     * @since 11
383     */
384    SCREEN_LDPI = 240,
385
386    /**
387     * Indicates extra-large screen density.
388     *
389     * @syscap SystemCapability.Global.ResourceManager
390     * @since 6
391     */
392    /**
393     * Indicates extra-large screen density.
394     *
395     * @syscap SystemCapability.Global.ResourceManager
396     * @crossplatform
397     * @since 10
398     */
399    /**
400     * Indicates extra-large screen density.
401     *
402     * @syscap SystemCapability.Global.ResourceManager
403     * @crossplatform
404     * @atomicservice
405     * @since 11
406     */
407    SCREEN_XLDPI = 320,
408
409    /**
410     * Indicates extra-extra-large screen density.
411     *
412     * @syscap SystemCapability.Global.ResourceManager
413     * @since 6
414     */
415    /**
416     * Indicates extra-extra-large screen density.
417     *
418     * @syscap SystemCapability.Global.ResourceManager
419     * @crossplatform
420     * @since 10
421     */
422    /**
423     * Indicates extra-extra-large screen density.
424     *
425     * @syscap SystemCapability.Global.ResourceManager
426     * @crossplatform
427     * @atomicservice
428     * @since 11
429     */
430    SCREEN_XXLDPI = 480,
431
432    /**
433     * Indicates extra-extra-extra-large screen density.
434     *
435     * @syscap SystemCapability.Global.ResourceManager
436     * @since 6
437     */
438    /**
439     * Indicates extra-extra-extra-large screen density.
440     *
441     * @syscap SystemCapability.Global.ResourceManager
442     * @crossplatform
443     * @since 10
444     */
445    /**
446     * Indicates extra-extra-extra-large screen density.
447     *
448     * @syscap SystemCapability.Global.ResourceManager
449     * @crossplatform
450     * @atomicservice
451     * @since 11
452     */
453    SCREEN_XXXLDPI = 640
454  }
455
456  /**
457   * Enumerates color mode types.
458   *
459   * @enum { number }
460   * @syscap SystemCapability.Global.ResourceManager
461   * @crossplatform
462   * @atomicservice
463   * @since 12
464   */
465  export enum ColorMode {
466
467    /**
468     * Indicates dark mode.
469     *
470     * @syscap SystemCapability.Global.ResourceManager
471     * @crossplatform
472     * @atomicservice
473     * @since 12
474     */
475    DARK = 0,
476
477    /**
478     * Indicates light mode.
479     *
480     * @syscap SystemCapability.Global.ResourceManager
481     * @crossplatform
482     * @atomicservice
483     * @since 12
484     */
485    LIGHT = 1
486  }
487
488  /**
489   * Provides the device configuration.
490   *
491   * @syscap SystemCapability.Global.ResourceManager
492   * @since 6
493   */
494  /**
495   * Provides the device configuration.
496   *
497   * @syscap SystemCapability.Global.ResourceManager
498   * @crossplatform
499   * @since 10
500   */
501  /**
502   * Provides the device configuration.
503   *
504   * @syscap SystemCapability.Global.ResourceManager
505   * @crossplatform
506   * @atomicservice
507   * @since 11
508   */
509  export class Configuration {
510    /**
511     * Indicates the screen direction of the current device.
512     *
513     * @syscap SystemCapability.Global.ResourceManager
514     * @since 6
515     */
516    /**
517     * Indicates the screen direction of the current device.
518     *
519     * @syscap SystemCapability.Global.ResourceManager
520     * @crossplatform
521     * @since 10
522     */
523    /**
524     * Indicates the screen direction of the current device.
525     *
526     * @syscap SystemCapability.Global.ResourceManager
527     * @crossplatform
528     * @atomicservice
529     * @since 11
530     */
531    /**
532     * Indicates the screen direction of the current device.
533     *
534     * @type { Direction }
535     * @syscap SystemCapability.Global.ResourceManager
536     * @crossplatform
537     * @atomicservice
538     * @since 12
539     */
540    direction: Direction;
541
542    /**
543     * Indicates the current system language, for example, zh-Hans-CN.
544     *
545     * @syscap SystemCapability.Global.ResourceManager
546     * @since 6
547     */
548    /**
549     * Indicates the current system language, for example, zh-Hans-CN.
550     *
551     * @syscap SystemCapability.Global.ResourceManager
552     * @crossplatform
553     * @since 10
554     */
555    /**
556     * Indicates the current system language, for example, zh-Hans-CN.
557     *
558     * @syscap SystemCapability.Global.ResourceManager
559     * @crossplatform
560     * @atomicservice
561     * @since 11
562     */
563    /**
564     * Indicates the current system language, for example, zh-Hans-CN.
565     *
566     * @type { string }
567     * @syscap SystemCapability.Global.ResourceManager
568     * @crossplatform
569     * @atomicservice
570     * @since 12
571     */
572    locale: string;
573
574    /**
575     * Indicates the device type.
576     *
577     * @type { DeviceType }
578     * @syscap SystemCapability.Global.ResourceManager
579     * @crossplatform
580     * @atomicservice
581     * @since 12
582     */
583    deviceType: DeviceType;
584
585    /**
586     * Indicates the screen density.
587     *
588     * @type { ScreenDensity }
589     * @syscap SystemCapability.Global.ResourceManager
590     * @crossplatform
591     * @atomicservice
592     * @since 12
593     */
594    screenDensity: ScreenDensity;
595
596    /**
597     * Indicates the color mode.
598     *
599     * @type { ColorMode }
600     * @syscap SystemCapability.Global.ResourceManager
601     * @crossplatform
602     * @atomicservice
603     * @since 12
604     */
605    colorMode: ColorMode;
606
607    /**
608     * Indicates the mcc.
609     *
610     * @type { number }
611     * @syscap SystemCapability.Global.ResourceManager
612     * @crossplatform
613     * @atomicservice
614     * @since 12
615     */
616    mcc: number;
617
618    /**
619     * Indicates the mnc.
620     *
621     * @type { number }
622     * @syscap SystemCapability.Global.ResourceManager
623     * @crossplatform
624     * @atomicservice
625     * @since 12
626     */
627    mnc: number;
628  }
629
630  /**
631   * Provides the device capability.
632   *
633   * @syscap SystemCapability.Global.ResourceManager
634   * @since 6
635   */
636  /**
637   * Provides the device capability.
638   *
639   * @syscap SystemCapability.Global.ResourceManager
640   * @crossplatform
641   * @since 10
642   */
643  /**
644   * Provides the device capability.
645   *
646   * @syscap SystemCapability.Global.ResourceManager
647   * @crossplatform
648   * @atomicservice
649   * @since 11
650   */
651  export class DeviceCapability {
652    /**
653     * Indicates the screen density of the current device.
654     *
655     * @syscap SystemCapability.Global.ResourceManager
656     * @since 6
657     */
658    /**
659     * Indicates the screen density of the current device.
660     *
661     * @syscap SystemCapability.Global.ResourceManager
662     * @crossplatform
663     * @since 10
664     */
665    /**
666     * Indicates the screen density of the current device.
667     *
668     * @syscap SystemCapability.Global.ResourceManager
669     * @crossplatform
670     * @atomicservice
671     * @since 11
672     */
673    /**
674     * Indicates the screen density of the current device.
675     *
676     * @type { ScreenDensity }
677     * @syscap SystemCapability.Global.ResourceManager
678     * @crossplatform
679     * @atomicservice
680     * @since 12
681     */
682    screenDensity: ScreenDensity;
683
684    /**
685     * Indicates the type of the current device.
686     *
687     * @syscap SystemCapability.Global.ResourceManager
688     * @since 6
689     */
690    /**
691     * Indicates the type of the current device.
692     *
693     * @syscap SystemCapability.Global.ResourceManager
694     * @crossplatform
695     * @since 10
696     */
697    /**
698     * Indicates the type of the current device.
699     *
700     * @syscap SystemCapability.Global.ResourceManager
701     * @crossplatform
702     * @atomicservice
703     * @since 11
704     */
705    /**
706     * Indicates the type of the current device.
707     *
708     * @type { DeviceType }
709     * @syscap SystemCapability.Global.ResourceManager
710     * @crossplatform
711     * @atomicservice
712     * @since 12
713     */
714    deviceType: DeviceType;
715  }
716
717  /**
718   * The ResourceManager callback.
719   *
720   * @interface AsyncCallback
721   * @syscap SystemCapability.Global.ResourceManager
722   * @since 6
723   * @deprecated since 9
724   */
725  export interface AsyncCallback<T> {
726    /**
727     * Defines the callback format.
728     *
729     * @param { Error } err - Indicates the error info.
730     * @param { T } data - Indicates the return data.
731     * @syscap SystemCapability.Global.ResourceManager
732     * @since 6
733     * @deprecated since 9
734    */
735    (err: Error, data: T): void;
736  }
737
738  /**
739   * Obtains the ResourceManager object of the current application.
740   *
741   * @param { AsyncCallback<ResourceManager> } callback - Indicates the callback containing the ResourceManager object.
742   * @syscap SystemCapability.Global.ResourceManager
743   * @FAModelOnly
744   * @since 6
745   */
746  /**
747   * Obtains the ResourceManager object of the current application.
748   *
749   * @param { AsyncCallback<ResourceManager> } callback - Indicates the callback containing the ResourceManager object.
750   * @syscap SystemCapability.Global.ResourceManager
751   * @FAModelOnly
752   * @since 11
753   */
754  export function getResourceManager(callback: AsyncCallback<ResourceManager>): void;
755
756  /**
757   * Obtains the ResourceManager object of the specified application.
758   *
759   * @param { string } bundleName - Indicates the bundle name of the specified application.
760   * @param { AsyncCallback<ResourceManager> } callback - Indicates the callback containing the ResourceManager object.
761   * @syscap SystemCapability.Global.ResourceManager
762   * @FAModelOnly
763   * @since 6
764   */
765  /**
766   * Obtains the ResourceManager object of the specified application.
767   *
768   * @param { string } bundleName - Indicates the bundle name of the specified application.
769   * @param { AsyncCallback<ResourceManager> } callback - Indicates the callback containing the ResourceManager object.
770   * @syscap SystemCapability.Global.ResourceManager
771   * @FAModelOnly
772   * @since 11
773   */
774  export function getResourceManager(bundleName: string, callback: AsyncCallback<ResourceManager>): void;
775
776  /**
777   * Obtains the ResourceManager object of the current application.
778   *
779   * @returns { Promise<ResourceManager> } The ResourceManager object is returned in Promise mode.
780   * @syscap SystemCapability.Global.ResourceManager
781   * @FAModelOnly
782   * @since 6
783   */
784  /**
785   * Obtains the ResourceManager object of the current application.
786   *
787   * @returns { Promise<ResourceManager> } The ResourceManager object is returned in Promise mode.
788   * @syscap SystemCapability.Global.ResourceManager
789   * @FAModelOnly
790   * @since 11
791   */
792  export function getResourceManager(): Promise<ResourceManager>;
793
794  /**
795   * Obtains the ResourceManager object of the specified application.
796   *
797   * @param { string } bundleName - Indicates the bundle name of the specified application.
798   * @returns { Promise<ResourceManager> } The ResourceManager object is returned in Promise mode.
799   * @syscap SystemCapability.Global.ResourceManager
800   * @FAModelOnly
801   * @since 6
802   */
803  /**
804   * Obtains the ResourceManager object of the specified application.
805   *
806   * @param { string } bundleName - Indicates the bundle name of the specified application.
807   * @returns { Promise<ResourceManager> } The ResourceManager object is returned in Promise mode.
808   * @syscap SystemCapability.Global.ResourceManager
809   * @FAModelOnly
810   * @since 11
811   */
812  export function getResourceManager(bundleName: string): Promise<ResourceManager>;
813
814  /**
815   * Obtains a global shared system ResourceManager object that provides access to only system resource, in which the
816   * resConfig is default value(contains resLocale, screenDensityDpi, direction, etc).
817   *
818   * @returns { ResourceManager } The System ResourceManager object is returned.
819   * @throws { BusinessError } 9001009 - Failed to access the system resource.
820   *         which is not mapped to application sandbox, This error code will be thrown.
821   * @syscap SystemCapability.Global.ResourceManager
822   * @since 10
823   */
824  /**
825   * Obtains a global shared system ResourceManager object that provides access to only system resource, in which the
826   * resConfig is default value(contains resLocale, screenDensityDpi, direction, etc).
827   *
828   * @returns { ResourceManager } The System ResourceManager object is returned.
829   * @throws { BusinessError } 9001009 - Failed to access the system resource.
830   *         which is not mapped to application sandbox, This error code will be thrown.
831   * @syscap SystemCapability.Global.ResourceManager
832   * @crossplatform
833   * @atomicservice
834   * @since 11
835   */
836  export function getSystemResourceManager(): ResourceManager;
837
838  /**
839   * Provides the capability of accessing application resources.
840   *
841   * @interface ResourceManager
842   * @syscap SystemCapability.Global.ResourceManager
843   * @since 6
844   */
845  /**
846   * Provides the capability of accessing application resources.
847   *
848   * @interface ResourceManager
849   * @syscap SystemCapability.Global.ResourceManager
850   * @crossplatform
851   * @since 10
852   */
853  /**
854   * Provides the capability of accessing application resources.
855   *
856   * @interface ResourceManager
857   * @syscap SystemCapability.Global.ResourceManager
858   * @crossplatform
859   * @atomicservice
860   * @since 11
861   */
862  export interface ResourceManager {
863    /**
864     * Obtains the character string corresponding to a specified resource ID in callback mode.
865     *
866     * @param { number } resId - Indicates the resource ID.
867     * @param { AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained character string.
868     * @syscap SystemCapability.Global.ResourceManager
869     * @since 6
870     * @deprecated since 9
871     * @useinstead ohos.resourceManager.getStringValue
872     */
873    getString(resId: number, callback: AsyncCallback<string>): void;
874
875    /**
876     * Obtains string resources associated with a specified resource ID in Promise mode.
877     *
878     * @param { number } resId - Indicates the resource ID.
879     * @returns { Promise<string> } The character string corresponding to the resource ID.
880     * @syscap SystemCapability.Global.ResourceManager
881     * @since 6
882     * @deprecated since 9
883     * @useinstead ohos.resourceManager.getStringValue
884     */
885    getString(resId: number): Promise<string>;
886
887    /**
888     * Obtains the character string corresponding to a specified resource object in callback mode.
889     *
890     * @param { Resource } resource - Indicates the resource object.
891     * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained character string.
892     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
893     * @throws { BusinessError } 9001001 - Invalid resource ID.
894     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
895     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
896     * @syscap SystemCapability.Global.ResourceManager
897     * @stagemodelonly
898     * @since 9
899     */
900    /**
901     * Obtains the character string corresponding to a specified resource object in callback mode.
902     *
903     * @param { Resource } resource - Indicates the resource object.
904     * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained character string.
905     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
906     * @throws { BusinessError } 9001001 - Invalid resource ID.
907     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
908     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
909     * @syscap SystemCapability.Global.ResourceManager
910     * @stagemodelonly
911     * @crossplatform
912     * @since 10
913     */
914    /**
915     * Obtains the character string corresponding to a specified resource object in callback mode.
916     *
917     * @param { Resource } resource - Indicates the resource object.
918     * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained character string.
919     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
920     * @throws { BusinessError } 9001001 - Invalid resource ID.
921     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
922     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
923     * @syscap SystemCapability.Global.ResourceManager
924     * @stagemodelonly
925     * @crossplatform
926     * @atomicservice
927     * @since 11
928     */
929    getStringValue(resource: Resource, callback: _AsyncCallback<string>): void;
930
931    /**
932     * Obtains string resources associated with a specified resource object in Promise mode.
933     *
934     * @param { Resource } resource - Indicates the resource object.
935     * @returns { Promise<string> } The character string corresponding to the resource object.
936     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
937     * @throws { BusinessError } 9001001 - Invalid resource ID.
938     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
939     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
940     * @syscap SystemCapability.Global.ResourceManager
941     * @stagemodelonly
942     * @since 9
943     */
944    /**
945     * Obtains string resources associated with a specified resource object in Promise mode.
946     *
947     * @param { Resource } resource - Indicates the resource object.
948     * @returns { Promise<string> } The character string corresponding to the resource object.
949     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
950     * @throws { BusinessError } 9001001 - Invalid resource ID.
951     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
952     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
953     * @syscap SystemCapability.Global.ResourceManager
954     * @stagemodelonly
955     * @crossplatform
956     * @since 10
957     */
958    /**
959     * Obtains string resources associated with a specified resource object in Promise mode.
960     *
961     * @param { Resource } resource - Indicates the resource object.
962     * @returns { Promise<string> } The character string corresponding to the resource object.
963     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
964     * @throws { BusinessError } 9001001 - Invalid resource ID.
965     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
966     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
967     * @syscap SystemCapability.Global.ResourceManager
968     * @stagemodelonly
969     * @crossplatform
970     * @atomicservice
971     * @since 11
972     */
973    getStringValue(resource: Resource): Promise<string>;
974
975    /**
976     * Obtains the array of character strings corresponding to a specified resource ID in callback mode.
977     *
978     * @param { number } resId - Indicates the resource ID.
979     * @param { AsyncCallback<Array<string>> } callback - Indicates the asynchronous callback used to return the obtained array of character strings.
980     * @syscap SystemCapability.Global.ResourceManager
981     * @since 6
982     * @deprecated since 9
983     * @useinstead ohos.resourceManager.getStringArrayValue
984     */
985    getStringArray(resId: number, callback: AsyncCallback<Array<string>>): void;
986
987    /**
988     * Obtains the array of character strings corresponding to a specified resource ID in Promise mode.
989     *
990     * @param { number } resId - Indicates the resource ID.
991     * @returns { Promise<Array<string>> } The array of character strings corresponding to the specified resource ID.
992     * @syscap SystemCapability.Global.ResourceManager
993     * @since 6
994     * @deprecated since 9
995     * @useinstead ohos.resourceManager.getStringArrayValue
996     */
997    getStringArray(resId: number): Promise<Array<string>>;
998
999    /**
1000     * Obtains the array of character strings corresponding to a specified resource object in callback mode.
1001     *
1002     * @param { Resource } resource - Indicates the resource object.
1003     * @param { _AsyncCallback<Array<string>> } callback - Indicates the asynchronous callback used to return the obtained array of character strings.
1004     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
1005     * @throws { BusinessError } 9001001 - Invalid resource ID.
1006     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
1007     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
1008     * @syscap SystemCapability.Global.ResourceManager
1009     * @stagemodelonly
1010     * @since 9
1011     */
1012    /**
1013     * Obtains the array of character strings corresponding to a specified resource object in callback mode.
1014     *
1015     * @param { Resource } resource - Indicates the resource object.
1016     * @param { _AsyncCallback<Array<string>> } callback - Indicates the asynchronous callback used to return the obtained array of character strings.
1017     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
1018     * @throws { BusinessError } 9001001 - Invalid resource ID.
1019     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
1020     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
1021     * @syscap SystemCapability.Global.ResourceManager
1022     * @stagemodelonly
1023     * @crossplatform
1024     * @since 10
1025     */
1026    /**
1027     * Obtains the array of character strings corresponding to a specified resource object in callback mode.
1028     *
1029     * @param { Resource } resource - Indicates the resource object.
1030     * @param { _AsyncCallback<Array<string>> } callback - Indicates the asynchronous callback used to return the obtained array of character strings.
1031     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
1032     * @throws { BusinessError } 9001001 - Invalid resource ID.
1033     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
1034     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
1035     * @syscap SystemCapability.Global.ResourceManager
1036     * @stagemodelonly
1037     * @crossplatform
1038     * @atomicservice
1039     * @since 11
1040     */
1041    getStringArrayValue(resource: Resource, callback: _AsyncCallback<Array<string>>): void;
1042
1043    /**
1044     * Obtains the array of character strings corresponding to a specified resource object in Promise mode.
1045     *
1046     * @param { Resource } resource - Indicates the resource object.
1047     * @returns { Promise<Array<string>> } The array of character strings corresponding to the specified resource object.
1048     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
1049     * @throws { BusinessError } 9001001 - Invalid resource ID.
1050     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
1051     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
1052     * @syscap SystemCapability.Global.ResourceManager
1053     * @stagemodelonly
1054     * @since 9
1055     */
1056    /**
1057     * Obtains the array of character strings corresponding to a specified resource object in Promise mode.
1058     *
1059     * @param { Resource } resource - Indicates the resource object.
1060     * @returns { Promise<Array<string>> } The array of character strings corresponding to the specified resource object.
1061     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
1062     * @throws { BusinessError } 9001001 - Invalid resource ID.
1063     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
1064     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
1065     * @syscap SystemCapability.Global.ResourceManager
1066     * @stagemodelonly
1067     * @crossplatform
1068     * @since 10
1069     */
1070    /**
1071     * Obtains the array of character strings corresponding to a specified resource object in Promise mode.
1072     *
1073     * @param { Resource } resource - Indicates the resource object.
1074     * @returns { Promise<Array<string>> } The array of character strings corresponding to the specified resource object.
1075     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
1076     * @throws { BusinessError } 9001001 - Invalid resource ID.
1077     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
1078     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
1079     * @syscap SystemCapability.Global.ResourceManager
1080     * @stagemodelonly
1081     * @crossplatform
1082     * @atomicservice
1083     * @since 11
1084     */
1085    getStringArrayValue(resource: Resource): Promise<Array<string>>;
1086
1087    /**
1088     * Obtains the content of the media file corresponding to a specified resource ID in callback mode.
1089     *
1090     * @param { number } resId - Indicates the resource ID.
1091     * @param { AsyncCallback<Uint8Array> } callback - Indicates the asynchronous callback used to return the obtained media file content.
1092     * @syscap SystemCapability.Global.ResourceManager
1093     * @since 6
1094     * @deprecated since 9
1095     * @useinstead ohos.resourceManager.getMediaContent
1096     */
1097    getMedia(resId: number, callback: AsyncCallback<Uint8Array>): void;
1098
1099    /**
1100     * Obtains the content of the media file corresponding to a specified resource ID in Promise mode.
1101     *
1102     * @param { number } resId - Indicates the resource ID.
1103     * @returns { Promise<Uint8Array> } The content of the media file corresponding to the specified resource ID.
1104     * @syscap SystemCapability.Global.ResourceManager
1105     * @since 6
1106     * @deprecated since 9
1107     * @useinstead ohos.resourceManager.getMediaContent
1108     */
1109    getMedia(resId: number): Promise<Uint8Array>;
1110
1111    /**
1112     * Obtains the content of the media file corresponding to a specified resource object in callback mode.
1113     *
1114     * @param { Resource } resource - Indicates the resource object.
1115     * @param { _AsyncCallback<Uint8Array> } callback - Indicates the asynchronous callback used to return the obtained media file content.
1116     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
1117     * @throws { BusinessError } 9001001 - Invalid resource ID.
1118     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
1119     * @syscap SystemCapability.Global.ResourceManager
1120     * @stagemodelonly
1121     * @since 9
1122     */
1123    /**
1124     * Obtains the content of the media file corresponding to a specified resource object in callback mode.
1125     *
1126     * @param { Resource } resource - Indicates the resource object.
1127     * @param { _AsyncCallback<Uint8Array> } callback - Indicates the asynchronous callback used to return the obtained media file content.
1128     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
1129     * @throws { BusinessError } 9001001 - Invalid resource ID.
1130     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
1131     * @syscap SystemCapability.Global.ResourceManager
1132     * @stagemodelonly
1133     * @crossplatform
1134     * @since 10
1135     */
1136    /**
1137     * Obtains the content of the media file corresponding to a specified resource object in callback mode.
1138     *
1139     * @param { Resource } resource - Indicates the resource object.
1140     * @param { _AsyncCallback<Uint8Array> } callback - Indicates the asynchronous callback used to return the obtained media file content.
1141     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
1142     * @throws { BusinessError } 9001001 - Invalid resource ID.
1143     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
1144     * @syscap SystemCapability.Global.ResourceManager
1145     * @stagemodelonly
1146     * @crossplatform
1147     * @atomicservice
1148     * @since 11
1149     */
1150    getMediaContent(resource: Resource, callback: _AsyncCallback<Uint8Array>): void;
1151
1152    /**
1153     * Obtains the content of the specified screen density media file corresponding to a specified resource object in callback mode.
1154     *
1155     * @param { Resource } resource - Indicates the resource object.
1156     * @param { number } density - The parameter ScreenDensity{@link ScreenDensity}, A value of 0 means
1157     *                 to use the density of current system dpi.
1158     * @param { _AsyncCallback<Uint8Array> } callback - Indicates the asynchronous callback used to return the obtained
1159     *                 specified screen density media file content.
1160     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.
1161     * @throws { BusinessError } 9001001 - Invalid resource ID.
1162     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
1163     * @syscap SystemCapability.Global.ResourceManager
1164     * @stagemodelonly
1165     * @since 10
1166     */
1167    /**
1168     * Obtains the content of the specified screen density media file corresponding to a specified resource object in callback mode.
1169     *
1170     * @param { Resource } resource - Indicates the resource object.
1171     * @param { number } density - The parameter ScreenDensity{@link ScreenDensity}, A value of 0 means
1172     *                 to use the density of current system dpi.
1173     * @param { _AsyncCallback<Uint8Array> } callback - Indicates the asynchronous callback used to return the obtained
1174     *                 specified screen density media file content.
1175     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.
1176     * @throws { BusinessError } 9001001 - Invalid resource ID.
1177     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
1178     * @syscap SystemCapability.Global.ResourceManager
1179     * @stagemodelonly
1180     * @crossplatform
1181     * @atomicservice
1182     * @since 11
1183     */
1184    getMediaContent(resource: Resource, density: number, callback: _AsyncCallback<Uint8Array>): void;
1185
1186    /**
1187     * Obtains the content of the media file corresponding to a specified resource object in Promise mode.
1188     *
1189     * @param { Resource } resource - Indicates the resource object.
1190     * @returns { Promise<Uint8Array> } The content of the media file corresponding to the specified resource object.
1191     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
1192     * @throws { BusinessError } 9001001 - Invalid resource ID.
1193     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
1194     * @syscap SystemCapability.Global.ResourceManager
1195     * @stagemodelonly
1196     * @since 9
1197     */
1198    /**
1199     * Obtains the content of the media file corresponding to a specified resource object in Promise mode.
1200     *
1201     * @param { Resource } resource - Indicates the resource object.
1202     * @returns { Promise<Uint8Array> } The content of the media file corresponding to the specified resource object.
1203     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
1204     * @throws { BusinessError } 9001001 - Invalid resource ID.
1205     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
1206     * @syscap SystemCapability.Global.ResourceManager
1207     * @stagemodelonly
1208     * @crossplatform
1209     * @since 10
1210     */
1211    /**
1212     * Obtains the content of the media file corresponding to a specified resource object in Promise mode.
1213     *
1214     * @param { Resource } resource - Indicates the resource object.
1215     * @returns { Promise<Uint8Array> } The content of the media file corresponding to the specified resource object.
1216     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
1217     * @throws { BusinessError } 9001001 - Invalid resource ID.
1218     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
1219     * @syscap SystemCapability.Global.ResourceManager
1220     * @stagemodelonly
1221     * @crossplatform
1222     * @atomicservice
1223     * @since 11
1224     */
1225    getMediaContent(resource: Resource): Promise<Uint8Array>;
1226
1227    /**
1228     * Obtains the content of the specified screen density media file corresponding to a specified resource object in Promise mode.
1229     *
1230     * @param { Resource } resource - Indicates the resource object.
1231     * @param { number } density - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means
1232     *                 to use the density of current system dpi.
1233     * @returns { Promise<Uint8Array> } The content of the specified screen density media file corresponding to the
1234     *                 specified resource object.
1235     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.
1236     * @throws { BusinessError } 9001001 - Invalid resource ID.
1237     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
1238     * @syscap SystemCapability.Global.ResourceManager
1239     * @stagemodelonly
1240     * @since 10
1241     */
1242    /**
1243     * Obtains the content of the specified screen density media file corresponding to a specified resource object in Promise mode.
1244     *
1245     * @param { Resource } resource - Indicates the resource object.
1246     * @param { number } density - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means
1247     *                 to use the density of current system dpi.
1248     * @returns { Promise<Uint8Array> } The content of the specified screen density media file corresponding to the
1249     *                 specified resource object.
1250     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.
1251     * @throws { BusinessError } 9001001 - Invalid resource ID.
1252     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
1253     * @syscap SystemCapability.Global.ResourceManager
1254     * @stagemodelonly
1255     * @crossplatform
1256     * @atomicservice
1257     * @since 11
1258     */
1259    getMediaContent(resource: Resource, density: number): Promise<Uint8Array>;
1260
1261    /**
1262     * Obtains the Base64 code of the image resource corresponding to the specified resource ID in callback mode.
1263     *
1264     * @param { number } resId - Indicates the resource ID.
1265     * @param { AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained Base64 code of the image
1266     *                 resource.
1267     * @syscap SystemCapability.Global.ResourceManager
1268     * @since 6
1269     * @deprecated since 9
1270     * @useinstead ohos.resourceManager.getMediaContentBase64
1271     */
1272    getMediaBase64(resId: number, callback: AsyncCallback<string>): void;
1273
1274    /**
1275     * Obtains the Base64 code of the image resource corresponding to the specified resource ID in Promise mode.
1276     *
1277     * @param { number } resId - Indicates the resource ID.
1278     * @returns { Promise<string> } The Base64 code of the image resource corresponding to the specified resource ID.
1279     * @syscap SystemCapability.Global.ResourceManager
1280     * @since 6
1281     * @deprecated since 9
1282     * @useinstead ohos.resourceManager.getMediaContentBase64
1283     */
1284    getMediaBase64(resId: number): Promise<string>;
1285
1286    /**
1287     * Obtains the Base64 code of the image resource corresponding to the specified resource object in callback mode.
1288     *
1289     * @param { Resource } resource - Indicates the resource object.
1290     * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained Base64 code of the image
1291     *                 resource.
1292     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
1293     * @throws { BusinessError } 9001001 - Invalid resource ID.
1294     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
1295     * @syscap SystemCapability.Global.ResourceManager
1296     * @stagemodelonly
1297     * @since 9
1298     */
1299    /**
1300     * Obtains the Base64 code of the image resource corresponding to the specified resource object in callback mode.
1301     *
1302     * @param { Resource } resource - Indicates the resource object.
1303     * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained Base64 code of the image
1304     *                 resource.
1305     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
1306     * @throws { BusinessError } 9001001 - Invalid resource ID.
1307     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
1308     * @syscap SystemCapability.Global.ResourceManager
1309     * @stagemodelonly
1310     * @crossplatform
1311     * @since 10
1312     */
1313    /**
1314     * Obtains the Base64 code of the image resource corresponding to the specified resource object in callback mode.
1315     *
1316     * @param { Resource } resource - Indicates the resource object.
1317     * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained Base64 code of the image
1318     *                 resource.
1319     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
1320     * @throws { BusinessError } 9001001 - Invalid resource ID.
1321     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
1322     * @syscap SystemCapability.Global.ResourceManager
1323     * @stagemodelonly
1324     * @crossplatform
1325     * @atomicservice
1326     * @since 11
1327     */
1328    getMediaContentBase64(resource: Resource, callback: _AsyncCallback<string>): void;
1329
1330    /**
1331     * Obtains the Base64 code of the specified screen density image resource corresponding to the specified resource object in callback mode.
1332     *
1333     * @param { Resource } resource - Indicates the resource object.
1334     * @param { number } density - The parameter ScreenDensity{@link ScreenDensity}, A value of 0 means
1335     *                 to use the density of current system dpi.
1336     * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained Base64 code of the
1337     *                 specified screen density image resource.
1338     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.
1339     * @throws { BusinessError } 9001001 - Invalid resource ID.
1340     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
1341     * @syscap SystemCapability.Global.ResourceManager
1342     * @stagemodelonly
1343     * @since 10
1344     */
1345    /**
1346     * Obtains the Base64 code of the specified screen density image resource corresponding to the specified resource object in callback mode.
1347     *
1348     * @param { Resource } resource - Indicates the resource object.
1349     * @param { number } density - The parameter ScreenDensity{@link ScreenDensity}, A value of 0 means
1350     *                 to use the density of current system dpi.
1351     * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained Base64 code of the
1352     *                 specified screen density image resource.
1353     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.
1354     * @throws { BusinessError } 9001001 - Invalid resource ID.
1355     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
1356     * @syscap SystemCapability.Global.ResourceManager
1357     * @stagemodelonly
1358     * @crossplatform
1359     * @atomicservice
1360     * @since 11
1361     */
1362    getMediaContentBase64(resource: Resource, density: number, callback: _AsyncCallback<string>): void;
1363
1364    /**
1365     * Obtains the Base64 code of the image resource corresponding to the specified resource object in Promise mode.
1366     *
1367     * @param { Resource } resource - Indicates the resource object.
1368     * @returns { Promise<string> } The Base64 code of the image resource corresponding to the specified resource object.
1369     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
1370     * @throws { BusinessError } 9001001 - Invalid resource ID.
1371     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
1372     * @syscap SystemCapability.Global.ResourceManager
1373     * @stagemodelonly
1374     * @since 9
1375     */
1376    /**
1377     * Obtains the Base64 code of the image resource corresponding to the specified resource object in Promise mode.
1378     *
1379     * @param { Resource } resource - Indicates the resource object.
1380     * @returns { Promise<string> } The Base64 code of the image resource corresponding to the specified resource object.
1381     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
1382     * @throws { BusinessError } 9001001 - Invalid resource ID.
1383     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
1384     * @syscap SystemCapability.Global.ResourceManager
1385     * @stagemodelonly
1386     * @crossplatform
1387     * @since 10
1388     */
1389    /**
1390     * Obtains the Base64 code of the image resource corresponding to the specified resource object in Promise mode.
1391     *
1392     * @param { Resource } resource - Indicates the resource object.
1393     * @returns { Promise<string> } The Base64 code of the image resource corresponding to the specified resource object.
1394     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
1395     * @throws { BusinessError } 9001001 - Invalid resource ID.
1396     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
1397     * @syscap SystemCapability.Global.ResourceManager
1398     * @stagemodelonly
1399     * @crossplatform
1400     * @atomicservice
1401     * @since 11
1402     */
1403    getMediaContentBase64(resource: Resource): Promise<string>;
1404
1405    /**
1406     * Obtains the Base64 code of the specified screen density image resource corresponding to the specified resource object in Promise mode.
1407     *
1408     * @param { Resource } resource - Indicates the resource object.
1409     * @param { number } density - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means
1410     *                 to use the density of current system dpi.
1411     * @returns { Promise<string> } The Base64 code of the specified screen density image resource corresponding to the specified resource object.
1412     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.
1413     * @throws { BusinessError } 9001001 - Invalid resource ID.
1414     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
1415     * @syscap SystemCapability.Global.ResourceManager
1416     * @stagemodelonly
1417     * @since 10
1418     */
1419    /**
1420     * Obtains the Base64 code of the specified screen density image resource corresponding to the specified resource object in Promise mode.
1421     *
1422     * @param { Resource } resource - Indicates the resource object.
1423     * @param { number } density - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means
1424     *                 to use the density of current system dpi.
1425     * @returns { Promise<string> } The Base64 code of the specified screen density image resource corresponding to the specified resource object.
1426     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.
1427     * @throws { BusinessError } 9001001 - Invalid resource ID.
1428     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
1429     * @syscap SystemCapability.Global.ResourceManager
1430     * @stagemodelonly
1431     * @crossplatform
1432     * @atomicservice
1433     * @since 11
1434     */
1435    getMediaContentBase64(resource: Resource, density: number): Promise<string>;
1436
1437    /**
1438     * Obtains the device capability in callback mode.
1439     *
1440     * @param { _AsyncCallback<DeviceCapability> } callback - Indicates the asynchronous callback used to return the obtained device capability.
1441     * @syscap SystemCapability.Global.ResourceManager
1442     * @since 6
1443     */
1444    /**
1445     * Obtains the device capability in callback mode.
1446     *
1447     * @param { _AsyncCallback<DeviceCapability> } callback - Indicates the asynchronous callback used to return the obtained device capability.
1448     * @syscap SystemCapability.Global.ResourceManager
1449     * @crossplatform
1450     * @since 10
1451     */
1452    /**
1453     * Obtains the device capability in callback mode.
1454     *
1455     * @param { _AsyncCallback<DeviceCapability> } callback - Indicates the asynchronous callback used to return the obtained device capability.
1456     * @syscap SystemCapability.Global.ResourceManager
1457     * @crossplatform
1458     * @atomicservice
1459     * @since 11
1460     */
1461    getDeviceCapability(callback: _AsyncCallback<DeviceCapability>): void;
1462
1463    /**
1464     * Obtains the device capability in Promise mode.
1465     *
1466     * @returns { Promise<DeviceCapability> } the device capability.
1467     * @syscap SystemCapability.Global.ResourceManager
1468     * @since 6
1469     */
1470    /**
1471     * Obtains the device capability in Promise mode.
1472     *
1473     * @returns { Promise<DeviceCapability> } the device capability.
1474     * @syscap SystemCapability.Global.ResourceManager
1475     * @crossplatform
1476     * @since 10
1477     */
1478    /**
1479     * Obtains the device capability in Promise mode.
1480     *
1481     * @returns { Promise<DeviceCapability> } the device capability.
1482     * @syscap SystemCapability.Global.ResourceManager
1483     * @crossplatform
1484     * @atomicservice
1485     * @since 11
1486     */
1487    getDeviceCapability(): Promise<DeviceCapability>;
1488
1489    /**
1490     * Obtains the device configuration in callback mode.
1491     *
1492     * @param { _AsyncCallback<Configuration> } callback - Indicates the asynchronous callback used to return the obtained device
1493     *                 configuration.
1494     * @syscap SystemCapability.Global.ResourceManager
1495     * @since 6
1496     */
1497    /**
1498     * Obtains the device configuration in callback mode.
1499     *
1500     * @param { _AsyncCallback<Configuration> } callback - Indicates the asynchronous callback used to return the obtained device
1501     *                 configuration.
1502     * @syscap SystemCapability.Global.ResourceManager
1503     * @crossplatform
1504     * @since 10
1505     */
1506    /**
1507     * Obtains the device configuration in callback mode.
1508     *
1509     * @param { _AsyncCallback<Configuration> } callback - Indicates the asynchronous callback used to return the obtained device
1510     *                 configuration.
1511     * @syscap SystemCapability.Global.ResourceManager
1512     * @crossplatform
1513     * @atomicservice
1514     * @since 11
1515     */
1516    getConfiguration(callback: _AsyncCallback<Configuration>): void;
1517
1518    /**
1519     * Obtains the device configuration in Promise mode.
1520     *
1521     * @returns { Promise<Configuration> } the device configuration.
1522     * @syscap SystemCapability.Global.ResourceManager
1523     * @since 6
1524     */
1525    /**
1526     * Obtains the device configuration in Promise mode.
1527     *
1528     * @returns { Promise<Configuration> } the device configuration.
1529     * @syscap SystemCapability.Global.ResourceManager
1530     * @crossplatform
1531     * @since 10
1532     */
1533    /**
1534     * Obtains the device configuration in Promise mode.
1535     *
1536     * @returns { Promise<Configuration> } the device configuration.
1537     * @syscap SystemCapability.Global.ResourceManager
1538     * @crossplatform
1539     * @atomicservice
1540     * @since 11
1541     */
1542    getConfiguration(): Promise<Configuration>;
1543
1544    /**
1545     * Obtains the singular-plural character string represented by the ID string corresponding to the
1546     * specified number in callback mode.
1547     *
1548     * @param { number } resId - Indicates the resource ID.
1549     * @param { number } num - Indicates the number.
1550     * @param { AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the singular-plural character
1551     *                 string represented by the ID string corresponding to the specified number.
1552     * @syscap SystemCapability.Global.ResourceManager
1553     * @since 6
1554     * @deprecated since 9
1555     * @useinstead ohos.resourceManager.getPluralStringValue
1556     */
1557    getPluralString(resId: number, num: number, callback: AsyncCallback<string>): void;
1558
1559    /**
1560     * Obtains the singular-plural character string represented by the ID string corresponding to
1561     * the specified number in Promise mode.
1562     *
1563     * @param { number } resId - Indicates the resource ID.
1564     * @param { number } num - Indicates the number.
1565     * @returns { Promise<string> } The singular-plural character string represented by the ID string
1566     *         corresponding to the specified number.
1567     * @syscap SystemCapability.Global.ResourceManager
1568     * @since 6
1569     * @deprecated since 9
1570     * @useinstead ohos.resourceManager.getPluralStringValue
1571     */
1572    getPluralString(resId: number, num: number): Promise<string>;
1573
1574    /**
1575     * Obtains the singular-plural character string represented by the resource object string corresponding to the
1576     * specified number in callback mode.
1577     *
1578     * @param { Resource } resource - Indicates the resource object.
1579     * @param { number } num - Indicates the number.
1580     * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the singular-plural character
1581     *                 string represented by the resource object string corresponding to the specified number.
1582     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
1583     * @throws { BusinessError } 9001001 - Invalid resource ID.
1584     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
1585     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
1586     * @syscap SystemCapability.Global.ResourceManager
1587     * @stagemodelonly
1588     * @since 9
1589     */
1590    /**
1591     * Obtains the singular-plural character string represented by the resource object string corresponding to the
1592     * specified number in callback mode.
1593     *
1594     * @param { Resource } resource - Indicates the resource object.
1595     * @param { number } num - Indicates the number.
1596     * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the singular-plural character
1597     *                 string represented by the resource object string corresponding to the specified number.
1598     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
1599     * @throws { BusinessError } 9001001 - Invalid resource ID.
1600     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
1601     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
1602     * @syscap SystemCapability.Global.ResourceManager
1603     * @stagemodelonly
1604     * @crossplatform
1605     * @since 10
1606     */
1607    /**
1608     * Obtains the singular-plural character string represented by the resource object string corresponding to the
1609     * specified number in callback mode.
1610     *
1611     * @param { Resource } resource - Indicates the resource object.
1612     * @param { number } num - Indicates the number.
1613     * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the singular-plural character
1614     *                 string represented by the resource object string corresponding to the specified number.
1615     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
1616     * @throws { BusinessError } 9001001 - Invalid resource ID.
1617     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
1618     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
1619     * @syscap SystemCapability.Global.ResourceManager
1620     * @stagemodelonly
1621     * @crossplatform
1622     * @atomicservice
1623     * @since 11
1624     * @deprecated since 18
1625     * @useinstead ohos.resourceManager.getIntPluralStringValueSync
1626     */
1627    getPluralStringValue(resource: Resource, num: number, callback: _AsyncCallback<string>): void;
1628
1629    /**
1630     * Obtains the singular-plural character string represented by the resource object string corresponding to
1631     * the specified number in Promise mode.
1632     *
1633     * @param { Resource } resource - Indicates the resource object.
1634     * @param { number } num - Indicates the number.
1635     * @returns { Promise<string> } The singular-plural character string represented by the resource object string
1636     *         corresponding to the specified number.
1637     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
1638     * @throws { BusinessError } 9001001 - Invalid resource ID.
1639     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
1640     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
1641     * @syscap SystemCapability.Global.ResourceManager
1642     * @stagemodelonly
1643     * @since 9
1644     */
1645    /**
1646     * Obtains the singular-plural character string represented by the resource object string corresponding to
1647     * the specified number in Promise mode.
1648     *
1649     * @param { Resource } resource - Indicates the resource object.
1650     * @param { number } num - Indicates the number.
1651     * @returns { Promise<string> } The singular-plural character string represented by the resource object string
1652     *         corresponding to the specified number.
1653     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
1654     * @throws { BusinessError } 9001001 - Invalid resource ID.
1655     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
1656     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
1657     * @syscap SystemCapability.Global.ResourceManager
1658     * @stagemodelonly
1659     * @crossplatform
1660     * @since 10
1661     */
1662    /**
1663     * Obtains the singular-plural character string represented by the resource object string corresponding to
1664     * the specified number in Promise mode.
1665     *
1666     * @param { Resource } resource - Indicates the resource object.
1667     * @param { number } num - Indicates the number.
1668     * @returns { Promise<string> } The singular-plural character string represented by the resource object string
1669     *         corresponding to the specified number.
1670     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
1671     * @throws { BusinessError } 9001001 - Invalid resource ID.
1672     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
1673     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
1674     * @syscap SystemCapability.Global.ResourceManager
1675     * @stagemodelonly
1676     * @crossplatform
1677     * @atomicservice
1678     * @since 11
1679     * @deprecated since 18
1680     * @useinstead ohos.resourceManager.getIntPluralStringValueSync
1681     */
1682    getPluralStringValue(resource: Resource, num: number): Promise<string>;
1683
1684    /**
1685     * Obtains the raw file resource corresponding to the specified resource path in callback mode.
1686     *
1687     * @param { string } path - Indicates the resource relative path.
1688     * @param { AsyncCallback<Uint8Array> } callback - Indicates the asynchronous callback used to return the raw file resource.
1689     * @syscap SystemCapability.Global.ResourceManager
1690     * @since 8
1691     * @deprecated since 9
1692     * @useinstead ohos.resourceManager.getRawFileContent
1693     */
1694    getRawFile(path: string, callback: AsyncCallback<Uint8Array>): void;
1695
1696    /**
1697     * Obtains the raw file resource corresponding to the specified resource path in Promise mode.
1698     *
1699     * @param { string } path - Indicates the resource relative path.
1700     * @returns { Promise<Uint8Array> } The raw file resource corresponding to the specified resource path.
1701     * @syscap SystemCapability.Global.ResourceManager
1702     * @since 8
1703     * @deprecated since 9
1704     * @useinstead ohos.resourceManager.getRawFileContent
1705     */
1706    getRawFile(path: string): Promise<Uint8Array>;
1707
1708    /**
1709     * Obtains the raw file resource descriptor corresponding to the specified resource path in callback mode.
1710     *
1711     * @param { string } path - Indicates the resource relative path.
1712     * @param { AsyncCallback<RawFileDescriptor> } callback - Indicates the asynchronous callback used to return the raw file resource descriptor.
1713     * @syscap SystemCapability.Global.ResourceManager
1714     * @since 8
1715     * @deprecated since 9
1716     * @useinstead ohos.resourceManager.getRawFd
1717     */
1718    getRawFileDescriptor(path: string, callback: AsyncCallback<RawFileDescriptor>): void;
1719
1720    /**
1721     * Obtains the raw file resource descriptor corresponding to the specified resource path in Promise mode.
1722     *
1723     * @param { string } path - Indicates the resource relative path.
1724     * @returns { Promise<RawFileDescriptor> } The raw file resource descriptor corresponding to the specified resource path.
1725     * @syscap SystemCapability.Global.ResourceManager
1726     * @since 8
1727     * @deprecated since 9
1728     * @useinstead ohos.resourceManager.getRawFd
1729     */
1730    getRawFileDescriptor(path: string): Promise<RawFileDescriptor>;
1731
1732    /**
1733     * Obtains close raw file resource descriptor corresponding to the specified resource path in callback mode.
1734     *
1735     * @param { string } path - Indicates the resource relative path.
1736     * @param { AsyncCallback<void> } callback - Indicates the asynchronous callback used to return result close raw file resource descriptor.
1737     * @syscap SystemCapability.Global.ResourceManager
1738     * @since 8
1739     * @deprecated since 9
1740     * @useinstead ohos.resourceManager.closeRawFd
1741     */
1742    closeRawFileDescriptor(path: string, callback: AsyncCallback<void>): void;
1743
1744    /**
1745     * Obtains close raw file resource descriptor corresponding to the specified resource path in Promise mode.
1746     *
1747     * @param { string } path - Indicates the resource relative path.
1748     * @returns { Promise<void> } The result close raw file resource descriptor corresponding to the specified resource path.
1749     * @syscap SystemCapability.Global.ResourceManager
1750     * @since 8
1751     * @deprecated since 9
1752     * @useinstead ohos.resourceManager.closeRawFd
1753     */
1754    closeRawFileDescriptor(path: string): Promise<void>;
1755
1756    /**
1757     * Obtains the character string corresponding to a specified resource name in callback mode.
1758     *
1759     * @param { string } resName - Indicates the resource name.
1760     * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained character string.
1761     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
1762     * @throws { BusinessError } 9001003 - Invalid resource name.
1763     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
1764     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
1765     * @syscap SystemCapability.Global.ResourceManager
1766     * @since 9
1767     */
1768    /**
1769     * Obtains the character string corresponding to a specified resource name in callback mode.
1770     *
1771     * @param { string } resName - Indicates the resource name.
1772     * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained character string.
1773     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
1774     * @throws { BusinessError } 9001003 - Invalid resource name.
1775     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
1776     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
1777     * @syscap SystemCapability.Global.ResourceManager
1778     * @crossplatform
1779     * @since 10
1780     */
1781    /**
1782     * Obtains the character string corresponding to a specified resource name in callback mode.
1783     *
1784     * @param { string } resName - Indicates the resource name.
1785     * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained character string.
1786     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
1787     * @throws { BusinessError } 9001003 - Invalid resource name.
1788     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
1789     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
1790     * @syscap SystemCapability.Global.ResourceManager
1791     * @crossplatform
1792     * @atomicservice
1793     * @since 11
1794     */
1795    getStringByName(resName: string, callback: _AsyncCallback<string>): void;
1796
1797    /**
1798     * Obtains string resources associated with a specified resource name in Promise mode.
1799     *
1800     * @param { string } resName - Indicates the resource name.
1801     * @returns { Promise<string> } The character string corresponding to the resource name.
1802     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
1803     * @throws { BusinessError } 9001003 - Invalid resource name.
1804     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
1805     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
1806     * @syscap SystemCapability.Global.ResourceManager
1807     * @since 9
1808     */
1809    /**
1810     * Obtains string resources associated with a specified resource name in Promise mode.
1811     *
1812     * @param { string } resName - Indicates the resource name.
1813     * @returns { Promise<string> } The character string corresponding to the resource name.
1814     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
1815     * @throws { BusinessError } 9001003 - Invalid resource name.
1816     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
1817     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
1818     * @syscap SystemCapability.Global.ResourceManager
1819     * @crossplatform
1820     * @since 10
1821     */
1822    /**
1823     * Obtains string resources associated with a specified resource name in Promise mode.
1824     *
1825     * @param { string } resName - Indicates the resource name.
1826     * @returns { Promise<string> } The character string corresponding to the resource name.
1827     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
1828     * @throws { BusinessError } 9001003 - Invalid resource name.
1829     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
1830     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
1831     * @syscap SystemCapability.Global.ResourceManager
1832     * @crossplatform
1833     * @atomicservice
1834     * @since 11
1835     */
1836    getStringByName(resName: string): Promise<string>;
1837
1838    /**
1839     * Obtains the array of character strings corresponding to a specified resource name in callback mode.
1840     *
1841     * @param { string } resName - Indicates the resource name.
1842     * @param { _AsyncCallback<Array<string>> } callback - Indicates the asynchronous callback used to return the obtained array of character strings.
1843     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
1844     * @throws { BusinessError } 9001003 - Invalid resource name.
1845     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
1846     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
1847     * @syscap SystemCapability.Global.ResourceManager
1848     * @since 9
1849     */
1850    /**
1851     * Obtains the array of character strings corresponding to a specified resource name in callback mode.
1852     *
1853     * @param { string } resName - Indicates the resource name.
1854     * @param { _AsyncCallback<Array<string>> } callback - Indicates the asynchronous callback used to return the obtained array of character strings.
1855     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
1856     * @throws { BusinessError } 9001003 - Invalid resource name.
1857     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
1858     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
1859     * @syscap SystemCapability.Global.ResourceManager
1860     * @crossplatform
1861     * @since 10
1862     */
1863    /**
1864     * Obtains the array of character strings corresponding to a specified resource name in callback mode.
1865     *
1866     * @param { string } resName - Indicates the resource name.
1867     * @param { _AsyncCallback<Array<string>> } callback - Indicates the asynchronous callback used to return the obtained array of character strings.
1868     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
1869     * @throws { BusinessError } 9001003 - Invalid resource name.
1870     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
1871     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
1872     * @syscap SystemCapability.Global.ResourceManager
1873     * @crossplatform
1874     * @atomicservice
1875     * @since 11
1876     */
1877    getStringArrayByName(resName: string, callback: _AsyncCallback<Array<string>>): void;
1878
1879    /**
1880     * Obtains the array of character strings corresponding to a specified resource name in Promise mode.
1881     *
1882     * @param { string } resName - Indicates the resource name.
1883     * @returns { Promise<Array<string>> } the array of character strings corresponding to the specified resource name.
1884     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
1885     * @throws { BusinessError } 9001003 - Invalid resource name.
1886     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
1887     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
1888     * @syscap SystemCapability.Global.ResourceManager
1889     * @since 9
1890     */
1891    /**
1892     * Obtains the array of character strings corresponding to a specified resource name in Promise mode.
1893     *
1894     * @param { string } resName - Indicates the resource name.
1895     * @returns { Promise<Array<string>> } the array of character strings corresponding to the specified resource name.
1896     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
1897     * @throws { BusinessError } 9001003 - Invalid resource name.
1898     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
1899     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
1900     * @syscap SystemCapability.Global.ResourceManager
1901     * @crossplatform
1902     * @since 10
1903     */
1904    /**
1905     * Obtains the array of character strings corresponding to a specified resource name in Promise mode.
1906     *
1907     * @param { string } resName - Indicates the resource name.
1908     * @returns { Promise<Array<string>> } the array of character strings corresponding to the specified resource name.
1909     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
1910     * @throws { BusinessError } 9001003 - Invalid resource name.
1911     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
1912     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
1913     * @syscap SystemCapability.Global.ResourceManager
1914     * @crossplatform
1915     * @atomicservice
1916     * @since 11
1917     */
1918    getStringArrayByName(resName: string): Promise<Array<string>>;
1919
1920    /**
1921     * Obtains the content of the media file corresponding to a specified resource name in callback mode.
1922     *
1923     * @param { string } resName - Indicates the resource name.
1924     * @param { _AsyncCallback<Uint8Array> } callback - Indicates the asynchronous callback used to return the obtained media file content.
1925     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
1926     * @throws { BusinessError } 9001003 - Invalid resource name.
1927     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
1928     * @syscap SystemCapability.Global.ResourceManager
1929     * @since 9
1930     */
1931    /**
1932     * Obtains the content of the media file corresponding to a specified resource name in callback mode.
1933     *
1934     * @param { string } resName - Indicates the resource name.
1935     * @param { _AsyncCallback<Uint8Array> } callback - Indicates the asynchronous callback used to return the obtained media file content.
1936     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
1937     * @throws { BusinessError } 9001003 - Invalid resource name.
1938     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
1939     * @syscap SystemCapability.Global.ResourceManager
1940     * @crossplatform
1941     * @since 10
1942     */
1943    /**
1944     * Obtains the content of the media file corresponding to a specified resource name in callback mode.
1945     *
1946     * @param { string } resName - Indicates the resource name.
1947     * @param { _AsyncCallback<Uint8Array> } callback - Indicates the asynchronous callback used to return the obtained media file content.
1948     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
1949     * @throws { BusinessError } 9001003 - Invalid resource name.
1950     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
1951     * @syscap SystemCapability.Global.ResourceManager
1952     * @crossplatform
1953     * @atomicservice
1954     * @since 11
1955     */
1956    getMediaByName(resName: string, callback: _AsyncCallback<Uint8Array>): void;
1957
1958    /**
1959     * Obtains the content of the specified screen density media file corresponding to a specified resource name in callback mode.
1960     *
1961     * @param { string } resName - Indicates the resource name.
1962     * @param { number } density - The parameter ScreenDensity{@link ScreenDensity}, A value of 0 means
1963     *                 to use the density of current system dpi.
1964     * @param { _AsyncCallback<Uint8Array> } callback - Indicates the asynchronous callback used to return the obtained
1965     *                 specified screen density media file content.
1966     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.
1967     * @throws { BusinessError } 9001003 - Invalid resource name.
1968     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
1969     * @syscap SystemCapability.Global.ResourceManager
1970     * @since 10
1971     */
1972    /**
1973     * Obtains the content of the specified screen density media file corresponding to a specified resource name in callback mode.
1974     *
1975     * @param { string } resName - Indicates the resource name.
1976     * @param { number } density - The parameter ScreenDensity{@link ScreenDensity}, A value of 0 means
1977     *                 to use the density of current system dpi.
1978     * @param { _AsyncCallback<Uint8Array> } callback - Indicates the asynchronous callback used to return the obtained
1979     *                 specified screen density media file content.
1980     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.
1981     * @throws { BusinessError } 9001003 - Invalid resource name.
1982     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
1983     * @syscap SystemCapability.Global.ResourceManager
1984     * @crossplatform
1985     * @atomicservice
1986     * @since 11
1987     */
1988    getMediaByName(resName: string, density: number, callback: _AsyncCallback<Uint8Array>): void;
1989
1990    /**
1991     * Obtains the content of the media file corresponding to a specified resource name in Promise mode.
1992     *
1993     * @param { string } resName - Indicates the resource name.
1994     * @returns { Promise<Uint8Array> } The content of the media file corresponding to the specified resource name.
1995     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
1996     * @throws { BusinessError } 9001003 - Invalid resource name.
1997     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
1998     * @syscap SystemCapability.Global.ResourceManager
1999     * @since 9
2000     */
2001    /**
2002     * Obtains the content of the media file corresponding to a specified resource name in Promise mode.
2003     *
2004     * @param { string } resName - Indicates the resource name.
2005     * @returns { Promise<Uint8Array> } The content of the media file corresponding to the specified resource name.
2006     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2007     * @throws { BusinessError } 9001003 - Invalid resource name.
2008     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
2009     * @syscap SystemCapability.Global.ResourceManager
2010     * @crossplatform
2011     * @since 10
2012     */
2013    /**
2014     * Obtains the content of the media file corresponding to a specified resource name in Promise mode.
2015     *
2016     * @param { string } resName - Indicates the resource name.
2017     * @returns { Promise<Uint8Array> } The content of the media file corresponding to the specified resource name.
2018     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2019     * @throws { BusinessError } 9001003 - Invalid resource name.
2020     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
2021     * @syscap SystemCapability.Global.ResourceManager
2022     * @crossplatform
2023     * @atomicservice
2024     * @since 11
2025     */
2026    getMediaByName(resName: string): Promise<Uint8Array>;
2027
2028    /**
2029     * Obtains the content of the specified screen density media file corresponding to a specified resource name in Promise mode.
2030     *
2031     * @param { string } resName - Indicates the resource name.
2032     * @param { number } density - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means
2033     *                 to use the density of current system dpi.
2034     * @returns { Promise<Uint8Array> } The content of the specified screen density media file corresponding to the
2035     *                 specified resource name.
2036     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.
2037     * @throws { BusinessError } 9001003 - Invalid resource name.
2038     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
2039     * @syscap SystemCapability.Global.ResourceManager
2040     * @since 10
2041     */
2042    /**
2043     * Obtains the content of the specified screen density media file corresponding to a specified resource name in Promise mode.
2044     *
2045     * @param { string } resName - Indicates the resource name.
2046     * @param { number } density - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means
2047     *                 to use the density of current system dpi.
2048     * @returns { Promise<Uint8Array> } The content of the specified screen density media file corresponding to the
2049     *                 specified resource name.
2050     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.
2051     * @throws { BusinessError } 9001003 - Invalid resource name.
2052     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
2053     * @syscap SystemCapability.Global.ResourceManager
2054     * @crossplatform
2055     * @atomicservice
2056     * @since 11
2057     */
2058    getMediaByName(resName: string, density: number): Promise<Uint8Array>;
2059
2060    /**
2061     * Obtains the Base64 code of the image resource corresponding to the specified resource name in callback mode.
2062     *
2063     * @param { string } resName - Indicates the resource name.
2064     * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained Base64 code of the image
2065     *                 resource.
2066     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2067     * @throws { BusinessError } 9001003 - Invalid resource name.
2068     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
2069     * @syscap SystemCapability.Global.ResourceManager
2070     * @since 9
2071     */
2072    /**
2073     * Obtains the Base64 code of the image resource corresponding to the specified resource name in callback mode.
2074     *
2075     * @param { string } resName - Indicates the resource name.
2076     * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained Base64 code of the image
2077     *                 resource.
2078     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2079     * @throws { BusinessError } 9001003 - Invalid resource name.
2080     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
2081     * @syscap SystemCapability.Global.ResourceManager
2082     * @crossplatform
2083     * @since 10
2084     */
2085    /**
2086     * Obtains the Base64 code of the image resource corresponding to the specified resource name in callback mode.
2087     *
2088     * @param { string } resName - Indicates the resource name.
2089     * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained Base64 code of the image
2090     *                 resource.
2091     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2092     * @throws { BusinessError } 9001003 - Invalid resource name.
2093     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
2094     * @syscap SystemCapability.Global.ResourceManager
2095     * @crossplatform
2096     * @atomicservice
2097     * @since 11
2098     */
2099    getMediaBase64ByName(resName: string, callback: _AsyncCallback<string>): void;
2100
2101    /**
2102     * Obtains the Base64 code of the specified screen density image resource corresponding to the specified resource name in callback mode.
2103     *
2104     * @param { string } resName - Indicates the resource name.
2105     * @param { number } density - The parameter ScreenDensity{@link ScreenDensity}, A value of 0 means
2106     *                 to use the density of current system dpi.
2107     * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained Base64 code of the
2108     *                 specified screen density image resource.
2109     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.
2110     * @throws { BusinessError } 9001003 - Invalid resource name.
2111     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
2112     * @syscap SystemCapability.Global.ResourceManager
2113     * @since 10
2114     */
2115    /**
2116     * Obtains the Base64 code of the specified screen density image resource corresponding to the specified resource name in callback mode.
2117     *
2118     * @param { string } resName - Indicates the resource name.
2119     * @param { number } density - The parameter ScreenDensity{@link ScreenDensity}, A value of 0 means
2120     *                 to use the density of current system dpi.
2121     * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained Base64 code of the
2122     *                 specified screen density image resource.
2123     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.
2124     * @throws { BusinessError } 9001003 - Invalid resource name.
2125     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
2126     * @syscap SystemCapability.Global.ResourceManager
2127     * @crossplatform
2128     * @atomicservice
2129     * @since 11
2130     */
2131    getMediaBase64ByName(resName: string, density: number, callback: _AsyncCallback<string>): void;
2132
2133    /**
2134     * Obtains the Base64 code of the image resource corresponding to the specified resource name in Promise mode.
2135     *
2136     * @param { string } resName - Indicates the resource name.
2137     * @returns { Promise<string> } The Base64 code of the image resource corresponding to the specified resource name.
2138     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2139     * @throws { BusinessError } 9001003 - Invalid resource name.
2140     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
2141     * @syscap SystemCapability.Global.ResourceManager
2142     * @since 9
2143     */
2144    /**
2145     * Obtains the Base64 code of the image resource corresponding to the specified resource name in Promise mode.
2146     *
2147     * @param { string } resName - Indicates the resource name.
2148     * @returns { Promise<string> } The Base64 code of the image resource corresponding to the specified resource name.
2149     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2150     * @throws { BusinessError } 9001003 - Invalid resource name.
2151     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
2152     * @syscap SystemCapability.Global.ResourceManager
2153     * @crossplatform
2154     * @since 10
2155     */
2156    /**
2157     * Obtains the Base64 code of the image resource corresponding to the specified resource name in Promise mode.
2158     *
2159     * @param { string } resName - Indicates the resource name.
2160     * @returns { Promise<string> } The Base64 code of the image resource corresponding to the specified resource name.
2161     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2162     * @throws { BusinessError } 9001003 - Invalid resource name.
2163     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
2164     * @syscap SystemCapability.Global.ResourceManager
2165     * @crossplatform
2166     * @atomicservice
2167     * @since 11
2168     */
2169    getMediaBase64ByName(resName: string): Promise<string>;
2170
2171    /**
2172     * Obtains the Base64 code of the specified screen density image resource corresponding to the specified resource name in Promise mode.
2173     *
2174     * @param { string } resName - Indicates the resource name.
2175     * @param { number } density - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means
2176     *                 to use the density of current system dpi.
2177     * @returns { Promise<string> } The Base64 code of the specified screen density image resource corresponding to the specified resource name.
2178     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.
2179     * @throws { BusinessError } 9001003 - Invalid resource name.
2180     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
2181     * @syscap SystemCapability.Global.ResourceManager
2182     * @since 10
2183     */
2184    /**
2185     * Obtains the Base64 code of the specified screen density image resource corresponding to the specified resource name in Promise mode.
2186     *
2187     * @param { string } resName - Indicates the resource name.
2188     * @param { number } density - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means
2189     *                 to use the density of current system dpi.
2190     * @returns { Promise<string> } The Base64 code of the specified screen density image resource corresponding to the specified resource name.
2191     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.
2192     * @throws { BusinessError } 9001003 - Invalid resource name.
2193     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
2194     * @syscap SystemCapability.Global.ResourceManager
2195     * @crossplatform
2196     * @atomicservice
2197     * @since 11
2198     */
2199    getMediaBase64ByName(resName: string, density: number): Promise<string>;
2200
2201    /**
2202     * Obtains the singular-plural character string represented by the name string corresponding to the
2203     * specified number in callback mode.
2204     *
2205     * @param { string } resName - Indicates the resource name.
2206     * @param { number } num - Indicates the number.
2207     * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the singular-plural character
2208     *                 string represented by the name string corresponding to the specified number.
2209     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2210     * @throws { BusinessError } 9001003 - Invalid resource name.
2211     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
2212     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2213     * @syscap SystemCapability.Global.ResourceManager
2214     * @since 9
2215     */
2216    /**
2217     * Obtains the singular-plural character string represented by the name string corresponding to the
2218     * specified number in callback mode.
2219     *
2220     * @param { string } resName - Indicates the resource name.
2221     * @param { number } num - Indicates the number.
2222     * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the singular-plural character
2223     *                 string represented by the name string corresponding to the specified number.
2224     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2225     * @throws { BusinessError } 9001003 - Invalid resource name.
2226     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
2227     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2228     * @syscap SystemCapability.Global.ResourceManager
2229     * @crossplatform
2230     * @since 10
2231     */
2232    /**
2233     * Obtains the singular-plural character string represented by the name string corresponding to the
2234     * specified number in callback mode.
2235     *
2236     * @param { string } resName - Indicates the resource name.
2237     * @param { number } num - Indicates the number.
2238     * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the singular-plural character
2239     *                 string represented by the name string corresponding to the specified number.
2240     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2241     * @throws { BusinessError } 9001003 - Invalid resource name.
2242     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
2243     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2244     * @syscap SystemCapability.Global.ResourceManager
2245     * @crossplatform
2246     * @atomicservice
2247     * @since 11
2248     * @deprecated since 18
2249     * @useinstead ohos.resourceManager.getIntPluralStringByNameSync
2250     */
2251    getPluralStringByName(resName: string, num: number, callback: _AsyncCallback<string>): void;
2252
2253    /**
2254     * Obtains the singular-plural character string represented by the name string corresponding to
2255     * the specified number in Promise mode.
2256     *
2257     * @param { string } resName - Indicates the resource name.
2258     * @param { number } num - Indicates the number.
2259     * @returns { Promise<string> } the singular-plural character string represented by the name string
2260     *         corresponding to the specified number.
2261     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2262     * @throws { BusinessError } 9001003 - Invalid resource name.
2263     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
2264     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2265     * @syscap SystemCapability.Global.ResourceManager
2266     * @since 9
2267     */
2268    /**
2269     * Obtains the singular-plural character string represented by the name string corresponding to
2270     * the specified number in Promise mode.
2271     *
2272     * @param { string } resName - Indicates the resource name.
2273     * @param { number } num - Indicates the number.
2274     * @returns { Promise<string> } the singular-plural character string represented by the name string
2275     *         corresponding to the specified number.
2276     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2277     * @throws { BusinessError } 9001003 - Invalid resource name.
2278     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
2279     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2280     * @syscap SystemCapability.Global.ResourceManager
2281     * @crossplatform
2282     * @since 10
2283     */
2284    /**
2285     * Obtains the singular-plural character string represented by the name string corresponding to
2286     * the specified number in Promise mode.
2287     *
2288     * @param { string } resName - Indicates the resource name.
2289     * @param { number } num - Indicates the number.
2290     * @returns { Promise<string> } the singular-plural character string represented by the name string
2291     *         corresponding to the specified number.
2292     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2293     * @throws { BusinessError } 9001003 - Invalid resource name.
2294     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
2295     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2296     * @syscap SystemCapability.Global.ResourceManager
2297     * @crossplatform
2298     * @atomicservice
2299     * @since 11
2300     * @deprecated since 18
2301     * @useinstead ohos.resourceManager.getIntPluralStringByNameSync
2302     */
2303    getPluralStringByName(resName: string, num: number): Promise<string>;
2304
2305    /**
2306     * Obtains string resources associated with a specified resource ID.
2307     *
2308     * @param { number } resId - Indicates the resource ID.
2309     * @returns { string } The character string corresponding to the resource ID.
2310     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2311     * @throws { BusinessError } 9001001 - Invalid resource ID.
2312     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
2313     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2314     * @syscap SystemCapability.Global.ResourceManager
2315     * @since 9
2316     */
2317    /**
2318     * Obtains string resources associated with a specified resource ID.
2319     *
2320     * @param { number } resId - Indicates the resource ID.
2321     * @returns { string } The character string corresponding to the resource ID.
2322     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2323     * @throws { BusinessError } 9001001 - Invalid resource ID.
2324     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
2325     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2326     * @syscap SystemCapability.Global.ResourceManager
2327     * @crossplatform
2328     * @since 10
2329     */
2330    /**
2331     * Obtains string resources associated with a specified resource ID.
2332     *
2333     * @param { number } resId - Indicates the resource ID.
2334     * @returns { string } The character string corresponding to the resource ID.
2335     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2336     * @throws { BusinessError } 9001001 - Invalid resource ID.
2337     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
2338     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2339     * @syscap SystemCapability.Global.ResourceManager
2340     * @crossplatform
2341     * @atomicservice
2342     * @since 11
2343     */
2344    getStringSync(resId: number): string;
2345
2346    /**
2347     * Obtains string resources associated with a specified resource ID.
2348     *
2349     * @param { number } resId - Indicates the resource ID.
2350     * @param { Array<string | number> } args - Indicates the formatting string resource parameters.
2351     * @returns { string } The character string corresponding to the resource ID.
2352     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2353     * @throws { BusinessError } 9001001 - Invalid resource ID.
2354     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
2355     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2356     * @throws { BusinessError } 9001007 - Failed to format the resource obtained based on the resource ID.
2357     * @syscap SystemCapability.Global.ResourceManager
2358     * @crossplatform
2359     * @since 10
2360     */
2361    /**
2362     * Obtains string resources associated with a specified resource ID.
2363     *
2364     * @param { number } resId - Indicates the resource ID.
2365     * @param { Array<string | number> } args - Indicates the formatting string resource parameters.
2366     * @returns { string } The character string corresponding to the resource ID.
2367     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2368     * @throws { BusinessError } 9001001 - Invalid resource ID.
2369     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
2370     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2371     * @throws { BusinessError } 9001007 - Failed to format the resource obtained based on the resource ID.
2372     * @syscap SystemCapability.Global.ResourceManager
2373     * @crossplatform
2374     * @atomicservice
2375     * @since 11
2376     */
2377    getStringSync(resId: number, ...args: Array<string | number>): string;
2378
2379    /**
2380     * Obtains string resources associated with a specified resource object.
2381     *
2382     * @param { Resource } resource - Indicates the resource object.
2383     * @returns { string } The character string corresponding to the resource object.
2384     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2385     * @throws { BusinessError } 9001001 - Invalid resource ID.
2386     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
2387     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2388     * @syscap SystemCapability.Global.ResourceManager
2389     * @stagemodelonly
2390     * @since 9
2391     */
2392    /**
2393     * Obtains string resources associated with a specified resource object.
2394     *
2395     * @param { Resource } resource - Indicates the resource object.
2396     * @returns { string } The character string corresponding to the resource object.
2397     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2398     * @throws { BusinessError } 9001001 - Invalid resource ID.
2399     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
2400     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2401     * @syscap SystemCapability.Global.ResourceManager
2402     * @stagemodelonly
2403     * @crossplatform
2404     * @since 10
2405     */
2406    /**
2407     * Obtains string resources associated with a specified resource object.
2408     *
2409     * @param { Resource } resource - Indicates the resource object.
2410     * @returns { string } The character string corresponding to the resource object.
2411     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2412     * @throws { BusinessError } 9001001 - Invalid resource ID.
2413     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
2414     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2415     * @syscap SystemCapability.Global.ResourceManager
2416     * @stagemodelonly
2417     * @crossplatform
2418     * @atomicservice
2419     * @since 11
2420     */
2421    getStringSync(resource: Resource): string;
2422
2423    /**
2424     * Obtains string resources associated with a specified resource object.
2425     *
2426     * @param { Resource } resource - Indicates the resource object.
2427     * @param { Array<string | number> } args - Indicates the formatting string resource parameters.
2428     * @returns { string } The character string corresponding to the resource object.
2429     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2430     * @throws { BusinessError } 9001001 - Invalid resource ID.
2431     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
2432     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2433     * @throws { BusinessError } 9001007 - Failed to format the resource obtained based on the resource ID.
2434     * @syscap SystemCapability.Global.ResourceManager
2435     * @stagemodelonly
2436     * @crossplatform
2437     * @since 10
2438     */
2439    /**
2440     * Obtains string resources associated with a specified resource object.
2441     *
2442     * @param { Resource } resource - Indicates the resource object.
2443     * @param { Array<string | number> } args - Indicates the formatting string resource parameters.
2444     * @returns { string } The character string corresponding to the resource object.
2445     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2446     * @throws { BusinessError } 9001001 - Invalid resource ID.
2447     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
2448     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2449     * @throws { BusinessError } 9001007 - Failed to format the resource obtained based on the resource ID.
2450     * @syscap SystemCapability.Global.ResourceManager
2451     * @stagemodelonly
2452     * @crossplatform
2453     * @atomicservice
2454     * @since 11
2455     */
2456    getStringSync(resource: Resource, ...args: Array<string | number>): string;
2457
2458    /**
2459     * Obtains string resources associated with a specified resource name.
2460     *
2461     * @param { string } resName - Indicates the resource name.
2462     * @returns { string } The character string corresponding to the resource name.
2463     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2464     * @throws { BusinessError } 9001003 - Invalid resource name.
2465     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
2466     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2467     * @syscap SystemCapability.Global.ResourceManager
2468     * @since 9
2469     */
2470    /**
2471     * Obtains string resources associated with a specified resource name.
2472     *
2473     * @param { string } resName - Indicates the resource name.
2474     * @returns { string } The character string corresponding to the resource name.
2475     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2476     * @throws { BusinessError } 9001003 - Invalid resource name.
2477     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
2478     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2479     * @syscap SystemCapability.Global.ResourceManager
2480     * @crossplatform
2481     * @since 10
2482     */
2483    /**
2484     * Obtains string resources associated with a specified resource name.
2485     *
2486     * @param { string } resName - Indicates the resource name.
2487     * @returns { string } The character string corresponding to the resource name.
2488     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2489     * @throws { BusinessError } 9001003 - Invalid resource name.
2490     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
2491     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2492     * @syscap SystemCapability.Global.ResourceManager
2493     * @crossplatform
2494     * @atomicservice
2495     * @since 11
2496     */
2497    getStringByNameSync(resName: string): string;
2498
2499    /**
2500     * Obtains string resources associated with a specified resource name.
2501     *
2502     * @param { string } resName - Indicates the resource name.
2503     * @param { Array<string | number> } args - Indicates the formatting string resource parameters.
2504     * @returns { string } The character string corresponding to the resource name.
2505     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2506     * @throws { BusinessError } 9001003 - Invalid resource name.
2507     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
2508     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2509     * @throws { BusinessError } 9001008 - Failed to format the resource obtained based on the resource Name.
2510     * @syscap SystemCapability.Global.ResourceManager
2511     * @crossplatform
2512     * @since 10
2513     */
2514    /**
2515     * Obtains string resources associated with a specified resource name.
2516     *
2517     * @param { string } resName - Indicates the resource name.
2518     * @param { Array<string | number> } args - Indicates the formatting string resource parameters.
2519     * @returns { string } The character string corresponding to the resource name.
2520     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2521     * @throws { BusinessError } 9001003 - Invalid resource name.
2522     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
2523     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2524     * @throws { BusinessError } 9001008 - Failed to format the resource obtained based on the resource Name.
2525     * @syscap SystemCapability.Global.ResourceManager
2526     * @crossplatform
2527     * @atomicservice
2528     * @since 11
2529     */
2530    getStringByNameSync(resName: string, ...args: Array<string | number>): string;
2531
2532    /**
2533     * Obtains the boolean result with a specified resource ID.
2534     *
2535     * @param { number } resId - Indicates the resource ID.
2536     * @returns { boolean } The boolean resource corresponding to the resource ID.
2537     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2538     * @throws { BusinessError } 9001001 - Invalid resource ID.
2539     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
2540     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2541     * @syscap SystemCapability.Global.ResourceManager
2542     * @since 9
2543     */
2544    /**
2545     * Obtains the boolean result with a specified resource ID.
2546     *
2547     * @param { number } resId - Indicates the resource ID.
2548     * @returns { boolean } The boolean resource corresponding to the resource ID.
2549     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2550     * @throws { BusinessError } 9001001 - Invalid resource ID.
2551     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
2552     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2553     * @syscap SystemCapability.Global.ResourceManager
2554     * @crossplatform
2555     * @since 10
2556     */
2557    /**
2558     * Obtains the boolean result with a specified resource ID.
2559     *
2560     * @param { number } resId - Indicates the resource ID.
2561     * @returns { boolean } The boolean resource corresponding to the resource ID.
2562     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2563     * @throws { BusinessError } 9001001 - Invalid resource ID.
2564     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
2565     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2566     * @syscap SystemCapability.Global.ResourceManager
2567     * @crossplatform
2568     * @atomicservice
2569     * @since 11
2570     */
2571    getBoolean(resId: number): boolean;
2572
2573    /**
2574     * Obtains the boolean result with a specified resource object.
2575     *
2576     * @param { Resource } resource - Indicates the resource object.
2577     * @returns { boolean } The boolean resource corresponding to the resource object.
2578     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2579     * @throws { BusinessError } 9001001 - Invalid resource ID.
2580     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
2581     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2582     * @syscap SystemCapability.Global.ResourceManager
2583     * @stagemodelonly
2584     * @since 9
2585     */
2586    /**
2587     * Obtains the boolean result with a specified resource object.
2588     *
2589     * @param { Resource } resource - Indicates the resource object.
2590     * @returns { boolean } The boolean resource corresponding to the resource object.
2591     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2592     * @throws { BusinessError } 9001001 - Invalid resource ID.
2593     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
2594     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2595     * @syscap SystemCapability.Global.ResourceManager
2596     * @stagemodelonly
2597     * @crossplatform
2598     * @since 10
2599     */
2600    /**
2601     * Obtains the boolean result with a specified resource object.
2602     *
2603     * @param { Resource } resource - Indicates the resource object.
2604     * @returns { boolean } The boolean resource corresponding to the resource object.
2605     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2606     * @throws { BusinessError } 9001001 - Invalid resource ID.
2607     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
2608     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2609     * @syscap SystemCapability.Global.ResourceManager
2610     * @stagemodelonly
2611     * @crossplatform
2612     * @atomicservice
2613     * @since 11
2614     */
2615    getBoolean(resource: Resource): boolean;
2616
2617    /**
2618     * Obtains the boolean result with a specified resource name.
2619     *
2620     * @param { string } resName - Indicates the resource name.
2621     * @returns { boolean } The boolean resource corresponding to the resource name.
2622     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2623     * @throws { BusinessError } 9001003 - Invalid resource name.
2624     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
2625     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2626     * @syscap SystemCapability.Global.ResourceManager
2627     * @since 9
2628     */
2629    /**
2630     * Obtains the boolean result with a specified resource name.
2631     *
2632     * @param { string } resName - Indicates the resource name.
2633     * @returns { boolean } The boolean resource corresponding to the resource name.
2634     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2635     * @throws { BusinessError } 9001003 - Invalid resource name.
2636     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
2637     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2638     * @syscap SystemCapability.Global.ResourceManager
2639     * @crossplatform
2640     * @since 10
2641     */
2642    /**
2643     * Obtains the boolean result with a specified resource name.
2644     *
2645     * @param { string } resName - Indicates the resource name.
2646     * @returns { boolean } The boolean resource corresponding to the resource name.
2647     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2648     * @throws { BusinessError } 9001003 - Invalid resource name.
2649     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
2650     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2651     * @syscap SystemCapability.Global.ResourceManager
2652     * @crossplatform
2653     * @atomicservice
2654     * @since 11
2655     */
2656    getBooleanByName(resName: string): boolean;
2657
2658    /**
2659     * Obtains the number result with a specified resource ID.
2660     *
2661     * @param { number } resId - Indicates the resource ID.
2662     * @returns { number } The number resource corresponding to the resource ID.
2663     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2664     * @throws { BusinessError } 9001001 - Invalid resource ID.
2665     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
2666     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2667     * @syscap SystemCapability.Global.ResourceManager
2668     * @since 9
2669     */
2670    /**
2671     * Obtains the number result with a specified resource ID.
2672     *
2673     * @param { number } resId - Indicates the resource ID.
2674     * @returns { number } The number resource corresponding to the resource ID.
2675     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2676     * @throws { BusinessError } 9001001 - Invalid resource ID.
2677     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
2678     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2679     * @syscap SystemCapability.Global.ResourceManager
2680     * @crossplatform
2681     * @since 10
2682     */
2683    /**
2684     * Obtains the number result with a specified resource ID.
2685     *
2686     * @param { number } resId - Indicates the resource ID.
2687     * @returns { number } The number resource corresponding to the resource ID.
2688     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2689     * @throws { BusinessError } 9001001 - Invalid resource ID.
2690     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
2691     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2692     * @syscap SystemCapability.Global.ResourceManager
2693     * @crossplatform
2694     * @atomicservice
2695     * @since 11
2696     */
2697    getNumber(resId: number): number;
2698
2699    /**
2700     * Obtains the number result with a specified resource object.
2701     *
2702     * @param { Resource } resource - Indicates the resource object.
2703     * @returns { number } The number resource corresponding to the resource object.
2704     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2705     * @throws { BusinessError } 9001001 - Invalid resource ID.
2706     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
2707     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2708     * @syscap SystemCapability.Global.ResourceManager
2709     * @stagemodelonly
2710     * @since 9
2711     */
2712    /**
2713     * Obtains the number result with a specified resource object.
2714     *
2715     * @param { Resource } resource - Indicates the resource object.
2716     * @returns { number } The number resource corresponding to the resource object.
2717     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2718     * @throws { BusinessError } 9001001 - Invalid resource ID.
2719     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
2720     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2721     * @syscap SystemCapability.Global.ResourceManager
2722     * @stagemodelonly
2723     * @crossplatform
2724     * @since 10
2725     */
2726    /**
2727     * Obtains the number result with a specified resource object.
2728     *
2729     * @param { Resource } resource - Indicates the resource object.
2730     * @returns { number } The number resource corresponding to the resource object.
2731     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2732     * @throws { BusinessError } 9001001 - Invalid resource ID.
2733     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
2734     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2735     * @syscap SystemCapability.Global.ResourceManager
2736     * @stagemodelonly
2737     * @crossplatform
2738     * @atomicservice
2739     * @since 11
2740     */
2741    getNumber(resource: Resource): number;
2742
2743    /**
2744     * Obtains the number result with a specified resource name.
2745     *
2746     * @param { string } resName - Indicates the resource name.
2747     * @returns { number } The number resource corresponding to the resource name.
2748     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2749     * @throws { BusinessError } 9001003 - Invalid resource name.
2750     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
2751     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2752     * @syscap SystemCapability.Global.ResourceManager
2753     * @since 9
2754     */
2755    /**
2756     * Obtains the number result with a specified resource name.
2757     *
2758     * @param { string } resName - Indicates the resource name.
2759     * @returns { number } The number resource corresponding to the resource name.
2760     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2761     * @throws { BusinessError } 9001003 - Invalid resource name.
2762     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
2763     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2764     * @syscap SystemCapability.Global.ResourceManager
2765     * @crossplatform
2766     * @since 10
2767     */
2768    /**
2769     * Obtains the number result with a specified resource name.
2770     *
2771     * @param { string } resName - Indicates the resource name.
2772     * @returns { number } The number resource corresponding to the resource name.
2773     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2774     * @throws { BusinessError } 9001003 - Invalid resource name.
2775     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
2776     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2777     * @syscap SystemCapability.Global.ResourceManager
2778     * @crossplatform
2779     * @atomicservice
2780     * @since 11
2781     */
2782    getNumberByName(resName: string): number;
2783
2784    /**
2785     * Obtains release resourceManager.
2786     *
2787     * @syscap SystemCapability.Global.ResourceManager
2788     * @since 7
2789     */
2790    /**
2791     * Obtains release resourceManager.
2792     *
2793     * @syscap SystemCapability.Global.ResourceManager
2794     * @crossplatform
2795     * @since 10
2796     */
2797    /**
2798     * Obtains release resourceManager.
2799     *
2800     * @syscap SystemCapability.Global.ResourceManager
2801     * @crossplatform
2802     * @atomicservice
2803     * @since 11
2804     * @deprecated since 12
2805     */
2806    release();
2807
2808    /**
2809     * Obtains the character string corresponding to a specified resource ID in callback mode.
2810     *
2811     * @param { number } resId - Indicates the resource ID.
2812     * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained character string.
2813     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2814     * @throws { BusinessError } 9001001 - Invalid resource ID.
2815     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
2816     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2817     * @syscap SystemCapability.Global.ResourceManager
2818     * @since 9
2819     */
2820    /**
2821     * Obtains the character string corresponding to a specified resource ID in callback mode.
2822     *
2823     * @param { number } resId - Indicates the resource ID.
2824     * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained character string.
2825     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2826     * @throws { BusinessError } 9001001 - Invalid resource ID.
2827     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
2828     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2829     * @syscap SystemCapability.Global.ResourceManager
2830     * @crossplatform
2831     * @since 10
2832     */
2833    /**
2834     * Obtains the character string corresponding to a specified resource ID in callback mode.
2835     *
2836     * @param { number } resId - Indicates the resource ID.
2837     * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained character string.
2838     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2839     * @throws { BusinessError } 9001001 - Invalid resource ID.
2840     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
2841     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2842     * @syscap SystemCapability.Global.ResourceManager
2843     * @crossplatform
2844     * @atomicservice
2845     * @since 11
2846     */
2847    getStringValue(resId: number, callback: _AsyncCallback<string>): void;
2848
2849    /**
2850     * Obtains string resources associated with a specified resource ID in Promise mode.
2851     *
2852     * @param { number } resId - Indicates the resource ID.
2853     * @returns { Promise<string> } The character string corresponding to the resource ID.
2854     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2855     * @throws { BusinessError } 9001001 - Invalid resource ID.
2856     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
2857     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2858     * @syscap SystemCapability.Global.ResourceManager
2859     * @since 9
2860     */
2861    /**
2862     * Obtains string resources associated with a specified resource ID in Promise mode.
2863     *
2864     * @param { number } resId - Indicates the resource ID.
2865     * @returns { Promise<string> } The character string corresponding to the resource ID.
2866     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2867     * @throws { BusinessError } 9001001 - Invalid resource ID.
2868     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
2869     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2870     * @syscap SystemCapability.Global.ResourceManager
2871     * @crossplatform
2872     * @since 10
2873     */
2874    /**
2875     * Obtains string resources associated with a specified resource ID in Promise mode.
2876     *
2877     * @param { number } resId - Indicates the resource ID.
2878     * @returns { Promise<string> } The character string corresponding to the resource ID.
2879     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2880     * @throws { BusinessError } 9001001 - Invalid resource ID.
2881     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
2882     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2883     * @syscap SystemCapability.Global.ResourceManager
2884     * @crossplatform
2885     * @atomicservice
2886     * @since 11
2887     */
2888    getStringValue(resId: number): Promise<string>;
2889
2890    /**
2891     * Obtains the array of character strings corresponding to a specified resource ID in callback mode.
2892     *
2893     * @param { number } resId - Indicates the resource ID.
2894     * @param { _AsyncCallback<Array<string>> } callback - Indicates the asynchronous callback used to return the obtained array of character strings.
2895     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2896     * @throws { BusinessError } 9001001 - Invalid resource ID.
2897     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
2898     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2899     * @syscap SystemCapability.Global.ResourceManager
2900     * @since 9
2901     */
2902    /**
2903     * Obtains the array of character strings corresponding to a specified resource ID in callback mode.
2904     *
2905     * @param { number } resId - Indicates the resource ID.
2906     * @param { _AsyncCallback<Array<string>> } callback - Indicates the asynchronous callback used to return the obtained array of character strings.
2907     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2908     * @throws { BusinessError } 9001001 - Invalid resource ID.
2909     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
2910     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2911     * @syscap SystemCapability.Global.ResourceManager
2912     * @crossplatform
2913     * @since 10
2914     */
2915    /**
2916     * Obtains the array of character strings corresponding to a specified resource ID in callback mode.
2917     *
2918     * @param { number } resId - Indicates the resource ID.
2919     * @param { _AsyncCallback<Array<string>> } callback - Indicates the asynchronous callback used to return the obtained array of character strings.
2920     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2921     * @throws { BusinessError } 9001001 - Invalid resource ID.
2922     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
2923     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2924     * @syscap SystemCapability.Global.ResourceManager
2925     * @crossplatform
2926     * @atomicservice
2927     * @since 11
2928     */
2929    getStringArrayValue(resId: number, callback: _AsyncCallback<Array<string>>): void;
2930
2931    /**
2932     * Obtains the array of character strings corresponding to a specified resource ID in Promise mode.
2933     *
2934     * @param { number } resId - Indicates the resource ID.
2935     * @returns { Promise<Array<string>> } The array of character strings corresponding to the specified resource ID.
2936     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2937     * @throws { BusinessError } 9001001 - Invalid resource ID.
2938     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
2939     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2940     * @syscap SystemCapability.Global.ResourceManager
2941     * @since 9
2942     */
2943    /**
2944     * Obtains the array of character strings corresponding to a specified resource ID in Promise mode.
2945     *
2946     * @param { number } resId - Indicates the resource ID.
2947     * @returns { Promise<Array<string>> } The array of character strings corresponding to the specified resource ID.
2948     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2949     * @throws { BusinessError } 9001001 - Invalid resource ID.
2950     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
2951     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2952     * @syscap SystemCapability.Global.ResourceManager
2953     * @crossplatform
2954     * @since 10
2955     */
2956    /**
2957     * Obtains the array of character strings corresponding to a specified resource ID in Promise mode.
2958     *
2959     * @param { number } resId - Indicates the resource ID.
2960     * @returns { Promise<Array<string>> } The array of character strings corresponding to the specified resource ID.
2961     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2962     * @throws { BusinessError } 9001001 - Invalid resource ID.
2963     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
2964     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2965     * @syscap SystemCapability.Global.ResourceManager
2966     * @crossplatform
2967     * @atomicservice
2968     * @since 11
2969     */
2970    getStringArrayValue(resId: number): Promise<Array<string>>;
2971
2972    /**
2973     * Obtains the singular-plural character string represented by the ID string corresponding to the
2974     * specified number in callback mode.
2975     *
2976     * @param { number } resId - Indicates the resource ID.
2977     * @param { number } num - Indicates the number.
2978     * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the singular-plural character
2979     *                 string represented by the ID string corresponding to the specified number.
2980     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2981     * @throws { BusinessError } 9001001 - Invalid resource ID.
2982     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
2983     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2984     * @syscap SystemCapability.Global.ResourceManager
2985     * @since 9
2986     */
2987    /**
2988     * Obtains the singular-plural character string represented by the ID string corresponding to the
2989     * specified number in callback mode.
2990     *
2991     * @param { number } resId - Indicates the resource ID.
2992     * @param { number } num - Indicates the number.
2993     * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the singular-plural character
2994     *                 string represented by the ID string corresponding to the specified number.
2995     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
2996     * @throws { BusinessError } 9001001 - Invalid resource ID.
2997     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
2998     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
2999     * @syscap SystemCapability.Global.ResourceManager
3000     * @crossplatform
3001     * @since 10
3002     */
3003    /**
3004     * Obtains the singular-plural character string represented by the ID string corresponding to the
3005     * specified number in callback mode.
3006     *
3007     * @param { number } resId - Indicates the resource ID.
3008     * @param { number } num - Indicates the number.
3009     * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the singular-plural character
3010     *                 string represented by the ID string corresponding to the specified number.
3011     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
3012     * @throws { BusinessError } 9001001 - Invalid resource ID.
3013     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
3014     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
3015     * @syscap SystemCapability.Global.ResourceManager
3016     * @crossplatform
3017     * @atomicservice
3018     * @since 11
3019     * @deprecated since 18
3020     * @useinstead ohos.resourceManager.getIntPluralStringValueSync
3021     */
3022    getPluralStringValue(resId: number, num: number, callback: _AsyncCallback<string>): void;
3023
3024    /**
3025     * Obtains the singular-plural character string represented by the ID string corresponding to
3026     * the specified number in Promise mode.
3027     *
3028     * @param { number } resId - Indicates the resource ID.
3029     * @param { number } num - Indicates the number.
3030     * @returns { Promise<string> } The singular-plural character string represented by the ID string
3031     *         corresponding to the specified number.
3032     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
3033     * @throws { BusinessError } 9001001 - Invalid resource ID.
3034     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
3035     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
3036     * @syscap SystemCapability.Global.ResourceManager
3037     * @since 9
3038     */
3039    /**
3040     * Obtains the singular-plural character string represented by the ID string corresponding to
3041     * the specified number in Promise mode.
3042     *
3043     * @param { number } resId - Indicates the resource ID.
3044     * @param { number } num - Indicates the number.
3045     * @returns { Promise<string> } The singular-plural character string represented by the ID string
3046     *         corresponding to the specified number.
3047     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
3048     * @throws { BusinessError } 9001001 - Invalid resource ID.
3049     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
3050     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
3051     * @syscap SystemCapability.Global.ResourceManager
3052     * @crossplatform
3053     * @since 10
3054     */
3055    /**
3056     * Obtains the singular-plural character string represented by the ID string corresponding to
3057     * the specified number in Promise mode.
3058     *
3059     * @param { number } resId - Indicates the resource ID.
3060     * @param { number } num - Indicates the number.
3061     * @returns { Promise<string> } The singular-plural character string represented by the ID string
3062     *         corresponding to the specified number.
3063     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
3064     * @throws { BusinessError } 9001001 - Invalid resource ID.
3065     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
3066     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
3067     * @syscap SystemCapability.Global.ResourceManager
3068     * @crossplatform
3069     * @atomicservice
3070     * @since 11
3071     * @deprecated since 18
3072     * @useinstead ohos.resourceManager.getIntPluralStringValueSync
3073     */
3074    getPluralStringValue(resId: number, num: number): Promise<string>;
3075
3076    /**
3077     * Obtains the singular-plural character string represented by the ID string corresponding to
3078     * the specified number.
3079     *
3080     * @param { number } resId - Indicates the resource ID.
3081     * @param { number } num - An integer used to get the correct string for the current plural rules.
3082     * @param { Array<string | number> } args - Indicates the formatting string resource parameters.
3083     * @returns { string } The singular-plural character string represented by the ID string
3084     *         corresponding to the specified number.
3085     * @throws { BusinessError } 9001001 - Invalid resource ID.
3086     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
3087     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
3088     * @throws { BusinessError } 9001007 - Failed to format the resource obtained based on the resource ID.
3089     * @syscap SystemCapability.Global.ResourceManager
3090     * @crossplatform
3091     * @atomicservice
3092     * @since 18
3093     */
3094    getIntPluralStringValueSync(resId: number, num: number, ...args: Array<string | number>): string;
3095
3096    /**
3097     * Obtains the singular-plural character string represented by the resource object string corresponding to the
3098     * specified number.
3099     *
3100     * @param { Resource } resource - Indicates the resource object.
3101     * @param { number } num - An integer used to get the correct string for the current plural rules.
3102     * @param { Array<string | number> } args - Indicates the formatting string resource parameters.
3103     * @returns { string } The singular-plural character string represented by the ID string
3104     *         corresponding to the specified number.
3105     * @throws { BusinessError } 9001001 - Invalid resource ID.
3106     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
3107     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
3108     * @throws { BusinessError } 9001007 - Failed to format the resource obtained based on the resource ID.
3109     * @syscap SystemCapability.Global.ResourceManager
3110     * @stagemodelonly
3111     * @crossplatform
3112     * @atomicservice
3113     * @since 18
3114     */
3115    getIntPluralStringValueSync(resource: Resource, num: number, ...args: Array<string | number>): string;
3116
3117    /**
3118     * Obtains the singular-plural character string represented by the name string corresponding to
3119     * the specified number.
3120     *
3121     * @param { string } resName - Indicates the resource name.
3122     * @param { number } num - An integer used to get the correct string for the current plural rules.
3123     * @param { Array<string | number> } args - Indicates the formatting string resource parameters.
3124     * @returns { string } The singular-plural character string represented by the name string
3125     *         corresponding to the specified number.
3126     * @throws { BusinessError } 9001003 - Invalid resource name.
3127     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
3128     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
3129     * @throws { BusinessError } 9001008 - Failed to format the resource obtained based on the resource name.
3130     * @syscap SystemCapability.Global.ResourceManager
3131     * @crossplatform
3132     * @atomicservice
3133     * @since 18
3134     */
3135    getIntPluralStringByNameSync(resName: string, num: number, ...args: Array<string | number>): string;
3136
3137    /**
3138     * Obtains the singular-plural character string represented by the ID string corresponding to
3139     * the specified number.
3140     *
3141     * @param { number } resId - Indicates the resource ID.
3142     * @param { number } num - A double parameter used to get the correct string for the current plural rules.
3143     * @param { Array<string | number> } args - Indicates the formatting string resource parameters.
3144     * @returns { string } The singular-plural character string represented by the ID string
3145     *         corresponding to the specified number.
3146     * @throws { BusinessError } 9001001 - Invalid resource ID.
3147     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
3148     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
3149     * @throws { BusinessError } 9001007 - Failed to format the resource obtained based on the resource ID.
3150     * @syscap SystemCapability.Global.ResourceManager
3151     * @crossplatform
3152     * @atomicservice
3153     * @since 18
3154     */
3155    getDoublePluralStringValueSync(resId: number, num: number, ...args: Array<string | number>): string;
3156
3157    /**
3158     * Obtains the singular-plural character string represented by the resource object string corresponding to the
3159     * specified number.
3160     *
3161     * @param { Resource } resource - Indicates the resource object.
3162     * @param { number } num - A double parameter used to get the correct string for the current plural rules.
3163     * @param { Array<string | number> } args - Indicates the formatting string resource parameters.
3164     * @returns { string } The singular-plural character string represented by the ID string
3165     *         corresponding to the specified number.
3166     * @throws { BusinessError } 9001001 - Invalid resource ID.
3167     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
3168     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
3169     * @throws { BusinessError } 9001007 - Failed to format the resource obtained based on the resource ID.
3170     * @syscap SystemCapability.Global.ResourceManager
3171     * @stagemodelonly
3172     * @crossplatform
3173     * @atomicservice
3174     * @since 18
3175     */
3176    getDoublePluralStringValueSync(resource: Resource, num: number, ...args: Array<string | number>): string;
3177
3178    /**
3179     * Obtains the singular-plural character string represented by the name string corresponding to
3180     * the specified number.
3181     *
3182     * @param { string } resName - Indicates the resource name.
3183     * @param { number } num - A double parameter used to get the correct string for the current plural rules.
3184     * @param { Array<string | number> } args - Indicates the formatting string resource parameters.
3185     * @returns { string } The singular-plural character string represented by the name string
3186     *         corresponding to the specified number.
3187     * @throws { BusinessError } 9001003 - Invalid resource name.
3188     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
3189     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
3190     * @throws { BusinessError } 9001008 - Failed to format the resource obtained based on the resource name.
3191     * @syscap SystemCapability.Global.ResourceManager
3192     * @crossplatform
3193     * @atomicservice
3194     * @since 18
3195     */
3196    getDoublePluralStringByNameSync(resName: string, num: number, ...args: Array<string | number>): string;
3197
3198    /**
3199     * Obtains the content of the media file corresponding to a specified resource ID in callback mode.
3200     *
3201     * @param { number } resId - Indicates the resource ID.
3202     * @param { _AsyncCallback<Uint8Array> } callback - Indicates the asynchronous callback used to return the obtained media file content.
3203     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
3204     * @throws { BusinessError } 9001001 - Invalid resource ID.
3205     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
3206     * @syscap SystemCapability.Global.ResourceManager
3207     * @since 9
3208     */
3209    /**
3210     * Obtains the content of the media file corresponding to a specified resource ID in callback mode.
3211     *
3212     * @param { number } resId - Indicates the resource ID.
3213     * @param { _AsyncCallback<Uint8Array> } callback - Indicates the asynchronous callback used to return the obtained media file content.
3214     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
3215     * @throws { BusinessError } 9001001 - Invalid resource ID.
3216     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
3217     * @syscap SystemCapability.Global.ResourceManager
3218     * @crossplatform
3219     * @since 10
3220     */
3221    /**
3222     * Obtains the content of the media file corresponding to a specified resource ID in callback mode.
3223     *
3224     * @param { number } resId - Indicates the resource ID.
3225     * @param { _AsyncCallback<Uint8Array> } callback - Indicates the asynchronous callback used to return the obtained media file content.
3226     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
3227     * @throws { BusinessError } 9001001 - Invalid resource ID.
3228     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
3229     * @syscap SystemCapability.Global.ResourceManager
3230     * @crossplatform
3231     * @atomicservice
3232     * @since 11
3233     */
3234    getMediaContent(resId: number, callback: _AsyncCallback<Uint8Array>): void;
3235
3236    /**
3237     * Obtains the content of the specified screen density media file corresponding to a specified resource ID in callback mode.
3238     *
3239     * @param { number } resId - Indicates the resource ID.
3240     * @param { number } density - The parameter ScreenDensity{@link ScreenDensity}, A value of 0 means
3241     *                 to use the density of current system dpi.
3242     * @param { _AsyncCallback<Uint8Array> } callback - Indicates the asynchronous callback used to return the obtained
3243     *                 specified screen density media file content.
3244     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.
3245     * @throws { BusinessError } 9001001 - Invalid resource ID.
3246     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
3247     * @syscap SystemCapability.Global.ResourceManager
3248     * @since 10
3249     */
3250    /**
3251     * Obtains the content of the specified screen density media file corresponding to a specified resource ID in callback mode.
3252     *
3253     * @param { number } resId - Indicates the resource ID.
3254     * @param { number } density - The parameter ScreenDensity{@link ScreenDensity}, A value of 0 means
3255     *                 to use the density of current system dpi.
3256     * @param { _AsyncCallback<Uint8Array> } callback - Indicates the asynchronous callback used to return the obtained
3257     *                 specified screen density media file content.
3258     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.
3259     * @throws { BusinessError } 9001001 - Invalid resource ID.
3260     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
3261     * @syscap SystemCapability.Global.ResourceManager
3262     * @crossplatform
3263     * @atomicservice
3264     * @since 11
3265     */
3266    getMediaContent(resId: number, density: number, callback: _AsyncCallback<Uint8Array>): void;
3267
3268    /**
3269     * Obtains the content of the media file corresponding to a specified resource ID in Promise mode.
3270     *
3271     * @param { number } resId - Indicates the resource ID.
3272     * @returns { Promise<Uint8Array> } The content of the media file corresponding to the specified resource ID.
3273     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
3274     * @throws { BusinessError } 9001001 - Invalid resource ID.
3275     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
3276     * @syscap SystemCapability.Global.ResourceManager
3277     * @since 9
3278     */
3279    /**
3280     * Obtains the content of the media file corresponding to a specified resource ID in Promise mode.
3281     *
3282     * @param { number } resId - Indicates the resource ID.
3283     * @returns { Promise<Uint8Array> } The content of the media file corresponding to the specified resource ID.
3284     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
3285     * @throws { BusinessError } 9001001 - Invalid resource ID.
3286     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
3287     * @syscap SystemCapability.Global.ResourceManager
3288     * @crossplatform
3289     * @since 10
3290     */
3291    /**
3292     * Obtains the content of the media file corresponding to a specified resource ID in Promise mode.
3293     *
3294     * @param { number } resId - Indicates the resource ID.
3295     * @returns { Promise<Uint8Array> } The content of the media file corresponding to the specified resource ID.
3296     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
3297     * @throws { BusinessError } 9001001 - Invalid resource ID.
3298     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
3299     * @syscap SystemCapability.Global.ResourceManager
3300     * @crossplatform
3301     * @atomicservice
3302     * @since 11
3303     */
3304    getMediaContent(resId: number): Promise<Uint8Array>;
3305
3306    /**
3307     * Obtains the content of the specified screen density media file corresponding to a specified resource ID in Promise mode.
3308     *
3309     * @param { number } resId - Indicates the resource ID.
3310     * @param { number } density - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means
3311     *                 to use the density of current system dpi.
3312     * @returns { Promise<Uint8Array> } The content of the specified screen density media file corresponding to the specified resource ID.
3313     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.
3314     * @throws { BusinessError } 9001001 - Invalid resource ID.
3315     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
3316     * @syscap SystemCapability.Global.ResourceManager
3317     * @since 10
3318     */
3319    /**
3320     * Obtains the content of the specified screen density media file corresponding to a specified resource ID in Promise mode.
3321     *
3322     * @param { number } resId - Indicates the resource ID.
3323     * @param { number } density - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means
3324     *                 to use the density of current system dpi.
3325     * @returns { Promise<Uint8Array> } The content of the specified screen density media file corresponding to the specified resource ID.
3326     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.
3327     * @throws { BusinessError } 9001001 - Invalid resource ID.
3328     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
3329     * @syscap SystemCapability.Global.ResourceManager
3330     * @crossplatform
3331     * @atomicservice
3332     * @since 11
3333     */
3334    getMediaContent(resId: number, density: number): Promise<Uint8Array>;
3335
3336    /**
3337     * Obtains the Base64 code of the image resource corresponding to the specified resource ID in callback mode.
3338     *
3339     * @param { number } resId - Indicates the resource ID.
3340     * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained Base64 code of the image
3341     *                 resource.
3342     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
3343     * @throws { BusinessError } 9001001 - Invalid resource ID.
3344     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
3345     * @syscap SystemCapability.Global.ResourceManager
3346     * @since 9
3347     */
3348    /**
3349     * Obtains the Base64 code of the image resource corresponding to the specified resource ID in callback mode.
3350     *
3351     * @param { number } resId - Indicates the resource ID.
3352     * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained Base64 code of the image
3353     *                 resource.
3354     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
3355     * @throws { BusinessError } 9001001 - Invalid resource ID.
3356     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
3357     * @syscap SystemCapability.Global.ResourceManager
3358     * @crossplatform
3359     * @since 10
3360     */
3361    /**
3362     * Obtains the Base64 code of the image resource corresponding to the specified resource ID in callback mode.
3363     *
3364     * @param { number } resId - Indicates the resource ID.
3365     * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained Base64 code of the image
3366     *                 resource.
3367     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
3368     * @throws { BusinessError } 9001001 - Invalid resource ID.
3369     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
3370     * @syscap SystemCapability.Global.ResourceManager
3371     * @crossplatform
3372     * @atomicservice
3373     * @since 11
3374     */
3375    getMediaContentBase64(resId: number, callback: _AsyncCallback<string>): void;
3376
3377    /**
3378     * Obtains the Base64 code of the specified screen density image resource corresponding to the specified resource ID in callback mode.
3379     *
3380     * @param { number } resId - Indicates the resource ID.
3381     * @param { number } density - The parameter ScreenDensity{@link ScreenDensity}, A value of 0 means
3382     *                 to use the density of current system dpi.
3383     * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained Base64 code of the
3384     *                 specified screen density image resource.
3385     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.
3386     * @throws { BusinessError } 9001001 - Invalid resource ID.
3387     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
3388     * @syscap SystemCapability.Global.ResourceManager
3389     * @since 10
3390     */
3391    /**
3392     * Obtains the Base64 code of the specified screen density image resource corresponding to the specified resource ID in callback mode.
3393     *
3394     * @param { number } resId - Indicates the resource ID.
3395     * @param { number } density - The parameter ScreenDensity{@link ScreenDensity}, A value of 0 means
3396     *                 to use the density of current system dpi.
3397     * @param { _AsyncCallback<string> } callback - Indicates the asynchronous callback used to return the obtained Base64 code of the
3398     *                 specified screen density image resource.
3399     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.
3400     * @throws { BusinessError } 9001001 - Invalid resource ID.
3401     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
3402     * @syscap SystemCapability.Global.ResourceManager
3403     * @crossplatform
3404     * @atomicservice
3405     * @since 11
3406     */
3407    getMediaContentBase64(resId: number, density: number, callback: _AsyncCallback<string>): void;
3408
3409    /**
3410     * Obtains the Base64 code of the image resource corresponding to the specified resource ID in Promise mode.
3411     *
3412     * @param { number } resId - Indicates the resource ID.
3413     * @returns { Promise<string> } the Base64 code of the image resource corresponding to the specified resource ID.
3414     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
3415     * @throws { BusinessError } 9001001 - Invalid resource ID.
3416     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
3417     * @syscap SystemCapability.Global.ResourceManager
3418     * @since 9
3419     */
3420    /**
3421     * Obtains the Base64 code of the image resource corresponding to the specified resource ID in Promise mode.
3422     *
3423     * @param { number } resId - Indicates the resource ID.
3424     * @returns { Promise<string> } the Base64 code of the image resource corresponding to the specified resource ID.
3425     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
3426     * @throws { BusinessError } 9001001 - Invalid resource ID.
3427     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
3428     * @syscap SystemCapability.Global.ResourceManager
3429     * @crossplatform
3430     * @since 10
3431     */
3432    /**
3433     * Obtains the Base64 code of the image resource corresponding to the specified resource ID in Promise mode.
3434     *
3435     * @param { number } resId - Indicates the resource ID.
3436     * @returns { Promise<string> } the Base64 code of the image resource corresponding to the specified resource ID.
3437     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
3438     * @throws { BusinessError } 9001001 - Invalid resource ID.
3439     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
3440     * @syscap SystemCapability.Global.ResourceManager
3441     * @crossplatform
3442     * @atomicservice
3443     * @since 11
3444     */
3445    getMediaContentBase64(resId: number): Promise<string>;
3446
3447    /**
3448     * Obtains the Base64 code of the specified screen density image resource corresponding to the specified resource ID in Promise mode.
3449     *
3450     * @param { number } resId - Indicates the resource ID.
3451     * @param { number } density - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means
3452     *                 to use the density of current system dpi.
3453     * @returns { Promise<string> } the Base64 code of the specified screen density image resource corresponding to the specified resource ID.
3454     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.
3455     * @throws { BusinessError } 9001001 - Invalid resource ID.
3456     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
3457     * @syscap SystemCapability.Global.ResourceManager
3458     * @since 10
3459     */
3460    /**
3461     * Obtains the Base64 code of the specified screen density image resource corresponding to the specified resource ID in Promise mode.
3462     *
3463     * @param { number } resId - Indicates the resource ID.
3464     * @param { number } density - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means
3465     *                 to use the density of current system dpi.
3466     * @returns { Promise<string> } the Base64 code of the specified screen density image resource corresponding to the specified resource ID.
3467     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.
3468     * @throws { BusinessError } 9001001 - Invalid resource ID.
3469     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
3470     * @syscap SystemCapability.Global.ResourceManager
3471     * @crossplatform
3472     * @atomicservice
3473     * @since 11
3474     */
3475    getMediaContentBase64(resId: number, density: number): Promise<string>;
3476
3477    /**
3478     * Obtains the raw file resource corresponding to the specified resource path in callback mode.
3479     *
3480     * @param { string } path - Indicates the resource relative path.
3481     * @param { _AsyncCallback<Uint8Array> } callback - Indicates the asynchronous callback used to return the raw file resource.
3482     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
3483     * @throws { BusinessError } 9001005 - Invalid relative path.
3484     * @syscap SystemCapability.Global.ResourceManager
3485     * @since 9
3486     */
3487    /**
3488     * Obtains the raw file resource corresponding to the specified resource path in callback mode.
3489     *
3490     * @param { string } path - Indicates the resource relative path.
3491     * @param { _AsyncCallback<Uint8Array> } callback - Indicates the asynchronous callback used to return the raw file resource.
3492     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
3493     * @throws { BusinessError } 9001005 - Invalid relative path.
3494     * @syscap SystemCapability.Global.ResourceManager
3495     * @crossplatform
3496     * @since 10
3497     */
3498    /**
3499     * Obtains the raw file resource corresponding to the specified resource path in callback mode.
3500     *
3501     * @param { string } path - Indicates the resource relative path.
3502     * @param { _AsyncCallback<Uint8Array> } callback - Indicates the asynchronous callback used to return the raw file resource.
3503     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
3504     * @throws { BusinessError } 9001005 - Invalid relative path.
3505     * @syscap SystemCapability.Global.ResourceManager
3506     * @crossplatform
3507     * @atomicservice
3508     * @since 11
3509     */
3510    getRawFileContent(path: string, callback: _AsyncCallback<Uint8Array>): void;
3511
3512    /**
3513     * Obtains the raw file resource corresponding to the specified resource path in Promise mode.
3514     *
3515     * @param { string } path - Indicates the resource relative path.
3516     * @returns { Promise<Uint8Array> } the raw file resource corresponding to the specified resource path.
3517     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
3518     * @throws { BusinessError } 9001005 - Invalid relative path.
3519     * @syscap SystemCapability.Global.ResourceManager
3520     * @since 9
3521     */
3522    /**
3523     * Obtains the raw file resource corresponding to the specified resource path in Promise mode.
3524     *
3525     * @param { string } path - Indicates the resource relative path.
3526     * @returns { Promise<Uint8Array> } the raw file resource corresponding to the specified resource path.
3527     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
3528     * @throws { BusinessError } 9001005 - Invalid relative path.
3529     * @syscap SystemCapability.Global.ResourceManager
3530     * @crossplatform
3531     * @since 10
3532     */
3533    /**
3534     * Obtains the raw file resource corresponding to the specified resource path in Promise mode.
3535     *
3536     * @param { string } path - Indicates the resource relative path.
3537     * @returns { Promise<Uint8Array> } the raw file resource corresponding to the specified resource path.
3538     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
3539     * @throws { BusinessError } 9001005 - Invalid relative path.
3540     * @syscap SystemCapability.Global.ResourceManager
3541     * @crossplatform
3542     * @atomicservice
3543     * @since 11
3544     */
3545    getRawFileContent(path: string): Promise<Uint8Array>;
3546
3547    /**
3548     * Obtains the raw file resource descriptor corresponding to the specified resource path in callback mode.
3549     *
3550     * @param { string } path - Indicates the resource relative path.
3551     * @param { _AsyncCallback<RawFileDescriptor> } callback - Indicates the asynchronous callback used to return the raw file resource descriptor.
3552     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
3553     * @throws { BusinessError } 9001005 - Invalid relative path.
3554     * @syscap SystemCapability.Global.ResourceManager
3555     * @since 9
3556     */
3557    /**
3558     * Obtains the raw file resource descriptor corresponding to the specified resource path in callback mode.
3559     *
3560     * @param { string } path - Indicates the resource relative path.
3561     * @param { _AsyncCallback<RawFileDescriptor> } callback - Indicates the asynchronous callback used to return the raw file resource descriptor.
3562     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
3563     * @throws { BusinessError } 9001005 - Invalid relative path.
3564     * @syscap SystemCapability.Global.ResourceManager
3565     * @crossplatform
3566     * @since 10
3567     */
3568    /**
3569     * Obtains the raw file resource descriptor corresponding to the specified resource path in callback mode.
3570     *
3571     * @param { string } path - Indicates the resource relative path.
3572     * @param { _AsyncCallback<RawFileDescriptor> } callback - Indicates the asynchronous callback used to return the raw file resource descriptor.
3573     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
3574     * @throws { BusinessError } 9001005 - Invalid relative path.
3575     * @syscap SystemCapability.Global.ResourceManager
3576     * @crossplatform
3577     * @atomicservice
3578     * @since 11
3579     */
3580    getRawFd(path: string, callback: _AsyncCallback<RawFileDescriptor>): void;
3581
3582    /**
3583     * Obtains the raw file resource descriptor corresponding to the specified resource path in Promise mode.
3584     *
3585     * @param { string } path - Indicates the resource relative path.
3586     * @returns { Promise<RawFileDescriptor> } The raw file resource descriptor corresponding to the specified resource path.
3587     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
3588     * @throws { BusinessError } 9001005 - Invalid relative path.
3589     * @syscap SystemCapability.Global.ResourceManager
3590     * @since 9
3591     */
3592    /**
3593     * Obtains the raw file resource descriptor corresponding to the specified resource path in Promise mode.
3594     *
3595     * @param { string } path - Indicates the resource relative path.
3596     * @returns { Promise<RawFileDescriptor> } The raw file resource descriptor corresponding to the specified resource path.
3597     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
3598     * @throws { BusinessError } 9001005 - Invalid relative path.
3599     * @syscap SystemCapability.Global.ResourceManager
3600     * @crossplatform
3601     * @since 10
3602     */
3603    /**
3604     * Obtains the raw file resource descriptor corresponding to the specified resource path in Promise mode.
3605     *
3606     * @param { string } path - Indicates the resource relative path.
3607     * @returns { Promise<RawFileDescriptor> } The raw file resource descriptor corresponding to the specified resource path.
3608     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
3609     * @throws { BusinessError } 9001005 - Invalid relative path.
3610     * @syscap SystemCapability.Global.ResourceManager
3611     * @crossplatform
3612     * @atomicservice
3613     * @since 11
3614     */
3615    getRawFd(path: string): Promise<RawFileDescriptor>;
3616
3617    /**
3618     * Obtains close raw file resource descriptor corresponding to the specified resource path in callback mode.
3619     *
3620     * @param { string } path - Indicates the resource relative path.
3621     * @param { _AsyncCallback<void> } callback - Indicates the asynchronous callback used to return result close raw file resource descriptor.
3622     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
3623     * @throws { BusinessError } 9001005 - Invalid relative path.
3624     * @syscap SystemCapability.Global.ResourceManager
3625     * @since 9
3626     */
3627    /**
3628     * Obtains close raw file resource descriptor corresponding to the specified resource path in callback mode.
3629     *
3630     * @param { string } path - Indicates the resource relative path.
3631     * @param { _AsyncCallback<void> } callback - Indicates the asynchronous callback used to return result close raw file resource descriptor.
3632     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
3633     * @throws { BusinessError } 9001005 - Invalid relative path.
3634     * @syscap SystemCapability.Global.ResourceManager
3635     * @crossplatform
3636     * @since 10
3637     */
3638    /**
3639     * Obtains close raw file resource descriptor corresponding to the specified resource path in callback mode.
3640     *
3641     * @param { string } path - Indicates the resource relative path.
3642     * @param { _AsyncCallback<void> } callback - Indicates the asynchronous callback used to return result close raw file resource descriptor.
3643     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
3644     * @throws { BusinessError } 9001005 - Invalid relative path.
3645     * @syscap SystemCapability.Global.ResourceManager
3646     * @crossplatform
3647     * @atomicservice
3648     * @since 11
3649     */
3650    closeRawFd(path: string, callback: _AsyncCallback<void>): void;
3651
3652    /**
3653     * Obtains close raw file resource descriptor corresponding to the specified resource path in Promise mode.
3654     *
3655     * @param { string } path - Indicates the resource relative path.
3656     * @returns { Promise<void> } The result close raw file resource descriptor corresponding to the specified resource path.
3657     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
3658     * @throws { BusinessError } 9001005 - Invalid relative path.
3659     * @syscap SystemCapability.Global.ResourceManager
3660     * @since 9
3661     */
3662    /**
3663     * Obtains close raw file resource descriptor corresponding to the specified resource path in Promise mode.
3664     *
3665     * @param { string } path - Indicates the resource relative path.
3666     * @returns { Promise<void> } The result close raw file resource descriptor corresponding to the specified resource path.
3667     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
3668     * @throws { BusinessError } 9001005 - Invalid relative path.
3669     * @syscap SystemCapability.Global.ResourceManager
3670     * @crossplatform
3671     * @since 10
3672     */
3673    /**
3674     * Obtains close raw file resource descriptor corresponding to the specified resource path in Promise mode.
3675     *
3676     * @param { string } path - Indicates the resource relative path.
3677     * @returns { Promise<void> } The result close raw file resource descriptor corresponding to the specified resource path.
3678     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
3679     * @throws { BusinessError } 9001005 - Invalid relative path.
3680     * @syscap SystemCapability.Global.ResourceManager
3681     * @crossplatform
3682     * @atomicservice
3683     * @since 11
3684     */
3685    closeRawFd(path: string): Promise<void>;
3686
3687    /**
3688     * Obtains the DrawableDescriptor of the media file corresponding to a specified resource ID.
3689     *
3690     * @param { number } resId - Indicates the resource ID.
3691     * @param { number } [density] - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means
3692     *                to use the density of current system dpi.
3693     * @returns { DrawableDescriptor } The DrawableDescriptor class to get drawable image.
3694     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.
3695     * @throws { BusinessError } 9001001 - Invalid resource ID.
3696     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
3697     * @syscap SystemCapability.Global.ResourceManager
3698     * @since 10
3699     */
3700    /**
3701     * Obtains the DrawableDescriptor of the media file corresponding to a specified resource ID.
3702     *
3703     * @param { number } resId - Indicates the resource ID.
3704     * @param { number } [density] - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means
3705     *             to use the density of current system dpi.
3706     * @param { number } [type] - The optional parameter means the media type, the default value 0 means
3707     *             the normal media.
3708     * @returns { DrawableDescriptor } The DrawableDescriptor class to get drawable image.
3709     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.
3710     * @throws { BusinessError } 9001001 - Invalid resource ID.
3711     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
3712     * @syscap SystemCapability.Global.ResourceManager
3713     * @atomicservice
3714     * @since 11
3715     */
3716    /**
3717     * Obtains the DrawableDescriptor of the media file corresponding to a specified resource ID.
3718     *
3719     * @param { number } resId - Indicates the resource ID.
3720     * @param { number } [density] - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means
3721     *             to use the density of current system dpi.
3722     * @param { number } [type] - The optional parameter means the media type, the default value 0 means
3723     *             the normal media.
3724     * @returns { DrawableDescriptor } The DrawableDescriptor class to get drawable image.
3725     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.
3726     * @throws { BusinessError } 9001001 - Invalid resource ID.
3727     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
3728     * @syscap SystemCapability.Global.ResourceManager
3729     * @crossplatform
3730     * @atomicservice
3731     * @since 12
3732     */
3733    getDrawableDescriptor(resId: number, density?: number, type?: number): DrawableDescriptor;
3734
3735    /**
3736     * Obtains the DrawableDescriptor of the media file corresponding to a specified resource Name.
3737     *
3738     * @param { string } resName - Indicates the resource name.
3739     * @param { number } [density] - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means
3740     *             to use the density of current system dpi.
3741     * @returns { DrawableDescriptor } The DrawableDescriptor class to get drawable image.
3742     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.
3743     * @throws { BusinessError } 9001003 - Invalid resource name.
3744     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
3745     * @syscap SystemCapability.Global.ResourceManager
3746     * @since 10
3747     */
3748    /**
3749     * Obtains the DrawableDescriptor of the media file corresponding to a specified resource Name.
3750     *
3751     * @param { string } resName - Indicates the resource name.
3752     * @param { number } [density] - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means
3753     *             to use the density of current system dpi.
3754     * @param { number } [type] - The optional parameter means the media type, the default value 0 means
3755     *             the normal media.
3756     * @returns { DrawableDescriptor } The DrawableDescriptor class to get drawable image.
3757     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.
3758     * @throws { BusinessError } 9001003 - Invalid resource name.
3759     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
3760     * @syscap SystemCapability.Global.ResourceManager
3761     * @atomicservice
3762     * @since 11
3763     */
3764    /**
3765     * Obtains the DrawableDescriptor of the media file corresponding to a specified resource Name.
3766     *
3767     * @param { string } resName - Indicates the resource name.
3768     * @param { number } [density] - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means
3769     *             to use the density of current system dpi.
3770     * @param { number } [type] - The optional parameter means the media type, the default value 0 means
3771     *             the normal media.
3772     * @returns { DrawableDescriptor } The DrawableDescriptor class to get drawable image.
3773     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.
3774     * @throws { BusinessError } 9001003 - Invalid resource name.
3775     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
3776     * @syscap SystemCapability.Global.ResourceManager
3777     * @crossplatform
3778     * @atomicservice
3779     * @since 12
3780     */
3781    getDrawableDescriptorByName(resName: string, density?: number, type?: number): DrawableDescriptor;
3782
3783    /**
3784     * Obtains the DrawableDescriptor of the media file corresponding to a specified resource.
3785     *
3786     * @param { Resource } resource - Indicates the resource object.
3787     * @param { number } [density] - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means
3788     *             to use the density of current system dpi.
3789     * @returns { DrawableDescriptor } The DrawableDescriptor class to get drawable image.
3790     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.
3791     * @throws { BusinessError } 9001001 - Invalid resource ID.
3792     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
3793     * @syscap SystemCapability.Global.ResourceManager
3794     * @stagemodelonly
3795     * @since 10
3796     */
3797    /**
3798     * Obtains the DrawableDescriptor of the media file corresponding to a specified resource.
3799     *
3800     * @param { Resource } resource - Indicates the resource object.
3801     * @param { number } [density] - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means
3802     *             to use the density of current system dpi.
3803     * @param { number } [type] - The optional parameter means the media type, the default value 0 means
3804     *             the normal media.
3805     * @returns { DrawableDescriptor } The DrawableDescriptor class to get drawable image.
3806     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.
3807     * @throws { BusinessError } 9001001 - Invalid resource ID.
3808     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
3809     * @syscap SystemCapability.Global.ResourceManager
3810     * @stagemodelonly
3811     * @atomicservice
3812     * @since 11
3813     */
3814    /**
3815     * Obtains the DrawableDescriptor of the media file corresponding to a specified resource.
3816     *
3817     * @param { Resource } resource - Indicates the resource object.
3818     * @param { number } [density] - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means
3819     *             to use the density of current system dpi.
3820     * @param { number } [type] - The optional parameter means the media type, the default value 0 means
3821     *             the normal media.
3822     * @returns { DrawableDescriptor } The DrawableDescriptor class to get drawable image.
3823     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.
3824     * @throws { BusinessError } 9001001 - Invalid resource ID.
3825     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
3826     * @syscap SystemCapability.Global.ResourceManager
3827     * @stagemodelonly
3828     * @crossplatform
3829     * @atomicservice
3830     * @since 12
3831     */
3832    getDrawableDescriptor(resource: Resource, density?: number, type?: number): DrawableDescriptor;
3833
3834    /**
3835     * Obtains the rawfile resource list corresponding to the specified resource path in callback mode.
3836     *
3837     * @param { string } path - Indicates the resource relative path.
3838     * @param { _AsyncCallback<Array<string>> } callback - Indicates the asynchronous callback used to return the raw file list.
3839     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
3840     * @throws { BusinessError } 9001005 - Invalid relative path.
3841     * @syscap SystemCapability.Global.ResourceManager
3842     * @since 10
3843     */
3844    /**
3845     * Obtains the rawfile resource list corresponding to the specified resource path in callback mode.
3846     *
3847     * @param { string } path - Indicates the resource relative path.
3848     * @param { _AsyncCallback<Array<string>> } callback - Indicates the asynchronous callback used to return the raw file list.
3849     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
3850     * @throws { BusinessError } 9001005 - Invalid relative path.
3851     * @syscap SystemCapability.Global.ResourceManager
3852     * @crossplatform
3853     * @atomicservice
3854     * @since 11
3855     */
3856    getRawFileList(path: string, callback: _AsyncCallback<Array<string>>): void;
3857
3858    /**
3859     * Obtains the rawfile resource list corresponding to the specified resource path in Promise mode.
3860     *
3861     * @param { string } path - Indicates the resource relative path.
3862     * @returns { Promise<Array<string>> } The rawfile list corresponding to the specified resource path.
3863     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
3864     * @throws { BusinessError } 9001005 - Invalid relative path.
3865     * @syscap SystemCapability.Global.ResourceManager
3866     * @since 10
3867     */
3868    /**
3869     * Obtains the rawfile resource list corresponding to the specified resource path in Promise mode.
3870     *
3871     * @param { string } path - Indicates the resource relative path.
3872     * @returns { Promise<Array<string>> } The rawfile list corresponding to the specified resource path.
3873     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
3874     * @throws { BusinessError } 9001005 - Invalid relative path.
3875     * @syscap SystemCapability.Global.ResourceManager
3876     * @crossplatform
3877     * @atomicservice
3878     * @since 11
3879     */
3880    getRawFileList(path: string): Promise<Array<string>>;
3881
3882    /**
3883     * Obtains the color resource corresponding to the specified resource ID in callback mode.
3884     *
3885     * @param { number } resId - Indicates the resource ID.
3886     * @param { _AsyncCallback<number> } callback - Indicates the asynchronous callback used to
3887     *     return the integer reference value representing the color data.
3888     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
3889     * @throws { BusinessError } 9001001 - Invalid resource ID.
3890     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
3891     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
3892     * @syscap SystemCapability.Global.ResourceManager
3893     * @since 10
3894     */
3895    /**
3896     * Obtains the color resource corresponding to the specified resource ID in callback mode.
3897     *
3898     * @param { number } resId - Indicates the resource ID.
3899     * @param { _AsyncCallback<number> } callback - Indicates the asynchronous callback used to
3900     *     return the integer reference value representing the color data.
3901     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
3902     * @throws { BusinessError } 9001001 - Invalid resource ID.
3903     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
3904     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
3905     * @syscap SystemCapability.Global.ResourceManager
3906     * @crossplatform
3907     * @atomicservice
3908     * @since 11
3909     */
3910    getColor(resId: number, callback: _AsyncCallback<number>): void;
3911
3912    /**
3913     * Obtains the color resource corresponding to the specified resource ID in promise mode.
3914     *
3915     * @param { number } resId - Indicates the resource ID.
3916     * @returns { Promise<number> } Indicates return the integer reference value representing the color data.
3917     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
3918     * @throws { BusinessError } 9001001 - Invalid resource ID.
3919     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
3920     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
3921     * @syscap SystemCapability.Global.ResourceManager
3922     * @since 10
3923     */
3924    /**
3925     * Obtains the color resource corresponding to the specified resource ID in promise mode.
3926     *
3927     * @param { number } resId - Indicates the resource ID.
3928     * @returns { Promise<number> } Indicates return the integer reference value representing the color data.
3929     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
3930     * @throws { BusinessError } 9001001 - Invalid resource ID.
3931     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
3932     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
3933     * @syscap SystemCapability.Global.ResourceManager
3934     * @crossplatform
3935     * @atomicservice
3936     * @since 11
3937     */
3938    getColor(resId: number): Promise<number>;
3939
3940    /**
3941     * Obtains the color resource corresponding to the specified resource object in callback mode.
3942     *
3943     * @param { Resource } resource - Indicates the resource object.
3944     * @param { _AsyncCallback<number> } callback - Indicates the asynchronous callback used to
3945     *     return the integer reference value representing the color data.
3946     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
3947     * @throws { BusinessError } 9001001 - Invalid resource ID.
3948     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
3949     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
3950     * @syscap SystemCapability.Global.ResourceManager
3951     * @stagemodelonly
3952     * @since 10
3953     */
3954    /**
3955     * Obtains the color resource corresponding to the specified resource object in callback mode.
3956     *
3957     * @param { Resource } resource - Indicates the resource object.
3958     * @param { _AsyncCallback<number> } callback - Indicates the asynchronous callback used to
3959     *     return the integer reference value representing the color data.
3960     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
3961     * @throws { BusinessError } 9001001 - Invalid resource ID.
3962     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
3963     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
3964     * @syscap SystemCapability.Global.ResourceManager
3965     * @stagemodelonly
3966     * @crossplatform
3967     * @atomicservice
3968     * @since 11
3969     */
3970    getColor(resource: Resource, callback: _AsyncCallback<number>): void;
3971
3972    /**
3973     * Obtains the color resource corresponding to the specified resource object in promise mode.
3974     *
3975     * @param { Resource } resource - Indicates the resource object.
3976     * @returns { Promise<number> } Indicates return the integer reference value representing the color data.
3977     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
3978     * @throws { BusinessError } 9001001 - Invalid resource ID.
3979     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
3980     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
3981     * @syscap SystemCapability.Global.ResourceManager
3982     * @stagemodelonly
3983     * @since 10
3984     */
3985    /**
3986     * Obtains the color resource corresponding to the specified resource object in promise mode.
3987     *
3988     * @param { Resource } resource - Indicates the resource object.
3989     * @returns { Promise<number> } Indicates return the integer reference value representing the color data.
3990     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
3991     * @throws { BusinessError } 9001001 - Invalid resource ID.
3992     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
3993     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
3994     * @syscap SystemCapability.Global.ResourceManager
3995     * @stagemodelonly
3996     * @crossplatform
3997     * @atomicservice
3998     * @since 11
3999     */
4000    getColor(resource: Resource): Promise<number>;
4001
4002    /**
4003     * Obtains the color resource corresponding to the specified resource object in callback mode.
4004     *
4005     * @param { string } resName - Indicates the resource name.
4006     * @param { _AsyncCallback<number> } callback - Indicates the asynchronous callback used to
4007     *     return the integer reference value representing the color data.
4008     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
4009     * @throws { BusinessError } 9001003 - Invalid resource name.
4010     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
4011     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
4012     * @syscap SystemCapability.Global.ResourceManager
4013     * @since 10
4014     */
4015    /**
4016     * Obtains the color resource corresponding to the specified resource object in callback mode.
4017     *
4018     * @param { string } resName - Indicates the resource name.
4019     * @param { _AsyncCallback<number> } callback - Indicates the asynchronous callback used to
4020     *     return the integer reference value representing the color data.
4021     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
4022     * @throws { BusinessError } 9001003 - Invalid resource name.
4023     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
4024     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
4025     * @syscap SystemCapability.Global.ResourceManager
4026     * @crossplatform
4027     * @atomicservice
4028     * @since 11
4029     */
4030    getColorByName(resName: string, callback: _AsyncCallback<number>): void;
4031
4032    /**
4033     * Obtains the color resource corresponding to the specified resource object in promise mode.
4034     *
4035     * @param { string } resName - Indicates the resource name.
4036     * @returns { Promise<number> } Indicates return the integer reference value representing the color data.
4037     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
4038     * @throws { BusinessError } 9001003 - Invalid resource name.
4039     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
4040     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
4041     * @syscap SystemCapability.Global.ResourceManager
4042     * @since 10
4043     */
4044    /**
4045     * Obtains the color resource corresponding to the specified resource object in promise mode.
4046     *
4047     * @param { string } resName - Indicates the resource name.
4048     * @returns { Promise<number> } Indicates return the integer reference value representing the color data.
4049     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
4050     * @throws { BusinessError } 9001003 - Invalid resource name.
4051     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
4052     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
4053     * @syscap SystemCapability.Global.ResourceManager
4054     * @crossplatform
4055     * @atomicservice
4056     * @since 11
4057     */
4058    getColorByName(resName: string): Promise<number>;
4059
4060    /**
4061     * Obtains the color resource corresponding to the specified resource ID.
4062     *
4063     * @param { number } resId - Indicates the resource ID.
4064     * @returns { number } Indicates the integer reference value representing the color data.
4065     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
4066     * @throws { BusinessError } 9001001 - Invalid resource ID.
4067     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
4068     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
4069     * @syscap SystemCapability.Global.ResourceManager
4070     * @since 10
4071     */
4072    /**
4073     * Obtains the color resource corresponding to the specified resource ID.
4074     *
4075     * @param { number } resId - Indicates the resource ID.
4076     * @returns { number } Indicates the integer reference value representing the color data.
4077     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
4078     * @throws { BusinessError } 9001001 - Invalid resource ID.
4079     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
4080     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
4081     * @syscap SystemCapability.Global.ResourceManager
4082     * @crossplatform
4083     * @atomicservice
4084     * @since 11
4085     */
4086    getColorSync(resId: number) : number;
4087
4088    /**
4089     * Obtains the color resource corresponding to the specified resource object.
4090     *
4091     * @param { Resource } resource - Indicates the resource object.
4092     * @returns { number } Indicates the integer reference value representing the color data.
4093     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
4094     * @throws { BusinessError } 9001001 - Invalid resource ID.
4095     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
4096     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
4097     * @syscap SystemCapability.Global.ResourceManager
4098     * @stagemodelonly
4099     * @since 10
4100     */
4101    /**
4102     * Obtains the color resource corresponding to the specified resource object.
4103     *
4104     * @param { Resource } resource - Indicates the resource object.
4105     * @returns { number } Indicates the integer reference value representing the color data.
4106     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
4107     * @throws { BusinessError } 9001001 - Invalid resource ID.
4108     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
4109     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
4110     * @syscap SystemCapability.Global.ResourceManager
4111     * @stagemodelonly
4112     * @crossplatform
4113     * @atomicservice
4114     * @since 11
4115     */
4116    getColorSync(resource: Resource) : number;
4117
4118    /**
4119     * Obtains the color resource corresponding to the specified resource name.
4120     *
4121     * @param { string } resName - Indicates the resource name.
4122     * @returns { number } Indicates the integer reference value representing the color data.
4123     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
4124     * @throws { BusinessError } 9001003 - Invalid resource name.
4125     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
4126     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
4127     * @syscap SystemCapability.Global.ResourceManager
4128     * @since 10
4129     */
4130    /**
4131     * Obtains the color resource corresponding to the specified resource name.
4132     *
4133     * @param { string } resName - Indicates the resource name.
4134     * @returns { number } Indicates the integer reference value representing the color data.
4135     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
4136     * @throws { BusinessError } 9001003 - Invalid resource name.
4137     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
4138     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
4139     * @syscap SystemCapability.Global.ResourceManager
4140     * @crossplatform
4141     * @atomicservice
4142     * @since 11
4143     */
4144    getColorByNameSync(resName: string) : number;
4145
4146    /**
4147     * Add overlay resources during application runtime.
4148     *
4149     * @param { string } path - Indicates the application overlay path.
4150     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
4151     * @throws { BusinessError } 9001010 - Invalid overlay path.
4152     * @syscap SystemCapability.Global.ResourceManager
4153     * @since 10
4154     */
4155    /**
4156     * Add overlay resources during application runtime.
4157     *
4158     * @param { string } path - Indicates the application overlay path.
4159     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
4160     * @throws { BusinessError } 9001010 - Invalid overlay path.
4161     * @syscap SystemCapability.Global.ResourceManager
4162     * @crossplatform
4163     * @atomicservice
4164     * @since 11
4165     */
4166    addResource(path: string) : void;
4167
4168    /**
4169     * Remove overlay resources during application runtime.
4170     *
4171     * @param { string } path - Indicates the application overlay path.
4172     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
4173     * @throws { BusinessError } 9001010 - Invalid overlay path.
4174     * @syscap SystemCapability.Global.ResourceManager
4175     * @since 10
4176     */
4177    /**
4178     * Remove overlay resources during application runtime.
4179     *
4180     * @param { string } path - Indicates the application overlay path.
4181     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
4182     * @throws { BusinessError } 9001010 - Invalid overlay path.
4183     * @syscap SystemCapability.Global.ResourceManager
4184     * @crossplatform
4185     * @atomicservice
4186     * @since 11
4187     */
4188    removeResource(path: string) : void;
4189
4190    /**
4191     * Obtains the raw file resource descriptor corresponding to the specified resource path.
4192     *
4193     * @param { string } path - Indicates the resource relative path.
4194     * @returns { RawFileDescriptor } The raw file resource descriptor.
4195     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
4196     * @throws { BusinessError } 9001005 - Invalid relative path.
4197     * @syscap SystemCapability.Global.ResourceManager
4198     * @since 10
4199     */
4200    /**
4201     * Obtains the raw file resource descriptor corresponding to the specified resource path.
4202     *
4203     * @param { string } path - Indicates the resource relative path.
4204     * @returns { RawFileDescriptor } The raw file resource descriptor.
4205     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
4206     * @throws { BusinessError } 9001005 - Invalid relative path.
4207     * @syscap SystemCapability.Global.ResourceManager
4208     * @crossplatform
4209     * @atomicservice
4210     * @since 11
4211     */
4212    getRawFdSync(path: string): RawFileDescriptor;
4213
4214    /**
4215     * Close the raw file resource descriptor corresponding to the specified resource path.
4216     *
4217     * @param { string } path - Indicates the resource relative path.
4218     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
4219     * @throws { BusinessError } 9001005 - Invalid relative path.
4220     * @syscap SystemCapability.Global.ResourceManager
4221     * @since 10
4222     */
4223    /**
4224     * Close the raw file resource descriptor corresponding to the specified resource path.
4225     *
4226     * @param { string } path - Indicates the resource relative path.
4227     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
4228     * @throws { BusinessError } 9001005 - Invalid relative path.
4229     * @syscap SystemCapability.Global.ResourceManager
4230     * @crossplatform
4231     * @atomicservice
4232     * @since 11
4233     */
4234    closeRawFdSync(path: string): void;
4235
4236    /**
4237     * Obtains the rawfile resource list corresponding to the specified resource path.
4238     *
4239     * @param { string } path - Indicates the resource relative path.
4240     * @returns { Array<string> } The rawfile resource list.
4241     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
4242     * @throws { BusinessError } 9001005 - Invalid relative path.
4243     * @syscap SystemCapability.Global.ResourceManager
4244     * @since 10
4245     */
4246    /**
4247     * Obtains the rawfile resource list corresponding to the specified resource path.
4248     *
4249     * @param { string } path - Indicates the resource relative path.
4250     * @returns { Array<string> } The rawfile resource list.
4251     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
4252     * @throws { BusinessError } 9001005 - Invalid relative path.
4253     * @syscap SystemCapability.Global.ResourceManager
4254     * @crossplatform
4255     * @atomicservice
4256     * @since 11
4257     */
4258    getRawFileListSync(path: string): Array<string>;
4259
4260    /**
4261     * Obtains the raw file resource corresponding to the specified resource path.
4262     *
4263     * @param { string } path - Indicates the resource relative path.
4264     * @returns { Uint8Array } the raw file resource corresponding to the specified resource path.
4265     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
4266     * @throws { BusinessError } 9001005 - Invalid relative path.
4267     * @syscap SystemCapability.Global.ResourceManager
4268     * @since 10
4269     */
4270    /**
4271     * Obtains the raw file resource corresponding to the specified resource path.
4272     *
4273     * @param { string } path - Indicates the resource relative path.
4274     * @returns { Uint8Array } the raw file resource corresponding to the specified resource path.
4275     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
4276     * @throws { BusinessError } 9001005 - Invalid relative path.
4277     * @syscap SystemCapability.Global.ResourceManager
4278     * @crossplatform
4279     * @atomicservice
4280     * @since 11
4281     */
4282    getRawFileContentSync(path: string): Uint8Array;
4283
4284    /**
4285     * Obtains the content of the specified screen density media file corresponding to a specified resource ID.
4286     *
4287     * @param { number } resId - Indicates the resource ID.
4288     * @param { number } [density] - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means
4289     *                to use the density of current system dpi.
4290     * @returns { Uint8Array } Indicates the obtained media file content.
4291     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.
4292     * @throws { BusinessError } 9001001 - Invalid resource ID.
4293     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
4294     * @syscap SystemCapability.Global.ResourceManager
4295     * @since 10
4296     */
4297    /**
4298     * Obtains the content of the specified screen density media file corresponding to a specified resource ID.
4299     *
4300     * @param { number } resId - Indicates the resource ID.
4301     * @param { number } [density] - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means
4302     *                to use the density of current system dpi.
4303     * @returns { Uint8Array } Indicates the obtained media file content.
4304     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.
4305     * @throws { BusinessError } 9001001 - Invalid resource ID.
4306     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
4307     * @syscap SystemCapability.Global.ResourceManager
4308     * @crossplatform
4309     * @atomicservice
4310     * @since 11
4311     */
4312    getMediaContentSync(resId: number, density?: number): Uint8Array;
4313
4314    /**
4315     * Obtains the content of the specified screen density media file corresponding to a specified resource object.
4316     *
4317     * @param { Resource } resource - Indicates the resource object.
4318     * @param { number } [density] - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means
4319     *                to use the density of current system dpi.
4320     * @returns { Uint8Array } Indicates the obtained media file content.
4321     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.
4322     * @throws { BusinessError } 9001001 - Invalid resource ID.
4323     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
4324     * @syscap SystemCapability.Global.ResourceManager
4325     * @stagemodelonly
4326     * @since 10
4327     */
4328    /**
4329     * Obtains the content of the specified screen density media file corresponding to a specified resource object.
4330     *
4331     * @param { Resource } resource - Indicates the resource object.
4332     * @param { number } [density] - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means
4333     *                to use the density of current system dpi.
4334     * @returns { Uint8Array } Indicates the obtained media file content.
4335     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.
4336     * @throws { BusinessError } 9001001 - Invalid resource ID.
4337     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
4338     * @syscap SystemCapability.Global.ResourceManager
4339     * @stagemodelonly
4340     * @crossplatform
4341     * @atomicservice
4342     * @since 11
4343     */
4344    getMediaContentSync(resource: Resource, density?: number): Uint8Array;
4345
4346    /**
4347     * Obtains the Base64 code of the specified screen density media file corresponding to the specified resource ID.
4348     *
4349     * @param { number } resId - Indicates the resource ID.
4350     * @param { number } [density] - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means
4351     *                to use the density of current system dpi.
4352     * @returns { string } Indicates the obtained Base64 code of the media file.
4353     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.
4354     * @throws { BusinessError } 9001001 - Invalid resource ID.
4355     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
4356     * @syscap SystemCapability.Global.ResourceManager
4357     * @since 10
4358     */
4359    /**
4360     * Obtains the Base64 code of the specified screen density media file corresponding to the specified resource ID.
4361     *
4362     * @param { number } resId - Indicates the resource ID.
4363     * @param { number } [density] - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means
4364     *                to use the density of current system dpi.
4365     * @returns { string } Indicates the obtained Base64 code of the media file.
4366     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.
4367     * @throws { BusinessError } 9001001 - Invalid resource ID.
4368     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
4369     * @syscap SystemCapability.Global.ResourceManager
4370     * @crossplatform
4371     * @atomicservice
4372     * @since 11
4373     */
4374    getMediaContentBase64Sync(resId: number, density?: number): string;
4375
4376    /**
4377     * Obtains the content of the specified screen density media file corresponding to the specified resource object.
4378     *
4379     * @param { Resource } resource - Indicates the resource object.
4380     * @param { number } [density] - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means
4381     *                to use the density of current system dpi.
4382     * @returns { string } Indicates the obtained Base64 code of the media file.
4383     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.
4384     * @throws { BusinessError } 9001001 - Invalid resource ID.
4385     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
4386     * @syscap SystemCapability.Global.ResourceManager
4387     * @stagemodelonly
4388     * @since 10
4389     */
4390    /**
4391     * Obtains the content of the specified screen density media file corresponding to the specified resource object.
4392     *
4393     * @param { Resource } resource - Indicates the resource object.
4394     * @param { number } [density] - The optional parameter ScreenDensity{@link ScreenDensity}, A value of 0 means
4395     *                to use the density of current system dpi.
4396     * @returns { string } Indicates the obtained Base64 code of the media file.
4397     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.
4398     * @throws { BusinessError } 9001001 - Invalid resource ID.
4399     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
4400     * @syscap SystemCapability.Global.ResourceManager
4401     * @stagemodelonly
4402     * @crossplatform
4403     * @atomicservice
4404     * @since 11
4405     */
4406    getMediaContentBase64Sync(resource: Resource, density?: number): string;
4407
4408    /**
4409     * Obtains the singular-plural character string represented by the ID string corresponding to
4410     * the specified number.
4411     *
4412     * @param { number } resId - Indicates the resource ID.
4413     * @param { number } num - Indicates the number.
4414     * @returns { string } The singular-plural character string represented by the ID string
4415     *         corresponding to the specified number.
4416     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
4417     * @throws { BusinessError } 9001001 - Invalid resource ID.
4418     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
4419     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
4420     * @syscap SystemCapability.Global.ResourceManager
4421     * @since 10
4422     */
4423    /**
4424     * Obtains the singular-plural character string represented by the ID string corresponding to
4425     * the specified number.
4426     *
4427     * @param { number } resId - Indicates the resource ID.
4428     * @param { number } num - Indicates the number.
4429     * @returns { string } The singular-plural character string represented by the ID string
4430     *         corresponding to the specified number.
4431     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
4432     * @throws { BusinessError } 9001001 - Invalid resource ID.
4433     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
4434     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
4435     * @syscap SystemCapability.Global.ResourceManager
4436     * @crossplatform
4437     * @atomicservice
4438     * @since 11
4439     * @deprecated since 18
4440     * @useinstead ohos.resourceManager.getIntPluralStringValueSync
4441     */
4442    getPluralStringValueSync(resId: number, num: number): string;
4443
4444    /**
4445     * Obtains the singular-plural character string represented by the resource object string corresponding to the
4446     * specified number.
4447     *
4448     * @param { Resource } resource - Indicates the resource object.
4449     * @param { number } num - Indicates the number.
4450     * @returns { string } The singular-plural character string represented by the ID string
4451     *         corresponding to the specified number.
4452     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
4453     * @throws { BusinessError } 9001001 - Invalid resource ID.
4454     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
4455     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
4456     * @syscap SystemCapability.Global.ResourceManager
4457     * @stagemodelonly
4458     * @since 10
4459     */
4460    /**
4461     * Obtains the singular-plural character string represented by the resource object string corresponding to the
4462     * specified number.
4463     *
4464     * @param { Resource } resource - Indicates the resource object.
4465     * @param { number } num - Indicates the number.
4466     * @returns { string } The singular-plural character string represented by the ID string
4467     *         corresponding to the specified number.
4468     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
4469     * @throws { BusinessError } 9001001 - Invalid resource ID.
4470     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
4471     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
4472     * @syscap SystemCapability.Global.ResourceManager
4473     * @stagemodelonly
4474     * @crossplatform
4475     * @atomicservice
4476     * @since 11
4477     * @deprecated since 18
4478     * @useinstead ohos.resourceManager.getIntPluralStringValueSync
4479     */
4480    getPluralStringValueSync(resource: Resource, num: number): string;
4481
4482    /**
4483     * Obtains the array of character strings corresponding to a specified resource ID.
4484     *
4485     * @param { number } resId - Indicates the resource ID.
4486     * @returns { Array<string> } The array of character strings corresponding to the specified resource ID.
4487     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
4488     * @throws { BusinessError } 9001001 - Invalid resource ID.
4489     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
4490     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
4491     * @syscap SystemCapability.Global.ResourceManager
4492     * @since 10
4493     */
4494    /**
4495     * Obtains the array of character strings corresponding to a specified resource ID.
4496     *
4497     * @param { number } resId - Indicates the resource ID.
4498     * @returns { Array<string> } The array of character strings corresponding to the specified resource ID.
4499     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
4500     * @throws { BusinessError } 9001001 - Invalid resource ID.
4501     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
4502     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
4503     * @syscap SystemCapability.Global.ResourceManager
4504     * @crossplatform
4505     * @atomicservice
4506     * @since 11
4507     */
4508    getStringArrayValueSync(resId: number): Array<string>;
4509
4510    /**
4511     * Obtains the array of character strings corresponding to a specified resource object.
4512     *
4513     * @param { Resource } resource - Indicates the resource object.
4514     * @returns { Array<string> } The array of character strings corresponding to the specified resource object.
4515     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
4516     * @throws { BusinessError } 9001001 - Invalid resource ID.
4517     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
4518     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
4519     * @syscap SystemCapability.Global.ResourceManager
4520     * @stagemodelonly
4521     * @since 10
4522     */
4523    /**
4524     * Obtains the array of character strings corresponding to a specified resource object.
4525     *
4526     * @param { Resource } resource - Indicates the resource object.
4527     * @returns { Array<string> } The array of character strings corresponding to the specified resource object.
4528     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
4529     * @throws { BusinessError } 9001001 - Invalid resource ID.
4530     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
4531     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
4532     * @syscap SystemCapability.Global.ResourceManager
4533     * @stagemodelonly
4534     * @crossplatform
4535     * @atomicservice
4536     * @since 11
4537     */
4538    getStringArrayValueSync(resource: Resource): Array<string>;
4539
4540    /**
4541     * Obtains the singular-plural character string represented by the name string corresponding to
4542     * the specified number.
4543     *
4544     * @param { string } resName - Indicates the resource name.
4545     * @param { number } num - Indicates the number.
4546     * @returns { string } The singular-plural character string represented by the name string
4547     *         corresponding to the specified number.
4548     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
4549     * @throws { BusinessError } 9001003 - Invalid resource name.
4550     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
4551     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
4552     * @syscap SystemCapability.Global.ResourceManager
4553     * @since 10
4554     */
4555    /**
4556     * Obtains the singular-plural character string represented by the name string corresponding to
4557     * the specified number.
4558     *
4559     * @param { string } resName - Indicates the resource name.
4560     * @param { number } num - Indicates the number.
4561     * @returns { string } The singular-plural character string represented by the name string
4562     *         corresponding to the specified number.
4563     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
4564     * @throws { BusinessError } 9001003 - Invalid resource name.
4565     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
4566     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
4567     * @syscap SystemCapability.Global.ResourceManager
4568     * @crossplatform
4569     * @atomicservice
4570     * @since 11
4571     * @deprecated since 18
4572     * @useinstead ohos.resourceManager.getIntPluralStringByNameSync
4573     */
4574    getPluralStringByNameSync(resName: string, num: number): string;
4575
4576    /**
4577     * Obtains the content of the specified screen density media file corresponding to a specified resource name.
4578     *
4579     * @param { string } resName - Indicates the resource name.
4580     * @param { number } [density] - The parameter ScreenDensity{@link ScreenDensity}, A value of 0 means
4581     *                 to use the density of current system dpi.
4582     * @returns { Uint8Array } The obtained specified screen density media file content.
4583     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.
4584     * @throws { BusinessError } 9001003 - Invalid resource name.
4585     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
4586     * @syscap SystemCapability.Global.ResourceManager
4587     * @since 10
4588     */
4589    /**
4590     * Obtains the content of the specified screen density media file corresponding to a specified resource name.
4591     *
4592     * @param { string } resName - Indicates the resource name.
4593     * @param { number } [density] - The parameter ScreenDensity{@link ScreenDensity}, A value of 0 means
4594     *                 to use the density of current system dpi.
4595     * @returns { Uint8Array } The obtained specified screen density media file content.
4596     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.
4597     * @throws { BusinessError } 9001003 - Invalid resource name.
4598     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
4599     * @syscap SystemCapability.Global.ResourceManager
4600     * @crossplatform
4601     * @atomicservice
4602     * @since 11
4603     */
4604    getMediaByNameSync(resName: string, density?: number): Uint8Array;
4605
4606    /**
4607     * Obtains the Base64 code of the specified screen density media file corresponding to the specified resource name.
4608     *
4609     * @param { string } resName - Indicates the resource name.
4610     * @param { number } [density] - The parameter ScreenDensity{@link ScreenDensity}, A value of 0 means
4611     *                 to use the density of current system dpi.
4612     * @returns { string } The obtained Base64 code of the specified screen density media file.
4613     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.
4614     * @throws { BusinessError } 9001003 - Invalid resource name.
4615     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
4616     * @syscap SystemCapability.Global.ResourceManager
4617     * @since 10
4618     */
4619    /**
4620     * Obtains the Base64 code of the specified screen density media file corresponding to the specified resource name.
4621     *
4622     * @param { string } resName - Indicates the resource name.
4623     * @param { number } [density] - The parameter ScreenDensity{@link ScreenDensity}, A value of 0 means
4624     *                 to use the density of current system dpi.
4625     * @returns { string } The obtained Base64 code of the specified screen density media file.
4626     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.
4627     * @throws { BusinessError } 9001003 - Invalid resource name.
4628     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
4629     * @syscap SystemCapability.Global.ResourceManager
4630     * @crossplatform
4631     * @atomicservice
4632     * @since 11
4633     */
4634    getMediaBase64ByNameSync(resName: string, density?: number): string;
4635
4636    /**
4637     * Obtains the array of character strings corresponding to a specified resource name.
4638     *
4639     * @param { string } resName - Indicates the resource name.
4640     * @returns { Array<string> } the array of character strings corresponding to the specified resource name.
4641     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
4642     * @throws { BusinessError } 9001003 - Invalid resource name.
4643     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
4644     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
4645     * @syscap SystemCapability.Global.ResourceManager
4646     * @since 10
4647     */
4648    /**
4649     * Obtains the array of character strings corresponding to a specified resource name.
4650     *
4651     * @param { string } resName - Indicates the resource name.
4652     * @returns { Array<string> } the array of character strings corresponding to the specified resource name.
4653     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
4654     * @throws { BusinessError } 9001003 - Invalid resource name.
4655     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
4656     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
4657     * @syscap SystemCapability.Global.ResourceManager
4658     * @crossplatform
4659     * @atomicservice
4660     * @since 11
4661     */
4662    getStringArrayByNameSync(resName: string): Array<string>;
4663
4664    /**
4665     * Obtains the device configuration.
4666     *
4667     * @returns { Configuration } the device configuration.
4668     * @syscap SystemCapability.Global.ResourceManager
4669     * @since 10
4670     */
4671    /**
4672     * Obtains the device configuration.
4673     *
4674     * @returns { Configuration } the device configuration.
4675     * @syscap SystemCapability.Global.ResourceManager
4676     * @crossplatform
4677     * @atomicservice
4678     * @since 11
4679     */
4680    getConfigurationSync(): Configuration;
4681
4682    /**
4683     * Obtains the device capability.
4684     *
4685     * @returns { DeviceCapability } the device capability.
4686     * @syscap SystemCapability.Global.ResourceManager
4687     * @since 10
4688     */
4689    /**
4690     * Obtains the device capability.
4691     *
4692     * @returns { DeviceCapability } the device capability.
4693     * @syscap SystemCapability.Global.ResourceManager
4694     * @crossplatform
4695     * @atomicservice
4696     * @since 11
4697     */
4698    getDeviceCapabilitySync(): DeviceCapability;
4699
4700    /**
4701     * Obtains locales list.
4702     *
4703     * @param { boolean } [includeSystem] - the parameter controls whether to include system resources,
4704     *     the default value is false, it has no effect when only system resources query the locales list.
4705     * @returns { Array<string> } the list of strings for the locales.
4706     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
4707     * @syscap SystemCapability.Global.ResourceManager
4708     * @crossplatform
4709     * @atomicservice
4710     * @since 11
4711     */
4712    getLocales(includeSystem?: boolean): Array<string>;
4713
4714    /**
4715     * Obtains the symbol resource corresponding to the specified resource ID.
4716     *
4717     * @param { number } resId - Indicates the resource ID.
4718     * @returns { number } Indicates the integer reference value representing the symbol data.
4719     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
4720     * @throws { BusinessError } 9001001 - Invalid resource ID.
4721     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
4722     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
4723     * @syscap SystemCapability.Global.ResourceManager
4724     * @crossplatform
4725     * @atomicservice
4726     * @since 11
4727     */
4728    getSymbol(resId: number) : number;
4729
4730    /**
4731     * Obtains the symbol resource corresponding to the specified resource object.
4732     *
4733     * @param { Resource } resource - Indicates the resource object.
4734     * @returns { number } Indicates the integer reference value representing the symbol data.
4735     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
4736     * @throws { BusinessError } 9001001 - Invalid resource ID.
4737     * @throws { BusinessError } 9001002 - No matching resource is found based on the resource ID.
4738     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
4739     * @syscap SystemCapability.Global.ResourceManager
4740     * @stagemodelonly
4741     * @crossplatform
4742     * @atomicservice
4743     * @since 11
4744     */
4745    getSymbol(resource: Resource) : number;
4746
4747    /**
4748     * Obtains the symbol resource corresponding to the specified resource name.
4749     *
4750     * @param { string } resName - Indicates the resource name.
4751     * @returns { number } Indicates the integer reference value representing the symbol data.
4752     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
4753     * @throws { BusinessError } 9001003 - Invalid resource name.
4754     * @throws { BusinessError } 9001004 - No matching resource is found based on the resource name.
4755     * @throws { BusinessError } 9001006 - The resource is referenced cyclically.
4756     * @syscap SystemCapability.Global.ResourceManager
4757     * @crossplatform
4758     * @atomicservice
4759     * @since 11
4760     */
4761    getSymbolByName(resName: string) : number;
4762
4763    /**
4764     * Whether the rawfile resource is a directory or not.
4765     *
4766     * @param { string } path - Indicates the rawfile resource relative path.
4767     * @returns { boolean } True means the file path is directory, else false.
4768     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
4769     * @throws { BusinessError } 9001005 - Invalid relative path.
4770     * @syscap SystemCapability.Global.ResourceManager
4771     * @crossplatform
4772     * @atomicservice
4773     * @since 12
4774     */
4775    isRawDir(path: string): boolean;
4776
4777    /**
4778     * Get the override ResourceManager object related to the specified Configuration.
4779     *
4780     * @param { Configuration } [configuration] - Indicates the override Configuration{@link Configuration}
4781     * @returns { ResourceManager } The ResourceManager object is returned.
4782     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
4783     * @syscap SystemCapability.Global.ResourceManager
4784     * @crossplatform
4785     * @atomicservice
4786     * @since 12
4787     */
4788    getOverrideResourceManager(configuration?: Configuration): ResourceManager;
4789
4790    /**
4791     * Get the current override Configuration related to the specified override ResourceManager.
4792     *
4793     * @returns { Configuration } The Configuration object is returned.
4794     * @syscap SystemCapability.Global.ResourceManager
4795     * @crossplatform
4796     * @atomicservice
4797     * @since 12
4798     */
4799     getOverrideConfiguration(): Configuration;
4800
4801    /**
4802     * Update the current override Configuration.
4803     *
4804     * @param { Configuration } configuration - Indicates the override Configuration{@link Configuration}
4805     * @throws { BusinessError } 401 - If the input parameter invalid. Possible causes: Incorrect parameter types.
4806     * @syscap SystemCapability.Global.ResourceManager
4807     * @crossplatform
4808     * @atomicservice
4809     * @since 12
4810     */
4811     updateOverrideConfiguration(configuration: Configuration): void;
4812  }
4813
4814  /**
4815   * Contains rawFile descriptor information.
4816   *
4817   * @syscap SystemCapability.Global.ResourceManager
4818   * @since 9
4819   */
4820  /**
4821   * Contains rawFile descriptor information.
4822   *
4823   * @syscap SystemCapability.Global.ResourceManager
4824   * @crossplatform
4825   * @since 10
4826   */
4827  /**
4828   * Contains rawFile descriptor information.
4829   *
4830   * @typedef {_RawFileDescriptor}
4831   * @syscap SystemCapability.Global.ResourceManager
4832   * @crossplatform
4833   * @atomicservice
4834   * @since 11
4835   */
4836  export type RawFileDescriptor = _RawFileDescriptor;
4837
4838  /**
4839   * Contains resource descriptor information.
4840   *
4841   * @syscap SystemCapability.Global.ResourceManager
4842   * @since 9
4843   */
4844  /**
4845   * Contains resource descriptor information.
4846   *
4847   * @syscap SystemCapability.Global.ResourceManager
4848   * @crossplatform
4849   * @since 10
4850   */
4851  /**
4852   * Contains resource descriptor information.
4853   *
4854   * @typedef {_Resource}
4855   * @syscap SystemCapability.Global.ResourceManager
4856   * @crossplatform
4857   * @atomicservice
4858   * @since 11
4859   */
4860  export type Resource = _Resource;
4861}
4862export default resourceManager;