161847f8eSopenharmony_ci/*
261847f8eSopenharmony_ci * Copyright (c) 2023-2024 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 ArkUI
1961847f8eSopenharmony_ci */
2061847f8eSopenharmony_ci
2161847f8eSopenharmony_ci
2261847f8eSopenharmony_ciimport font from './@ohos.font';
2361847f8eSopenharmony_ciimport mediaQuery from './@ohos.mediaquery';
2461847f8eSopenharmony_ciimport type inspector from './@ohos.arkui.inspector';
2561847f8eSopenharmony_ciimport type observer from './@ohos.arkui.observer';
2661847f8eSopenharmony_ciimport promptAction from './@ohos.promptAction';
2761847f8eSopenharmony_ciimport router from './@ohos.router';
2861847f8eSopenharmony_ciimport type componentUtils from './@ohos.arkui.componentUtils';
2961847f8eSopenharmony_ciimport { ComponentContent, FrameNode } from './@ohos.arkui.node';
3061847f8eSopenharmony_ciimport type { AnimatorOptions, AnimatorResult } from './@ohos.animator';
3161847f8eSopenharmony_ciimport type { Callback, AsyncCallback } from './@ohos.base';
3261847f8eSopenharmony_ciimport { MeasureOptions } from './@ohos.measure';
3361847f8eSopenharmony_ciimport type componentSnapshot from './@ohos.arkui.componentSnapshot';
3461847f8eSopenharmony_ciimport type dragController from './@ohos.arkui.dragController';
3561847f8eSopenharmony_ciimport image from './@ohos.multimedia.image';
3661847f8eSopenharmony_ciimport type common from './@ohos.app.ability.common';
3761847f8eSopenharmony_ciimport type pointer from './@ohos.multimodalInput.pointer';
3861847f8eSopenharmony_ci
3961847f8eSopenharmony_ci/**
4061847f8eSopenharmony_ci * class Font
4161847f8eSopenharmony_ci *
4261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
4361847f8eSopenharmony_ci * @crossplatform
4461847f8eSopenharmony_ci * @since 10
4561847f8eSopenharmony_ci */
4661847f8eSopenharmony_ci/**
4761847f8eSopenharmony_ci * class Font
4861847f8eSopenharmony_ci *
4961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
5061847f8eSopenharmony_ci * @crossplatform
5161847f8eSopenharmony_ci * @atomicservice
5261847f8eSopenharmony_ci * @since 11
5361847f8eSopenharmony_ci */
5461847f8eSopenharmony_ciexport class Font {
5561847f8eSopenharmony_ci  /**
5661847f8eSopenharmony_ci   * Register a customized font in the FontManager.
5761847f8eSopenharmony_ci   *
5861847f8eSopenharmony_ci   * @param { font.FontOptions } options - FontOptions
5961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
6061847f8eSopenharmony_ci   * @crossplatform
6161847f8eSopenharmony_ci   * @since 10
6261847f8eSopenharmony_ci   */
6361847f8eSopenharmony_ci  /**
6461847f8eSopenharmony_ci   * Register a customized font in the FontManager.
6561847f8eSopenharmony_ci   *
6661847f8eSopenharmony_ci   * @param { font.FontOptions } options - FontOptions
6761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
6861847f8eSopenharmony_ci   * @crossplatform
6961847f8eSopenharmony_ci   * @atomicservice
7061847f8eSopenharmony_ci   * @since 11
7161847f8eSopenharmony_ci   */
7261847f8eSopenharmony_ci  registerFont(options: font.FontOptions): void;
7361847f8eSopenharmony_ci
7461847f8eSopenharmony_ci  /**
7561847f8eSopenharmony_ci   * Gets a list of fonts supported by system.
7661847f8eSopenharmony_ci   * @returns { Array<string> } A list of font names
7761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
7861847f8eSopenharmony_ci   * @since 10
7961847f8eSopenharmony_ci   */
8061847f8eSopenharmony_ci  /**
8161847f8eSopenharmony_ci   * Gets a list of fonts supported by system.
8261847f8eSopenharmony_ci   * @returns { Array<string> } A list of font names
8361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
8461847f8eSopenharmony_ci   * @atomicservice
8561847f8eSopenharmony_ci   * @since 11
8661847f8eSopenharmony_ci   */
8761847f8eSopenharmony_ci  getSystemFontList(): Array<string>;
8861847f8eSopenharmony_ci
8961847f8eSopenharmony_ci  /**
9061847f8eSopenharmony_ci   * Get font details according to the font name.
9161847f8eSopenharmony_ci   * @param { string } fontName - font name
9261847f8eSopenharmony_ci   * @returns { font.FontInfo } Returns the font info
9361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
9461847f8eSopenharmony_ci   * @since 10
9561847f8eSopenharmony_ci   */
9661847f8eSopenharmony_ci  /**
9761847f8eSopenharmony_ci   * Get font details according to the font name.
9861847f8eSopenharmony_ci   * @param { string } fontName - font name
9961847f8eSopenharmony_ci   * @returns { font.FontInfo } Returns the font info
10061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
10161847f8eSopenharmony_ci   * @atomicservice
10261847f8eSopenharmony_ci   * @since 11
10361847f8eSopenharmony_ci   */
10461847f8eSopenharmony_ci  getFontByName(fontName: string): font.FontInfo;
10561847f8eSopenharmony_ci}
10661847f8eSopenharmony_ci
10761847f8eSopenharmony_ci/**
10861847f8eSopenharmony_ci * class MediaQuery
10961847f8eSopenharmony_ci *
11061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
11161847f8eSopenharmony_ci * @crossplatform
11261847f8eSopenharmony_ci * @since 10
11361847f8eSopenharmony_ci */
11461847f8eSopenharmony_ci/**
11561847f8eSopenharmony_ci * class MediaQuery
11661847f8eSopenharmony_ci *
11761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
11861847f8eSopenharmony_ci * @crossplatform
11961847f8eSopenharmony_ci * @atomicservice
12061847f8eSopenharmony_ci * @since 11
12161847f8eSopenharmony_ci */
12261847f8eSopenharmony_ciexport class MediaQuery {
12361847f8eSopenharmony_ci  /**
12461847f8eSopenharmony_ci   * Sets the media query criteria and returns the corresponding listening handle
12561847f8eSopenharmony_ci   *
12661847f8eSopenharmony_ci   * @param { string } condition - media conditions
12761847f8eSopenharmony_ci   * @returns { mediaQuery.MediaQueryListener } the corresponding listening handle
12861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
12961847f8eSopenharmony_ci   * @crossplatform
13061847f8eSopenharmony_ci   * @since 10
13161847f8eSopenharmony_ci   */
13261847f8eSopenharmony_ci  /**
13361847f8eSopenharmony_ci   * Sets the media query criteria and returns the corresponding listening handle
13461847f8eSopenharmony_ci   *
13561847f8eSopenharmony_ci   * @param { string } condition - media conditions
13661847f8eSopenharmony_ci   * @returns { mediaQuery.MediaQueryListener } the corresponding listening handle
13761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
13861847f8eSopenharmony_ci   * @crossplatform
13961847f8eSopenharmony_ci   * @atomicservice
14061847f8eSopenharmony_ci   * @since 11
14161847f8eSopenharmony_ci   */
14261847f8eSopenharmony_ci  matchMediaSync(condition: string): mediaQuery.MediaQueryListener;
14361847f8eSopenharmony_ci}
14461847f8eSopenharmony_ci
14561847f8eSopenharmony_ci/**
14661847f8eSopenharmony_ci * class UIInspector
14761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
14861847f8eSopenharmony_ci * @crossplatform
14961847f8eSopenharmony_ci * @since 10
15061847f8eSopenharmony_ci */
15161847f8eSopenharmony_ci/**
15261847f8eSopenharmony_ci * class UIInspector
15361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
15461847f8eSopenharmony_ci * @crossplatform
15561847f8eSopenharmony_ci * @atomicservice
15661847f8eSopenharmony_ci * @since 11
15761847f8eSopenharmony_ci */
15861847f8eSopenharmony_ciexport class UIInspector {
15961847f8eSopenharmony_ci  /**
16061847f8eSopenharmony_ci   * Sets the component after layout or draw criteria and returns the corresponding listening handle
16161847f8eSopenharmony_ci   * @param { string } id - component id.
16261847f8eSopenharmony_ci   * @returns { inspector.ComponentObserver } create listener for observer component event.
16361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
16461847f8eSopenharmony_ci   * @crossplatform
16561847f8eSopenharmony_ci   * @since 10
16661847f8eSopenharmony_ci   */
16761847f8eSopenharmony_ci  /**
16861847f8eSopenharmony_ci   * Sets the component after layout or draw criteria and returns the corresponding listening handle
16961847f8eSopenharmony_ci   * @param { string } id - component id.
17061847f8eSopenharmony_ci   * @returns { inspector.ComponentObserver } create listener for observer component event.
17161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
17261847f8eSopenharmony_ci   * @crossplatform
17361847f8eSopenharmony_ci   * @atomicservice
17461847f8eSopenharmony_ci   * @since 11
17561847f8eSopenharmony_ci   */
17661847f8eSopenharmony_ci  createComponentObserver(id: string): inspector.ComponentObserver;
17761847f8eSopenharmony_ci}
17861847f8eSopenharmony_ci
17961847f8eSopenharmony_ci/**
18061847f8eSopenharmony_ci * class Router
18161847f8eSopenharmony_ci *
18261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
18361847f8eSopenharmony_ci * @crossplatform
18461847f8eSopenharmony_ci * @since 10
18561847f8eSopenharmony_ci */
18661847f8eSopenharmony_ci/**
18761847f8eSopenharmony_ci * class Router
18861847f8eSopenharmony_ci *
18961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
19061847f8eSopenharmony_ci * @crossplatform
19161847f8eSopenharmony_ci * @atomicservice
19261847f8eSopenharmony_ci * @since 11
19361847f8eSopenharmony_ci */
19461847f8eSopenharmony_ci/**
19561847f8eSopenharmony_ci * class Router
19661847f8eSopenharmony_ci *
19761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
19861847f8eSopenharmony_ci * @crossplatform
19961847f8eSopenharmony_ci * @atomicservice
20061847f8eSopenharmony_ci * @since 12
20161847f8eSopenharmony_ci */
20261847f8eSopenharmony_ciexport class Router {
20361847f8eSopenharmony_ci  /**
20461847f8eSopenharmony_ci   * Navigates to a specified page in the application based on the page URL and parameters.
20561847f8eSopenharmony_ci   *
20661847f8eSopenharmony_ci   * @param { router.RouterOptions } options - Options.
20761847f8eSopenharmony_ci   * @param { AsyncCallback<void> } callback - the callback of pushUrl.
20861847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
20961847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
21061847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
21161847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
21261847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - Internal error.
21361847f8eSopenharmony_ci   * @throws { BusinessError } 100002 - Uri error. The URI of the page to redirect is incorrect or does not exist
21461847f8eSopenharmony_ci   * @throws { BusinessError } 100003 - Page stack error. Too many pages are pushed.
21561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
21661847f8eSopenharmony_ci   * @crossplatform
21761847f8eSopenharmony_ci   * @since 10
21861847f8eSopenharmony_ci   */
21961847f8eSopenharmony_ci  /**
22061847f8eSopenharmony_ci   * Navigates to a specified page in the application based on the page URL and parameters.
22161847f8eSopenharmony_ci   *
22261847f8eSopenharmony_ci   * @param { router.RouterOptions } options - Options.
22361847f8eSopenharmony_ci   * @param { AsyncCallback<void> } callback - the callback of pushUrl.
22461847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
22561847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
22661847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
22761847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
22861847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - Internal error.
22961847f8eSopenharmony_ci   * @throws { BusinessError } 100002 - Uri error. The URI of the page to redirect is incorrect or does not exist
23061847f8eSopenharmony_ci   * @throws { BusinessError } 100003 - Page stack error. Too many pages are pushed.
23161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
23261847f8eSopenharmony_ci   * @crossplatform
23361847f8eSopenharmony_ci   * @atomicservice
23461847f8eSopenharmony_ci   * @since 11
23561847f8eSopenharmony_ci   */
23661847f8eSopenharmony_ci  pushUrl(options: router.RouterOptions, callback: AsyncCallback<void>): void;
23761847f8eSopenharmony_ci
23861847f8eSopenharmony_ci  /**
23961847f8eSopenharmony_ci   * Navigates to a specified page in the application based on the page URL and parameters.
24061847f8eSopenharmony_ci   *
24161847f8eSopenharmony_ci   * @param { router.RouterOptions } options - Options.
24261847f8eSopenharmony_ci   * @returns { Promise<void> } the promise returned by the function.
24361847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
24461847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
24561847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
24661847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
24761847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - Internal error.
24861847f8eSopenharmony_ci   * @throws { BusinessError } 100002 - Uri error. The URI of the page to redirect is incorrect or does not exist
24961847f8eSopenharmony_ci   * @throws { BusinessError } 100003 - Page stack error. Too many pages are pushed.
25061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
25161847f8eSopenharmony_ci   * @crossplatform
25261847f8eSopenharmony_ci   * @since 10
25361847f8eSopenharmony_ci   */
25461847f8eSopenharmony_ci  /**
25561847f8eSopenharmony_ci   * Navigates to a specified page in the application based on the page URL and parameters.
25661847f8eSopenharmony_ci   *
25761847f8eSopenharmony_ci   * @param { router.RouterOptions } options - Options.
25861847f8eSopenharmony_ci   * @returns { Promise<void> } the promise returned by the function.
25961847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
26061847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
26161847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
26261847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
26361847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - Internal error.
26461847f8eSopenharmony_ci   * @throws { BusinessError } 100002 - Uri error. The URI of the page to redirect is incorrect or does not exist
26561847f8eSopenharmony_ci   * @throws { BusinessError } 100003 - Page stack error. Too many pages are pushed.
26661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
26761847f8eSopenharmony_ci   * @crossplatform
26861847f8eSopenharmony_ci   * @atomicservice
26961847f8eSopenharmony_ci   * @since 11
27061847f8eSopenharmony_ci   */
27161847f8eSopenharmony_ci  pushUrl(options: router.RouterOptions): Promise<void>;
27261847f8eSopenharmony_ci
27361847f8eSopenharmony_ci  /**
27461847f8eSopenharmony_ci   * Navigates to a specified page in the application based on the page URL and parameters.
27561847f8eSopenharmony_ci   *
27661847f8eSopenharmony_ci   * @param { router.RouterOptions } options - Options.
27761847f8eSopenharmony_ci   * @param { router.RouterMode } mode - RouterMode.
27861847f8eSopenharmony_ci   * @param { AsyncCallback<void> } callback - the callback of pushUrl.
27961847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
28061847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
28161847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
28261847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
28361847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - Internal error.
28461847f8eSopenharmony_ci   * @throws { BusinessError } 100002 - Uri error. The URI of the page to redirect is incorrect or does not exist
28561847f8eSopenharmony_ci   * @throws { BusinessError } 100003 - Page stack error. Too many pages are pushed.
28661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
28761847f8eSopenharmony_ci   * @crossplatform
28861847f8eSopenharmony_ci   * @since 10
28961847f8eSopenharmony_ci   */
29061847f8eSopenharmony_ci  /**
29161847f8eSopenharmony_ci   * Navigates to a specified page in the application based on the page URL and parameters.
29261847f8eSopenharmony_ci   *
29361847f8eSopenharmony_ci   * @param { router.RouterOptions } options - Options.
29461847f8eSopenharmony_ci   * @param { router.RouterMode } mode - RouterMode.
29561847f8eSopenharmony_ci   * @param { AsyncCallback<void> } callback - the callback of pushUrl.
29661847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
29761847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
29861847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
29961847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
30061847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - Internal error.
30161847f8eSopenharmony_ci   * @throws { BusinessError } 100002 - Uri error. The URI of the page to redirect is incorrect or does not exist
30261847f8eSopenharmony_ci   * @throws { BusinessError } 100003 - Page stack error. Too many pages are pushed.
30361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
30461847f8eSopenharmony_ci   * @crossplatform
30561847f8eSopenharmony_ci   * @atomicservice
30661847f8eSopenharmony_ci   * @since 11
30761847f8eSopenharmony_ci   */
30861847f8eSopenharmony_ci  pushUrl(options: router.RouterOptions, mode: router.RouterMode, callback: AsyncCallback<void>): void;
30961847f8eSopenharmony_ci
31061847f8eSopenharmony_ci  /**
31161847f8eSopenharmony_ci   * Navigates to a specified page in the application based on the page URL and parameters.
31261847f8eSopenharmony_ci   *
31361847f8eSopenharmony_ci   * @param { router.RouterOptions } options - Options.
31461847f8eSopenharmony_ci   * @param { router.RouterMode } mode - RouterMode.
31561847f8eSopenharmony_ci   * @returns { Promise<void> } the promise returned by the function.
31661847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
31761847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
31861847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
31961847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
32061847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - Internal error.
32161847f8eSopenharmony_ci   * @throws { BusinessError } 100002 - Uri error. The URI of the page to redirect is incorrect or does not exist
32261847f8eSopenharmony_ci   * @throws { BusinessError } 100003 - Page stack error. Too many pages are pushed.
32361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
32461847f8eSopenharmony_ci   * @crossplatform
32561847f8eSopenharmony_ci   * @since 10
32661847f8eSopenharmony_ci   */
32761847f8eSopenharmony_ci  /**
32861847f8eSopenharmony_ci   * Navigates to a specified page in the application based on the page URL and parameters.
32961847f8eSopenharmony_ci   *
33061847f8eSopenharmony_ci   * @param { router.RouterOptions } options - Options.
33161847f8eSopenharmony_ci   * @param { router.RouterMode } mode - RouterMode.
33261847f8eSopenharmony_ci   * @returns { Promise<void> } the promise returned by the function.
33361847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
33461847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
33561847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
33661847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
33761847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - Internal error.
33861847f8eSopenharmony_ci   * @throws { BusinessError } 100002 - Uri error. The URI of the page to redirect is incorrect or does not exist
33961847f8eSopenharmony_ci   * @throws { BusinessError } 100003 - Page stack error. Too many pages are pushed.
34061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
34161847f8eSopenharmony_ci   * @crossplatform
34261847f8eSopenharmony_ci   * @atomicservice
34361847f8eSopenharmony_ci   * @since 11
34461847f8eSopenharmony_ci   */
34561847f8eSopenharmony_ci  pushUrl(options: router.RouterOptions, mode: router.RouterMode): Promise<void>;
34661847f8eSopenharmony_ci
34761847f8eSopenharmony_ci  /**
34861847f8eSopenharmony_ci   * Replaces the current page with another one in the application. The current page is destroyed after replacement.
34961847f8eSopenharmony_ci   *
35061847f8eSopenharmony_ci   * @param { router.RouterOptions } options - Options.
35161847f8eSopenharmony_ci   * @param { AsyncCallback<void> } callback - the callback of replaceUrl.
35261847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
35361847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
35461847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
35561847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
35661847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - The UI execution context is not found. This error code is thrown only in the standard system.
35761847f8eSopenharmony_ci   * @throws { BusinessError } 200002 - Uri error. The URI of the page to be used for replacement is incorrect or does not exist.
35861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
35961847f8eSopenharmony_ci   * @crossplatform
36061847f8eSopenharmony_ci   * @since 10
36161847f8eSopenharmony_ci   */
36261847f8eSopenharmony_ci  /**
36361847f8eSopenharmony_ci   * Replaces the current page with another one in the application. The current page is destroyed after replacement.
36461847f8eSopenharmony_ci   *
36561847f8eSopenharmony_ci   * @param { router.RouterOptions } options - Options.
36661847f8eSopenharmony_ci   * @param { AsyncCallback<void> } callback - the callback of replaceUrl.
36761847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
36861847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
36961847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
37061847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
37161847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - The UI execution context is not found. This error code is thrown only in the standard system.
37261847f8eSopenharmony_ci   * @throws { BusinessError } 200002 - Uri error. The URI of the page to be used for replacement is incorrect or does not exist.
37361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
37461847f8eSopenharmony_ci   * @crossplatform
37561847f8eSopenharmony_ci   * @atomicservice
37661847f8eSopenharmony_ci   * @since 11
37761847f8eSopenharmony_ci   */
37861847f8eSopenharmony_ci  replaceUrl(options: router.RouterOptions, callback: AsyncCallback<void>): void;
37961847f8eSopenharmony_ci
38061847f8eSopenharmony_ci  /**
38161847f8eSopenharmony_ci   * Replaces the current page with another one in the application. The current page is destroyed after replacement.
38261847f8eSopenharmony_ci   *
38361847f8eSopenharmony_ci   * @param { router.RouterOptions } options - Options.
38461847f8eSopenharmony_ci   * @returns { Promise<void> } the promise returned by the function.
38561847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
38661847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
38761847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
38861847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
38961847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - The UI execution context is not found. This error code is thrown only in the standard system.
39061847f8eSopenharmony_ci   * @throws { BusinessError } 200002 - Uri error. The URI of the page to be used for replacement is incorrect or does not exist.
39161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
39261847f8eSopenharmony_ci   * @crossplatform
39361847f8eSopenharmony_ci   * @since 10
39461847f8eSopenharmony_ci   */
39561847f8eSopenharmony_ci  /**
39661847f8eSopenharmony_ci   * Replaces the current page with another one in the application. The current page is destroyed after replacement.
39761847f8eSopenharmony_ci   *
39861847f8eSopenharmony_ci   * @param { router.RouterOptions } options - Options.
39961847f8eSopenharmony_ci   * @returns { Promise<void> } the promise returned by the function.
40061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
40161847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
40261847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
40361847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
40461847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - The UI execution context is not found. This error code is thrown only in the standard system.
40561847f8eSopenharmony_ci   * @throws { BusinessError } 200002 - Uri error. The URI of the page to be used for replacement is incorrect or does not exist.
40661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
40761847f8eSopenharmony_ci   * @crossplatform
40861847f8eSopenharmony_ci   * @atomicservice
40961847f8eSopenharmony_ci   * @since 11
41061847f8eSopenharmony_ci   */
41161847f8eSopenharmony_ci  replaceUrl(options: router.RouterOptions): Promise<void>;
41261847f8eSopenharmony_ci
41361847f8eSopenharmony_ci  /**
41461847f8eSopenharmony_ci   * Replaces the current page with another one in the application. The current page is destroyed after replacement.
41561847f8eSopenharmony_ci   *
41661847f8eSopenharmony_ci   * @param { router.RouterOptions } options - Options.
41761847f8eSopenharmony_ci   * @param { router.RouterMode } mode - RouterMode.
41861847f8eSopenharmony_ci   * @param { AsyncCallback<void> } callback - the callback of replaceUrl.
41961847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
42061847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
42161847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
42261847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
42361847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - The UI execution context is not found. This error code is thrown only in the standard system.
42461847f8eSopenharmony_ci   * @throws { BusinessError } 200002 - Uri error. The URI of the page to be used for replacement is incorrect or does not exist.
42561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
42661847f8eSopenharmony_ci   * @crossplatform
42761847f8eSopenharmony_ci   * @since 10
42861847f8eSopenharmony_ci   */
42961847f8eSopenharmony_ci  /**
43061847f8eSopenharmony_ci   * Replaces the current page with another one in the application. The current page is destroyed after replacement.
43161847f8eSopenharmony_ci   *
43261847f8eSopenharmony_ci   * @param { router.RouterOptions } options - Options.
43361847f8eSopenharmony_ci   * @param { router.RouterMode } mode - RouterMode.
43461847f8eSopenharmony_ci   * @param { AsyncCallback<void> } callback - the callback of replaceUrl.
43561847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
43661847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
43761847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
43861847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
43961847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - The UI execution context is not found. This error code is thrown only in the standard system.
44061847f8eSopenharmony_ci   * @throws { BusinessError } 200002 - Uri error. The URI of the page to be used for replacement is incorrect or does not exist.
44161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
44261847f8eSopenharmony_ci   * @crossplatform
44361847f8eSopenharmony_ci   * @atomicservice
44461847f8eSopenharmony_ci   * @since 11
44561847f8eSopenharmony_ci   */
44661847f8eSopenharmony_ci  replaceUrl(options: router.RouterOptions, mode: router.RouterMode, callback: AsyncCallback<void>): void;
44761847f8eSopenharmony_ci
44861847f8eSopenharmony_ci  /**
44961847f8eSopenharmony_ci   * Replaces the current page with another one in the application. The current page is destroyed after replacement.
45061847f8eSopenharmony_ci   *
45161847f8eSopenharmony_ci   * @param { router.RouterOptions } options - Options.
45261847f8eSopenharmony_ci   * @param { router.RouterMode } mode - RouterMode.
45361847f8eSopenharmony_ci   * @returns { Promise<void> } the promise returned by the function.
45461847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
45561847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
45661847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
45761847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
45861847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - Failed to get the delegate. This error code is thrown only in the standard system.
45961847f8eSopenharmony_ci   * @throws { BusinessError } 200002 - Uri error. The URI of the page to be used for replacement is incorrect or does not exist.
46061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
46161847f8eSopenharmony_ci   * @crossplatform
46261847f8eSopenharmony_ci   * @since 10
46361847f8eSopenharmony_ci   */
46461847f8eSopenharmony_ci  /**
46561847f8eSopenharmony_ci   * Replaces the current page with another one in the application. The current page is destroyed after replacement.
46661847f8eSopenharmony_ci   *
46761847f8eSopenharmony_ci   * @param { router.RouterOptions } options - Options.
46861847f8eSopenharmony_ci   * @param { router.RouterMode } mode - RouterMode.
46961847f8eSopenharmony_ci   * @returns { Promise<void> } the promise returned by the function.
47061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
47161847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
47261847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
47361847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
47461847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - Failed to get the delegate. This error code is thrown only in the standard system.
47561847f8eSopenharmony_ci   * @throws { BusinessError } 200002 - Uri error. The URI of the page to be used for replacement is incorrect or does not exist.
47661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
47761847f8eSopenharmony_ci   * @crossplatform
47861847f8eSopenharmony_ci   * @atomicservice
47961847f8eSopenharmony_ci   * @since 11
48061847f8eSopenharmony_ci   */
48161847f8eSopenharmony_ci  replaceUrl(options: router.RouterOptions, mode: router.RouterMode): Promise<void>;
48261847f8eSopenharmony_ci
48361847f8eSopenharmony_ci  /**
48461847f8eSopenharmony_ci   * Returns to the previous page or a specified page.
48561847f8eSopenharmony_ci   *
48661847f8eSopenharmony_ci   * @param { router.RouterOptions } options - Options.
48761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
48861847f8eSopenharmony_ci   * @crossplatform
48961847f8eSopenharmony_ci   * @since 10
49061847f8eSopenharmony_ci   */
49161847f8eSopenharmony_ci  /**
49261847f8eSopenharmony_ci   * Returns to the previous page or a specified page.
49361847f8eSopenharmony_ci   *
49461847f8eSopenharmony_ci   * @param { router.RouterOptions } options - Options.
49561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
49661847f8eSopenharmony_ci   * @crossplatform
49761847f8eSopenharmony_ci   * @atomicservice
49861847f8eSopenharmony_ci   * @since 11
49961847f8eSopenharmony_ci   */
50061847f8eSopenharmony_ci  back(options?: router.RouterOptions): void;
50161847f8eSopenharmony_ci
50261847f8eSopenharmony_ci  /**
50361847f8eSopenharmony_ci   * Returns to the specified page.
50461847f8eSopenharmony_ci   *
50561847f8eSopenharmony_ci   * @param { number } index - index of page.
50661847f8eSopenharmony_ci   * @param { Object } [params] - params of page.
50761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
50861847f8eSopenharmony_ci   * @crossplatform
50961847f8eSopenharmony_ci   * @atomicservice
51061847f8eSopenharmony_ci   * @since 12
51161847f8eSopenharmony_ci   */
51261847f8eSopenharmony_ci  back(index: number, params?: Object): void;
51361847f8eSopenharmony_ci
51461847f8eSopenharmony_ci  /**
51561847f8eSopenharmony_ci   * Clears all historical pages and retains only the current page at the top of the stack.
51661847f8eSopenharmony_ci   *
51761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
51861847f8eSopenharmony_ci   * @crossplatform
51961847f8eSopenharmony_ci   * @since 10
52061847f8eSopenharmony_ci   */
52161847f8eSopenharmony_ci  /**
52261847f8eSopenharmony_ci   * Clears all historical pages and retains only the current page at the top of the stack.
52361847f8eSopenharmony_ci   *
52461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
52561847f8eSopenharmony_ci   * @crossplatform
52661847f8eSopenharmony_ci   * @atomicservice
52761847f8eSopenharmony_ci   * @since 11
52861847f8eSopenharmony_ci   */
52961847f8eSopenharmony_ci  clear(): void;
53061847f8eSopenharmony_ci
53161847f8eSopenharmony_ci  /**
53261847f8eSopenharmony_ci   * Obtains the number of pages in the current stack.
53361847f8eSopenharmony_ci   *
53461847f8eSopenharmony_ci   * @returns { string } Number of pages in the stack. The maximum value is 32.
53561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
53661847f8eSopenharmony_ci   * @crossplatform
53761847f8eSopenharmony_ci   * @since 10
53861847f8eSopenharmony_ci   */
53961847f8eSopenharmony_ci  /**
54061847f8eSopenharmony_ci   * Obtains the number of pages in the current stack.
54161847f8eSopenharmony_ci   *
54261847f8eSopenharmony_ci   * @returns { string } Number of pages in the stack. The maximum value is 32.
54361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
54461847f8eSopenharmony_ci   * @crossplatform
54561847f8eSopenharmony_ci   * @atomicservice
54661847f8eSopenharmony_ci   * @since 11
54761847f8eSopenharmony_ci   */
54861847f8eSopenharmony_ci  getLength(): string;
54961847f8eSopenharmony_ci
55061847f8eSopenharmony_ci  /**
55161847f8eSopenharmony_ci   * Obtains information about the current page state.
55261847f8eSopenharmony_ci   *
55361847f8eSopenharmony_ci   * @returns { router.RouterState } Page state.
55461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
55561847f8eSopenharmony_ci   * @crossplatform
55661847f8eSopenharmony_ci   * @since 10
55761847f8eSopenharmony_ci   */
55861847f8eSopenharmony_ci  /**
55961847f8eSopenharmony_ci   * Obtains information about the current page state.
56061847f8eSopenharmony_ci   *
56161847f8eSopenharmony_ci   * @returns { router.RouterState } Page state.
56261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
56361847f8eSopenharmony_ci   * @crossplatform
56461847f8eSopenharmony_ci   * @atomicservice
56561847f8eSopenharmony_ci   * @since 11
56661847f8eSopenharmony_ci   */
56761847f8eSopenharmony_ci  getState(): router.RouterState;
56861847f8eSopenharmony_ci
56961847f8eSopenharmony_ci /**
57061847f8eSopenharmony_ci  * Obtains page information by index.
57161847f8eSopenharmony_ci  *
57261847f8eSopenharmony_ci  * @param { number } index - Index of page.
57361847f8eSopenharmony_ci  * @returns { router.RouterState | undefined } Page state.
57461847f8eSopenharmony_ci  * @syscap SystemCapability.ArkUI.ArkUI.Full
57561847f8eSopenharmony_ci  * @crossplatform
57661847f8eSopenharmony_ci  * @atomicservice
57761847f8eSopenharmony_ci  * @since 12
57861847f8eSopenharmony_ci  */
57961847f8eSopenharmony_ci  getStateByIndex(index: number): router.RouterState | undefined;
58061847f8eSopenharmony_ci
58161847f8eSopenharmony_ci /**
58261847f8eSopenharmony_ci  * Obtains page information by url.
58361847f8eSopenharmony_ci  *
58461847f8eSopenharmony_ci  * @param { string } url - URL of page.
58561847f8eSopenharmony_ci  * @returns { Array<router.RouterState> } Page state.
58661847f8eSopenharmony_ci  * @syscap SystemCapability.ArkUI.ArkUI.Full
58761847f8eSopenharmony_ci  * @crossplatform
58861847f8eSopenharmony_ci  * @atomicservice
58961847f8eSopenharmony_ci  * @since 12
59061847f8eSopenharmony_ci  */
59161847f8eSopenharmony_ci  getStateByUrl(url: string): Array<router.RouterState>;
59261847f8eSopenharmony_ci
59361847f8eSopenharmony_ci  /**
59461847f8eSopenharmony_ci   * Pop up alert dialog to ask whether to back.
59561847f8eSopenharmony_ci   *
59661847f8eSopenharmony_ci   * @param { router.EnableAlertOptions } options - Options.
59761847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
59861847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
59961847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
60061847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
60161847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - Internal error.
60261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
60361847f8eSopenharmony_ci   * @crossplatform
60461847f8eSopenharmony_ci   * @since 10
60561847f8eSopenharmony_ci   */
60661847f8eSopenharmony_ci  /**
60761847f8eSopenharmony_ci   * Pop up alert dialog to ask whether to back.
60861847f8eSopenharmony_ci   *
60961847f8eSopenharmony_ci   * @param { router.EnableAlertOptions } options - Options.
61061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
61161847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
61261847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
61361847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
61461847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - Internal error.
61561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
61661847f8eSopenharmony_ci   * @crossplatform
61761847f8eSopenharmony_ci   * @atomicservice
61861847f8eSopenharmony_ci   * @since 11
61961847f8eSopenharmony_ci   */
62061847f8eSopenharmony_ci  showAlertBeforeBackPage(options: router.EnableAlertOptions): void;
62161847f8eSopenharmony_ci
62261847f8eSopenharmony_ci  /**
62361847f8eSopenharmony_ci   * Hide alert before back page.
62461847f8eSopenharmony_ci   *
62561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
62661847f8eSopenharmony_ci   * @crossplatform
62761847f8eSopenharmony_ci   * @since 10
62861847f8eSopenharmony_ci   */
62961847f8eSopenharmony_ci  /**
63061847f8eSopenharmony_ci   * Hide alert before back page.
63161847f8eSopenharmony_ci   *
63261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
63361847f8eSopenharmony_ci   * @crossplatform
63461847f8eSopenharmony_ci   * @atomicservice
63561847f8eSopenharmony_ci   * @since 11
63661847f8eSopenharmony_ci   */
63761847f8eSopenharmony_ci  hideAlertBeforeBackPage(): void;
63861847f8eSopenharmony_ci
63961847f8eSopenharmony_ci  /**
64061847f8eSopenharmony_ci   * Obtains information about the current page params.
64161847f8eSopenharmony_ci   *
64261847f8eSopenharmony_ci   * @returns { Object } Page params.
64361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
64461847f8eSopenharmony_ci   * @crossplatform
64561847f8eSopenharmony_ci   * @since 10
64661847f8eSopenharmony_ci   */
64761847f8eSopenharmony_ci  /**
64861847f8eSopenharmony_ci   * Obtains information about the current page params.
64961847f8eSopenharmony_ci   *
65061847f8eSopenharmony_ci   * @returns { Object } Page params.
65161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
65261847f8eSopenharmony_ci   * @crossplatform
65361847f8eSopenharmony_ci   * @atomicservice
65461847f8eSopenharmony_ci   * @since 11
65561847f8eSopenharmony_ci   */
65661847f8eSopenharmony_ci  getParams(): Object;
65761847f8eSopenharmony_ci
65861847f8eSopenharmony_ci  /**
65961847f8eSopenharmony_ci   * Navigates to a specified page in the application based on the page URL and parameters.
66061847f8eSopenharmony_ci   * @param { router.NamedRouterOptions } options - Options.
66161847f8eSopenharmony_ci   * @param { AsyncCallback<void> } callback - the callback of pushNamedRoute.
66261847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
66361847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
66461847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
66561847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
66661847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - Internal error.
66761847f8eSopenharmony_ci   * @throws { BusinessError } 100003 - Page stack error. Too many pages are pushed.
66861847f8eSopenharmony_ci   * @throws { BusinessError } 100004 - Named route error. The named route does not exist.
66961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
67061847f8eSopenharmony_ci   * @crossplatform
67161847f8eSopenharmony_ci   * @since 10
67261847f8eSopenharmony_ci   */
67361847f8eSopenharmony_ci  /**
67461847f8eSopenharmony_ci   * Navigates to a specified page in the application based on the page URL and parameters.
67561847f8eSopenharmony_ci   * @param { router.NamedRouterOptions } options - Options.
67661847f8eSopenharmony_ci   * @param { AsyncCallback<void> } callback - the callback of pushNamedRoute.
67761847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
67861847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
67961847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
68061847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
68161847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - Internal error.
68261847f8eSopenharmony_ci   * @throws { BusinessError } 100003 - Page stack error. Too many pages are pushed.
68361847f8eSopenharmony_ci   * @throws { BusinessError } 100004 - Named route error. The named route does not exist.
68461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
68561847f8eSopenharmony_ci   * @crossplatform
68661847f8eSopenharmony_ci   * @atomicservice
68761847f8eSopenharmony_ci   * @since 11
68861847f8eSopenharmony_ci   */
68961847f8eSopenharmony_ci  pushNamedRoute(options: router.NamedRouterOptions, callback: AsyncCallback<void>): void;
69061847f8eSopenharmony_ci
69161847f8eSopenharmony_ci  /**
69261847f8eSopenharmony_ci   * Navigates to a specified page in the application based on the page URL and parameters.
69361847f8eSopenharmony_ci   * @param { router.NamedRouterOptions } options - Options.
69461847f8eSopenharmony_ci   * @returns { Promise<void> } the promise returned by the function.
69561847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
69661847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
69761847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
69861847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
69961847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - Internal error.
70061847f8eSopenharmony_ci   * @throws { BusinessError } 100003 - Page stack error. Too many pages are pushed.
70161847f8eSopenharmony_ci   * @throws { BusinessError } 100004 - Named route error. The named route does not exist.
70261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
70361847f8eSopenharmony_ci   * @crossplatform
70461847f8eSopenharmony_ci   * @since 10
70561847f8eSopenharmony_ci   */
70661847f8eSopenharmony_ci  /**
70761847f8eSopenharmony_ci   * Navigates to a specified page in the application based on the page URL and parameters.
70861847f8eSopenharmony_ci   * @param { router.NamedRouterOptions } options - Options.
70961847f8eSopenharmony_ci   * @returns { Promise<void> } the promise returned by the function.
71061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
71161847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
71261847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
71361847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
71461847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - Internal error.
71561847f8eSopenharmony_ci   * @throws { BusinessError } 100003 - Page stack error. Too many pages are pushed.
71661847f8eSopenharmony_ci   * @throws { BusinessError } 100004 - Named route error. The named route does not exist.
71761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
71861847f8eSopenharmony_ci   * @crossplatform
71961847f8eSopenharmony_ci   * @atomicservice
72061847f8eSopenharmony_ci   * @since 11
72161847f8eSopenharmony_ci   */
72261847f8eSopenharmony_ci  pushNamedRoute(options: router.NamedRouterOptions): Promise<void>;
72361847f8eSopenharmony_ci
72461847f8eSopenharmony_ci  /**
72561847f8eSopenharmony_ci   * Navigates to a specified page in the application based on the page URL and parameters.
72661847f8eSopenharmony_ci   * @param { router.NamedRouterOptions } options - Options.
72761847f8eSopenharmony_ci   * @param { router.RouterMode } mode - RouterMode.
72861847f8eSopenharmony_ci   * @param { AsyncCallback<void> } callback - the callback of pushNamedRoute.
72961847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
73061847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
73161847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
73261847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
73361847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - Internal error.
73461847f8eSopenharmony_ci   * @throws { BusinessError } 100003 - Page stack error. Too many pages are pushed.
73561847f8eSopenharmony_ci   * @throws { BusinessError } 100004 - Named route error. The named route does not exist.
73661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
73761847f8eSopenharmony_ci   * @crossplatform
73861847f8eSopenharmony_ci   * @since 10
73961847f8eSopenharmony_ci  */
74061847f8eSopenharmony_ci  /**
74161847f8eSopenharmony_ci   * Navigates to a specified page in the application based on the page URL and parameters.
74261847f8eSopenharmony_ci   * @param { router.NamedRouterOptions } options - Options.
74361847f8eSopenharmony_ci   * @param { router.RouterMode } mode - RouterMode.
74461847f8eSopenharmony_ci   * @param { AsyncCallback<void> } callback - the callback of pushNamedRoute.
74561847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
74661847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
74761847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
74861847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
74961847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - Internal error.
75061847f8eSopenharmony_ci   * @throws { BusinessError } 100003 - Page stack error. Too many pages are pushed.
75161847f8eSopenharmony_ci   * @throws { BusinessError } 100004 - Named route error. The named route does not exist.
75261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
75361847f8eSopenharmony_ci   * @crossplatform
75461847f8eSopenharmony_ci   * @atomicservice
75561847f8eSopenharmony_ci   * @since 11
75661847f8eSopenharmony_ci  */
75761847f8eSopenharmony_ci  pushNamedRoute(options: router.NamedRouterOptions, mode: router.RouterMode, callback: AsyncCallback<void>): void;
75861847f8eSopenharmony_ci
75961847f8eSopenharmony_ci  /**
76061847f8eSopenharmony_ci   * Navigates to a specified page in the application based on the page URL and parameters.
76161847f8eSopenharmony_ci   * @param { router.NamedRouterOptions } options - Options.
76261847f8eSopenharmony_ci   * @param { router.RouterMode } mode - RouterMode.
76361847f8eSopenharmony_ci   * @returns { Promise<void> } the promise returned by the function.
76461847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
76561847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
76661847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
76761847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
76861847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - Internal error.
76961847f8eSopenharmony_ci   * @throws { BusinessError } 100003 - Page stack error. Too many pages are pushed.
77061847f8eSopenharmony_ci   * @throws { BusinessError } 100004 - Named route error. The named route does not exist.
77161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
77261847f8eSopenharmony_ci   * @crossplatform
77361847f8eSopenharmony_ci   * @since 10
77461847f8eSopenharmony_ci  */
77561847f8eSopenharmony_ci  /**
77661847f8eSopenharmony_ci   * Navigates to a specified page in the application based on the page URL and parameters.
77761847f8eSopenharmony_ci   * @param { router.NamedRouterOptions } options - Options.
77861847f8eSopenharmony_ci   * @param { router.RouterMode } mode - RouterMode.
77961847f8eSopenharmony_ci   * @returns { Promise<void> } the promise returned by the function.
78061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
78161847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
78261847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
78361847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
78461847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - Internal error.
78561847f8eSopenharmony_ci   * @throws { BusinessError } 100003 - Page stack error. Too many pages are pushed.
78661847f8eSopenharmony_ci   * @throws { BusinessError } 100004 - Named route error. The named route does not exist.
78761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
78861847f8eSopenharmony_ci   * @crossplatform
78961847f8eSopenharmony_ci   * @atomicservice
79061847f8eSopenharmony_ci   * @since 11
79161847f8eSopenharmony_ci  */
79261847f8eSopenharmony_ci  pushNamedRoute(options: router.NamedRouterOptions, mode: router.RouterMode): Promise<void>;
79361847f8eSopenharmony_ci
79461847f8eSopenharmony_ci  /**
79561847f8eSopenharmony_ci   * Replaces the current page with another one in the application. The current page is destroyed after replacement.
79661847f8eSopenharmony_ci   * @param { router.NamedRouterOptions } options - Options.
79761847f8eSopenharmony_ci   * @param { AsyncCallback<void> } callback - the callback of replaceNamedRoute.
79861847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
79961847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
80061847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
80161847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
80261847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - The UI execution context is not found. This error code is thrown only in the standard system.
80361847f8eSopenharmony_ci   * @throws { BusinessError } 100004 - Named route error. The named route does not exist.
80461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
80561847f8eSopenharmony_ci   * @crossplatform
80661847f8eSopenharmony_ci   * @since 10
80761847f8eSopenharmony_ci   */
80861847f8eSopenharmony_ci  /**
80961847f8eSopenharmony_ci   * Replaces the current page with another one in the application. The current page is destroyed after replacement.
81061847f8eSopenharmony_ci   * @param { router.NamedRouterOptions } options - Options.
81161847f8eSopenharmony_ci   * @param { AsyncCallback<void> } callback - the callback of replaceNamedRoute.
81261847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
81361847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
81461847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
81561847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
81661847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - The UI execution context is not found. This error code is thrown only in the standard system.
81761847f8eSopenharmony_ci   * @throws { BusinessError } 100004 - Named route error. The named route does not exist.
81861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
81961847f8eSopenharmony_ci   * @crossplatform
82061847f8eSopenharmony_ci   * @atomicservice
82161847f8eSopenharmony_ci   * @since 11
82261847f8eSopenharmony_ci   */
82361847f8eSopenharmony_ci  replaceNamedRoute(options: router.NamedRouterOptions, callback: AsyncCallback<void>): void;
82461847f8eSopenharmony_ci
82561847f8eSopenharmony_ci  /**
82661847f8eSopenharmony_ci   * Replaces the current page with another one in the application. The current page is destroyed after replacement.
82761847f8eSopenharmony_ci   * @param { router.NamedRouterOptions } options - Options.
82861847f8eSopenharmony_ci   * @returns { Promise<void> } the promise returned by the function.
82961847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
83061847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
83161847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
83261847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
83361847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - The UI execution context is not found. This error code is thrown only in the standard system.
83461847f8eSopenharmony_ci   * @throws { BusinessError } 100004 - Named route error. The named route does not exist.
83561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
83661847f8eSopenharmony_ci   * @crossplatform
83761847f8eSopenharmony_ci   * @since 10
83861847f8eSopenharmony_ci   */
83961847f8eSopenharmony_ci  /**
84061847f8eSopenharmony_ci   * Replaces the current page with another one in the application. The current page is destroyed after replacement.
84161847f8eSopenharmony_ci   * @param { router.NamedRouterOptions } options - Options.
84261847f8eSopenharmony_ci   * @returns { Promise<void> } the promise returned by the function.
84361847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the number of parameters is less than 1 or the type of the url parameter is not string.
84461847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - The UI execution context is not found. This error code is thrown only in the standard system.
84561847f8eSopenharmony_ci   * @throws { BusinessError } 100004 - Named route error. The named route does not exist.
84661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
84761847f8eSopenharmony_ci   * @crossplatform
84861847f8eSopenharmony_ci   * @atomicservice
84961847f8eSopenharmony_ci   * @since 11
85061847f8eSopenharmony_ci   */
85161847f8eSopenharmony_ci  replaceNamedRoute(options: router.NamedRouterOptions): Promise<void>;
85261847f8eSopenharmony_ci
85361847f8eSopenharmony_ci  /**
85461847f8eSopenharmony_ci   * Replaces the current page with another one in the application. The current page is destroyed after replacement.
85561847f8eSopenharmony_ci   * @param { router.NamedRouterOptions } options - Options.
85661847f8eSopenharmony_ci   * @param { router.RouterMode } mode - RouterMode.
85761847f8eSopenharmony_ci   * @param { AsyncCallback<void> } callback - the callback of replaceNamedRoute.
85861847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
85961847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
86061847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
86161847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
86261847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - The UI execution context is not found. This error code is thrown only in the standard system.
86361847f8eSopenharmony_ci   * @throws { BusinessError } 100004 - Named route error. The named route does not exist.
86461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
86561847f8eSopenharmony_ci   * @crossplatform
86661847f8eSopenharmony_ci   * @since 10
86761847f8eSopenharmony_ci   */
86861847f8eSopenharmony_ci  /**
86961847f8eSopenharmony_ci   * Replaces the current page with another one in the application. The current page is destroyed after replacement.
87061847f8eSopenharmony_ci   * @param { router.NamedRouterOptions } options - Options.
87161847f8eSopenharmony_ci   * @param { router.RouterMode } mode - RouterMode.
87261847f8eSopenharmony_ci   * @param { AsyncCallback<void> } callback - the callback of replaceNamedRoute.
87361847f8eSopenharmony_ci   * @throws { BusinessError } 401 - if the number of parameters is less than 1 or the type of the url parameter is not string.
87461847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - The UI execution context is not found. This error code is thrown only in the standard system.
87561847f8eSopenharmony_ci   * @throws { BusinessError } 100004 - Named route error. The named route does not exist.
87661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
87761847f8eSopenharmony_ci   * @crossplatform
87861847f8eSopenharmony_ci   * @atomicservice
87961847f8eSopenharmony_ci   * @since 11
88061847f8eSopenharmony_ci   */
88161847f8eSopenharmony_ci  replaceNamedRoute(options: router.NamedRouterOptions, mode: router.RouterMode, callback: AsyncCallback<void>): void;
88261847f8eSopenharmony_ci
88361847f8eSopenharmony_ci  /**
88461847f8eSopenharmony_ci   * Replaces the current page with another one in the application. The current page is destroyed after replacement.
88561847f8eSopenharmony_ci   * @param { router.NamedRouterOptions } options - Options.
88661847f8eSopenharmony_ci   * @param { router.RouterMode } mode - RouterMode.
88761847f8eSopenharmony_ci   * @returns { Promise<void> } the promise returned by the function.
88861847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
88961847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
89061847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
89161847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
89261847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - Failed to get the delegate. This error code is thrown only in the standard system.
89361847f8eSopenharmony_ci   * @throws { BusinessError } 100004 - Named route error. The named route does not exist.
89461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
89561847f8eSopenharmony_ci   * @crossplatform
89661847f8eSopenharmony_ci   * @since 10
89761847f8eSopenharmony_ci   */
89861847f8eSopenharmony_ci  /**
89961847f8eSopenharmony_ci   * Replaces the current page with another one in the application. The current page is destroyed after replacement.
90061847f8eSopenharmony_ci   * @param { router.NamedRouterOptions } options - Options.
90161847f8eSopenharmony_ci   * @param { router.RouterMode } mode - RouterMode.
90261847f8eSopenharmony_ci   * @returns { Promise<void> } the promise returned by the function.
90361847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
90461847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
90561847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
90661847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
90761847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - Failed to get the delegate. This error code is thrown only in the standard system.
90861847f8eSopenharmony_ci   * @throws { BusinessError } 100004 - Named route error. The named route does not exist.
90961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
91061847f8eSopenharmony_ci   * @crossplatform
91161847f8eSopenharmony_ci   * @atomicservice
91261847f8eSopenharmony_ci   * @since 11
91361847f8eSopenharmony_ci   */
91461847f8eSopenharmony_ci  replaceNamedRoute(options: router.NamedRouterOptions, mode: router.RouterMode): Promise<void>;
91561847f8eSopenharmony_ci}
91661847f8eSopenharmony_ci
91761847f8eSopenharmony_ci/**
91861847f8eSopenharmony_ci * class PromptAction
91961847f8eSopenharmony_ci *
92061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
92161847f8eSopenharmony_ci * @crossplatform
92261847f8eSopenharmony_ci * @since 10
92361847f8eSopenharmony_ci */
92461847f8eSopenharmony_ci/**
92561847f8eSopenharmony_ci * class PromptAction
92661847f8eSopenharmony_ci *
92761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
92861847f8eSopenharmony_ci * @crossplatform
92961847f8eSopenharmony_ci * @atomicservice
93061847f8eSopenharmony_ci * @since 11
93161847f8eSopenharmony_ci */
93261847f8eSopenharmony_ciexport class PromptAction {
93361847f8eSopenharmony_ci  /**
93461847f8eSopenharmony_ci   * Displays the notification text.
93561847f8eSopenharmony_ci   *
93661847f8eSopenharmony_ci   * @param { promptAction.ShowToastOptions } options - Options.
93761847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
93861847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
93961847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
94061847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
94161847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - Internal error.
94261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
94361847f8eSopenharmony_ci   * @crossplatform
94461847f8eSopenharmony_ci   * @since 10
94561847f8eSopenharmony_ci   */
94661847f8eSopenharmony_ci  /**
94761847f8eSopenharmony_ci   * Displays the notification text.
94861847f8eSopenharmony_ci   *
94961847f8eSopenharmony_ci   * @param { promptAction.ShowToastOptions } options - Options.
95061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
95161847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
95261847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
95361847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
95461847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - Internal error.
95561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
95661847f8eSopenharmony_ci   * @crossplatform
95761847f8eSopenharmony_ci   * @atomicservice
95861847f8eSopenharmony_ci   * @since 11
95961847f8eSopenharmony_ci   */
96061847f8eSopenharmony_ci  showToast(options: promptAction.ShowToastOptions): void;
96161847f8eSopenharmony_ci
96261847f8eSopenharmony_ci  /**
96361847f8eSopenharmony_ci   * Displays the notification text.
96461847f8eSopenharmony_ci   *
96561847f8eSopenharmony_ci   * @param { promptAction.ShowToastOptions } options - Options.
96661847f8eSopenharmony_ci   * @returns { Promise<number> } return the toast id that will be used by closeToast.
96761847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
96861847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
96961847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
97061847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
97161847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - Internal error.
97261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
97361847f8eSopenharmony_ci   * @crossplatform
97461847f8eSopenharmony_ci   * @atomicservice
97561847f8eSopenharmony_ci   * @since 13
97661847f8eSopenharmony_ci   */
97761847f8eSopenharmony_ci  openToast(options: promptAction.ShowToastOptions): Promise<number>;
97861847f8eSopenharmony_ci
97961847f8eSopenharmony_ci  /**
98061847f8eSopenharmony_ci   * Close the notification text.
98161847f8eSopenharmony_ci   *
98261847f8eSopenharmony_ci   * @param { number } toastId - the toast id that returned by openToast.
98361847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
98461847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
98561847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
98661847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
98761847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - Internal error.
98861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
98961847f8eSopenharmony_ci   * @crossplatform
99061847f8eSopenharmony_ci   * @atomicservice
99161847f8eSopenharmony_ci   * @since 13
99261847f8eSopenharmony_ci   */
99361847f8eSopenharmony_ci  closeToast(toastId: number): void;
99461847f8eSopenharmony_ci
99561847f8eSopenharmony_ci  /**
99661847f8eSopenharmony_ci   * Displays the dialog box.
99761847f8eSopenharmony_ci   *
99861847f8eSopenharmony_ci   * @param { promptAction.ShowDialogOptions } options - Options.
99961847f8eSopenharmony_ci   * @param { AsyncCallback<promptAction.ShowDialogSuccessResponse> } callback - the callback of showDialog.
100061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
100161847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
100261847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
100361847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
100461847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - Internal error.
100561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
100661847f8eSopenharmony_ci   * @crossplatform
100761847f8eSopenharmony_ci   * @since 10
100861847f8eSopenharmony_ci   */
100961847f8eSopenharmony_ci  /**
101061847f8eSopenharmony_ci   * Displays the dialog box.
101161847f8eSopenharmony_ci   *
101261847f8eSopenharmony_ci   * @param { promptAction.ShowDialogOptions } options - Options.
101361847f8eSopenharmony_ci   * @param { AsyncCallback<promptAction.ShowDialogSuccessResponse> } callback - the callback of showDialog.
101461847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
101561847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
101661847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
101761847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
101861847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - Internal error.
101961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
102061847f8eSopenharmony_ci   * @crossplatform
102161847f8eSopenharmony_ci   * @atomicservice
102261847f8eSopenharmony_ci   * @since 11
102361847f8eSopenharmony_ci   */
102461847f8eSopenharmony_ci  /**
102561847f8eSopenharmony_ci   * Displays the dialog box.
102661847f8eSopenharmony_ci   *
102761847f8eSopenharmony_ci   * @param { promptAction.ShowDialogOptions } options - Options.
102861847f8eSopenharmony_ci   * @param { AsyncCallback<promptAction.ShowDialogSuccessResponse> } callback - the callback of showDialog.
102961847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
103061847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
103161847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
103261847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
103361847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - Internal error.
103461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
103561847f8eSopenharmony_ci   * @crossplatform
103661847f8eSopenharmony_ci   * @atomicservice
103761847f8eSopenharmony_ci   * @since 12
103861847f8eSopenharmony_ci   */
103961847f8eSopenharmony_ci  showDialog(options: promptAction.ShowDialogOptions, callback: AsyncCallback<promptAction.ShowDialogSuccessResponse>): void;
104061847f8eSopenharmony_ci
104161847f8eSopenharmony_ci  /**
104261847f8eSopenharmony_ci   * Displays the dialog box.
104361847f8eSopenharmony_ci   *
104461847f8eSopenharmony_ci   * @param { promptAction.ShowDialogOptions } options - Options.
104561847f8eSopenharmony_ci   * @returns { Promise<promptAction.ShowDialogSuccessResponse> } the promise returned by the function.
104661847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
104761847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
104861847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
104961847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
105061847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - Internal error.
105161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
105261847f8eSopenharmony_ci   * @crossplatform
105361847f8eSopenharmony_ci   * @since 10
105461847f8eSopenharmony_ci   */
105561847f8eSopenharmony_ci  /**
105661847f8eSopenharmony_ci   * Displays the dialog box.
105761847f8eSopenharmony_ci   *
105861847f8eSopenharmony_ci   * @param { promptAction.ShowDialogOptions } options - Options.
105961847f8eSopenharmony_ci   * @returns { Promise<promptAction.ShowDialogSuccessResponse> } the promise returned by the function.
106061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
106161847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
106261847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
106361847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
106461847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - Internal error.
106561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
106661847f8eSopenharmony_ci   * @crossplatform
106761847f8eSopenharmony_ci   * @atomicservice
106861847f8eSopenharmony_ci   * @since 11
106961847f8eSopenharmony_ci   */
107061847f8eSopenharmony_ci  showDialog(options: promptAction.ShowDialogOptions): Promise<promptAction.ShowDialogSuccessResponse>;
107161847f8eSopenharmony_ci
107261847f8eSopenharmony_ci  /**
107361847f8eSopenharmony_ci   * Displays the menu.
107461847f8eSopenharmony_ci   *
107561847f8eSopenharmony_ci   * @param { promptAction.ActionMenuOptions } options - Options.
107661847f8eSopenharmony_ci   * @param { promptAction.ActionMenuSuccessResponse } callback - the callback of showActionMenu.
107761847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
107861847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
107961847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
108061847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
108161847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - Internal error.
108261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
108361847f8eSopenharmony_ci   * @crossplatform
108461847f8eSopenharmony_ci   * @since 10
108561847f8eSopenharmony_ci   * @deprecated since 11
108661847f8eSopenharmony_ci   * @useinstead showActionMenu
108761847f8eSopenharmony_ci   */
108861847f8eSopenharmony_ci  showActionMenu(options: promptAction.ActionMenuOptions, callback: promptAction.ActionMenuSuccessResponse): void;
108961847f8eSopenharmony_ci
109061847f8eSopenharmony_ci  /**
109161847f8eSopenharmony_ci   * Displays the menu.
109261847f8eSopenharmony_ci   *
109361847f8eSopenharmony_ci   * @param { promptAction.ActionMenuOptions } options - Options.
109461847f8eSopenharmony_ci   * @param { AsyncCallback<promptAction.ActionMenuSuccessResponse> } callback - the callback of showActionMenu.
109561847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
109661847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
109761847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
109861847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
109961847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - Internal error.
110061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
110161847f8eSopenharmony_ci   * @crossplatform
110261847f8eSopenharmony_ci   * @atomicservice
110361847f8eSopenharmony_ci   * @since 11
110461847f8eSopenharmony_ci   */
110561847f8eSopenharmony_ci  showActionMenu(options: promptAction.ActionMenuOptions, callback: AsyncCallback<promptAction.ActionMenuSuccessResponse>): void;
110661847f8eSopenharmony_ci
110761847f8eSopenharmony_ci  /**
110861847f8eSopenharmony_ci   * Displays the menu.
110961847f8eSopenharmony_ci   *
111061847f8eSopenharmony_ci   * @param { promptAction.ActionMenuOptions } options - Options.
111161847f8eSopenharmony_ci   * @returns { Promise<promptAction.ActionMenuSuccessResponse> } callback - the callback of showActionMenu.
111261847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
111361847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
111461847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
111561847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
111661847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - Internal error.
111761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
111861847f8eSopenharmony_ci   * @crossplatform
111961847f8eSopenharmony_ci   * @since 10
112061847f8eSopenharmony_ci   */
112161847f8eSopenharmony_ci  /**
112261847f8eSopenharmony_ci   * Displays the menu.
112361847f8eSopenharmony_ci   *
112461847f8eSopenharmony_ci   * @param { promptAction.ActionMenuOptions } options - Options.
112561847f8eSopenharmony_ci   * @returns { Promise<promptAction.ActionMenuSuccessResponse> } callback - the callback of showActionMenu.
112661847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
112761847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
112861847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
112961847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
113061847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - Internal error.
113161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
113261847f8eSopenharmony_ci   * @crossplatform
113361847f8eSopenharmony_ci   * @atomicservice
113461847f8eSopenharmony_ci   * @since 11
113561847f8eSopenharmony_ci   */
113661847f8eSopenharmony_ci  showActionMenu(options: promptAction.ActionMenuOptions): Promise<promptAction.ActionMenuSuccessResponse>;
113761847f8eSopenharmony_ci
113861847f8eSopenharmony_ci  /**
113961847f8eSopenharmony_ci   * Open the custom dialog with frameNode.
114061847f8eSopenharmony_ci   *
114161847f8eSopenharmony_ci   * @param { ComponentContent<T> } dialogContent - the content of custom dialog.
114261847f8eSopenharmony_ci   * @param { promptAction.BaseDialogOptions } options - Options.
114361847f8eSopenharmony_ci   * @returns { Promise<void> } the promise returned by the function.
114461847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
114561847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
114661847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
114761847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
114861847f8eSopenharmony_ci   * @throws { BusinessError } 103301 - the ComponentContent is incorrect.
114961847f8eSopenharmony_ci   * @throws { BusinessError } 103302 - Dialog content already exists.
115061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
115161847f8eSopenharmony_ci   * @crossplatform
115261847f8eSopenharmony_ci   * @atomicservice
115361847f8eSopenharmony_ci   * @since 12
115461847f8eSopenharmony_ci   */
115561847f8eSopenharmony_ci    openCustomDialog<T extends Object>(dialogContent: ComponentContent<T>, options?: promptAction.BaseDialogOptions): Promise<void>;
115661847f8eSopenharmony_ci
115761847f8eSopenharmony_ci  /**
115861847f8eSopenharmony_ci   * Update the custom dialog with frameNode.
115961847f8eSopenharmony_ci   *
116061847f8eSopenharmony_ci   * @param { ComponentContent<T> } dialogContent - the content of custom dialog.
116161847f8eSopenharmony_ci   * @param { promptAction.BaseDialogOptions } options - Options.
116261847f8eSopenharmony_ci   * @returns { Promise<void> } the promise returned by the function.
116361847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
116461847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
116561847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
116661847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
116761847f8eSopenharmony_ci   * @throws { BusinessError } 103301 - the ComponentContent is incorrect.
116861847f8eSopenharmony_ci   * @throws { BusinessError } 103303 - the ComponentContent cannot be found.
116961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
117061847f8eSopenharmony_ci   * @crossplatform
117161847f8eSopenharmony_ci   * @atomicservice
117261847f8eSopenharmony_ci   * @since 12
117361847f8eSopenharmony_ci   */
117461847f8eSopenharmony_ci    updateCustomDialog<T extends Object>(dialogContent: ComponentContent<T>, options: promptAction.BaseDialogOptions): Promise<void>;
117561847f8eSopenharmony_ci
117661847f8eSopenharmony_ci    /**
117761847f8eSopenharmony_ci     * Close the custom dialog with frameNode.
117861847f8eSopenharmony_ci     *
117961847f8eSopenharmony_ci     * @param { ComponentContent<T> } dialogContent - the content of custom dialog.
118061847f8eSopenharmony_ci     * @returns { Promise<void> } the promise returned by the function.
118161847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes: 
118261847f8eSopenharmony_ci     * <br> 1. Mandatory parameters are left unspecified.
118361847f8eSopenharmony_ci     * <br> 2. Incorrect parameters types.
118461847f8eSopenharmony_ci     * <br> 3. Parameter verification failed.
118561847f8eSopenharmony_ci     * @throws { BusinessError } 103301 - the ComponentContent is incorrect.
118661847f8eSopenharmony_ci     * @throws { BusinessError } 103303 - the ComponentContent cannot be found.
118761847f8eSopenharmony_ci     * @syscap SystemCapability.ArkUI.ArkUI.Full
118861847f8eSopenharmony_ci     * @crossplatform
118961847f8eSopenharmony_ci     * @atomicservice
119061847f8eSopenharmony_ci     * @since 12
119161847f8eSopenharmony_ci     */
119261847f8eSopenharmony_ci    closeCustomDialog<T extends Object>(dialogContent: ComponentContent<T>): Promise<void>;
119361847f8eSopenharmony_ci
119461847f8eSopenharmony_ci    /**
119561847f8eSopenharmony_ci     * Open the custom dialog.
119661847f8eSopenharmony_ci     *
119761847f8eSopenharmony_ci     * @param { promptAction.CustomDialogOptions } options - Options.
119861847f8eSopenharmony_ci     * @returns { Promise<number> } return the dialog id that will be used by closeCustomDialog.
119961847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes: 
120061847f8eSopenharmony_ci     * <br> 1. Mandatory parameters are left unspecified.
120161847f8eSopenharmony_ci     * <br> 2. Incorrect parameters types.
120261847f8eSopenharmony_ci     * <br> 3. Parameter verification failed.
120361847f8eSopenharmony_ci     * @throws { BusinessError } 100001 - Internal error.
120461847f8eSopenharmony_ci     * @syscap SystemCapability.ArkUI.ArkUI.Full
120561847f8eSopenharmony_ci     * @crossplatform
120661847f8eSopenharmony_ci     * @atomicservice
120761847f8eSopenharmony_ci     * @since 12
120861847f8eSopenharmony_ci     */
120961847f8eSopenharmony_ci    openCustomDialog(options: promptAction.CustomDialogOptions): Promise<number>;
121061847f8eSopenharmony_ci
121161847f8eSopenharmony_ci    /**
121261847f8eSopenharmony_ci     * Close the custom dialog.
121361847f8eSopenharmony_ci     *
121461847f8eSopenharmony_ci     * @param { number } dialogId - the dialog id that returned by openCustomDialog.
121561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes: 
121661847f8eSopenharmony_ci     * <br> 1. Mandatory parameters are left unspecified.
121761847f8eSopenharmony_ci     * <br> 2. Incorrect parameters types.
121861847f8eSopenharmony_ci     * <br> 3. Parameter verification failed.
121961847f8eSopenharmony_ci     * @throws { BusinessError } 100001 - Internal error.
122061847f8eSopenharmony_ci     * @syscap SystemCapability.ArkUI.ArkUI.Full
122161847f8eSopenharmony_ci     * @crossplatform
122261847f8eSopenharmony_ci     * @atomicservice
122361847f8eSopenharmony_ci     * @since 12
122461847f8eSopenharmony_ci     */
122561847f8eSopenharmony_ci    closeCustomDialog(dialogId: number): void;
122661847f8eSopenharmony_ci}
122761847f8eSopenharmony_ci
122861847f8eSopenharmony_ci/**
122961847f8eSopenharmony_ci * Defines the callback type used in UIObserver watch click event.
123061847f8eSopenharmony_ci * The value of event indicates the information of ClickEvent.
123161847f8eSopenharmony_ci * The value of node indicates the frameNode which will receive the event.
123261847f8eSopenharmony_ci * 
123361847f8eSopenharmony_ci * @typedef { function } ClickEventListenerCallback
123461847f8eSopenharmony_ci * @param { ClickEvent } event - the information of ClickEvent
123561847f8eSopenharmony_ci * @param { FrameNode } [node] - the information of frameNode
123661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
123761847f8eSopenharmony_ci * @crossplatform
123861847f8eSopenharmony_ci * @atomicservice
123961847f8eSopenharmony_ci * @since 12
124061847f8eSopenharmony_ci */
124161847f8eSopenharmony_cideclare type ClickEventListenerCallback = (event: ClickEvent, node?: FrameNode) => void;
124261847f8eSopenharmony_ci
124361847f8eSopenharmony_ci/**
124461847f8eSopenharmony_ci * Defines the callback type used in UIObserver watch gesture.
124561847f8eSopenharmony_ci * The value of event indicates the information of gesture.
124661847f8eSopenharmony_ci * The value of node indicates the frameNode which will receive the event.
124761847f8eSopenharmony_ci * 
124861847f8eSopenharmony_ci * @typedef { function } GestureEventListenerCallback
124961847f8eSopenharmony_ci * @param { GestureEvent } event - the information of GestureEvent
125061847f8eSopenharmony_ci * @param { FrameNode } [node] - the information of frameNode
125161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
125261847f8eSopenharmony_ci * @crossplatform
125361847f8eSopenharmony_ci * @atomicservice
125461847f8eSopenharmony_ci * @since 12
125561847f8eSopenharmony_ci */
125661847f8eSopenharmony_cideclare type GestureEventListenerCallback = (event: GestureEvent, node?: FrameNode) => void;
125761847f8eSopenharmony_ci
125861847f8eSopenharmony_ci/**
125961847f8eSopenharmony_ci * Defines the PageInfo type.
126061847f8eSopenharmony_ci * The value of routerPageInfo indicates the information of the router page, or undefined if the
126161847f8eSopenharmony_ci * frameNode does not have router page information. And the value of navDestinationInfo indicates
126261847f8eSopenharmony_ci * the information of the navDestination, or undefined if the frameNode does not have navDestination
126361847f8eSopenharmony_ci * information.
126461847f8eSopenharmony_ci * 
126561847f8eSopenharmony_ci * @interface PageInfo
126661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
126761847f8eSopenharmony_ci * @crossplatform
126861847f8eSopenharmony_ci * @atomicservice
126961847f8eSopenharmony_ci * @since 12
127061847f8eSopenharmony_ci */
127161847f8eSopenharmony_ciexport interface PageInfo {
127261847f8eSopenharmony_ci  /**
127361847f8eSopenharmony_ci   * the property of router page information.
127461847f8eSopenharmony_ci   *
127561847f8eSopenharmony_ci   * @type { ?observer.RouterPageInfo }
127661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
127761847f8eSopenharmony_ci   * @atomicservice
127861847f8eSopenharmony_ci   * @since 12
127961847f8eSopenharmony_ci   */
128061847f8eSopenharmony_ci  routerPageInfo?: observer.RouterPageInfo;
128161847f8eSopenharmony_ci
128261847f8eSopenharmony_ci  /**
128361847f8eSopenharmony_ci   * the property of navDestination information.
128461847f8eSopenharmony_ci   *
128561847f8eSopenharmony_ci   * @type { ?observer.NavDestinationInfo }
128661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
128761847f8eSopenharmony_ci   * @atomicservice
128861847f8eSopenharmony_ci   * @since 12
128961847f8eSopenharmony_ci   */
129061847f8eSopenharmony_ci  navDestinationInfo?: observer.NavDestinationInfo;
129161847f8eSopenharmony_ci}
129261847f8eSopenharmony_ci
129361847f8eSopenharmony_ci/**
129461847f8eSopenharmony_ci * Register callbacks to observe ArkUI behavior.
129561847f8eSopenharmony_ci *
129661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
129761847f8eSopenharmony_ci * @crossplatform
129861847f8eSopenharmony_ci * @since 11
129961847f8eSopenharmony_ci */
130061847f8eSopenharmony_ci/**
130161847f8eSopenharmony_ci * Register callbacks to observe ArkUI behavior.
130261847f8eSopenharmony_ci *
130361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
130461847f8eSopenharmony_ci * @crossplatform
130561847f8eSopenharmony_ci * @atomicservice
130661847f8eSopenharmony_ci * @since 12
130761847f8eSopenharmony_ci */
130861847f8eSopenharmony_ciexport class UIObserver {
130961847f8eSopenharmony_ci  /**
131061847f8eSopenharmony_ci   * Registers a callback function to be called when the navigation destination is updated.
131161847f8eSopenharmony_ci   *
131261847f8eSopenharmony_ci   * @param { 'navDestinationUpdate' } type - The type of event to listen for. Must be 'navDestinationUpdate'.
131361847f8eSopenharmony_ci   * @param { object } options - Specify the id of observed navigation.
131461847f8eSopenharmony_ci   * @param { Callback<observer.NavDestinationInfo> } callback - The callback function to be called when the navigation destination is updated.
131561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
131661847f8eSopenharmony_ci   * @crossplatform
131761847f8eSopenharmony_ci   * @since 11
131861847f8eSopenharmony_ci   */
131961847f8eSopenharmony_ci  /**
132061847f8eSopenharmony_ci   * Registers a callback function to be called when the navigation destination is updated.
132161847f8eSopenharmony_ci   *
132261847f8eSopenharmony_ci   * @param { 'navDestinationUpdate' } type - The type of event to listen for. Must be 'navDestinationUpdate'.
132361847f8eSopenharmony_ci   * @param { object } options - The options object.
132461847f8eSopenharmony_ci   * @param { Callback<observer.NavDestinationInfo> } callback - The callback function to be called when the navigation destination is updated.
132561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
132661847f8eSopenharmony_ci   * @crossplatform
132761847f8eSopenharmony_ci   * @atomicservice
132861847f8eSopenharmony_ci   * @since 12
132961847f8eSopenharmony_ci   */
133061847f8eSopenharmony_ci  on(type: 'navDestinationUpdate', options: { navigationId: ResourceStr }, callback: Callback<observer.NavDestinationInfo>): void;
133161847f8eSopenharmony_ci
133261847f8eSopenharmony_ci  /**
133361847f8eSopenharmony_ci   * Removes a callback function that was previously registered with `on()`.
133461847f8eSopenharmony_ci   *
133561847f8eSopenharmony_ci   * @param { 'navDestinationUpdate' } type - The type of event to remove the listener for. Must be 'navDestinationUpdate'.
133661847f8eSopenharmony_ci   * @param { object } options - Specify the id of observed navigation.
133761847f8eSopenharmony_ci   * @param { Callback<observer.NavDestinationInfo> } callback - The callback function to remove. If not provided, all callbacks for the given event type and
133861847f8eSopenharmony_ci   *                                                             navigation ID will be removed.
133961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
134061847f8eSopenharmony_ci   * @crossplatform
134161847f8eSopenharmony_ci   * @since 11
134261847f8eSopenharmony_ci   */
134361847f8eSopenharmony_ci  /**
134461847f8eSopenharmony_ci   * Removes a callback function that was previously registered with `on()`.
134561847f8eSopenharmony_ci   *
134661847f8eSopenharmony_ci   * @param { 'navDestinationUpdate' } type - The type of event to remove the listener for. Must be 'navDestinationUpdate'.
134761847f8eSopenharmony_ci   * @param { object } options - The options object.
134861847f8eSopenharmony_ci   * @param { Callback<observer.NavDestinationInfo> } callback - The callback function to remove. If not provided, all callbacks for the given event type and
134961847f8eSopenharmony_ci   *                                                             navigation ID will be removed.
135061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
135161847f8eSopenharmony_ci   * @crossplatform
135261847f8eSopenharmony_ci   * @atomicservice
135361847f8eSopenharmony_ci   * @since 12
135461847f8eSopenharmony_ci   */
135561847f8eSopenharmony_ci  off(type: 'navDestinationUpdate', options: { navigationId: ResourceStr }, callback?: Callback<observer.NavDestinationInfo>): void;
135661847f8eSopenharmony_ci
135761847f8eSopenharmony_ci  /**
135861847f8eSopenharmony_ci   * Registers a callback function to be called when the navigation destination is updated.
135961847f8eSopenharmony_ci   *
136061847f8eSopenharmony_ci   * @param { 'navDestinationUpdate' } type - The type of event to listen for. Must be 'navDestinationUpdate'.
136161847f8eSopenharmony_ci   * @param { Callback<observer.NavDestinationInfo> } callback - The callback function to be called when the navigation destination is updated.
136261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
136361847f8eSopenharmony_ci   * @crossplatform
136461847f8eSopenharmony_ci   * @since 11
136561847f8eSopenharmony_ci   */
136661847f8eSopenharmony_ci  /**
136761847f8eSopenharmony_ci   * Registers a callback function to be called when the navigation destination is updated.
136861847f8eSopenharmony_ci   *
136961847f8eSopenharmony_ci   * @param { 'navDestinationUpdate' } type - The type of event to listen for. Must be 'navDestinationUpdate'.
137061847f8eSopenharmony_ci   * @param { Callback<observer.NavDestinationInfo> } callback - The callback function to be called when the navigation destination is updated.
137161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
137261847f8eSopenharmony_ci   * @crossplatform
137361847f8eSopenharmony_ci   * @atomicservice
137461847f8eSopenharmony_ci   * @since 12
137561847f8eSopenharmony_ci   */
137661847f8eSopenharmony_ci  on(type: 'navDestinationUpdate', callback: Callback<observer.NavDestinationInfo>): void;
137761847f8eSopenharmony_ci
137861847f8eSopenharmony_ci  /**
137961847f8eSopenharmony_ci   * Removes a callback function that was previously registered with `on()`.
138061847f8eSopenharmony_ci   *
138161847f8eSopenharmony_ci   * @param { 'navDestinationUpdate'} type - The type of event to remove the listener for. Must be 'navDestinationUpdate'.
138261847f8eSopenharmony_ci   * @param { Callback<observer.NavDestinationInfo> } [callback] - The callback function to remove. If not provided, all callbacks for the given event type
138361847f8eSopenharmony_ci   *                                                               will be removed.
138461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
138561847f8eSopenharmony_ci   * @crossplatform
138661847f8eSopenharmony_ci   * @since 11
138761847f8eSopenharmony_ci   */
138861847f8eSopenharmony_ci  /**
138961847f8eSopenharmony_ci   * Removes a callback function that was previously registered with `on()`.
139061847f8eSopenharmony_ci   *
139161847f8eSopenharmony_ci   * @param { 'navDestinationUpdate'} type - The type of event to remove the listener for. Must be 'navDestinationUpdate'.
139261847f8eSopenharmony_ci   * @param { Callback<observer.NavDestinationInfo> } [callback] - The callback function to remove. If not provided, all callbacks for the given event type
139361847f8eSopenharmony_ci   *                                                               will be removed.
139461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
139561847f8eSopenharmony_ci   * @crossplatform
139661847f8eSopenharmony_ci   * @atomicservice
139761847f8eSopenharmony_ci   * @since 12
139861847f8eSopenharmony_ci   */
139961847f8eSopenharmony_ci  off(type: 'navDestinationUpdate', callback?: Callback<observer.NavDestinationInfo>): void;
140061847f8eSopenharmony_ci  
140161847f8eSopenharmony_ci  /**
140261847f8eSopenharmony_ci   * Registers a callback function to be called when the scroll event start or stop.
140361847f8eSopenharmony_ci   *
140461847f8eSopenharmony_ci   * @param { 'scrollEvent' } type - The type of event to listen for. Must be 'scrollEvent'.
140561847f8eSopenharmony_ci   * @param { observer.ObserverOptions } options - The options object.
140661847f8eSopenharmony_ci   * @param { Callback<observer.ScrollEventInfo> } callback - The callback function to be called when the scroll event start or stop.
140761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
140861847f8eSopenharmony_ci   * @crossplatform
140961847f8eSopenharmony_ci   * @atomicservice
141061847f8eSopenharmony_ci   * @since 12
141161847f8eSopenharmony_ci   */
141261847f8eSopenharmony_ci  on(type: 'scrollEvent', options: observer.ObserverOptions, callback: Callback<observer.ScrollEventInfo>): void;
141361847f8eSopenharmony_ci
141461847f8eSopenharmony_ci  /**
141561847f8eSopenharmony_ci   * Removes a callback function that was previously registered with `on()`.
141661847f8eSopenharmony_ci   *
141761847f8eSopenharmony_ci   * @param { 'scrollEvent' } type - The type of event to remove the listener for. Must be 'scrollEvent'.
141861847f8eSopenharmony_ci   * @param { observer.ObserverOptions } options - The options object.
141961847f8eSopenharmony_ci   * @param { Callback<observer.ScrollEventInfo> } callback - The callback function to remove. If not provided, all callbacks for the given event type and
142061847f8eSopenharmony_ci   *                                                    scroll ID will be removed.
142161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
142261847f8eSopenharmony_ci   * @crossplatform
142361847f8eSopenharmony_ci   * @atomicservice
142461847f8eSopenharmony_ci   * @since 12
142561847f8eSopenharmony_ci   */
142661847f8eSopenharmony_ci  off(type: 'scrollEvent', options: observer.ObserverOptions, callback?: Callback<observer.ScrollEventInfo>): void;
142761847f8eSopenharmony_ci
142861847f8eSopenharmony_ci  /**
142961847f8eSopenharmony_ci   * Registers a callback function to be called when the scroll event start or stop.
143061847f8eSopenharmony_ci   *
143161847f8eSopenharmony_ci   * @param { 'scrollEvent' } type - The type of event to listen for. Must be 'scrollEvent'.
143261847f8eSopenharmony_ci   * @param { Callback<observer.ScrollEventInfo> } callback - The callback function to be called when the scroll event start or stop.
143361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
143461847f8eSopenharmony_ci   * @crossplatform
143561847f8eSopenharmony_ci   * @atomicservice
143661847f8eSopenharmony_ci   * @since 12
143761847f8eSopenharmony_ci   */
143861847f8eSopenharmony_ci  on(type: 'scrollEvent', callback: Callback<observer.ScrollEventInfo>): void;
143961847f8eSopenharmony_ci
144061847f8eSopenharmony_ci  /**
144161847f8eSopenharmony_ci   * Removes a callback function that was previously registered with `on()`.
144261847f8eSopenharmony_ci   *
144361847f8eSopenharmony_ci   * @param { 'scrollEvent'} type - The type of event to remove the listener for. Must be 'scrollEvent'.
144461847f8eSopenharmony_ci   * @param { Callback<observer.ScrollEventInfo> } [callback] - The callback function to remove. If not provided, all callbacks for the given event type
144561847f8eSopenharmony_ci   *                                                      will be removed.
144661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
144761847f8eSopenharmony_ci   * @crossplatform
144861847f8eSopenharmony_ci   * @atomicservice
144961847f8eSopenharmony_ci   * @since 12
145061847f8eSopenharmony_ci   */
145161847f8eSopenharmony_ci  off(type: 'scrollEvent', callback?: Callback<observer.ScrollEventInfo>): void;
145261847f8eSopenharmony_ci
145361847f8eSopenharmony_ci  /**
145461847f8eSopenharmony_ci   * Registers a callback function to be called when the router page in a ui context is updated.
145561847f8eSopenharmony_ci   *
145661847f8eSopenharmony_ci   * @param { 'routerPageUpdate' } type - The type of event to listen for. Must be 'routerPageUpdate'.
145761847f8eSopenharmony_ci   * @param { Callback<observer.RouterPageInfo> } callback - The callback function to be called when the router page is updated.
145861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
145961847f8eSopenharmony_ci   * @crossplatform
146061847f8eSopenharmony_ci   * @since 11
146161847f8eSopenharmony_ci   */
146261847f8eSopenharmony_ci  /**
146361847f8eSopenharmony_ci   * Registers a callback function to be called when the router page in a ui context is updated.
146461847f8eSopenharmony_ci   *
146561847f8eSopenharmony_ci   * @param { 'routerPageUpdate' } type - The type of event to listen for. Must be 'routerPageUpdate'.
146661847f8eSopenharmony_ci   * @param { Callback<observer.RouterPageInfo> } callback - The callback function to be called when the router page is updated.
146761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
146861847f8eSopenharmony_ci   * @crossplatform
146961847f8eSopenharmony_ci   * @atomicservice
147061847f8eSopenharmony_ci   * @since 12
147161847f8eSopenharmony_ci   */
147261847f8eSopenharmony_ci  on(type: 'routerPageUpdate', callback: Callback<observer.RouterPageInfo>): void;
147361847f8eSopenharmony_ci
147461847f8eSopenharmony_ci  /**
147561847f8eSopenharmony_ci   * Removes a callback function that was previously registered with `on()`.
147661847f8eSopenharmony_ci   *
147761847f8eSopenharmony_ci   * @param { 'routerPageUpdate' } type - The type of event to remove the listener for. Must be 'routerPageUpdate'.
147861847f8eSopenharmony_ci   * @param { Callback<observer.RouterPageInfo> } [callback] - The callback function to remove. If not provided, all callbacks for the given event type
147961847f8eSopenharmony_ci   *                                                               will be removed.
148061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
148161847f8eSopenharmony_ci   * @crossplatform
148261847f8eSopenharmony_ci   * @since 11
148361847f8eSopenharmony_ci   */
148461847f8eSopenharmony_ci  /**
148561847f8eSopenharmony_ci   * Removes a callback function that was previously registered with `on()`.
148661847f8eSopenharmony_ci   *
148761847f8eSopenharmony_ci   * @param { 'routerPageUpdate' } type - The type of event to remove the listener for. Must be 'routerPageUpdate'.
148861847f8eSopenharmony_ci   * @param { Callback<observer.RouterPageInfo> } [callback] - The callback function to remove. If not provided, all callbacks for the given event type
148961847f8eSopenharmony_ci   *                                                               will be removed.
149061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
149161847f8eSopenharmony_ci   * @crossplatform
149261847f8eSopenharmony_ci   * @atomicservice
149361847f8eSopenharmony_ci   * @since 12
149461847f8eSopenharmony_ci   */
149561847f8eSopenharmony_ci  off(type: 'routerPageUpdate', callback?: Callback<observer.RouterPageInfo>): void;
149661847f8eSopenharmony_ci
149761847f8eSopenharmony_ci  /**
149861847f8eSopenharmony_ci   * Registers a callback function to be called when the screen density in a ui context is updated.
149961847f8eSopenharmony_ci   *
150061847f8eSopenharmony_ci   * @param { 'densityUpdate' } type - The type of event to listen for. Must be 'densityUpdate'.
150161847f8eSopenharmony_ci   * @param { Callback<observer.DensityInfo> } callback - The callback function to be called when the screen density is updated.
150261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
150361847f8eSopenharmony_ci   * @crossplatform
150461847f8eSopenharmony_ci   * @atomicservice
150561847f8eSopenharmony_ci   * @since 12
150661847f8eSopenharmony_ci   */
150761847f8eSopenharmony_ci  on(type: 'densityUpdate', callback: Callback<observer.DensityInfo>): void;
150861847f8eSopenharmony_ci
150961847f8eSopenharmony_ci  /**
151061847f8eSopenharmony_ci   * Removes a callback function that was previously registered with `on()`.
151161847f8eSopenharmony_ci   *
151261847f8eSopenharmony_ci   * @param { 'densityUpdate' } type - The type of event to remove the listener for. Must be 'densityUpdate'.
151361847f8eSopenharmony_ci   * @param { Callback<observer.DensityInfo> } [callback] - The callback function to remove. If not provided, all callbacks for the given event type
151461847f8eSopenharmony_ci   *                                                        will be removed.
151561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
151661847f8eSopenharmony_ci   * @crossplatform
151761847f8eSopenharmony_ci   * @atomicservice
151861847f8eSopenharmony_ci   * @since 12
151961847f8eSopenharmony_ci   */
152061847f8eSopenharmony_ci  off(type: 'densityUpdate', callback?: Callback<observer.DensityInfo>): void;
152161847f8eSopenharmony_ci
152261847f8eSopenharmony_ci    /**
152361847f8eSopenharmony_ci   * Registers a callback function to be called when the draw command will be drawn.
152461847f8eSopenharmony_ci   *
152561847f8eSopenharmony_ci   * @param { 'willDraw' } type - The type of event to listen for. Must be 'willDraw'.
152661847f8eSopenharmony_ci   * @param { Callback<void> } callback - The callback function to be called when the draw command will be drawn.
152761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
152861847f8eSopenharmony_ci   * @crossplatform
152961847f8eSopenharmony_ci   * @atomicservice
153061847f8eSopenharmony_ci   * @since 12
153161847f8eSopenharmony_ci   */
153261847f8eSopenharmony_ci    on(type: 'willDraw', callback: Callback<void>): void;
153361847f8eSopenharmony_ci
153461847f8eSopenharmony_ci    /**
153561847f8eSopenharmony_ci     * Removes a callback function that was previously registered with `on()`.
153661847f8eSopenharmony_ci     *
153761847f8eSopenharmony_ci     * @param { 'willDraw' } type - The type of event to remove the listener for. Must be 'willDraw'.
153861847f8eSopenharmony_ci     * @param { Callback<void> } [callback] - The callback function to remove. If not provided, all callbacks for the given event type
153961847f8eSopenharmony_ci     *                                                        will be removed.
154061847f8eSopenharmony_ci     * @syscap SystemCapability.ArkUI.ArkUI.Full
154161847f8eSopenharmony_ci     * @crossplatform
154261847f8eSopenharmony_ci     * @atomicservice
154361847f8eSopenharmony_ci     * @since 12
154461847f8eSopenharmony_ci     */
154561847f8eSopenharmony_ci    off(type: 'willDraw', callback?: Callback<void>): void;
154661847f8eSopenharmony_ci
154761847f8eSopenharmony_ci      /**
154861847f8eSopenharmony_ci   * Registers a callback function to be called when the layout is done.
154961847f8eSopenharmony_ci   *
155061847f8eSopenharmony_ci   * @param { 'didLayout' } type - The type of event to listen for. Must be 'didLayout'.
155161847f8eSopenharmony_ci   * @param { Callback<void> } callback - The callback function to be called when the layout is done.
155261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
155361847f8eSopenharmony_ci   * @crossplatform
155461847f8eSopenharmony_ci   * @atomicservice
155561847f8eSopenharmony_ci   * @since 12
155661847f8eSopenharmony_ci   */
155761847f8eSopenharmony_ci  on(type: 'didLayout', callback: Callback<void>): void;
155861847f8eSopenharmony_ci
155961847f8eSopenharmony_ci  /**
156061847f8eSopenharmony_ci   * Removes a callback function that was previously registered with `on()`.
156161847f8eSopenharmony_ci   *
156261847f8eSopenharmony_ci   * @param { 'didLayout' } type - The type of event to remove the listener for. Must be 'didLayout'.
156361847f8eSopenharmony_ci   * @param { Callback<void> } [callback] - The callback function to remove. If not provided, all callbacks for the given event type
156461847f8eSopenharmony_ci   *                                                        will be removed.
156561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
156661847f8eSopenharmony_ci   * @crossplatform
156761847f8eSopenharmony_ci   * @atomicservice
156861847f8eSopenharmony_ci   * @since 12
156961847f8eSopenharmony_ci   */
157061847f8eSopenharmony_ci  off(type: 'didLayout', callback?: Callback<void>): void;
157161847f8eSopenharmony_ci
157261847f8eSopenharmony_ci  /**
157361847f8eSopenharmony_ci   * Registers a callback function to be called when the navigation switched to a new navDestination.
157461847f8eSopenharmony_ci   *
157561847f8eSopenharmony_ci   * @param { 'navDestinationSwitch' } type - The type of event to listen for. Must be 'navDestinationSwitch'.
157661847f8eSopenharmony_ci   * @param { Callback<observer.NavDestinationSwitchInfo> } callback - The callback function to be called when the navigation switched to a new navDestination.
157761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
157861847f8eSopenharmony_ci   * @crossplatform
157961847f8eSopenharmony_ci   * @atomicservice
158061847f8eSopenharmony_ci   * @since 12
158161847f8eSopenharmony_ci   */
158261847f8eSopenharmony_ci  on(
158361847f8eSopenharmony_ci    type: 'navDestinationSwitch',
158461847f8eSopenharmony_ci    callback: Callback<observer.NavDestinationSwitchInfo>
158561847f8eSopenharmony_ci  ): void;
158661847f8eSopenharmony_ci
158761847f8eSopenharmony_ci  /**
158861847f8eSopenharmony_ci   * Removes a callback function that was previously registered with `on()`.
158961847f8eSopenharmony_ci   *
159061847f8eSopenharmony_ci   * @param { 'navDestinationSwitch' } type - The type of event to remove the listener for. Must be 'navDestinationSwitch'.
159161847f8eSopenharmony_ci   * @param { Callback<observer.NavDestinationSwitchInfo> } [callback] - The callback function to remove. If not provided, all callbacks for the given event type
159261847f8eSopenharmony_ci   *                                                               will be removed.
159361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
159461847f8eSopenharmony_ci   * @crossplatform
159561847f8eSopenharmony_ci   * @atomicservice
159661847f8eSopenharmony_ci   * @since 12
159761847f8eSopenharmony_ci   */
159861847f8eSopenharmony_ci  off(
159961847f8eSopenharmony_ci    type: 'navDestinationSwitch',
160061847f8eSopenharmony_ci    callback?: Callback<observer.NavDestinationSwitchInfo>
160161847f8eSopenharmony_ci  ): void;
160261847f8eSopenharmony_ci
160361847f8eSopenharmony_ci  /**
160461847f8eSopenharmony_ci   * Registers a callback function to be called when the navigation switched to a new navDestination.
160561847f8eSopenharmony_ci   *
160661847f8eSopenharmony_ci   * @param { 'navDestinationSwitch' } type - The type of event to listen for. Must be 'navDestinationSwitch'.
160761847f8eSopenharmony_ci   * @param { observer.NavDestinationSwitchObserverOptions } observerOptions - Options.
160861847f8eSopenharmony_ci   * @param { Callback<observer.NavDestinationSwitchInfo> } callback - The callback function to be called when the navigation switched to a new navDestination.
160961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
161061847f8eSopenharmony_ci   * @crossplatform
161161847f8eSopenharmony_ci   * @atomicservice
161261847f8eSopenharmony_ci   * @since 12
161361847f8eSopenharmony_ci   */
161461847f8eSopenharmony_ci  on(
161561847f8eSopenharmony_ci    type: 'navDestinationSwitch',
161661847f8eSopenharmony_ci    observerOptions: observer.NavDestinationSwitchObserverOptions,
161761847f8eSopenharmony_ci    callback: Callback<observer.NavDestinationSwitchInfo>
161861847f8eSopenharmony_ci  ): void;
161961847f8eSopenharmony_ci
162061847f8eSopenharmony_ci  /**
162161847f8eSopenharmony_ci   * Removes a callback function that was previously registered with `on()`.
162261847f8eSopenharmony_ci   *
162361847f8eSopenharmony_ci   * @param { 'navDestinationSwitch' } type - The type of event to remove the listener for. Must be 'navDestinationSwitch'.
162461847f8eSopenharmony_ci   * @param { observer.NavDestinationSwitchObserverOptions } observerOptions - Options.
162561847f8eSopenharmony_ci   * @param { Callback<observer.NavDestinationSwitchInfo> } [callback] - The callback function to remove. If not provided, all callbacks for the given event type
162661847f8eSopenharmony_ci   *                                                               will be removed.
162761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
162861847f8eSopenharmony_ci   * @crossplatform
162961847f8eSopenharmony_ci   * @atomicservice
163061847f8eSopenharmony_ci   * @since 12
163161847f8eSopenharmony_ci   */
163261847f8eSopenharmony_ci  off(
163361847f8eSopenharmony_ci    type: 'navDestinationSwitch',
163461847f8eSopenharmony_ci    observerOptions: observer.NavDestinationSwitchObserverOptions,
163561847f8eSopenharmony_ci    callback?: Callback<observer.NavDestinationSwitchInfo>
163661847f8eSopenharmony_ci  ): void;
163761847f8eSopenharmony_ci
163861847f8eSopenharmony_ci  /**
163961847f8eSopenharmony_ci   * Registers a callback function to be called before clickEvent is called.
164061847f8eSopenharmony_ci   *
164161847f8eSopenharmony_ci   * @param { 'willClick' } type - The type of event to listen for.
164261847f8eSopenharmony_ci   * @param { ClickEventListenerCallback } callback - The callback function to be called
164361847f8eSopenharmony_ci   *                                                  when the clickEvent will be trigger or after.
164461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
164561847f8eSopenharmony_ci   * @crossplatform
164661847f8eSopenharmony_ci   * @atomicservice
164761847f8eSopenharmony_ci   * @since 12
164861847f8eSopenharmony_ci   */
164961847f8eSopenharmony_ci  on(type: 'willClick', callback: ClickEventListenerCallback): void;
165061847f8eSopenharmony_ci
165161847f8eSopenharmony_ci  /**
165261847f8eSopenharmony_ci   * Removes a callback function to be called before clickEvent is called.
165361847f8eSopenharmony_ci   *
165461847f8eSopenharmony_ci   * @param { 'willClick' } type - The type of event to remove the listener for.
165561847f8eSopenharmony_ci   * @param { ClickEventListenerCallback } [callback] - The callback function to remove. If not provided,
165661847f8eSopenharmony_ci   *                                                    all callbacks for the given event type will be removed.
165761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
165861847f8eSopenharmony_ci   * @crossplatform
165961847f8eSopenharmony_ci   * @atomicservice
166061847f8eSopenharmony_ci   * @since 12
166161847f8eSopenharmony_ci   */
166261847f8eSopenharmony_ci  off(type: 'willClick', callback?: ClickEventListenerCallback): void;
166361847f8eSopenharmony_ci
166461847f8eSopenharmony_ci  /**
166561847f8eSopenharmony_ci   * Registers a callback function to be called after clickEvent is called.
166661847f8eSopenharmony_ci   *
166761847f8eSopenharmony_ci   * @param { 'didClick' } type - The type of event to listen for.
166861847f8eSopenharmony_ci   * @param { ClickEventListenerCallback } callback - The callback function to be called
166961847f8eSopenharmony_ci   *                                                  when the clickEvent will be trigger or after.
167061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
167161847f8eSopenharmony_ci   * @crossplatform
167261847f8eSopenharmony_ci   * @atomicservice
167361847f8eSopenharmony_ci   * @since 12
167461847f8eSopenharmony_ci   */
167561847f8eSopenharmony_ci  on(type: 'didClick', callback: ClickEventListenerCallback): void;
167661847f8eSopenharmony_ci
167761847f8eSopenharmony_ci  /**
167861847f8eSopenharmony_ci   * Removes a callback function to be called after clickEvent is called.
167961847f8eSopenharmony_ci   *
168061847f8eSopenharmony_ci   * @param { 'didClick' } type - The type of event to remove the listener for.
168161847f8eSopenharmony_ci   * @param { ClickEventListenerCallback } [callback] - The callback function to remove. If not provided,
168261847f8eSopenharmony_ci   *                                                    all callbacks for the given event type will be removed.
168361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
168461847f8eSopenharmony_ci   * @crossplatform
168561847f8eSopenharmony_ci   * @atomicservice
168661847f8eSopenharmony_ci   * @since 12
168761847f8eSopenharmony_ci   */
168861847f8eSopenharmony_ci  off(type: 'didClick', callback?: ClickEventListenerCallback): void;
168961847f8eSopenharmony_ci
169061847f8eSopenharmony_ci  /**
169161847f8eSopenharmony_ci   * Registers a callback function to be called before tapGesture is called.
169261847f8eSopenharmony_ci   *
169361847f8eSopenharmony_ci   * @param { 'willClick' } type - The type of event to listen for.
169461847f8eSopenharmony_ci   * @param { GestureEventListenerCallback } callback - The callback function to be called
169561847f8eSopenharmony_ci   *                                                    when the clickEvent will be trigger or after.
169661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
169761847f8eSopenharmony_ci   * @crossplatform
169861847f8eSopenharmony_ci   * @atomicservice
169961847f8eSopenharmony_ci   * @since 12
170061847f8eSopenharmony_ci   */
170161847f8eSopenharmony_ci  on(type: 'willClick', callback: GestureEventListenerCallback): void;
170261847f8eSopenharmony_ci
170361847f8eSopenharmony_ci  /**
170461847f8eSopenharmony_ci   * Removes a callback function to be called before tapGesture is called.
170561847f8eSopenharmony_ci   *
170661847f8eSopenharmony_ci   * @param { 'willClick' } type - The type of event to remove the listener for.
170761847f8eSopenharmony_ci   * @param { GestureEventListenerCallback } [callback] - The callback function to remove. If not provided,
170861847f8eSopenharmony_ci   *                                                      all callbacks for the given event type will be removed.
170961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
171061847f8eSopenharmony_ci   * @crossplatform
171161847f8eSopenharmony_ci   * @atomicservice
171261847f8eSopenharmony_ci   * @since 12
171361847f8eSopenharmony_ci   */
171461847f8eSopenharmony_ci  off(type: 'willClick', callback?: GestureEventListenerCallback): void;
171561847f8eSopenharmony_ci
171661847f8eSopenharmony_ci  /**
171761847f8eSopenharmony_ci   * Registers a callback function to be called after tapGesture is called.
171861847f8eSopenharmony_ci   *
171961847f8eSopenharmony_ci   * @param { 'didClick' } type - The type of event to listen for.
172061847f8eSopenharmony_ci   * @param { GestureEventListenerCallback } callback - The callback function to be called
172161847f8eSopenharmony_ci   *                                                    when the clickEvent will be trigger or after.
172261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
172361847f8eSopenharmony_ci   * @crossplatform
172461847f8eSopenharmony_ci   * @atomicservice
172561847f8eSopenharmony_ci   * @since 12
172661847f8eSopenharmony_ci   */
172761847f8eSopenharmony_ci  on(type: 'didClick', callback: GestureEventListenerCallback): void;
172861847f8eSopenharmony_ci
172961847f8eSopenharmony_ci  /**
173061847f8eSopenharmony_ci   * Removes a callback function to be called after tapGesture is called.
173161847f8eSopenharmony_ci   *
173261847f8eSopenharmony_ci   * @param { 'didClick' } type - The type of event to remove the listener for.
173361847f8eSopenharmony_ci   * @param { GestureEventListenerCallback } [callback] - The callback function to remove. If not provided,
173461847f8eSopenharmony_ci   *                                                      all callbacks for the given event type will be removed.
173561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
173661847f8eSopenharmony_ci   * @crossplatform
173761847f8eSopenharmony_ci   * @atomicservice
173861847f8eSopenharmony_ci   * @since 12
173961847f8eSopenharmony_ci   */
174061847f8eSopenharmony_ci  off(type: 'didClick', callback?: GestureEventListenerCallback): void;
174161847f8eSopenharmony_ci
174261847f8eSopenharmony_ci  /**
174361847f8eSopenharmony_ci   * Registers a callback function to be called when the tabContent is showed or hidden.
174461847f8eSopenharmony_ci   *
174561847f8eSopenharmony_ci   * @param { 'tabContentUpdate' } type - The type of event to listen for. Must be 'tabContentUpdate'.
174661847f8eSopenharmony_ci   * @param { observer.ObserverOptions } options - The options object.
174761847f8eSopenharmony_ci   * @param { Callback<observer.TabContentInfo> } callback - The callback function to be called
174861847f8eSopenharmony_ci   *                                                         when the tabContent show or hide.
174961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
175061847f8eSopenharmony_ci   * @crossplatform
175161847f8eSopenharmony_ci   * @atomicservice
175261847f8eSopenharmony_ci   * @since 12
175361847f8eSopenharmony_ci   */
175461847f8eSopenharmony_ci  on(type: 'tabContentUpdate', options: observer.ObserverOptions, callback: Callback<observer.TabContentInfo>): void;
175561847f8eSopenharmony_ci
175661847f8eSopenharmony_ci  /**
175761847f8eSopenharmony_ci   * Removes a callback function that was previously registered with `on()`.
175861847f8eSopenharmony_ci   *
175961847f8eSopenharmony_ci   * @param { 'tabContentUpdate' } type - The type of event to remove the listener for. Must be 'tabContentUpdate'.
176061847f8eSopenharmony_ci   * @param { observer.ObserverOptions } options - The options object.
176161847f8eSopenharmony_ci   * @param { Callback<observer.TabContentInfo> } callback - The callback function to remove. If not provided,
176261847f8eSopenharmony_ci   *                                              all callbacks for the given event type and Tabs ID will be removed.
176361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
176461847f8eSopenharmony_ci   * @crossplatform
176561847f8eSopenharmony_ci   * @atomicservice
176661847f8eSopenharmony_ci   * @since 12
176761847f8eSopenharmony_ci   */
176861847f8eSopenharmony_ci  off(type: 'tabContentUpdate', options: observer.ObserverOptions, callback?: Callback<observer.TabContentInfo>): void;
176961847f8eSopenharmony_ci
177061847f8eSopenharmony_ci  /**
177161847f8eSopenharmony_ci   * Registers a callback function to be called when the tabContent is showed or hidden.
177261847f8eSopenharmony_ci   *
177361847f8eSopenharmony_ci   * @param { 'tabContentUpdate' } type - The type of event to listen for. Must be 'tabContentUpdate'.
177461847f8eSopenharmony_ci   * @param { Callback<observer.TabContentInfo> } callback - The callback function to be called
177561847f8eSopenharmony_ci   *                                                         when the tabContent is showed or hidden.
177661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
177761847f8eSopenharmony_ci   * @crossplatform
177861847f8eSopenharmony_ci   * @atomicservice
177961847f8eSopenharmony_ci   * @since 12
178061847f8eSopenharmony_ci   */
178161847f8eSopenharmony_ci  on(type: 'tabContentUpdate', callback: Callback<observer.TabContentInfo>): void;
178261847f8eSopenharmony_ci
178361847f8eSopenharmony_ci  /**
178461847f8eSopenharmony_ci   * Removes a callback function that was previously registered with `on()`.
178561847f8eSopenharmony_ci   *
178661847f8eSopenharmony_ci   * @param { 'tabContentUpdate'} type - The type of event to remove the listener for. Must be 'tabContentUpdate'.
178761847f8eSopenharmony_ci   * @param { Callback<observer.TabContentInfo> } callback - The callback function to remove. If not provided,
178861847f8eSopenharmony_ci   *                                              all callbacks for the given event type and Tabs ID will be removed.
178961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
179061847f8eSopenharmony_ci   * @crossplatform
179161847f8eSopenharmony_ci   * @atomicservice
179261847f8eSopenharmony_ci   * @since 12
179361847f8eSopenharmony_ci   */
179461847f8eSopenharmony_ci  off(type: 'tabContentUpdate', callback?: Callback<observer.TabContentInfo>): void;
179561847f8eSopenharmony_ci}
179661847f8eSopenharmony_ci
179761847f8eSopenharmony_ci/**
179861847f8eSopenharmony_ci * class ComponentUtils
179961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
180061847f8eSopenharmony_ci * @crossplatform
180161847f8eSopenharmony_ci * @since 10
180261847f8eSopenharmony_ci */
180361847f8eSopenharmony_ci/**
180461847f8eSopenharmony_ci * class ComponentUtils
180561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
180661847f8eSopenharmony_ci * @crossplatform
180761847f8eSopenharmony_ci * @atomicservice
180861847f8eSopenharmony_ci * @since 11
180961847f8eSopenharmony_ci */
181061847f8eSopenharmony_ciexport class ComponentUtils {
181161847f8eSopenharmony_ci  /**
181261847f8eSopenharmony_ci   * Provide the ability to obtain the coordinates and size of component drawing areas.
181361847f8eSopenharmony_ci   *
181461847f8eSopenharmony_ci   * @param { string } id - ID of the component whose attributes are to be obtained.
181561847f8eSopenharmony_ci   * @returns { componentUtils.ComponentInfo } the object of ComponentInfo.
181661847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - UI execution context not found.
181761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
181861847f8eSopenharmony_ci   * @since 10
181961847f8eSopenharmony_ci   */
182061847f8eSopenharmony_ci  /**
182161847f8eSopenharmony_ci   * Provide the ability to obtain the coordinates and size of component drawing areas.
182261847f8eSopenharmony_ci   *
182361847f8eSopenharmony_ci   * @param { string } id - ID of the component whose attributes are to be obtained.
182461847f8eSopenharmony_ci   * @returns { componentUtils.ComponentInfo } the object of ComponentInfo.
182561847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - UI execution context not found.
182661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
182761847f8eSopenharmony_ci   * @atomicservice
182861847f8eSopenharmony_ci   * @since 11
182961847f8eSopenharmony_ci   */
183061847f8eSopenharmony_ci  getRectangleById(id: string): componentUtils.ComponentInfo;
183161847f8eSopenharmony_ci}
183261847f8eSopenharmony_ci
183361847f8eSopenharmony_ci/**
183461847f8eSopenharmony_ci * class OverlayManager
183561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
183661847f8eSopenharmony_ci * @crossplatform
183761847f8eSopenharmony_ci * @atomicservice
183861847f8eSopenharmony_ci * @since 12
183961847f8eSopenharmony_ci */
184061847f8eSopenharmony_ciexport class OverlayManager {
184161847f8eSopenharmony_ci  /**
184261847f8eSopenharmony_ci   * Add the ComponentContent to the OverlayManager.
184361847f8eSopenharmony_ci   *
184461847f8eSopenharmony_ci   * @param { ComponentContent } content - The content will be added to the OverlayManager.
184561847f8eSopenharmony_ci   * @param { number } [ index ] - The index at which to add the ComponentContent.
184661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
184761847f8eSopenharmony_ci   * @crossplatform
184861847f8eSopenharmony_ci   * @atomicservice
184961847f8eSopenharmony_ci   * @since 12
185061847f8eSopenharmony_ci   */
185161847f8eSopenharmony_ci  addComponentContent(content: ComponentContent, index?: number): void;
185261847f8eSopenharmony_ci
185361847f8eSopenharmony_ci  /**
185461847f8eSopenharmony_ci   * Remove the ComponentContent from the OverlayManager.
185561847f8eSopenharmony_ci   *
185661847f8eSopenharmony_ci   * @param { ComponentContent } content - The content will be removed from the OverlayManager.
185761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
185861847f8eSopenharmony_ci   * @crossplatform
185961847f8eSopenharmony_ci   * @atomicservice
186061847f8eSopenharmony_ci   * @since 12
186161847f8eSopenharmony_ci   */
186261847f8eSopenharmony_ci  removeComponentContent(content: ComponentContent): void;
186361847f8eSopenharmony_ci
186461847f8eSopenharmony_ci  /**
186561847f8eSopenharmony_ci   * Show the ComponentContent.
186661847f8eSopenharmony_ci   *
186761847f8eSopenharmony_ci   * @param { ComponentContent } content - The content will be shown.
186861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
186961847f8eSopenharmony_ci   * @crossplatform
187061847f8eSopenharmony_ci   * @atomicservice
187161847f8eSopenharmony_ci   * @since 12
187261847f8eSopenharmony_ci   */
187361847f8eSopenharmony_ci  showComponentContent(content: ComponentContent): void;
187461847f8eSopenharmony_ci
187561847f8eSopenharmony_ci  /**
187661847f8eSopenharmony_ci   * Hide the ComponentContent.
187761847f8eSopenharmony_ci   *
187861847f8eSopenharmony_ci   * @param { ComponentContent } content - The content will be hidden.
187961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
188061847f8eSopenharmony_ci   * @crossplatform
188161847f8eSopenharmony_ci   * @atomicservice
188261847f8eSopenharmony_ci   * @since 12
188361847f8eSopenharmony_ci   */
188461847f8eSopenharmony_ci  hideComponentContent(content: ComponentContent): void;
188561847f8eSopenharmony_ci
188661847f8eSopenharmony_ci  /**
188761847f8eSopenharmony_ci   * Show all ComponentContents on the OverlayManager.
188861847f8eSopenharmony_ci   *
188961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
189061847f8eSopenharmony_ci   * @crossplatform
189161847f8eSopenharmony_ci   * @atomicservice
189261847f8eSopenharmony_ci   * @since 12
189361847f8eSopenharmony_ci   */
189461847f8eSopenharmony_ci  showAllComponentContents(): void;
189561847f8eSopenharmony_ci
189661847f8eSopenharmony_ci  /**
189761847f8eSopenharmony_ci   * Hide all ComponentContents on the OverlayManager.
189861847f8eSopenharmony_ci   *
189961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
190061847f8eSopenharmony_ci   * @crossplatform
190161847f8eSopenharmony_ci   * @atomicservice
190261847f8eSopenharmony_ci   * @since 12
190361847f8eSopenharmony_ci   */
190461847f8eSopenharmony_ci  hideAllComponentContents(): void;
190561847f8eSopenharmony_ci}
190661847f8eSopenharmony_ci
190761847f8eSopenharmony_ci/**
190861847f8eSopenharmony_ci * interface AtomicServiceBar
190961847f8eSopenharmony_ci * @interface AtomicServiceBar
191061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
191161847f8eSopenharmony_ci * @crossplatform
191261847f8eSopenharmony_ci * @since 11
191361847f8eSopenharmony_ci */
191461847f8eSopenharmony_ci/**
191561847f8eSopenharmony_ci * interface AtomicServiceBar
191661847f8eSopenharmony_ci * @interface AtomicServiceBar
191761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
191861847f8eSopenharmony_ci * @crossplatform
191961847f8eSopenharmony_ci * @atomicservice
192061847f8eSopenharmony_ci * @since 12
192161847f8eSopenharmony_ci */
192261847f8eSopenharmony_ciexport interface AtomicServiceBar {
192361847f8eSopenharmony_ci  /**
192461847f8eSopenharmony_ci   * Set the visibility of the bar, except the icon.
192561847f8eSopenharmony_ci   *
192661847f8eSopenharmony_ci   * @param { boolean } visible - whether this bar is visible.
192761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
192861847f8eSopenharmony_ci   * @atomicservice
192961847f8eSopenharmony_ci   * @since 11
193061847f8eSopenharmony_ci   */
193161847f8eSopenharmony_ci  setVisible(visible: boolean): void;
193261847f8eSopenharmony_ci
193361847f8eSopenharmony_ci  /**
193461847f8eSopenharmony_ci   * Set the background color of the bar.
193561847f8eSopenharmony_ci   *
193661847f8eSopenharmony_ci   * @param { Nullable< Color | number | string> } color - the color to set, undefined indicates using default.
193761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
193861847f8eSopenharmony_ci   * @since 11
193961847f8eSopenharmony_ci   */
194061847f8eSopenharmony_ci  /**
194161847f8eSopenharmony_ci   * Set the background color of the bar.
194261847f8eSopenharmony_ci   *
194361847f8eSopenharmony_ci   * @param { Nullable< Color | number | string> } color - the color to set, undefined indicates using default.
194461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
194561847f8eSopenharmony_ci   * @atomicservice
194661847f8eSopenharmony_ci   * @since 12
194761847f8eSopenharmony_ci   */
194861847f8eSopenharmony_ci  setBackgroundColor(color: Nullable< Color | number | string>): void;
194961847f8eSopenharmony_ci
195061847f8eSopenharmony_ci  /**
195161847f8eSopenharmony_ci   * Set the title of the bar.
195261847f8eSopenharmony_ci   *
195361847f8eSopenharmony_ci   * @param { string } content - the content of the bar.
195461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
195561847f8eSopenharmony_ci   * @since 11
195661847f8eSopenharmony_ci   */
195761847f8eSopenharmony_ci  /**
195861847f8eSopenharmony_ci   * Set the title of the bar.
195961847f8eSopenharmony_ci   *
196061847f8eSopenharmony_ci   * @param { string } content - the content of the bar.
196161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
196261847f8eSopenharmony_ci   * @atomicservice
196361847f8eSopenharmony_ci   * @since 12
196461847f8eSopenharmony_ci   */
196561847f8eSopenharmony_ci  setTitleContent(content: string): void;
196661847f8eSopenharmony_ci
196761847f8eSopenharmony_ci  /**
196861847f8eSopenharmony_ci   * Set the font style of the bar's title.
196961847f8eSopenharmony_ci   *
197061847f8eSopenharmony_ci   * @param { FontStyle } font - the font style of the bar's title.
197161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
197261847f8eSopenharmony_ci   * @since 11
197361847f8eSopenharmony_ci   */
197461847f8eSopenharmony_ci  /**
197561847f8eSopenharmony_ci   * Set the font style of the bar's title.
197661847f8eSopenharmony_ci   *
197761847f8eSopenharmony_ci   * @param { FontStyle } font - the font style of the bar's title.
197861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
197961847f8eSopenharmony_ci   * @atomicservice
198061847f8eSopenharmony_ci   * @since 12
198161847f8eSopenharmony_ci   */
198261847f8eSopenharmony_ci  setTitleFontStyle(font: FontStyle): void;
198361847f8eSopenharmony_ci
198461847f8eSopenharmony_ci  /**
198561847f8eSopenharmony_ci   * Set the color of the icon on the bar.
198661847f8eSopenharmony_ci   *
198761847f8eSopenharmony_ci   * @param { Nullable< Color | number | string> } color - the color to set to icon, undefined indicates using default.
198861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
198961847f8eSopenharmony_ci   * @since 11
199061847f8eSopenharmony_ci   */
199161847f8eSopenharmony_ci  /**
199261847f8eSopenharmony_ci   * Set the color of the icon on the bar.
199361847f8eSopenharmony_ci   *
199461847f8eSopenharmony_ci   * @param { Nullable< Color | number | string> } color - the color to set to icon, undefined indicates using default.
199561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
199661847f8eSopenharmony_ci   * @atomicservice
199761847f8eSopenharmony_ci   * @since 12
199861847f8eSopenharmony_ci   */
199961847f8eSopenharmony_ci  setIconColor(color: Nullable< Color | number | string>): void;
200061847f8eSopenharmony_ci}
200161847f8eSopenharmony_ci
200261847f8eSopenharmony_ci/**
200361847f8eSopenharmony_ci * Represents a dynamic synchronization scene.
200461847f8eSopenharmony_ci * 
200561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
200661847f8eSopenharmony_ci * @atomicservice
200761847f8eSopenharmony_ci * @since 12
200861847f8eSopenharmony_ci */
200961847f8eSopenharmony_ciexport class DynamicSyncScene {
201061847f8eSopenharmony_ci  /**
201161847f8eSopenharmony_ci   * Sets the FrameRateRange of the DynamicSyncScene.
201261847f8eSopenharmony_ci   * 
201361847f8eSopenharmony_ci   * @param { ExpectedFrameRateRange } range - The range of frameRate.
201461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
201561847f8eSopenharmony_ci   * @atomicservice
201661847f8eSopenharmony_ci   * @since 12
201761847f8eSopenharmony_ci   */
201861847f8eSopenharmony_ci  setFrameRateRange(range: ExpectedFrameRateRange): void;
201961847f8eSopenharmony_ci
202061847f8eSopenharmony_ci  /**
202161847f8eSopenharmony_ci   * Gets the FrameRateRange of the DynamicSyncScene.
202261847f8eSopenharmony_ci   * 
202361847f8eSopenharmony_ci   * @returns { ExpectedFrameRateRange } The range of frameRate.
202461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
202561847f8eSopenharmony_ci   * @atomicservice
202661847f8eSopenharmony_ci   * @since 12
202761847f8eSopenharmony_ci   */
202861847f8eSopenharmony_ci  getFrameRateRange(): ExpectedFrameRateRange;
202961847f8eSopenharmony_ci}
203061847f8eSopenharmony_ci
203161847f8eSopenharmony_ci/**
203261847f8eSopenharmony_ci * Represents a dynamic synchronization scene of Swiper.
203361847f8eSopenharmony_ci * 
203461847f8eSopenharmony_ci * @extends DynamicSyncScene
203561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
203661847f8eSopenharmony_ci * @atomicservice
203761847f8eSopenharmony_ci * @since 12
203861847f8eSopenharmony_ci */
203961847f8eSopenharmony_ciexport class SwiperDynamicSyncScene extends DynamicSyncScene {
204061847f8eSopenharmony_ci  /**
204161847f8eSopenharmony_ci  * Type of the SwiperDynamicSyncSceneType.
204261847f8eSopenharmony_ci  * @type { SwiperDynamicSyncSceneType }
204361847f8eSopenharmony_ci  * @readonly
204461847f8eSopenharmony_ci  * @syscap SystemCapability.ArkUI.ArkUI.Full
204561847f8eSopenharmony_ci  * @atomicservice
204661847f8eSopenharmony_ci  * @since 12
204761847f8eSopenharmony_ci  */
204861847f8eSopenharmony_ci  readonly type: SwiperDynamicSyncSceneType;
204961847f8eSopenharmony_ci}
205061847f8eSopenharmony_ci
205161847f8eSopenharmony_ci/**
205261847f8eSopenharmony_ci * Represents a dynamic synchronization scene of Marquee.
205361847f8eSopenharmony_ci * 
205461847f8eSopenharmony_ci * @extends DynamicSyncScene
205561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
205661847f8eSopenharmony_ci * @atomicservice
205761847f8eSopenharmony_ci * @since 13
205861847f8eSopenharmony_ci */
205961847f8eSopenharmony_ciexport class MarqueeDynamicSyncScene extends DynamicSyncScene {
206061847f8eSopenharmony_ci  /**
206161847f8eSopenharmony_ci  * Type of the MarqueeDynamicSyncSceneType.
206261847f8eSopenharmony_ci  * @type { MarqueeDynamicSyncSceneType }
206361847f8eSopenharmony_ci  * @readonly
206461847f8eSopenharmony_ci  * @syscap SystemCapability.ArkUI.ArkUI.Full
206561847f8eSopenharmony_ci  * @atomicservice
206661847f8eSopenharmony_ci  * @since 13
206761847f8eSopenharmony_ci  */
206861847f8eSopenharmony_ci  readonly type: MarqueeDynamicSyncSceneType;
206961847f8eSopenharmony_ci}
207061847f8eSopenharmony_ci
207161847f8eSopenharmony_ci/**
207261847f8eSopenharmony_ci * class DragController
207361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
207461847f8eSopenharmony_ci * @since 11
207561847f8eSopenharmony_ci */
207661847f8eSopenharmony_ci/**
207761847f8eSopenharmony_ci * class DragController
207861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
207961847f8eSopenharmony_ci * @atomicservice
208061847f8eSopenharmony_ci * @since 12
208161847f8eSopenharmony_ci */
208261847f8eSopenharmony_ciexport class DragController {
208361847f8eSopenharmony_ci  /**
208461847f8eSopenharmony_ci   * Execute a drag event.
208561847f8eSopenharmony_ci   * @param { CustomBuilder | DragItemInfo } custom - Object used for prompts displayed when the object is dragged.
208661847f8eSopenharmony_ci   * @param { dragController.DragInfo } dragInfo - Information about the drag event.
208761847f8eSopenharmony_ci   * @param { AsyncCallback<{ event: DragEvent, extraParams: string }> } callback - Callback that contains 
208861847f8eSopenharmony_ci   * the drag event information.
208961847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
209061847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
209161847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
209261847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
209361847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - Internal handling failed.
209461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
209561847f8eSopenharmony_ci   * @since 11
209661847f8eSopenharmony_ci   */
209761847f8eSopenharmony_ci  /**
209861847f8eSopenharmony_ci   * Execute a drag event.
209961847f8eSopenharmony_ci   * @param { CustomBuilder | DragItemInfo } custom - Object used for prompts displayed when the object is dragged.
210061847f8eSopenharmony_ci   * @param { dragController.DragInfo } dragInfo - Information about the drag event.
210161847f8eSopenharmony_ci   * @param { AsyncCallback<dragController.DragEventParam> } callback - Callback that contains 
210261847f8eSopenharmony_ci   * the drag event information.
210361847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
210461847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
210561847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
210661847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
210761847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - Internal handling failed.
210861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
210961847f8eSopenharmony_ci   * @atomicservice
211061847f8eSopenharmony_ci   * @since 12
211161847f8eSopenharmony_ci   */
211261847f8eSopenharmony_ci  executeDrag(custom: CustomBuilder | DragItemInfo, dragInfo: dragController.DragInfo,
211361847f8eSopenharmony_ci    callback: AsyncCallback<dragController.DragEventParam>): void;
211461847f8eSopenharmony_ci
211561847f8eSopenharmony_ci  /**
211661847f8eSopenharmony_ci   * Execute a drag event.
211761847f8eSopenharmony_ci   * @param { CustomBuilder | DragItemInfo } custom - Object used for prompts displayed when the object is dragged.
211861847f8eSopenharmony_ci   * @param { dragController.DragInfo } dragInfo - Information about the drag event.
211961847f8eSopenharmony_ci   * @returns { Promise<{ event: DragEvent, extraParams: string }> } A Promise with the drag event information.
212061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
212161847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
212261847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
212361847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
212461847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - Internal handling failed.
212561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
212661847f8eSopenharmony_ci   * @since 11
212761847f8eSopenharmony_ci   */
212861847f8eSopenharmony_ci  /**
212961847f8eSopenharmony_ci   * Execute a drag event.
213061847f8eSopenharmony_ci   * @param { CustomBuilder | DragItemInfo } custom - Object used for prompts displayed when the object is dragged.
213161847f8eSopenharmony_ci   * @param { dragController.DragInfo } dragInfo - Information about the drag event.
213261847f8eSopenharmony_ci   * @returns { Promise<dragController.DragEventParam> } A Promise with the drag event information.
213361847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
213461847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
213561847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
213661847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
213761847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - Internal handling failed.
213861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
213961847f8eSopenharmony_ci   * @atomicservice
214061847f8eSopenharmony_ci   * @since 12
214161847f8eSopenharmony_ci   */
214261847f8eSopenharmony_ci  executeDrag(custom: CustomBuilder | DragItemInfo, dragInfo: dragController.DragInfo)
214361847f8eSopenharmony_ci    : Promise<dragController.DragEventParam>;
214461847f8eSopenharmony_ci
214561847f8eSopenharmony_ci  /**
214661847f8eSopenharmony_ci   * Create one drag action object, which can be used for starting drag later or monitoring the drag status after drag started.
214761847f8eSopenharmony_ci   * @param { Array<CustomBuilder | DragItemInfo> } customArray - Objects used for prompts displayed when the objects are dragged.
214861847f8eSopenharmony_ci   * @param { dragController.DragInfo } dragInfo - Information about the drag event.
214961847f8eSopenharmony_ci   * @returns { dragController.DragAction } one drag action object
215061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
215161847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
215261847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
215361847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
215461847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - Internal handling failed.
215561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
215661847f8eSopenharmony_ci   * @since 11
215761847f8eSopenharmony_ci   */
215861847f8eSopenharmony_ci  /**
215961847f8eSopenharmony_ci   * Create one drag action object, which can be used for starting drag later or monitoring the drag status after drag started.
216061847f8eSopenharmony_ci   * @param { Array<CustomBuilder | DragItemInfo> } customArray - Objects used for prompts displayed when the objects are dragged.
216161847f8eSopenharmony_ci   * @param { dragController.DragInfo } dragInfo - Information about the drag event.
216261847f8eSopenharmony_ci   * @returns { dragController.DragAction } one drag action object
216361847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
216461847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
216561847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
216661847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
216761847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - Internal handling failed.
216861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
216961847f8eSopenharmony_ci   * @atomicservice
217061847f8eSopenharmony_ci   * @since 12
217161847f8eSopenharmony_ci   */
217261847f8eSopenharmony_ci  createDragAction(customArray: Array<CustomBuilder | DragItemInfo>, dragInfo: dragController.DragInfo): dragController.DragAction;
217361847f8eSopenharmony_ci
217461847f8eSopenharmony_ci  /**
217561847f8eSopenharmony_ci   * Get a drag preview object, which provides the functions of setting color or updating animation and has no effect in OnDrop and OnDragEnd callback.
217661847f8eSopenharmony_ci   * @returns { dragController.DragPreview } A drag preview object.
217761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
217861847f8eSopenharmony_ci   * @since 11
217961847f8eSopenharmony_ci   */
218061847f8eSopenharmony_ci  /**
218161847f8eSopenharmony_ci   * Get a drag preview object.
218261847f8eSopenharmony_ci   * @returns { dragController.DragPreview } A drag preview object.
218361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
218461847f8eSopenharmony_ci   * @atomicservice
218561847f8eSopenharmony_ci   * @since 12
218661847f8eSopenharmony_ci   */
218761847f8eSopenharmony_ci  getDragPreview(): dragController.DragPreview;
218861847f8eSopenharmony_ci
218961847f8eSopenharmony_ci  /**
219061847f8eSopenharmony_ci   * Enable drag event strict reporting for drag enter and leave notification in nested situation. 
219161847f8eSopenharmony_ci   * For example, the parent and child both register the onDragEnter/onDragLeave events, if this 
219261847f8eSopenharmony_ci   * flag is enabled, the parent will be notified with leave event, and the child will notified with 
219361847f8eSopenharmony_ci   * enter event at the same time, when user drag action is passing through the parent and enter the 
219461847f8eSopenharmony_ci   * scope of the child.
219561847f8eSopenharmony_ci   * Please be noted, the default value of the flag is false, it means, for the same situation, the 
219661847f8eSopenharmony_ci   * parent will not receive the leave notification, just the child can get the enter event, which is 
219761847f8eSopenharmony_ci   * not fully strict.
219861847f8eSopenharmony_ci   * @param { boolean } enable - Indicating enable drag event strict reporting or not.
219961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
220061847f8eSopenharmony_ci   * @atomicservice
220161847f8eSopenharmony_ci   * @since 12
220261847f8eSopenharmony_ci   */
220361847f8eSopenharmony_ci  setDragEventStrictReportingEnabled(enable: boolean): void;
220461847f8eSopenharmony_ci}
220561847f8eSopenharmony_ci
220661847f8eSopenharmony_ci/**
220761847f8eSopenharmony_ci * class MeasureUtils
220861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
220961847f8eSopenharmony_ci * @crossplatform
221061847f8eSopenharmony_ci * @atomicservice
221161847f8eSopenharmony_ci * @since 12
221261847f8eSopenharmony_ci */
221361847f8eSopenharmony_ciexport class MeasureUtils {
221461847f8eSopenharmony_ci  /**
221561847f8eSopenharmony_ci   * Obtains the width of the specified text in a single line layout.
221661847f8eSopenharmony_ci   *
221761847f8eSopenharmony_ci   * @param { MeasureOptions } options - Options.
221861847f8eSopenharmony_ci   * @returns { number }
221961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
222061847f8eSopenharmony_ci   * @crossplatform
222161847f8eSopenharmony_ci   * @atomicservice
222261847f8eSopenharmony_ci   * @since 12
222361847f8eSopenharmony_ci   */
222461847f8eSopenharmony_ci  measureText(options: MeasureOptions): number;
222561847f8eSopenharmony_ci
222661847f8eSopenharmony_ci  /**
222761847f8eSopenharmony_ci   * Obtains the width and height of the specified text in a single line layout.
222861847f8eSopenharmony_ci   *
222961847f8eSopenharmony_ci   * @param { MeasureOptions } options - Options of measure area occupied by text.
223061847f8eSopenharmony_ci   * @returns { SizeOptions } width and height for text to display
223161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
223261847f8eSopenharmony_ci   * @crossplatform
223361847f8eSopenharmony_ci   * @atomicservice
223461847f8eSopenharmony_ci   * @since 12
223561847f8eSopenharmony_ci   */
223661847f8eSopenharmony_ci  measureTextSize(options: MeasureOptions): SizeOptions;
223761847f8eSopenharmony_ci}
223861847f8eSopenharmony_ci
223961847f8eSopenharmony_ci/**
224061847f8eSopenharmony_ci * class FocusController
224161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
224261847f8eSopenharmony_ci * @atomicservice
224361847f8eSopenharmony_ci * @since 12
224461847f8eSopenharmony_ci */
224561847f8eSopenharmony_ciexport class FocusController {
224661847f8eSopenharmony_ci  /**
224761847f8eSopenharmony_ci   * clear focus to the root container.
224861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
224961847f8eSopenharmony_ci   * @atomicservice
225061847f8eSopenharmony_ci   * @since 12
225161847f8eSopenharmony_ci   */
225261847f8eSopenharmony_ci  clearFocus(): void;
225361847f8eSopenharmony_ci
225461847f8eSopenharmony_ci  /**
225561847f8eSopenharmony_ci   * request focus to the specific component.
225661847f8eSopenharmony_ci   * @param { string } key - the inspector key of the component.
225761847f8eSopenharmony_ci   * @throws { BusinessError } 150001 - the component cannot be focused.
225861847f8eSopenharmony_ci   * @throws { BusinessError } 150002 - This component has an unfocusable ancestor.
225961847f8eSopenharmony_ci   * @throws { BusinessError } 150003 - the component is not on tree or does not exist.
226061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
226161847f8eSopenharmony_ci   * @atomicservice
226261847f8eSopenharmony_ci   * @since 12
226361847f8eSopenharmony_ci   */
226461847f8eSopenharmony_ci  requestFocus(key: string): void;
226561847f8eSopenharmony_ci
226661847f8eSopenharmony_ci  /**
226761847f8eSopenharmony_ci   * Activate focus style.
226861847f8eSopenharmony_ci   * @param { boolean } isActive - activate/deactivate the focus style.
226961847f8eSopenharmony_ci   * @param { boolean } [autoInactive] - deactivate the focus style when touch event or mouse event triggers, the default value is true.
227061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
227161847f8eSopenharmony_ci   * @crossplatform
227261847f8eSopenharmony_ci   * @atomicservice
227361847f8eSopenharmony_ci   * @since 14
227461847f8eSopenharmony_ci   */
227561847f8eSopenharmony_ci  activate(isActive: boolean, autoInactive?: boolean): void;
227661847f8eSopenharmony_ci}
227761847f8eSopenharmony_ci
227861847f8eSopenharmony_ci/**
227961847f8eSopenharmony_ci * Pointer style.
228061847f8eSopenharmony_ci *
228161847f8eSopenharmony_ci * @typedef {pointer.PointerStyle} PointerStyle
228261847f8eSopenharmony_ci * @syscap SystemCapability.MultimodalInput.Input.Pointer
228361847f8eSopenharmony_ci * @atomicservice
228461847f8eSopenharmony_ci * @since 12
228561847f8eSopenharmony_ci */
228661847f8eSopenharmony_ciexport type PointerStyle = pointer.PointerStyle;
228761847f8eSopenharmony_ci
228861847f8eSopenharmony_ci/**
228961847f8eSopenharmony_ci * class CursorController
229061847f8eSopenharmony_ci *
229161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
229261847f8eSopenharmony_ci * @crossplatform
229361847f8eSopenharmony_ci * @atomicservice
229461847f8eSopenharmony_ci * @since 12
229561847f8eSopenharmony_ci */
229661847f8eSopenharmony_ciexport class CursorController {
229761847f8eSopenharmony_ci  /**
229861847f8eSopenharmony_ci   * Restore default cursor.
229961847f8eSopenharmony_ci   * 
230061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
230161847f8eSopenharmony_ci   * @crossplatform
230261847f8eSopenharmony_ci   * @atomicservice
230361847f8eSopenharmony_ci   * @since 12
230461847f8eSopenharmony_ci   */
230561847f8eSopenharmony_ci  restoreDefault(): void;
230661847f8eSopenharmony_ci  /**
230761847f8eSopenharmony_ci   * Set cursor style.
230861847f8eSopenharmony_ci   * 
230961847f8eSopenharmony_ci   * @param { PointerStyle } value - cursor style enum.
231061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
231161847f8eSopenharmony_ci   * @crossplatform
231261847f8eSopenharmony_ci   * @atomicservice
231361847f8eSopenharmony_ci   * @since 12
231461847f8eSopenharmony_ci   */
231561847f8eSopenharmony_ci  setCursor(value: PointerStyle): void;
231661847f8eSopenharmony_ci}
231761847f8eSopenharmony_ci
231861847f8eSopenharmony_ci/**
231961847f8eSopenharmony_ci * class ContextMenuController
232061847f8eSopenharmony_ci *
232161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
232261847f8eSopenharmony_ci * @crossplatform
232361847f8eSopenharmony_ci * @atomicservice
232461847f8eSopenharmony_ci * @since 12
232561847f8eSopenharmony_ci */
232661847f8eSopenharmony_ciexport class ContextMenuController {
232761847f8eSopenharmony_ci  /**
232861847f8eSopenharmony_ci   * Close context menu.
232961847f8eSopenharmony_ci   * 
233061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
233161847f8eSopenharmony_ci   * @crossplatform
233261847f8eSopenharmony_ci   * @atomicservice
233361847f8eSopenharmony_ci   * @since 12
233461847f8eSopenharmony_ci   */
233561847f8eSopenharmony_ci  close(): void;
233661847f8eSopenharmony_ci}
233761847f8eSopenharmony_ci
233861847f8eSopenharmony_ci/**
233961847f8eSopenharmony_ci * Class FrameCallback
234061847f8eSopenharmony_ci *
234161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
234261847f8eSopenharmony_ci * @crossplatform
234361847f8eSopenharmony_ci * @atomicservice
234461847f8eSopenharmony_ci * @since 12
234561847f8eSopenharmony_ci */
234661847f8eSopenharmony_ciexport abstract class FrameCallback {
234761847f8eSopenharmony_ci  /**
234861847f8eSopenharmony_ci   * Call when a new display frame is being rendered.
234961847f8eSopenharmony_ci   * 
235061847f8eSopenharmony_ci   * @param { number } frameTimeInNano - The frame time in nanoseconds.
235161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
235261847f8eSopenharmony_ci   * @crossplatform
235361847f8eSopenharmony_ci   * @atomicservice
235461847f8eSopenharmony_ci   * @since 12
235561847f8eSopenharmony_ci   */
235661847f8eSopenharmony_ci  onFrame(frameTimeInNano: number): void;
235761847f8eSopenharmony_ci
235861847f8eSopenharmony_ci  /**
235961847f8eSopenharmony_ci   * Called at the end of the next idle frame. If there is no next frame, will request one automatically.
236061847f8eSopenharmony_ci   *
236161847f8eSopenharmony_ci   * @param { number } timeLeftInNano - The remaining time from the deadline for this frame.
236261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
236361847f8eSopenharmony_ci   * @crossplatform
236461847f8eSopenharmony_ci   * @atomicservice
236561847f8eSopenharmony_ci   * @since 12
236661847f8eSopenharmony_ci   */
236761847f8eSopenharmony_ci  onIdle(timeLeftInNano: number): void;
236861847f8eSopenharmony_ci}
236961847f8eSopenharmony_ci
237061847f8eSopenharmony_ci/**
237161847f8eSopenharmony_ci * The base context of an ability or an application. It allows access to
237261847f8eSopenharmony_ci * application-specific resources.
237361847f8eSopenharmony_ci *
237461847f8eSopenharmony_ci * @typedef { common.Context } Context
237561847f8eSopenharmony_ci * @syscap SystemCapability.Ability.AbilityRuntime.Core
237661847f8eSopenharmony_ci * @StageModelOnly
237761847f8eSopenharmony_ci * @crossplatform
237861847f8eSopenharmony_ci * @atomicservice
237961847f8eSopenharmony_ci * @since 12
238061847f8eSopenharmony_ci */
238161847f8eSopenharmony_ciexport type Context = common.Context;
238261847f8eSopenharmony_ci
238361847f8eSopenharmony_ci/**
238461847f8eSopenharmony_ci * class ComponentSnapshot
238561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
238661847f8eSopenharmony_ci * @atomicservice
238761847f8eSopenharmony_ci * @since 12
238861847f8eSopenharmony_ci */
238961847f8eSopenharmony_ciexport class ComponentSnapshot {
239061847f8eSopenharmony_ci  /**
239161847f8eSopenharmony_ci     * Get a component snapshot by component id.
239261847f8eSopenharmony_ci     *
239361847f8eSopenharmony_ci     * @param { string } id - Target component ID, set by developer through .id attribute.
239461847f8eSopenharmony_ci     * @param { AsyncCallback<image.PixelMap> } callback - Callback that contains the snapshot in PixelMap format.
239561847f8eSopenharmony_ci     * @param { componentSnapshot.SnapshotOptions } [options] - Define the snapshot options.
239661847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes:
239761847f8eSopenharmony_ci     * <br> 1. Mandatory parameters are left unspecified.
239861847f8eSopenharmony_ci     * <br> 2. Incorrect parameters types.
239961847f8eSopenharmony_ci     * <br> 3. Parameter verification failed.
240061847f8eSopenharmony_ci     * @throws { BusinessError } 100001 - Invalid ID.
240161847f8eSopenharmony_ci     * @syscap SystemCapability.ArkUI.ArkUI.Full
240261847f8eSopenharmony_ci     * @crossplatform
240361847f8eSopenharmony_ci     * @atomicservice
240461847f8eSopenharmony_ci     * @since 12
240561847f8eSopenharmony_ci     */
240661847f8eSopenharmony_ci  get(id: string, callback: AsyncCallback<image.PixelMap>, options?: componentSnapshot.SnapshotOptions): void;
240761847f8eSopenharmony_ci
240861847f8eSopenharmony_ci  /**
240961847f8eSopenharmony_ci   * Get a component snapshot by component id.
241061847f8eSopenharmony_ci   *
241161847f8eSopenharmony_ci   * @param { string } id - Target component ID, set by developer through .id attribute.
241261847f8eSopenharmony_ci   * @param { componentSnapshot.SnapshotOptions } [options] - Define the snapshot options.
241361847f8eSopenharmony_ci   * @returns { Promise<image.PixelMap> } A Promise with the snapshot in PixelMap format.
241461847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes:
241561847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
241661847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
241761847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
241861847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - Invalid ID.
241961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
242061847f8eSopenharmony_ci   * @crossplatform
242161847f8eSopenharmony_ci   * @atomicservice
242261847f8eSopenharmony_ci   * @since 12
242361847f8eSopenharmony_ci   */
242461847f8eSopenharmony_ci  get(id: string, options?: componentSnapshot.SnapshotOptions): Promise<image.PixelMap>;
242561847f8eSopenharmony_ci
242661847f8eSopenharmony_ci  /**
242761847f8eSopenharmony_ci   * Generate a snapshot from a custom component builder.
242861847f8eSopenharmony_ci   *
242961847f8eSopenharmony_ci   * @param { CustomBuilder } builder - Builder function of a custom component.
243061847f8eSopenharmony_ci   * @param { AsyncCallback<image.PixelMap> } callback - Callback that contains the snapshot in PixelMap format.
243161847f8eSopenharmony_ci   * @param { number } [delay] - Defines the delay time to render the snapshot.
243261847f8eSopenharmony_ci   * @param { boolean } [checkImageStatus] - Defines if check the image decoding status before taking snapshot.
243361847f8eSopenharmony_ci   * @param { componentSnapshot.SnapshotOptions } [options] - Define the snapshot options.
243461847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes:
243561847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
243661847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
243761847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
243861847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - The builder is not a valid build function.
243961847f8eSopenharmony_ci   * @throws { BusinessError } 160001 - An image component in builder is not ready for taking a snapshot. The check for
244061847f8eSopenharmony_ci   * the ready state is required when the checkImageStatus option is enabled.
244161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
244261847f8eSopenharmony_ci   * @crossplatform
244361847f8eSopenharmony_ci   * @atomicservice
244461847f8eSopenharmony_ci   * @since 12
244561847f8eSopenharmony_ci   */
244661847f8eSopenharmony_ci  createFromBuilder(builder: CustomBuilder, callback: AsyncCallback<image.PixelMap>,
244761847f8eSopenharmony_ci    delay?: number, checkImageStatus?: boolean, options?: componentSnapshot.SnapshotOptions): void;
244861847f8eSopenharmony_ci
244961847f8eSopenharmony_ci  /**
245061847f8eSopenharmony_ci   * Generate a snapshot from a custom component builder.
245161847f8eSopenharmony_ci   *
245261847f8eSopenharmony_ci   * @param { CustomBuilder } builder - Builder function of a custom component.
245361847f8eSopenharmony_ci   * @param { number } [delay] - Defines the delay time to render the snapshot.
245461847f8eSopenharmony_ci   * @param { boolean } [checkImageStatus] - Defines if check the image decoding status before taking snapshot.
245561847f8eSopenharmony_ci   * @param { componentSnapshot.SnapshotOptions } [options] - Define the snapshot options.
245661847f8eSopenharmony_ci   * @returns { Promise<image.PixelMap> } A Promise with the snapshot in PixelMap format.
245761847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes:
245861847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
245961847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
246061847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
246161847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - The builder is not a valid build function.
246261847f8eSopenharmony_ci   * @throws { BusinessError } 160001 - An image component in builder is not ready for taking a snapshot. The check for
246361847f8eSopenharmony_ci   * the ready state is required when the checkImageStatus option is enabled.
246461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
246561847f8eSopenharmony_ci   * @crossplatform
246661847f8eSopenharmony_ci   * @atomicservice
246761847f8eSopenharmony_ci   * @since 12
246861847f8eSopenharmony_ci   */
246961847f8eSopenharmony_ci  createFromBuilder(builder: CustomBuilder, delay?: number,
247061847f8eSopenharmony_ci    checkImageStatus?: boolean, options?: componentSnapshot.SnapshotOptions): Promise<image.PixelMap>;
247161847f8eSopenharmony_ci
247261847f8eSopenharmony_ci  /**
247361847f8eSopenharmony_ci   * Take a screenshot of the specified component in synchronous mode,
247461847f8eSopenharmony_ci   * this mode will block the main thread, please use it with caution, the maximum
247561847f8eSopenharmony_ci   * waiting time of the interface is 3s, if it does not return after 3s, an exception will be thrown.
247661847f8eSopenharmony_ci   *
247761847f8eSopenharmony_ci   * @param { string } id - Target component ID, set by developer through .id attribute.
247861847f8eSopenharmony_ci   * @param { componentSnapshot.SnapshotOptions } [options] - Define the snapshot options.
247961847f8eSopenharmony_ci   * @returns { image.PixelMap } The snapshot result in PixelMap format.
248061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes:
248161847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
248261847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
248361847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
248461847f8eSopenharmony_ci   * @throws { BusinessError } 100001 - Invalid ID.
248561847f8eSopenharmony_ci   * @throws { BusinessError } 160002 - Timeout.
248661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
248761847f8eSopenharmony_ci   * @crossplatform
248861847f8eSopenharmony_ci   * @atomicservice
248961847f8eSopenharmony_ci   * @since 12
249061847f8eSopenharmony_ci   */
249161847f8eSopenharmony_ci  getSync(id: string, options?: componentSnapshot.SnapshotOptions): image.PixelMap;
249261847f8eSopenharmony_ci}
249361847f8eSopenharmony_ci
249461847f8eSopenharmony_ci/**
249561847f8eSopenharmony_ci * class UIContext
249661847f8eSopenharmony_ci *
249761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
249861847f8eSopenharmony_ci * @crossplatform
249961847f8eSopenharmony_ci * @since 10
250061847f8eSopenharmony_ci */
250161847f8eSopenharmony_ci/**
250261847f8eSopenharmony_ci * class UIContext
250361847f8eSopenharmony_ci *
250461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
250561847f8eSopenharmony_ci * @crossplatform
250661847f8eSopenharmony_ci * @atomicservice
250761847f8eSopenharmony_ci * @since 11
250861847f8eSopenharmony_ci */
250961847f8eSopenharmony_ciexport class UIContext {
251061847f8eSopenharmony_ci  /**
251161847f8eSopenharmony_ci   * get object font.
251261847f8eSopenharmony_ci   *
251361847f8eSopenharmony_ci   * @returns { Font } object Font.
251461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
251561847f8eSopenharmony_ci   * @crossplatform
251661847f8eSopenharmony_ci   * @since 10
251761847f8eSopenharmony_ci   */
251861847f8eSopenharmony_ci  /**
251961847f8eSopenharmony_ci   * get object font.
252061847f8eSopenharmony_ci   *
252161847f8eSopenharmony_ci   * @returns { Font } object Font.
252261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
252361847f8eSopenharmony_ci   * @crossplatform
252461847f8eSopenharmony_ci   * @atomicservice
252561847f8eSopenharmony_ci   * @since 11
252661847f8eSopenharmony_ci   */
252761847f8eSopenharmony_ci  getFont(): Font;
252861847f8eSopenharmony_ci
252961847f8eSopenharmony_ci  /**
253061847f8eSopenharmony_ci   * get object mediaQuery.
253161847f8eSopenharmony_ci   *
253261847f8eSopenharmony_ci   * @returns { MediaQuery } object MediaQuery.
253361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
253461847f8eSopenharmony_ci   * @crossplatform
253561847f8eSopenharmony_ci   * @since 10
253661847f8eSopenharmony_ci   */
253761847f8eSopenharmony_ci  /**
253861847f8eSopenharmony_ci   * get object mediaQuery.
253961847f8eSopenharmony_ci   *
254061847f8eSopenharmony_ci   * @returns { MediaQuery } object MediaQuery.
254161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
254261847f8eSopenharmony_ci   * @crossplatform
254361847f8eSopenharmony_ci   * @atomicservice
254461847f8eSopenharmony_ci   * @since 11
254561847f8eSopenharmony_ci   */
254661847f8eSopenharmony_ci  getMediaQuery(): MediaQuery;
254761847f8eSopenharmony_ci
254861847f8eSopenharmony_ci  /**
254961847f8eSopenharmony_ci   * get object UIInspector.
255061847f8eSopenharmony_ci   * @returns { UIInspector } object UIInspector.
255161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
255261847f8eSopenharmony_ci   * @crossplatform
255361847f8eSopenharmony_ci   * @since 10
255461847f8eSopenharmony_ci   */
255561847f8eSopenharmony_ci  /**
255661847f8eSopenharmony_ci   * get object UIInspector.
255761847f8eSopenharmony_ci   * @returns { UIInspector } object UIInspector.
255861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
255961847f8eSopenharmony_ci   * @crossplatform
256061847f8eSopenharmony_ci   * @atomicservice
256161847f8eSopenharmony_ci   * @since 11
256261847f8eSopenharmony_ci   */
256361847f8eSopenharmony_ci  getUIInspector(): UIInspector;
256461847f8eSopenharmony_ci
256561847f8eSopenharmony_ci  /**
256661847f8eSopenharmony_ci   * get the filtered attributes of the component tree.
256761847f8eSopenharmony_ci   * @param { Array<string> } [filters] - the list of filters used to filter out component tree to be obtained.
256861847f8eSopenharmony_ci   * @returns { string } the specified attributes of the component tree in json string.
256961847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
257061847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
257161847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
257261847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
257361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
257461847f8eSopenharmony_ci   * @crossplatform
257561847f8eSopenharmony_ci   * @atomicservice
257661847f8eSopenharmony_ci   * @since 12
257761847f8eSopenharmony_ci   */
257861847f8eSopenharmony_ci  getFilteredInspectorTree(filters?: Array<string>): string;
257961847f8eSopenharmony_ci
258061847f8eSopenharmony_ci  /**
258161847f8eSopenharmony_ci   * get the filtered attributes of the component tree with the specified id and depth
258261847f8eSopenharmony_ci   * @param { string } id - ID of the specified component tree to be obtained.
258361847f8eSopenharmony_ci   * @param { number } depth - depth of the component tree to be obtained.
258461847f8eSopenharmony_ci   * @param { Array<string> } [filters] - the list of filters used to filter out component tree to be obtained.
258561847f8eSopenharmony_ci   * @returns { string } the specified attributes of the component tree in json string.
258661847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
258761847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
258861847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
258961847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
259061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
259161847f8eSopenharmony_ci   * @crossplatform
259261847f8eSopenharmony_ci   * @atomicservice
259361847f8eSopenharmony_ci   * @since 12
259461847f8eSopenharmony_ci   */
259561847f8eSopenharmony_ci  getFilteredInspectorTreeById(id: string, depth: number, filters?: Array<string>): string;
259661847f8eSopenharmony_ci
259761847f8eSopenharmony_ci  /**
259861847f8eSopenharmony_ci   * get object router.
259961847f8eSopenharmony_ci   *
260061847f8eSopenharmony_ci   * @returns { Router } object Router.
260161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
260261847f8eSopenharmony_ci   * @crossplatform
260361847f8eSopenharmony_ci   * @since 10
260461847f8eSopenharmony_ci   */
260561847f8eSopenharmony_ci  /**
260661847f8eSopenharmony_ci   * get object router.
260761847f8eSopenharmony_ci   *
260861847f8eSopenharmony_ci   * @returns { Router } object Router.
260961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
261061847f8eSopenharmony_ci   * @crossplatform
261161847f8eSopenharmony_ci   * @atomicservice
261261847f8eSopenharmony_ci   * @since 11
261361847f8eSopenharmony_ci   */
261461847f8eSopenharmony_ci  getRouter(): Router;
261561847f8eSopenharmony_ci
261661847f8eSopenharmony_ci  /**
261761847f8eSopenharmony_ci   * get object PromptAction.
261861847f8eSopenharmony_ci   *
261961847f8eSopenharmony_ci   * @returns { PromptAction } object PromptAction.
262061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
262161847f8eSopenharmony_ci   * @crossplatform
262261847f8eSopenharmony_ci   * @since 10
262361847f8eSopenharmony_ci   */
262461847f8eSopenharmony_ci  /**
262561847f8eSopenharmony_ci   * get object PromptAction.
262661847f8eSopenharmony_ci   *
262761847f8eSopenharmony_ci   * @returns { PromptAction } object PromptAction.
262861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
262961847f8eSopenharmony_ci   * @crossplatform
263061847f8eSopenharmony_ci   * @atomicservice
263161847f8eSopenharmony_ci   * @since 11
263261847f8eSopenharmony_ci   */
263361847f8eSopenharmony_ci  getPromptAction(): PromptAction;
263461847f8eSopenharmony_ci
263561847f8eSopenharmony_ci  /**
263661847f8eSopenharmony_ci   * get object ComponentUtils.
263761847f8eSopenharmony_ci   * @returns { ComponentUtils } object ComponentUtils.
263861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
263961847f8eSopenharmony_ci   * @crossplatform
264061847f8eSopenharmony_ci   * @since 10
264161847f8eSopenharmony_ci   */
264261847f8eSopenharmony_ci  /**
264361847f8eSopenharmony_ci   * get object ComponentUtils.
264461847f8eSopenharmony_ci   * @returns { ComponentUtils } object ComponentUtils.
264561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
264661847f8eSopenharmony_ci   * @crossplatform
264761847f8eSopenharmony_ci   * @atomicservice
264861847f8eSopenharmony_ci   * @since 11
264961847f8eSopenharmony_ci   */
265061847f8eSopenharmony_ci  getComponentUtils(): ComponentUtils;
265161847f8eSopenharmony_ci
265261847f8eSopenharmony_ci  /**
265361847f8eSopenharmony_ci   * Get the UI observer.
265461847f8eSopenharmony_ci   *
265561847f8eSopenharmony_ci   * @returns { UIObserver } The UI observer.
265661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
265761847f8eSopenharmony_ci   * @crossplatform
265861847f8eSopenharmony_ci   * @since 11
265961847f8eSopenharmony_ci   */
266061847f8eSopenharmony_ci  /**
266161847f8eSopenharmony_ci   * Get the UI observer.
266261847f8eSopenharmony_ci   *
266361847f8eSopenharmony_ci   * @returns { UIObserver } The UI observer.
266461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
266561847f8eSopenharmony_ci   * @crossplatform
266661847f8eSopenharmony_ci   * @atomicservice
266761847f8eSopenharmony_ci   * @since 12
266861847f8eSopenharmony_ci   */
266961847f8eSopenharmony_ci  getUIObserver(): UIObserver;
267061847f8eSopenharmony_ci
267161847f8eSopenharmony_ci  /**
267261847f8eSopenharmony_ci   * Get object OverlayManager.
267361847f8eSopenharmony_ci   *
267461847f8eSopenharmony_ci   * @returns { OverlayManager } object OverlayManager.
267561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
267661847f8eSopenharmony_ci   * @crossplatform
267761847f8eSopenharmony_ci   * @atomicservice
267861847f8eSopenharmony_ci   * @since 12
267961847f8eSopenharmony_ci   */
268061847f8eSopenharmony_ci  getOverlayManager(): OverlayManager;
268161847f8eSopenharmony_ci
268261847f8eSopenharmony_ci  /**
268361847f8eSopenharmony_ci   * Create an animator object for custom animation.
268461847f8eSopenharmony_ci   *
268561847f8eSopenharmony_ci   * @param { AnimatorOptions } options - Options.
268661847f8eSopenharmony_ci   * @returns { AnimatorResult }
268761847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
268861847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
268961847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
269061847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
269161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
269261847f8eSopenharmony_ci   * @crossplatform
269361847f8eSopenharmony_ci   * @since 10
269461847f8eSopenharmony_ci   */
269561847f8eSopenharmony_ci  /**
269661847f8eSopenharmony_ci   * Create an animator object for custom animation.
269761847f8eSopenharmony_ci   *
269861847f8eSopenharmony_ci   * @param { AnimatorOptions } options - Options.
269961847f8eSopenharmony_ci   * @returns { AnimatorResult }
270061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 
270161847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
270261847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
270361847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
270461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
270561847f8eSopenharmony_ci   * @crossplatform
270661847f8eSopenharmony_ci   * @atomicservice
270761847f8eSopenharmony_ci   * @since 11
270861847f8eSopenharmony_ci   */
270961847f8eSopenharmony_ci  createAnimator(options: AnimatorOptions): AnimatorResult;
271061847f8eSopenharmony_ci
271161847f8eSopenharmony_ci  /**
271261847f8eSopenharmony_ci   * Defining animation function
271361847f8eSopenharmony_ci   *
271461847f8eSopenharmony_ci   * @param { AnimateParam } value - parameters for animation.
271561847f8eSopenharmony_ci   * @param { function } event - the closure base on which, the system will create animation automatically
271661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
271761847f8eSopenharmony_ci   * @crossplatform
271861847f8eSopenharmony_ci   * @since 10
271961847f8eSopenharmony_ci   */
272061847f8eSopenharmony_ci  /**
272161847f8eSopenharmony_ci   * Defining animation function
272261847f8eSopenharmony_ci   *
272361847f8eSopenharmony_ci   * @param { AnimateParam } value - parameters for animation.
272461847f8eSopenharmony_ci   * @param { function } event - the closure base on which, the system will create animation automatically
272561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
272661847f8eSopenharmony_ci   * @crossplatform
272761847f8eSopenharmony_ci   * @atomicservice
272861847f8eSopenharmony_ci   * @since 11
272961847f8eSopenharmony_ci   */
273061847f8eSopenharmony_ci  animateTo(value: AnimateParam, event: () => void): void;
273161847f8eSopenharmony_ci
273261847f8eSopenharmony_ci  /**
273361847f8eSopenharmony_ci   * alertDialog display.
273461847f8eSopenharmony_ci   *
273561847f8eSopenharmony_ci   * @param { AlertDialogParamWithConfirm | AlertDialogParamWithButtons | AlertDialogParamWithOptions } options - Options.
273661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
273761847f8eSopenharmony_ci   * @crossplatform
273861847f8eSopenharmony_ci   * @since 10
273961847f8eSopenharmony_ci   */
274061847f8eSopenharmony_ci  /**
274161847f8eSopenharmony_ci   * alertDialog display.
274261847f8eSopenharmony_ci   *
274361847f8eSopenharmony_ci   * @param { AlertDialogParamWithConfirm | AlertDialogParamWithButtons | AlertDialogParamWithOptions } options - Options.
274461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
274561847f8eSopenharmony_ci   * @crossplatform
274661847f8eSopenharmony_ci   * @atomicservice
274761847f8eSopenharmony_ci   * @since 11
274861847f8eSopenharmony_ci   */
274961847f8eSopenharmony_ci  showAlertDialog(options: AlertDialogParamWithConfirm | AlertDialogParamWithButtons | AlertDialogParamWithOptions): void;
275061847f8eSopenharmony_ci
275161847f8eSopenharmony_ci  /**
275261847f8eSopenharmony_ci   * actionSheet display.
275361847f8eSopenharmony_ci   *
275461847f8eSopenharmony_ci   * @param { ActionSheetOptions } value - Options.
275561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
275661847f8eSopenharmony_ci   * @crossplatform
275761847f8eSopenharmony_ci   * @since 10
275861847f8eSopenharmony_ci   */
275961847f8eSopenharmony_ci  /**
276061847f8eSopenharmony_ci   * actionSheet display.
276161847f8eSopenharmony_ci   *
276261847f8eSopenharmony_ci   * @param { ActionSheetOptions } value - Options.
276361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
276461847f8eSopenharmony_ci   * @crossplatform
276561847f8eSopenharmony_ci   * @atomicservice
276661847f8eSopenharmony_ci   * @since 11
276761847f8eSopenharmony_ci   */
276861847f8eSopenharmony_ci  showActionSheet(value: ActionSheetOptions): void;
276961847f8eSopenharmony_ci
277061847f8eSopenharmony_ci  /**
277161847f8eSopenharmony_ci   * datePickerDialog display.
277261847f8eSopenharmony_ci   *
277361847f8eSopenharmony_ci   * @param { DatePickerDialogOptions } options - Options.
277461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
277561847f8eSopenharmony_ci   * @crossplatform
277661847f8eSopenharmony_ci   * @since 10
277761847f8eSopenharmony_ci   */
277861847f8eSopenharmony_ci  /**
277961847f8eSopenharmony_ci   * datePickerDialog display.
278061847f8eSopenharmony_ci   *
278161847f8eSopenharmony_ci   * @param { DatePickerDialogOptions } options - Options.
278261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
278361847f8eSopenharmony_ci   * @crossplatform
278461847f8eSopenharmony_ci   * @atomicservice
278561847f8eSopenharmony_ci   * @since 11
278661847f8eSopenharmony_ci   */
278761847f8eSopenharmony_ci  showDatePickerDialog(options: DatePickerDialogOptions): void;
278861847f8eSopenharmony_ci
278961847f8eSopenharmony_ci  /**
279061847f8eSopenharmony_ci   * timePickerDialog display.
279161847f8eSopenharmony_ci   *
279261847f8eSopenharmony_ci   * @param { TimePickerDialogOptions } options - Options.
279361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
279461847f8eSopenharmony_ci   * @crossplatform
279561847f8eSopenharmony_ci   * @since 10
279661847f8eSopenharmony_ci   */
279761847f8eSopenharmony_ci  /**
279861847f8eSopenharmony_ci   * timePickerDialog display.
279961847f8eSopenharmony_ci   *
280061847f8eSopenharmony_ci   * @param { TimePickerDialogOptions } options - Options.
280161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
280261847f8eSopenharmony_ci   * @crossplatform
280361847f8eSopenharmony_ci   * @atomicservice
280461847f8eSopenharmony_ci   * @since 11
280561847f8eSopenharmony_ci   */
280661847f8eSopenharmony_ci  showTimePickerDialog(options: TimePickerDialogOptions): void;
280761847f8eSopenharmony_ci
280861847f8eSopenharmony_ci  /**
280961847f8eSopenharmony_ci   * textPickerDialog display.
281061847f8eSopenharmony_ci   *
281161847f8eSopenharmony_ci   * @param { TextPickerDialogOptions } options - Options.
281261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
281361847f8eSopenharmony_ci   * @crossplatform
281461847f8eSopenharmony_ci   * @since 10
281561847f8eSopenharmony_ci   */
281661847f8eSopenharmony_ci  /**
281761847f8eSopenharmony_ci   * textPickerDialog display.
281861847f8eSopenharmony_ci   *
281961847f8eSopenharmony_ci   * @param { TextPickerDialogOptions } options - Options.
282061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
282161847f8eSopenharmony_ci   * @crossplatform
282261847f8eSopenharmony_ci   * @atomicservice
282361847f8eSopenharmony_ci   * @since 11
282461847f8eSopenharmony_ci   */
282561847f8eSopenharmony_ci  showTextPickerDialog(options: TextPickerDialogOptions): void;
282661847f8eSopenharmony_ci
282761847f8eSopenharmony_ci  /**
282861847f8eSopenharmony_ci   * Run custom functions inside the UIContext scope.
282961847f8eSopenharmony_ci   *
283061847f8eSopenharmony_ci   * @param { function } callback - The function called through UIContext.
283161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
283261847f8eSopenharmony_ci   * @crossplatform
283361847f8eSopenharmony_ci   * @since 10
283461847f8eSopenharmony_ci   */
283561847f8eSopenharmony_ci  /**
283661847f8eSopenharmony_ci   * Run custom functions inside the UIContext scope.
283761847f8eSopenharmony_ci   *
283861847f8eSopenharmony_ci   * @param { function } callback - The function called through UIContext.
283961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
284061847f8eSopenharmony_ci   * @crossplatform
284161847f8eSopenharmony_ci   * @atomicservice
284261847f8eSopenharmony_ci   * @since 11
284361847f8eSopenharmony_ci   */
284461847f8eSopenharmony_ci  runScopedTask(callback: () => void): void;
284561847f8eSopenharmony_ci
284661847f8eSopenharmony_ci  /**
284761847f8eSopenharmony_ci   * Set KeyboardAvoidMode. The default mode is KeyboardAvoidMode.OFFSET
284861847f8eSopenharmony_ci   *
284961847f8eSopenharmony_ci   * @param { KeyboardAvoidMode } value - The mode of keyboard avoid.
285061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
285161847f8eSopenharmony_ci   * @crossplatform
285261847f8eSopenharmony_ci   * @atomicservice
285361847f8eSopenharmony_ci   * @since 11
285461847f8eSopenharmony_ci   */
285561847f8eSopenharmony_ci  setKeyboardAvoidMode(value: KeyboardAvoidMode): void;
285661847f8eSopenharmony_ci
285761847f8eSopenharmony_ci  /**
285861847f8eSopenharmony_ci   * Get KeyboardAvoidMode.
285961847f8eSopenharmony_ci   * @returns { KeyboardAvoidMode } The mode of keyboard avoid.
286061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
286161847f8eSopenharmony_ci   * @crossplatform
286261847f8eSopenharmony_ci   * @atomicservice
286361847f8eSopenharmony_ci   * @since 11
286461847f8eSopenharmony_ci   */
286561847f8eSopenharmony_ci  getKeyboardAvoidMode(): KeyboardAvoidMode;
286661847f8eSopenharmony_ci
286761847f8eSopenharmony_ci  /**
286861847f8eSopenharmony_ci   * Get AtomicServiceBar.
286961847f8eSopenharmony_ci   * @returns { Nullable<AtomicServiceBar> } The atomic service bar.
287061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
287161847f8eSopenharmony_ci   * @crossplatform
287261847f8eSopenharmony_ci   * @atomicservice
287361847f8eSopenharmony_ci   * @since 11
287461847f8eSopenharmony_ci   */
287561847f8eSopenharmony_ci  getAtomicServiceBar(): Nullable<AtomicServiceBar>;
287661847f8eSopenharmony_ci
287761847f8eSopenharmony_ci  /**
287861847f8eSopenharmony_ci   * Get DragController.
287961847f8eSopenharmony_ci   * @returns { DragController } the DragController
288061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
288161847f8eSopenharmony_ci   * @since 11
288261847f8eSopenharmony_ci   */
288361847f8eSopenharmony_ci  /**
288461847f8eSopenharmony_ci   * Get DragController.
288561847f8eSopenharmony_ci   * @returns { DragController } the DragController
288661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
288761847f8eSopenharmony_ci   * @atomicservice
288861847f8eSopenharmony_ci   * @since 12
288961847f8eSopenharmony_ci   */
289061847f8eSopenharmony_ci  getDragController(): DragController;
289161847f8eSopenharmony_ci
289261847f8eSopenharmony_ci  /**
289361847f8eSopenharmony_ci    * Get MeasureUtils.
289461847f8eSopenharmony_ci    * @returns { MeasureUtils } the MeasureUtils
289561847f8eSopenharmony_ci    * @syscap SystemCapability.ArkUI.ArkUI.Full
289661847f8eSopenharmony_ci    * @crossplatform
289761847f8eSopenharmony_ci    * @atomicservice
289861847f8eSopenharmony_ci    * @since 12
289961847f8eSopenharmony_ci    */
290061847f8eSopenharmony_ci  getMeasureUtils(): MeasureUtils;
290161847f8eSopenharmony_ci
290261847f8eSopenharmony_ci  /**
290361847f8eSopenharmony_ci   * Defining keyframe animation function.
290461847f8eSopenharmony_ci   *
290561847f8eSopenharmony_ci   * @param { KeyframeAnimateParam } param - overall animation parameters
290661847f8eSopenharmony_ci   * @param { Array<KeyframeState> } keyframes - all keyframe states
290761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
290861847f8eSopenharmony_ci   * @crossplatform
290961847f8eSopenharmony_ci   * @since 11
291061847f8eSopenharmony_ci   */
291161847f8eSopenharmony_ci  /**
291261847f8eSopenharmony_ci   * Defining keyframe animation function.
291361847f8eSopenharmony_ci   *
291461847f8eSopenharmony_ci   * @param { KeyframeAnimateParam } param - overall animation parameters
291561847f8eSopenharmony_ci   * @param { Array<KeyframeState> } keyframes - all keyframe states
291661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
291761847f8eSopenharmony_ci   * @crossplatform
291861847f8eSopenharmony_ci   * @atomicservice
291961847f8eSopenharmony_ci   * @since 12
292061847f8eSopenharmony_ci   */
292161847f8eSopenharmony_ci  keyframeAnimateTo(param: KeyframeAnimateParam, keyframes: Array<KeyframeState>): void;
292261847f8eSopenharmony_ci
292361847f8eSopenharmony_ci  /**
292461847f8eSopenharmony_ci   * Define animation functions for immediate distribution.
292561847f8eSopenharmony_ci   *
292661847f8eSopenharmony_ci   * @param { AnimateParam } param - Set animation effect parameters.
292761847f8eSopenharmony_ci   * @param { Callback<void> } event - Specify the closure function that displays dynamic effects,
292861847f8eSopenharmony_ci   * and the system will automatically insert transition animations for state changes caused by the closure function.
292961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
293061847f8eSopenharmony_ci   * @systemapi
293161847f8eSopenharmony_ci   * @since 12
293261847f8eSopenharmony_ci   */
293361847f8eSopenharmony_ci  animateToImmediately(param: AnimateParam, event: Callback<void>): void;
293461847f8eSopenharmony_ci
293561847f8eSopenharmony_ci  /**
293661847f8eSopenharmony_ci   * Get FrameNode by id.
293761847f8eSopenharmony_ci   *
293861847f8eSopenharmony_ci   * @param { string } id - The id of FrameNode.
293961847f8eSopenharmony_ci   * @returns { FrameNode | null } The instance of FrameNode.
294061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
294161847f8eSopenharmony_ci   * @crossplatform
294261847f8eSopenharmony_ci   * @atomicservice
294361847f8eSopenharmony_ci   * @since 12
294461847f8eSopenharmony_ci   */
294561847f8eSopenharmony_ci  getFrameNodeById(id: string): FrameNode | null;
294661847f8eSopenharmony_ci
294761847f8eSopenharmony_ci  /**
294861847f8eSopenharmony_ci   * Get the FrameNode attached to current window by id.
294961847f8eSopenharmony_ci   *
295061847f8eSopenharmony_ci   * @param { string } id - The id of FrameNode.
295161847f8eSopenharmony_ci   * @returns { FrameNode | null } The instance of FrameNode.
295261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
295361847f8eSopenharmony_ci   * @crossplatform
295461847f8eSopenharmony_ci   * @atomicservice
295561847f8eSopenharmony_ci   * @since 12
295661847f8eSopenharmony_ci   */
295761847f8eSopenharmony_ci  getAttachedFrameNodeById(id: string): FrameNode | null;
295861847f8eSopenharmony_ci
295961847f8eSopenharmony_ci  /**
296061847f8eSopenharmony_ci   * Get FrameNode by uniqueId.
296161847f8eSopenharmony_ci   *
296261847f8eSopenharmony_ci   * @param { number } id - The uniqueId of the FrameNode.
296361847f8eSopenharmony_ci   * @returns { FrameNode | null } - The FrameNode with the target uniqueId, or null if the frameNode is not existed.
296461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
296561847f8eSopenharmony_ci   * @crossplatform
296661847f8eSopenharmony_ci   * @atomicservice
296761847f8eSopenharmony_ci   * @since 12
296861847f8eSopenharmony_ci   */
296961847f8eSopenharmony_ci  getFrameNodeByUniqueId(id: number): FrameNode | null;
297061847f8eSopenharmony_ci
297161847f8eSopenharmony_ci  /**
297261847f8eSopenharmony_ci   * Get page information of the frameNode with uniqueId.
297361847f8eSopenharmony_ci   *
297461847f8eSopenharmony_ci   * @param { number } id - The uniqueId of the target FrameNode.
297561847f8eSopenharmony_ci   * @returns { PageInfo } - The page information of the frameNode with the target uniqueId, includes
297661847f8eSopenharmony_ci   * navDestination and router page information. If the frame node does not have navDestination and
297761847f8eSopenharmony_ci   * router page information, it will return an empty object.
297861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full 
297961847f8eSopenharmony_ci   * @crossplatform
298061847f8eSopenharmony_ci   * @atomicservice
298161847f8eSopenharmony_ci   * @since 12
298261847f8eSopenharmony_ci   */
298361847f8eSopenharmony_ci  getPageInfoByUniqueId(id: number): PageInfo;
298461847f8eSopenharmony_ci
298561847f8eSopenharmony_ci  /**
298661847f8eSopenharmony_ci   * Get navigation information of the frameNode with uniqueId.
298761847f8eSopenharmony_ci   *
298861847f8eSopenharmony_ci   * @param { number } id - The uniqueId of the target FrameNode.
298961847f8eSopenharmony_ci   * @returns { observer.NavigationInfo | undefined } - The navigation information of the frameNode with the
299061847f8eSopenharmony_ci   * target uniqueId, or undefined if the frameNode is not existed or does not have navigation information.
299161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full 
299261847f8eSopenharmony_ci   * @crossplatform
299361847f8eSopenharmony_ci   * @atomicservice
299461847f8eSopenharmony_ci   * @since 12
299561847f8eSopenharmony_ci   */
299661847f8eSopenharmony_ci  getNavigationInfoByUniqueId(id: number): observer.NavigationInfo | undefined;
299761847f8eSopenharmony_ci
299861847f8eSopenharmony_ci  /**
299961847f8eSopenharmony_ci   * Get FocusController.
300061847f8eSopenharmony_ci   * @returns { FocusController } the FocusController
300161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
300261847f8eSopenharmony_ci   * @atomicservice
300361847f8eSopenharmony_ci   * @since 12
300461847f8eSopenharmony_ci   */
300561847f8eSopenharmony_ci  getFocusController(): FocusController;
300661847f8eSopenharmony_ci
300761847f8eSopenharmony_ci  /**
300861847f8eSopenharmony_ci   * Get object cursor controller.
300961847f8eSopenharmony_ci   *
301061847f8eSopenharmony_ci   * @returns { CursorController } object cursor controller.
301161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
301261847f8eSopenharmony_ci   * @crossplatform
301361847f8eSopenharmony_ci   * @atomicservice
301461847f8eSopenharmony_ci   * @since 12
301561847f8eSopenharmony_ci   */
301661847f8eSopenharmony_ci  getCursorController(): CursorController;
301761847f8eSopenharmony_ci
301861847f8eSopenharmony_ci  /**
301961847f8eSopenharmony_ci   * Get object context menu controller.
302061847f8eSopenharmony_ci   *
302161847f8eSopenharmony_ci   * @returns { ContextMenuController } object context menu controller.
302261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
302361847f8eSopenharmony_ci   * @crossplatform
302461847f8eSopenharmony_ci   * @atomicservice
302561847f8eSopenharmony_ci   * @since 12
302661847f8eSopenharmony_ci   */
302761847f8eSopenharmony_ci  getContextMenuController(): ContextMenuController;
302861847f8eSopenharmony_ci
302961847f8eSopenharmony_ci  /**
303061847f8eSopenharmony_ci   * Get ComponentSnapshot.
303161847f8eSopenharmony_ci   * @returns { ComponentSnapshot } the ComponentSnapshot
303261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
303361847f8eSopenharmony_ci   * @atomicservice
303461847f8eSopenharmony_ci   * @since 12
303561847f8eSopenharmony_ci   */
303661847f8eSopenharmony_ci  getComponentSnapshot(): ComponentSnapshot;
303761847f8eSopenharmony_ci
303861847f8eSopenharmony_ci  /**
303961847f8eSopenharmony_ci   * Converts a value in vp units to a value in px.
304061847f8eSopenharmony_ci   * @param { number } value
304161847f8eSopenharmony_ci   * @returns { number }
304261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
304361847f8eSopenharmony_ci   * @atomicservice
304461847f8eSopenharmony_ci   * @since 12
304561847f8eSopenharmony_ci   */
304661847f8eSopenharmony_ci  vp2px(value: number): number;
304761847f8eSopenharmony_ci
304861847f8eSopenharmony_ci  /**
304961847f8eSopenharmony_ci   * Converts a value in px units to a value in vp.
305061847f8eSopenharmony_ci   * @param { number } value
305161847f8eSopenharmony_ci   * @returns { number }
305261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
305361847f8eSopenharmony_ci   * @atomicservice
305461847f8eSopenharmony_ci   * @since 12
305561847f8eSopenharmony_ci   */
305661847f8eSopenharmony_ci  px2vp(value: number): number;
305761847f8eSopenharmony_ci
305861847f8eSopenharmony_ci  /**
305961847f8eSopenharmony_ci   * Converts a value in fp units to a value in px.
306061847f8eSopenharmony_ci   * @param { number } value
306161847f8eSopenharmony_ci   * @returns { number }
306261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
306361847f8eSopenharmony_ci   * @atomicservice
306461847f8eSopenharmony_ci   * @since 12
306561847f8eSopenharmony_ci   */
306661847f8eSopenharmony_ci  fp2px(value: number): number;
306761847f8eSopenharmony_ci
306861847f8eSopenharmony_ci  /**
306961847f8eSopenharmony_ci   * Converts a value in px units to a value in fp.
307061847f8eSopenharmony_ci   * @param { number } value
307161847f8eSopenharmony_ci   * @returns { number }
307261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
307361847f8eSopenharmony_ci   * @atomicservice
307461847f8eSopenharmony_ci   * @since 12
307561847f8eSopenharmony_ci   */
307661847f8eSopenharmony_ci  px2fp(value: number): number;
307761847f8eSopenharmony_ci
307861847f8eSopenharmony_ci  /**
307961847f8eSopenharmony_ci   * Converts a value in lpx units to a value in px.
308061847f8eSopenharmony_ci   * @param { number } value
308161847f8eSopenharmony_ci   * @returns { number }
308261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
308361847f8eSopenharmony_ci   * @atomicservice
308461847f8eSopenharmony_ci   * @since 12
308561847f8eSopenharmony_ci   */
308661847f8eSopenharmony_ci  lpx2px(value: number): number;
308761847f8eSopenharmony_ci
308861847f8eSopenharmony_ci  /**
308961847f8eSopenharmony_ci   * Converts a value in px units to a value in lpx.
309061847f8eSopenharmony_ci   * @param { number } value
309161847f8eSopenharmony_ci   * @returns { number }
309261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
309361847f8eSopenharmony_ci   * @atomicservice
309461847f8eSopenharmony_ci   * @since 12
309561847f8eSopenharmony_ci   */
309661847f8eSopenharmony_ci  px2lpx(value: number): number;
309761847f8eSopenharmony_ci
309861847f8eSopenharmony_ci  /**
309961847f8eSopenharmony_ci   * Get current LocalStorage shared from stage.
310061847f8eSopenharmony_ci   *
310161847f8eSopenharmony_ci   * @returns { LocalStorage | undefined }
310261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
310361847f8eSopenharmony_ci   * @stagemodelonly
310461847f8eSopenharmony_ci   * @crossplatform
310561847f8eSopenharmony_ci   * @atomicservice
310661847f8eSopenharmony_ci   * @since 12
310761847f8eSopenharmony_ci   */
310861847f8eSopenharmony_ci  getSharedLocalStorage(): LocalStorage | undefined;
310961847f8eSopenharmony_ci
311061847f8eSopenharmony_ci  /**
311161847f8eSopenharmony_ci   * Obtains context of the ability.
311261847f8eSopenharmony_ci   *
311361847f8eSopenharmony_ci   * @returns { Context | undefined }
311461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
311561847f8eSopenharmony_ci   * @stagemodelonly
311661847f8eSopenharmony_ci   * @crossplatform
311761847f8eSopenharmony_ci   * @atomicservice
311861847f8eSopenharmony_ci   * @since 12
311961847f8eSopenharmony_ci   */
312061847f8eSopenharmony_ci  getHostContext(): Context | undefined;
312161847f8eSopenharmony_ci
312261847f8eSopenharmony_ci  /**
312361847f8eSopenharmony_ci   * Dynamic dimming.
312461847f8eSopenharmony_ci   *
312561847f8eSopenharmony_ci   * @param { string } id - The id of FrameNode.
312661847f8eSopenharmony_ci   * @param { number } value - Compared to the original level of dimming.value range [0,1],
312761847f8eSopenharmony_ci   * set values less than 0 to 0 and values greater than 1 to 1.
312861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
312961847f8eSopenharmony_ci   * @systemapi
313061847f8eSopenharmony_ci   * @since 12
313161847f8eSopenharmony_ci   */
313261847f8eSopenharmony_ci  setDynamicDimming(id: string, value: number): void;
313361847f8eSopenharmony_ci
313461847f8eSopenharmony_ci  /**
313561847f8eSopenharmony_ci   * Get the name of current window.
313661847f8eSopenharmony_ci   *
313761847f8eSopenharmony_ci   * @returns { string | undefined } The name of current window, or undefined if the window doesn't exist.
313861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
313961847f8eSopenharmony_ci   * @crossplatform
314061847f8eSopenharmony_ci   * @atomicservice
314161847f8eSopenharmony_ci   * @since 12
314261847f8eSopenharmony_ci   */
314361847f8eSopenharmony_ci  getWindowName(): string | undefined;
314461847f8eSopenharmony_ci  
314561847f8eSopenharmony_ci  /**
314661847f8eSopenharmony_ci   * Get the width breakpoint of current window.
314761847f8eSopenharmony_ci   *
314861847f8eSopenharmony_ci   * @returns { WidthBreakpoint } The width breakpoint of current window.
314961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
315061847f8eSopenharmony_ci   * @atomicservice
315161847f8eSopenharmony_ci   * @since 13
315261847f8eSopenharmony_ci   */
315361847f8eSopenharmony_ci  getWindowWidthBreakpoint(): WidthBreakpoint;
315461847f8eSopenharmony_ci  
315561847f8eSopenharmony_ci  /**
315661847f8eSopenharmony_ci   * Get the height breakpoint of current window.
315761847f8eSopenharmony_ci   *
315861847f8eSopenharmony_ci   * @returns { HeightBreakpoint } The height breakpoint of current window.
315961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
316061847f8eSopenharmony_ci   * @atomicservice 
316161847f8eSopenharmony_ci   * @since 13
316261847f8eSopenharmony_ci   */
316361847f8eSopenharmony_ci  getWindowHeightBreakpoint(): HeightBreakpoint;
316461847f8eSopenharmony_ci
316561847f8eSopenharmony_ci  /**
316661847f8eSopenharmony_ci   * Open the BindSheet.
316761847f8eSopenharmony_ci   *
316861847f8eSopenharmony_ci   * @param { ComponentContent<T> } bindSheetContent - The content of BindSheet.
316961847f8eSopenharmony_ci   * @param { SheetOptions } sheetOptions - The options of sheet.
317061847f8eSopenharmony_ci   * @param { number } targetId - The uniqueId of the FrameNode to which BindSheet is attached.
317161847f8eSopenharmony_ci   * @returns { Promise<void> } The promise returned by the function.
317261847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes:
317361847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
317461847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
317561847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
317661847f8eSopenharmony_ci   * @throws { BusinessError } 120001 - The bindSheetContent is incorrect.
317761847f8eSopenharmony_ci   * @throws { BusinessError } 120002 - The bindSheetContent already exists.
317861847f8eSopenharmony_ci   * @throws { BusinessError } 120004 - The targetId does not exist.
317961847f8eSopenharmony_ci   * @throws { BusinessError } 120005 - The node of targetId is not in the component tree.
318061847f8eSopenharmony_ci   * @throws { BusinessError } 120006 - The node of targetId is not a child of the page node or NavDestination node.
318161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
318261847f8eSopenharmony_ci   * @crossplatform
318361847f8eSopenharmony_ci   * @atomicservice
318461847f8eSopenharmony_ci   * @since 12
318561847f8eSopenharmony_ci   */
318661847f8eSopenharmony_ci  openBindSheet<T extends Object>(bindSheetContent: ComponentContent<T>, sheetOptions?: SheetOptions, targetId?: number): Promise<void>;
318761847f8eSopenharmony_ci
318861847f8eSopenharmony_ci  /**
318961847f8eSopenharmony_ci   * Update the BindSheet with sheetOptions.
319061847f8eSopenharmony_ci   *
319161847f8eSopenharmony_ci   * @param { ComponentContent<T> } bindSheetContent - The content of BindSheet.
319261847f8eSopenharmony_ci   * @param { SheetOptions } sheetOptions - The update options of sheet.
319361847f8eSopenharmony_ci   * @param { boolean } partialUpdate - If true, only the specified properties in the sheetOptions are updated,
319461847f8eSopenharmony_ci   *                                    otherwise the rest of the properties are overwritten with the default values.
319561847f8eSopenharmony_ci   *                                    Default value is false.
319661847f8eSopenharmony_ci   * @returns { Promise<void> } The promise returned by the function.
319761847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes:
319861847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
319961847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
320061847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
320161847f8eSopenharmony_ci   * @throws { BusinessError } 120001 - The bindSheetContent is incorrect.
320261847f8eSopenharmony_ci   * @throws { BusinessError } 120003 - The bindSheetContent cannot be found.
320361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
320461847f8eSopenharmony_ci   * @crossplatform
320561847f8eSopenharmony_ci   * @atomicservice
320661847f8eSopenharmony_ci   * @since 12
320761847f8eSopenharmony_ci   */
320861847f8eSopenharmony_ci  updateBindSheet<T extends Object>(bindSheetContent: ComponentContent<T>, sheetOptions: SheetOptions, partialUpdate?: boolean): Promise<void>;
320961847f8eSopenharmony_ci
321061847f8eSopenharmony_ci  /**
321161847f8eSopenharmony_ci   * Close the BindSheet.
321261847f8eSopenharmony_ci   *
321361847f8eSopenharmony_ci   * @param { ComponentContent<T> } bindSheetContent - The content of BindSheet.
321461847f8eSopenharmony_ci   * @returns { Promise<void> } The promise returned by the function.
321561847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes:
321661847f8eSopenharmony_ci   * <br> 1. Mandatory parameters are left unspecified.
321761847f8eSopenharmony_ci   * <br> 2. Incorrect parameters types.
321861847f8eSopenharmony_ci   * <br> 3. Parameter verification failed.
321961847f8eSopenharmony_ci   * @throws { BusinessError } 120001 - The bindSheetContent is incorrect.
322061847f8eSopenharmony_ci   * @throws { BusinessError } 120003 - The bindSheetContent cannot be found.
322161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
322261847f8eSopenharmony_ci   * @crossplatform
322361847f8eSopenharmony_ci   * @atomicservice
322461847f8eSopenharmony_ci   * @since 12
322561847f8eSopenharmony_ci   */
322661847f8eSopenharmony_ci  closeBindSheet<T extends Object>(bindSheetContent: ComponentContent<T>): Promise<void>;
322761847f8eSopenharmony_ci
322861847f8eSopenharmony_ci  /**
322961847f8eSopenharmony_ci   * Post a frame callback to run on the next frame.
323061847f8eSopenharmony_ci   *
323161847f8eSopenharmony_ci   * @param { FrameCallback } frameCallback - The frame callback to run on the next frame.
323261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
323361847f8eSopenharmony_ci   * @atomicservice
323461847f8eSopenharmony_ci   * @since 12
323561847f8eSopenharmony_ci   */
323661847f8eSopenharmony_ci  postFrameCallback(frameCallback: FrameCallback): void;
323761847f8eSopenharmony_ci
323861847f8eSopenharmony_ci  /**
323961847f8eSopenharmony_ci   * Post a frame callback to run on the next frame after the specified delay.
324061847f8eSopenharmony_ci   *
324161847f8eSopenharmony_ci   * @param { FrameCallback } frameCallback - The frame callback to run on the next frame.
324261847f8eSopenharmony_ci   * @param { number } delayTime - The delay time in milliseconds,
324361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
324461847f8eSopenharmony_ci   * @atomicservice
324561847f8eSopenharmony_ci   * @since 12
324661847f8eSopenharmony_ci   */
324761847f8eSopenharmony_ci  postDelayedFrameCallback(frameCallback: FrameCallback, delayTime: number): void;
324861847f8eSopenharmony_ci
324961847f8eSopenharmony_ci  /**
325061847f8eSopenharmony_ci   * Require DynamicSyncScene by id.
325161847f8eSopenharmony_ci   *
325261847f8eSopenharmony_ci   * @param { string } id - The id of DynamicSyncScene.
325361847f8eSopenharmony_ci   * @returns { Array<DynamicSyncScene>} The instance of SwiperDynamicSyncScene.
325461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
325561847f8eSopenharmony_ci   * @atomicservice
325661847f8eSopenharmony_ci   * @since 12
325761847f8eSopenharmony_ci   */
325861847f8eSopenharmony_ci  requireDynamicSyncScene(id: string): Array<DynamicSyncScene>;
325961847f8eSopenharmony_ci
326061847f8eSopenharmony_ci  /**
326161847f8eSopenharmony_ci   * Clear the cache generated by using $r/$rawfile to retrieve resources. This cache is used to accelerate the process
326261847f8eSopenharmony_ci   * of repeatedly loading resources. Clearing this cache may slow down the loading speed of resources during page overload.
326361847f8eSopenharmony_ci   *
326461847f8eSopenharmony_ci   * @throws { BusinessError } 202 - The caller is not a system application.
326561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
326661847f8eSopenharmony_ci   * @systemapi
326761847f8eSopenharmony_ci   * @atomicservice
326861847f8eSopenharmony_ci   * @since 12
326961847f8eSopenharmony_ci   */
327061847f8eSopenharmony_ci  /**
327161847f8eSopenharmony_ci   * Clear the cache generated by using $r/$rawfile to retrieve resources. This cache is used to accelerate the process
327261847f8eSopenharmony_ci   * of repeatedly loading resources. Clearing this cache may slow down the loading speed of resources during page overload.
327361847f8eSopenharmony_ci   *
327461847f8eSopenharmony_ci   * @throws { BusinessError } 202 - The caller is not a system application.
327561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
327661847f8eSopenharmony_ci   * @systemapi
327761847f8eSopenharmony_ci   * @since 13
327861847f8eSopenharmony_ci   */
327961847f8eSopenharmony_ci  clearResourceCache(): void;
328061847f8eSopenharmony_ci
328161847f8eSopenharmony_ci  /**
328261847f8eSopenharmony_ci   * Checks whether current font scale follows the system.
328361847f8eSopenharmony_ci   *
328461847f8eSopenharmony_ci   * @returns { boolean } Returns true if current font scale follows the system; returns false otherwise.
328561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
328661847f8eSopenharmony_ci   * @crossplatform
328761847f8eSopenharmony_ci   * @atomicservice
328861847f8eSopenharmony_ci   * @since 13
328961847f8eSopenharmony_ci   */
329061847f8eSopenharmony_ci  isFollowingSystemFontScale(): boolean;
329161847f8eSopenharmony_ci
329261847f8eSopenharmony_ci  /**
329361847f8eSopenharmony_ci   * Get the max font scale.
329461847f8eSopenharmony_ci   *
329561847f8eSopenharmony_ci   * @returns { number } The max font scale.
329661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
329761847f8eSopenharmony_ci   * @crossplatform
329861847f8eSopenharmony_ci   * @atomicservice
329961847f8eSopenharmony_ci   * @since 13
330061847f8eSopenharmony_ci   */
330161847f8eSopenharmony_ci  getMaxFontScale(): number;
330261847f8eSopenharmony_ci
330361847f8eSopenharmony_ci  /**
330461847f8eSopenharmony_ci   * Bind tabs to scrollable container component to automatically hide tab bar.
330561847f8eSopenharmony_ci   *
330661847f8eSopenharmony_ci   * @param { TabsController } tabsController - The controller of the tabs.
330761847f8eSopenharmony_ci   * @param { Scroller } scroller - The controller of the scrollable container component.
330861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
330961847f8eSopenharmony_ci   * @crossplatform
331061847f8eSopenharmony_ci   * @atomicservice
331161847f8eSopenharmony_ci   * @since 14
331261847f8eSopenharmony_ci   */
331361847f8eSopenharmony_ci  bindTabsToScrollable(tabsController: TabsController, scroller: Scroller): void;
331461847f8eSopenharmony_ci
331561847f8eSopenharmony_ci  /**
331661847f8eSopenharmony_ci   * Unbind tabs from scrollable container component.
331761847f8eSopenharmony_ci   *
331861847f8eSopenharmony_ci   * @param { TabsController } tabsController - The controller of the tabs.
331961847f8eSopenharmony_ci   * @param { Scroller } scroller - The controller of the scrollable container component.
332061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
332161847f8eSopenharmony_ci   * @crossplatform
332261847f8eSopenharmony_ci   * @atomicservice
332361847f8eSopenharmony_ci   * @since 14
332461847f8eSopenharmony_ci   */
332561847f8eSopenharmony_ci  unbindTabsFromScrollable(tabsController: TabsController, scroller: Scroller): void;
332661847f8eSopenharmony_ci
332761847f8eSopenharmony_ci  /**
332861847f8eSopenharmony_ci   * Bind tabs to nested scrollable container components to automatically hide tab bar.
332961847f8eSopenharmony_ci   *
333061847f8eSopenharmony_ci   * @param { TabsController } tabsController - The controller of the tabs.
333161847f8eSopenharmony_ci   * @param { Scroller } parentScroller - The controller of the parent scrollable container component.
333261847f8eSopenharmony_ci   * @param { Scroller } childScroller - The controller of the child scrollable container component.
333361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
333461847f8eSopenharmony_ci   * @crossplatform
333561847f8eSopenharmony_ci   * @atomicservice
333661847f8eSopenharmony_ci   * @since 14
333761847f8eSopenharmony_ci   */
333861847f8eSopenharmony_ci  bindTabsToNestedScrollable(tabsController: TabsController, parentScroller: Scroller, childScroller: Scroller): void;
333961847f8eSopenharmony_ci
334061847f8eSopenharmony_ci  /**
334161847f8eSopenharmony_ci   * Unbind tabs from nested scrollable container components.
334261847f8eSopenharmony_ci   *
334361847f8eSopenharmony_ci   * @param { TabsController } tabsController - The controller of the tabs.
334461847f8eSopenharmony_ci   * @param { Scroller } parentScroller - The controller of the parent scrollable container component.
334561847f8eSopenharmony_ci   * @param { Scroller } childScroller - The controller of the child scrollable container component.
334661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
334761847f8eSopenharmony_ci   * @crossplatform
334861847f8eSopenharmony_ci   * @atomicservice
334961847f8eSopenharmony_ci   * @since 14
335061847f8eSopenharmony_ci   */
335161847f8eSopenharmony_ci  unbindTabsFromNestedScrollable(tabsController: TabsController, parentScroller: Scroller, childScroller: Scroller): void;
335261847f8eSopenharmony_ci}
335361847f8eSopenharmony_ci
335461847f8eSopenharmony_ci/**
335561847f8eSopenharmony_ci * Enum of KeyBoardAvoidMethodType
335661847f8eSopenharmony_ci * 
335761847f8eSopenharmony_ci * @enum { number } KeyBoardAvoidMethodType
335861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
335961847f8eSopenharmony_ci * @crossplatform
336061847f8eSopenharmony_ci * @atomicservice
336161847f8eSopenharmony_ci * @since 11
336261847f8eSopenharmony_ci */
336361847f8eSopenharmony_ci
336461847f8eSopenharmony_ciexport const enum KeyboardAvoidMode {
336561847f8eSopenharmony_ci  /**
336661847f8eSopenharmony_ci  * Default Type, offset the whole page when keyBoard height changed.
336761847f8eSopenharmony_ci  * @syscap SystemCapability.ArkUI.ArkUI.Full
336861847f8eSopenharmony_ci  * @crossplatform
336961847f8eSopenharmony_ci  * @atomicservice
337061847f8eSopenharmony_ci  * @since 11
337161847f8eSopenharmony_ci  */
337261847f8eSopenharmony_ci  OFFSET = 0,
337361847f8eSopenharmony_ci
337461847f8eSopenharmony_ci  /**
337561847f8eSopenharmony_ci   * Resize Type, resize the page when keyBoard height changed.
337661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
337761847f8eSopenharmony_ci   * @crossplatform
337861847f8eSopenharmony_ci   * @atomicservice
337961847f8eSopenharmony_ci   * @since 11
338061847f8eSopenharmony_ci   */
338161847f8eSopenharmony_ci  RESIZE = 1,
338261847f8eSopenharmony_ci
338361847f8eSopenharmony_ci  /**
338461847f8eSopenharmony_ci  * Offset Type, offset the whole page when caret position or keyboard height changed.
338561847f8eSopenharmony_ci  * @syscap SystemCapability.ArkUI.ArkUI.Full
338661847f8eSopenharmony_ci  * @crossplatform
338761847f8eSopenharmony_ci  * @atomicservice
338861847f8eSopenharmony_ci  * @since 14
338961847f8eSopenharmony_ci  */
339061847f8eSopenharmony_ci  OFFSET_WITH_CARET = 2,
339161847f8eSopenharmony_ci
339261847f8eSopenharmony_ci  /**
339361847f8eSopenharmony_ci  * Resize Type, resize the whole page when when caret position or keyboard height changed.
339461847f8eSopenharmony_ci  * @syscap SystemCapability.ArkUI.ArkUI.Full
339561847f8eSopenharmony_ci  * @crossplatform
339661847f8eSopenharmony_ci  * @atomicservice
339761847f8eSopenharmony_ci  * @since 14
339861847f8eSopenharmony_ci  */
339961847f8eSopenharmony_ci  RESIZE_WITH_CARET = 3,
340061847f8eSopenharmony_ci}
340161847f8eSopenharmony_ci
340261847f8eSopenharmony_ci/**
340361847f8eSopenharmony_ci * Enum of SwiperDynamicSyncSceneType
340461847f8eSopenharmony_ci * 
340561847f8eSopenharmony_ci * @enum { number } SwiperDynamicSyncSceneType
340661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
340761847f8eSopenharmony_ci * @atomicservice
340861847f8eSopenharmony_ci * @since 12
340961847f8eSopenharmony_ci */
341061847f8eSopenharmony_ciexport const enum SwiperDynamicSyncSceneType {
341161847f8eSopenharmony_ci  /**
341261847f8eSopenharmony_ci   * Scene type is GESTURE.
341361847f8eSopenharmony_ci   * 
341461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
341561847f8eSopenharmony_ci   * @atomicservice
341661847f8eSopenharmony_ci   * @since 12
341761847f8eSopenharmony_ci   */
341861847f8eSopenharmony_ci  GESTURE = 0,
341961847f8eSopenharmony_ci
342061847f8eSopenharmony_ci  /**
342161847f8eSopenharmony_ci   * Scene type is ANIMATION.
342261847f8eSopenharmony_ci   * 
342361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
342461847f8eSopenharmony_ci   * @atomicservice
342561847f8eSopenharmony_ci   * @since 12
342661847f8eSopenharmony_ci   */
342761847f8eSopenharmony_ci  ANIMATION = 1
342861847f8eSopenharmony_ci}
342961847f8eSopenharmony_ci
343061847f8eSopenharmony_ci/**
343161847f8eSopenharmony_ci * Enum of scene type for Marquee
343261847f8eSopenharmony_ci * 
343361847f8eSopenharmony_ci * @enum { number } MarqueeDynamicSyncSceneType
343461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
343561847f8eSopenharmony_ci * @atomicservice
343661847f8eSopenharmony_ci * @since 13
343761847f8eSopenharmony_ci */
343861847f8eSopenharmony_ciexport const enum MarqueeDynamicSyncSceneType {
343961847f8eSopenharmony_ci  /**
344061847f8eSopenharmony_ci   * Scene type is ANIMATION.
344161847f8eSopenharmony_ci   * 
344261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
344361847f8eSopenharmony_ci   * @atomicservice
344461847f8eSopenharmony_ci   * @since 13
344561847f8eSopenharmony_ci   */
344661847f8eSopenharmony_ci  ANIMATION = 1
344761847f8eSopenharmony_ci}
3448