161847f8eSopenharmony_ci/* 261847f8eSopenharmony_ci * Copyright (c) 2023 Huawei Device Co., Ltd. 361847f8eSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 461847f8eSopenharmony_ci * you may not use this file except in compliance with the License. 561847f8eSopenharmony_ci * You may obtain a copy of the License at 661847f8eSopenharmony_ci * 761847f8eSopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 861847f8eSopenharmony_ci * 961847f8eSopenharmony_ci * Unless required by applicable law or agreed to in writing, software 1061847f8eSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 1161847f8eSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1261847f8eSopenharmony_ci * See the License for the specific language governing permissions and 1361847f8eSopenharmony_ci * limitations under the License. 1461847f8eSopenharmony_ci */ 1561847f8eSopenharmony_ci 1661847f8eSopenharmony_ci/** 1761847f8eSopenharmony_ci * @file 1861847f8eSopenharmony_ci * @kit AbilityKit 1961847f8eSopenharmony_ci */ 2061847f8eSopenharmony_ci 2161847f8eSopenharmony_ciimport { AsyncCallback } from './@ohos.base'; 2261847f8eSopenharmony_ciimport * as _OverlayModuleInfo from './bundleManager/OverlayModuleInfo'; 2361847f8eSopenharmony_ci 2461847f8eSopenharmony_ci/** 2561847f8eSopenharmony_ci * Used for application interception overlay 2661847f8eSopenharmony_ci * 2761847f8eSopenharmony_ci * @namespace overlay 2861847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Overlay 2961847f8eSopenharmony_ci * @since 10 3061847f8eSopenharmony_ci */ 3161847f8eSopenharmony_cideclare namespace overlay { 3261847f8eSopenharmony_ci /** 3361847f8eSopenharmony_ci * Set enabled state of overlay module based on specified moduleName. 3461847f8eSopenharmony_ci * 3561847f8eSopenharmony_ci * @param { string } moduleName - Indicates the module name of the overlay module to be set. 3661847f8eSopenharmony_ci * @param { boolean } isEnabled - The value true means to enable overlay feature, and the value false means to disable overlay feature. 3761847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback - The callback of setting specified overlay module enabled state result. 3861847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 3961847f8eSopenharmony_ci * @throws { BusinessError } 17700002 - The specified module name is not found. 4061847f8eSopenharmony_ci * @throws { BusinessError } 17700033 - The specified module is not an overlay module. 4161847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Overlay 4261847f8eSopenharmony_ci * @since 10 4361847f8eSopenharmony_ci */ 4461847f8eSopenharmony_ci function setOverlayEnabled(moduleName: string, isEnabled: boolean, callback: AsyncCallback<void>): void; 4561847f8eSopenharmony_ci 4661847f8eSopenharmony_ci /** 4761847f8eSopenharmony_ci * Set enabled state of overlay module based on specified moduleName. 4861847f8eSopenharmony_ci * 4961847f8eSopenharmony_ci * @param { string } moduleName - Indicates the module name of the overlay module to be set. 5061847f8eSopenharmony_ci * @param { boolean } isEnabled - The value true means to enable overlay feature, and the value false means to disable overlay feature. 5161847f8eSopenharmony_ci * @returns { Promise<void> } 5261847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 5361847f8eSopenharmony_ci * @throws { BusinessError } 17700002 - The specified module name is not found. 5461847f8eSopenharmony_ci * @throws { BusinessError } 17700033 - The specified module is not an overlay module. 5561847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Overlay 5661847f8eSopenharmony_ci * @since 10 5761847f8eSopenharmony_ci */ 5861847f8eSopenharmony_ci function setOverlayEnabled(moduleName: string, isEnabled: boolean): Promise<void>; 5961847f8eSopenharmony_ci 6061847f8eSopenharmony_ci /** 6161847f8eSopenharmony_ci * Set enabled state of overlay module based on specified bundleName and moduleName. 6261847f8eSopenharmony_ci * 6361847f8eSopenharmony_ci * @permission ohos.permission.CHANGE_OVERLAY_ENABLED_STATE 6461847f8eSopenharmony_ci * @param { string } bundleName - Indicates the application bundle name of the overlay bundle to be set. 6561847f8eSopenharmony_ci * @param { string } moduleName - Indicates the module name of the overlay module to be set. 6661847f8eSopenharmony_ci * @param { boolean } isEnabled - The value true means to enable overlay feature, and the value false means to disable overlay feature. 6761847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback - The callback of setting specified overlay module enabled state result. 6861847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 6961847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 7061847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 7161847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 7261847f8eSopenharmony_ci * @throws { BusinessError } 17700002 - The specified module name is not found. 7361847f8eSopenharmony_ci * @throws { BusinessError } 17700032 - The specified bundle does not contain any overlay module. 7461847f8eSopenharmony_ci * @throws { BusinessError } 17700033 - The specified module is not an overlay module. 7561847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Overlay 7661847f8eSopenharmony_ci * @systemapi 7761847f8eSopenharmony_ci * @since 10 7861847f8eSopenharmony_ci */ 7961847f8eSopenharmony_ci function setOverlayEnabledByBundleName(bundleName: string, 8061847f8eSopenharmony_ci moduleName: string, isEnabled: boolean, callback: AsyncCallback<void>): void; 8161847f8eSopenharmony_ci 8261847f8eSopenharmony_ci /** 8361847f8eSopenharmony_ci * Set enabled state of overlay module based on specified bundleName and moduleName. 8461847f8eSopenharmony_ci * 8561847f8eSopenharmony_ci * @permission ohos.permission.CHANGE_OVERLAY_ENABLED_STATE 8661847f8eSopenharmony_ci * @param { string } bundleName - Indicates the application bundle name of the overlay bundle to be set. 8761847f8eSopenharmony_ci * @param { string } moduleName - Indicates the module name of the overlay module to be set. 8861847f8eSopenharmony_ci * @param { boolean } isEnabled - The value true means to enable overlay feature, and the value false means to disable overlay feature. 8961847f8eSopenharmony_ci * @returns { Promise<void> } 9061847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 9161847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 9261847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 9361847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 9461847f8eSopenharmony_ci * @throws { BusinessError } 17700002 - The specified module name is not found. 9561847f8eSopenharmony_ci * @throws { BusinessError } 17700032 - The specified bundle does not contain any overlay module. 9661847f8eSopenharmony_ci * @throws { BusinessError } 17700033 - The specified module is not an overlay module. 9761847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Overlay 9861847f8eSopenharmony_ci * @systemapi 9961847f8eSopenharmony_ci * @since 10 10061847f8eSopenharmony_ci */ 10161847f8eSopenharmony_ci function setOverlayEnabledByBundleName(bundleName: string, moduleName: string, isEnabled: boolean): Promise<void>; 10261847f8eSopenharmony_ci 10361847f8eSopenharmony_ci /** 10461847f8eSopenharmony_ci * Obtain the OverlayModuleInfo of current application based on moduleName. 10561847f8eSopenharmony_ci * 10661847f8eSopenharmony_ci * @param { string } moduleName - Indicates the module name of the overlay module to be queried. 10761847f8eSopenharmony_ci * @param { AsyncCallback<OverlayModuleInfo> } callback - The callback of getting OverlayModuleInfo object. 10861847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 10961847f8eSopenharmony_ci * @throws { BusinessError } 17700002 - The specified module name is not found. 11061847f8eSopenharmony_ci * @throws { BusinessError } 17700032 - The specified bundle does not contain any overlay module. 11161847f8eSopenharmony_ci * @throws { BusinessError } 17700033 - The specified module is not an overlay module. 11261847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Overlay 11361847f8eSopenharmony_ci * @since 10 11461847f8eSopenharmony_ci */ 11561847f8eSopenharmony_ci function getOverlayModuleInfo(moduleName: string, callback: AsyncCallback<OverlayModuleInfo>): void; 11661847f8eSopenharmony_ci 11761847f8eSopenharmony_ci /** 11861847f8eSopenharmony_ci * Obtain the OverlayModuleInfo of current application based on moduleName. 11961847f8eSopenharmony_ci * 12061847f8eSopenharmony_ci * @param { string } moduleName - Indicates the module name of the overlay module to be queried. 12161847f8eSopenharmony_ci * @returns { Promise<OverlayModuleInfo> } 12261847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 12361847f8eSopenharmony_ci * @throws { BusinessError } 17700002 - The specified module name is not found. 12461847f8eSopenharmony_ci * @throws { BusinessError } 17700032 - The specified bundle does not contain any overlay module. 12561847f8eSopenharmony_ci * @throws { BusinessError } 17700033 - The specified module is not an overlay module. 12661847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Overlay 12761847f8eSopenharmony_ci * @since 10 12861847f8eSopenharmony_ci */ 12961847f8eSopenharmony_ci function getOverlayModuleInfo(moduleName: string): Promise<OverlayModuleInfo>; 13061847f8eSopenharmony_ci 13161847f8eSopenharmony_ci /** 13261847f8eSopenharmony_ci * Obtain the OverlayModuleInfo of current application based on moduleName. 13361847f8eSopenharmony_ci * 13461847f8eSopenharmony_ci * @param { string } targetModuleName - Indicates the target module name of the target module to be queried. 13561847f8eSopenharmony_ci * @param { AsyncCallback<Array<OverlayModuleInfo>> } callback - The callback of getting a list of OverlayModuleInfo object. 13661847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 13761847f8eSopenharmony_ci * @throws { BusinessError } 17700002 - The specified module name is not found. 13861847f8eSopenharmony_ci * @throws { BusinessError } 17700034 - The specified module is an overlay module. 13961847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Overlay 14061847f8eSopenharmony_ci * @since 10 14161847f8eSopenharmony_ci */ 14261847f8eSopenharmony_ci function getTargetOverlayModuleInfos(targetModuleName: string, 14361847f8eSopenharmony_ci callback: AsyncCallback<Array<OverlayModuleInfo>>): void; 14461847f8eSopenharmony_ci 14561847f8eSopenharmony_ci /** 14661847f8eSopenharmony_ci * Obtain the OverlayModuleInfo of current application based on moduleName. 14761847f8eSopenharmony_ci * 14861847f8eSopenharmony_ci * @param { string } targetModuleName - Indicates the target module name of the target module to be queried. 14961847f8eSopenharmony_ci * @returns { Promise<Array<OverlayModuleInfo>> } 15061847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 15161847f8eSopenharmony_ci * @throws { BusinessError } 17700002 - The specified module name is not found. 15261847f8eSopenharmony_ci * @throws { BusinessError } 17700034 - The specified module is an overlay module. 15361847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Overlay 15461847f8eSopenharmony_ci * @since 10 15561847f8eSopenharmony_ci */ 15661847f8eSopenharmony_ci function getTargetOverlayModuleInfos(targetModuleName: string): Promise<Array<OverlayModuleInfo>>; 15761847f8eSopenharmony_ci 15861847f8eSopenharmony_ci /** 15961847f8eSopenharmony_ci * Obtain the OverlayModuleInfo of the specified application based on bundleName. 16061847f8eSopenharmony_ci * 16161847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED 16261847f8eSopenharmony_ci * @param { string } bundleName - Indicates the application bundle name of the overlay bundle to be quired. 16361847f8eSopenharmony_ci * @param { AsyncCallback<Array<OverlayModuleInfo>> } callback - The callback of getting a list of OverlayModuleInfo object. 16461847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 16561847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 16661847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 16761847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 16861847f8eSopenharmony_ci * @throws { BusinessError } 17700032 - The specified bundle does not contain any overlay module. 16961847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Overlay 17061847f8eSopenharmony_ci * @systemapi 17161847f8eSopenharmony_ci * @since 10 17261847f8eSopenharmony_ci */ 17361847f8eSopenharmony_ci function getOverlayModuleInfoByBundleName(bundleName: string, 17461847f8eSopenharmony_ci callback: AsyncCallback<Array<OverlayModuleInfo>>): void; 17561847f8eSopenharmony_ci 17661847f8eSopenharmony_ci /** 17761847f8eSopenharmony_ci * Obtain the OverlayModuleInfo of the specified application based on bundleName. 17861847f8eSopenharmony_ci * 17961847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED 18061847f8eSopenharmony_ci * @param { string } bundleName - Indicates the application bundle name of the overlay bundle to be quired. 18161847f8eSopenharmony_ci * @param { string } moduleName - Indicates the module name of the overlay module to be queried. 18261847f8eSopenharmony_ci * @param { AsyncCallback<Array<OverlayModuleInfo>> } callback - The callback of getting a list of OverlayModuleInfo object. 18361847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 18461847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 18561847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 18661847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 18761847f8eSopenharmony_ci * @throws { BusinessError } 17700002 - The specified module name is not found. 18861847f8eSopenharmony_ci * @throws { BusinessError } 17700032 - The specified bundle does not contain any overlay module. 18961847f8eSopenharmony_ci * @throws { BusinessError } 17700033 - The specified module is not an overlay module. 19061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Overlay 19161847f8eSopenharmony_ci * @systemapi 19261847f8eSopenharmony_ci * @since 10 19361847f8eSopenharmony_ci */ 19461847f8eSopenharmony_ci function getOverlayModuleInfoByBundleName(bundleName: string, 19561847f8eSopenharmony_ci moduleName: string, callback: AsyncCallback<Array<OverlayModuleInfo>>): void; 19661847f8eSopenharmony_ci 19761847f8eSopenharmony_ci /** 19861847f8eSopenharmony_ci * Obtain the OverlayModuleInfo of the specified application based on bundleName and moduleName. 19961847f8eSopenharmony_ci * 20061847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED 20161847f8eSopenharmony_ci * @param { string } bundleName - Indicates the application bundle name of the overlay bundle to be quired. 20261847f8eSopenharmony_ci * @param { string } moduleName - Indicates the module name of the overlay module to be queried. 20361847f8eSopenharmony_ci * @returns { Promise<Array<OverlayModuleInfo>> } Returns a list of OverlayModuleInfo object. 20461847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 20561847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 20661847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 20761847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 20861847f8eSopenharmony_ci * @throws { BusinessError } 17700002 - The specified module name is not found. 20961847f8eSopenharmony_ci * @throws { BusinessError } 17700032 - The specified bundle does not contain any overlay module. 21061847f8eSopenharmony_ci * @throws { BusinessError } 17700033 - The specified module is not an overlay module. 21161847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Overlay 21261847f8eSopenharmony_ci * @systemapi 21361847f8eSopenharmony_ci * @since 10 21461847f8eSopenharmony_ci */ 21561847f8eSopenharmony_ci function getOverlayModuleInfoByBundleName(bundleName: string, 21661847f8eSopenharmony_ci moduleName?: string): Promise<Array<OverlayModuleInfo>>; 21761847f8eSopenharmony_ci 21861847f8eSopenharmony_ci /** 21961847f8eSopenharmony_ci * Obtain the OverlayModuleInfo of the specified target application based on bundleName. 22061847f8eSopenharmony_ci * 22161847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED 22261847f8eSopenharmony_ci * @param { string } targetBundleName - Indicates the application target bundle name of the overlay bundle to be quired. 22361847f8eSopenharmony_ci * @param { AsyncCallback<Array<OverlayModuleInfo>> } callback - The callback of getting a list of OverlayModuleInfo object. 22461847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 22561847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 22661847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 22761847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 22861847f8eSopenharmony_ci * @throws { BusinessError } 17700035 - The specified bundle is an overlay bundle. 22961847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Overlay 23061847f8eSopenharmony_ci * @systemapi 23161847f8eSopenharmony_ci * @since 10 23261847f8eSopenharmony_ci */ 23361847f8eSopenharmony_ci function getTargetOverlayModuleInfosByBundleName(targetBundleName: string, 23461847f8eSopenharmony_ci callback: AsyncCallback<Array<OverlayModuleInfo>>): void; 23561847f8eSopenharmony_ci 23661847f8eSopenharmony_ci /** 23761847f8eSopenharmony_ci * Obtain the OverlayModuleInfo of the specified target application based on bundleName. 23861847f8eSopenharmony_ci * 23961847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED 24061847f8eSopenharmony_ci * @param { string } targetBundleName - Indicates the application target bundle name of the overlay bundle to be quired. 24161847f8eSopenharmony_ci * @param { string } moduleName - Indicates the module name of the overlay module to be queried. 24261847f8eSopenharmony_ci * @param { AsyncCallback<Array<OverlayModuleInfo>> } callback - The callback of getting a list of OverlayModuleInfo object. 24361847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 24461847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 24561847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 24661847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 24761847f8eSopenharmony_ci * @throws { BusinessError } 17700002 - The specified module name is not found. 24861847f8eSopenharmony_ci * @throws { BusinessError } 17700034 - The specified module is an overlay module. 24961847f8eSopenharmony_ci * @throws { BusinessError } 17700035 - The specified bundle is an overlay bundle. 25061847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Overlay 25161847f8eSopenharmony_ci * @systemapi 25261847f8eSopenharmony_ci * @since 10 25361847f8eSopenharmony_ci */ 25461847f8eSopenharmony_ci function getTargetOverlayModuleInfosByBundleName(targetBundleName: string, 25561847f8eSopenharmony_ci moduleName: string, callback: AsyncCallback<Array<OverlayModuleInfo>>): void; 25661847f8eSopenharmony_ci 25761847f8eSopenharmony_ci /** 25861847f8eSopenharmony_ci * Obtain the OverlayModuleInfo of the specified target application based on bundleName and moduleName. 25961847f8eSopenharmony_ci * 26061847f8eSopenharmony_ci * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED 26161847f8eSopenharmony_ci * @param { string } targetBundleName - Indicates the application target bundle name of the overlay bundle to be quired. 26261847f8eSopenharmony_ci * @param { string } moduleName - Indicates the module name of the overlay module to be queried. 26361847f8eSopenharmony_ci * @returns { Promise<Array<OverlayModuleInfo>> } Returns a list of OverlayModuleInfo object. 26461847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. 26561847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 26661847f8eSopenharmony_ci * @throws { BusinessError } 202 - Permission denied, non-system app called system api. 26761847f8eSopenharmony_ci * @throws { BusinessError } 17700001 - The specified bundleName is not found. 26861847f8eSopenharmony_ci * @throws { BusinessError } 17700002 - The specified module name is not found. 26961847f8eSopenharmony_ci * @throws { BusinessError } 17700034 - The specified module is an overlay module. 27061847f8eSopenharmony_ci * @throws { BusinessError } 17700035 - The specified bundle is an overlay bundle. 27161847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Overlay 27261847f8eSopenharmony_ci * @systemapi 27361847f8eSopenharmony_ci * @since 10 27461847f8eSopenharmony_ci */ 27561847f8eSopenharmony_ci function getTargetOverlayModuleInfosByBundleName(targetBundleName: string, 27661847f8eSopenharmony_ci moduleName?: string): Promise<Array<OverlayModuleInfo>>; 27761847f8eSopenharmony_ci 27861847f8eSopenharmony_ci /** 27961847f8eSopenharmony_ci * Obtains configuration information about a overlay hap module. 28061847f8eSopenharmony_ci * 28161847f8eSopenharmony_ci * @typedef { _OverlayModuleInfo.OverlayModuleInfo } 28261847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework.Overlay 28361847f8eSopenharmony_ci * @since 10 28461847f8eSopenharmony_ci */ 28561847f8eSopenharmony_ci export type OverlayModuleInfo = _OverlayModuleInfo.OverlayModuleInfo; 28661847f8eSopenharmony_ci} 28761847f8eSopenharmony_ci 28861847f8eSopenharmony_ciexport default overlay; 289