1/* 2 * Copyright (c) 2025 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 * @file 17 * @kit ArkUI 18 * @arkts 1.2 19 */ 20 21import { Resource } from './../../../api/global/resource' 22 23/** 24 * Obtain the resource in resources, used by plugin. 25 * 26 * @param { string } bundleName 27 * @param { string } moduleName 28 * @param { string } name 29 * @param { Object[] } params 30 * @syscap SystemCapability.ArkUI.ArkUI.Full 31 * @crossplatform 32 * @atomicservice 33 * @since 20 34 * @arkts 1.2 35 */ 36export declare function _r(bundleName: string, moduleName: string, name: string, ...params: Object[]): Resource; 37 38/** 39 * Obtain the resource in resources, used by plugin. 40 * 41 * @param { number } id - Indicates the id of resource. 42 * @param { number } type - Indicates the type of resource. 43 * @param { string } bundleName - Indicates the name of bundle. 44 * @param { string } moduleName - Indicates the name of module. 45 * @param { Object[] } params - Custom parameters. 46 * @returns { Resource } Returns the resource instance. 47 * @syscap SystemCapability.ArkUI.ArkUI.Full 48 * @crossplatform 49 * @atomicservice 50 * @since 20 51 * @arkts 1.2 52 */ 53export declare function _r( 54 id: number, type: number, bundleName: string, moduleName: string, ...params: Object[]): Resource; 55 56/** 57 * Obtain the resource in resources/rawfile, used by plugin. 58 * 59 * @param { string } bundleName 60 * @param { string } moduleName 61 * @param { string } name 62 * @syscap SystemCapability.ArkUI.ArkUI.Full 63 * @crossplatform 64 * @atomicservice 65 * @since 20 66 * @arkts 1.2 67 */ 68export declare function _rawfile(bundleName: string, moduleName: string, name: string): Resource; 69 70/** 71 * Obtain the resource in resources/rawfile, used by plugin. 72 * 73 * @param { number } id - Indicates the id of resource. 74 * @param { number } type - Indicates the type of resource. 75 * @param { string } bundleName - Indicates the name of bundle. 76 * @param { string } moduleName - Indicates the name of module. 77 * @param { Object[] } params - Custom parameters. 78 * @returns { Resource } Returns the resource instance. 79 * @syscap SystemCapability.ArkUI.ArkUI.Full 80 * @crossplatform 81 * @atomicservice 82 * @since 20 83 * @arkts 1.2 84 */ 85export declare function _rawfile( 86 id: number, type: number, bundleName: string, moduleName: string, ...params: Object[]): Resource; 87