xref: /interface/sdk-js/api/@internal/ets/global.d.ts (revision 61847f8e)
161847f8eSopenharmony_ci/*
261847f8eSopenharmony_ci * Copyright (c) 2021-2023 Huawei Device Co., Ltd.
361847f8eSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
461847f8eSopenharmony_ci * you may not use this file except in compliance with the License.
561847f8eSopenharmony_ci * You may obtain a copy of the License at
661847f8eSopenharmony_ci *
761847f8eSopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
861847f8eSopenharmony_ci *
961847f8eSopenharmony_ci * Unless required by applicable law or agreed to in writing, software
1061847f8eSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
1161847f8eSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1261847f8eSopenharmony_ci * See the License for the specific language governing permissions and
1361847f8eSopenharmony_ci * limitations under the License.
1461847f8eSopenharmony_ci */
1561847f8eSopenharmony_ci
1661847f8eSopenharmony_ci/**
1761847f8eSopenharmony_ci * @file
1861847f8eSopenharmony_ci * @kit ArkUI
1961847f8eSopenharmony_ci */
2061847f8eSopenharmony_ci
2161847f8eSopenharmony_ci
2261847f8eSopenharmony_ci
2361847f8eSopenharmony_ci/**
2461847f8eSopenharmony_ci * Defines the console info.
2561847f8eSopenharmony_ci *
2661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
2761847f8eSopenharmony_ci * @since 7
2861847f8eSopenharmony_ci */
2961847f8eSopenharmony_ci/**
3061847f8eSopenharmony_ci * Defines the console info.
3161847f8eSopenharmony_ci *
3261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
3361847f8eSopenharmony_ci * @form
3461847f8eSopenharmony_ci * @since 9
3561847f8eSopenharmony_ci */
3661847f8eSopenharmony_ci/**
3761847f8eSopenharmony_ci * Defines the console info.
3861847f8eSopenharmony_ci *
3961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
4061847f8eSopenharmony_ci * @crossplatform
4161847f8eSopenharmony_ci * @form
4261847f8eSopenharmony_ci * @since 10
4361847f8eSopenharmony_ci */
4461847f8eSopenharmony_ci/**
4561847f8eSopenharmony_ci * Defines the console info.
4661847f8eSopenharmony_ci *
4761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
4861847f8eSopenharmony_ci * @crossplatform
4961847f8eSopenharmony_ci * @form
5061847f8eSopenharmony_ci * @atomicservice
5161847f8eSopenharmony_ci * @since 11
5261847f8eSopenharmony_ci */
5361847f8eSopenharmony_ciexport declare class console {
5461847f8eSopenharmony_ci  /**
5561847f8eSopenharmony_ci   * Prints "debug" logs.
5661847f8eSopenharmony_ci   *
5761847f8eSopenharmony_ci   * @param { string } message - Text to print.
5861847f8eSopenharmony_ci   * @param { any[] } arguments
5961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
6061847f8eSopenharmony_ci   * @since 7
6161847f8eSopenharmony_ci   */
6261847f8eSopenharmony_ci  /**
6361847f8eSopenharmony_ci   * Prints "debug" logs.
6461847f8eSopenharmony_ci   *
6561847f8eSopenharmony_ci   * @param { string } message - Text to print.
6661847f8eSopenharmony_ci   * @param { any[] } arguments
6761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
6861847f8eSopenharmony_ci   * @form
6961847f8eSopenharmony_ci   * @since 9
7061847f8eSopenharmony_ci   */
7161847f8eSopenharmony_ci  /**
7261847f8eSopenharmony_ci   * Prints "debug" logs.
7361847f8eSopenharmony_ci   *
7461847f8eSopenharmony_ci   * @param { string } message - Text to print.
7561847f8eSopenharmony_ci   * @param { any[] } arguments
7661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
7761847f8eSopenharmony_ci   * @crossplatform
7861847f8eSopenharmony_ci   * @form
7961847f8eSopenharmony_ci   * @since 10
8061847f8eSopenharmony_ci   */
8161847f8eSopenharmony_ci  /**
8261847f8eSopenharmony_ci   * Prints "debug" logs.
8361847f8eSopenharmony_ci   *
8461847f8eSopenharmony_ci   * @param { string } message - Text to print.
8561847f8eSopenharmony_ci   * @param { any[] } arguments
8661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
8761847f8eSopenharmony_ci   * @crossplatform
8861847f8eSopenharmony_ci   * @form
8961847f8eSopenharmony_ci   * @atomicservice
9061847f8eSopenharmony_ci   * @since 11
9161847f8eSopenharmony_ci   */
9261847f8eSopenharmony_ci  static debug(message: string, ...arguments: any[]): void;
9361847f8eSopenharmony_ci
9461847f8eSopenharmony_ci  /**
9561847f8eSopenharmony_ci   * Prints "log" logs.
9661847f8eSopenharmony_ci   *
9761847f8eSopenharmony_ci   * @param { string } message - Text to print.
9861847f8eSopenharmony_ci   * @param { any[] } arguments
9961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
10061847f8eSopenharmony_ci   * @since 7
10161847f8eSopenharmony_ci   */
10261847f8eSopenharmony_ci  /**
10361847f8eSopenharmony_ci   * Prints "log" logs.
10461847f8eSopenharmony_ci   *
10561847f8eSopenharmony_ci   * @param { string } message - Text to print.
10661847f8eSopenharmony_ci   * @param { any[] } arguments
10761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
10861847f8eSopenharmony_ci   * @form
10961847f8eSopenharmony_ci   * @since 9
11061847f8eSopenharmony_ci   */
11161847f8eSopenharmony_ci  /**
11261847f8eSopenharmony_ci   * Prints "log" logs.
11361847f8eSopenharmony_ci   *
11461847f8eSopenharmony_ci   * @param { string } message - Text to print.
11561847f8eSopenharmony_ci   * @param { any[] } arguments
11661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
11761847f8eSopenharmony_ci   * @crossplatform
11861847f8eSopenharmony_ci   * @form
11961847f8eSopenharmony_ci   * @since 10
12061847f8eSopenharmony_ci   */
12161847f8eSopenharmony_ci  /**
12261847f8eSopenharmony_ci   * Prints "log" logs.
12361847f8eSopenharmony_ci   *
12461847f8eSopenharmony_ci   * @param { string } message - Text to print.
12561847f8eSopenharmony_ci   * @param { any[] } arguments
12661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
12761847f8eSopenharmony_ci   * @crossplatform
12861847f8eSopenharmony_ci   * @form
12961847f8eSopenharmony_ci   * @atomicservice
13061847f8eSopenharmony_ci   * @since 11
13161847f8eSopenharmony_ci   */
13261847f8eSopenharmony_ci  static log(message: string, ...arguments: any[]): void;
13361847f8eSopenharmony_ci
13461847f8eSopenharmony_ci  /**
13561847f8eSopenharmony_ci   * Prints "info" logs.
13661847f8eSopenharmony_ci   *
13761847f8eSopenharmony_ci   * @param { string } message - Text to print.
13861847f8eSopenharmony_ci   * @param { any[] } arguments
13961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
14061847f8eSopenharmony_ci   * @since 7
14161847f8eSopenharmony_ci   */
14261847f8eSopenharmony_ci  /**
14361847f8eSopenharmony_ci   * Prints "info" logs.
14461847f8eSopenharmony_ci   *
14561847f8eSopenharmony_ci   * @param { string } message - Text to print.
14661847f8eSopenharmony_ci   * @param { any[] } arguments
14761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
14861847f8eSopenharmony_ci   * @form
14961847f8eSopenharmony_ci   * @since 9
15061847f8eSopenharmony_ci   */
15161847f8eSopenharmony_ci  /**
15261847f8eSopenharmony_ci   * Prints "info" logs.
15361847f8eSopenharmony_ci   *
15461847f8eSopenharmony_ci   * @param { string } message - Text to print.
15561847f8eSopenharmony_ci   * @param { any[] } arguments
15661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
15761847f8eSopenharmony_ci   * @crossplatform
15861847f8eSopenharmony_ci   * @form
15961847f8eSopenharmony_ci   * @since 10
16061847f8eSopenharmony_ci   */
16161847f8eSopenharmony_ci  /**
16261847f8eSopenharmony_ci   * Prints "info" logs.
16361847f8eSopenharmony_ci   *
16461847f8eSopenharmony_ci   * @param { string } message - Text to print.
16561847f8eSopenharmony_ci   * @param { any[] } arguments
16661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
16761847f8eSopenharmony_ci   * @crossplatform
16861847f8eSopenharmony_ci   * @form
16961847f8eSopenharmony_ci   * @atomicservice
17061847f8eSopenharmony_ci   * @since 11
17161847f8eSopenharmony_ci   */
17261847f8eSopenharmony_ci  static info(message: string, ...arguments: any[]): void;
17361847f8eSopenharmony_ci
17461847f8eSopenharmony_ci  /**
17561847f8eSopenharmony_ci   * Prints "warn" logs.
17661847f8eSopenharmony_ci   *
17761847f8eSopenharmony_ci   * @param { string } message - Text to print.
17861847f8eSopenharmony_ci   * @param { any[] } arguments
17961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
18061847f8eSopenharmony_ci   * @since 7
18161847f8eSopenharmony_ci   */
18261847f8eSopenharmony_ci  /**
18361847f8eSopenharmony_ci   * Prints "warn" logs.
18461847f8eSopenharmony_ci   *
18561847f8eSopenharmony_ci   * @param { string } message - Text to print.
18661847f8eSopenharmony_ci   * @param { any[] } arguments
18761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
18861847f8eSopenharmony_ci   * @form
18961847f8eSopenharmony_ci   * @since 9
19061847f8eSopenharmony_ci   */
19161847f8eSopenharmony_ci  /**
19261847f8eSopenharmony_ci   * Prints "warn" logs.
19361847f8eSopenharmony_ci   *
19461847f8eSopenharmony_ci   * @param { string } message - Text to print.
19561847f8eSopenharmony_ci   * @param { any[] } arguments
19661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
19761847f8eSopenharmony_ci   * @crossplatform
19861847f8eSopenharmony_ci   * @form
19961847f8eSopenharmony_ci   * @since 10
20061847f8eSopenharmony_ci   */
20161847f8eSopenharmony_ci  /**
20261847f8eSopenharmony_ci   * Prints "warn" logs.
20361847f8eSopenharmony_ci   *
20461847f8eSopenharmony_ci   * @param { string } message - Text to print.
20561847f8eSopenharmony_ci   * @param { any[] } arguments
20661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
20761847f8eSopenharmony_ci   * @crossplatform
20861847f8eSopenharmony_ci   * @form
20961847f8eSopenharmony_ci   * @atomicservice
21061847f8eSopenharmony_ci   * @since 11
21161847f8eSopenharmony_ci   */
21261847f8eSopenharmony_ci  static warn(message: string, ...arguments: any[]): void;
21361847f8eSopenharmony_ci
21461847f8eSopenharmony_ci  /**
21561847f8eSopenharmony_ci   * Prints "error" logs.
21661847f8eSopenharmony_ci   *
21761847f8eSopenharmony_ci   * @param { string } message - Text to print.
21861847f8eSopenharmony_ci   * @param { any[] } arguments
21961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
22061847f8eSopenharmony_ci   * @since 7
22161847f8eSopenharmony_ci   */
22261847f8eSopenharmony_ci  /**
22361847f8eSopenharmony_ci   * Prints "error" logs.
22461847f8eSopenharmony_ci   *
22561847f8eSopenharmony_ci   * @param { string } message - Text to print.
22661847f8eSopenharmony_ci   * @param { any[] } arguments
22761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
22861847f8eSopenharmony_ci   * @form
22961847f8eSopenharmony_ci   * @since 9
23061847f8eSopenharmony_ci   */
23161847f8eSopenharmony_ci  /**
23261847f8eSopenharmony_ci   * Prints "error" logs.
23361847f8eSopenharmony_ci   *
23461847f8eSopenharmony_ci   * @param { string } message - Text to print.
23561847f8eSopenharmony_ci   * @param { any[] } arguments
23661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
23761847f8eSopenharmony_ci   * @crossplatform
23861847f8eSopenharmony_ci   * @form
23961847f8eSopenharmony_ci   * @since 10
24061847f8eSopenharmony_ci   */
24161847f8eSopenharmony_ci  /**
24261847f8eSopenharmony_ci   * Prints "error" logs.
24361847f8eSopenharmony_ci   *
24461847f8eSopenharmony_ci   * @param { string } message - Text to print.
24561847f8eSopenharmony_ci   * @param { any[] } arguments
24661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
24761847f8eSopenharmony_ci   * @crossplatform
24861847f8eSopenharmony_ci   * @form
24961847f8eSopenharmony_ci   * @atomicservice
25061847f8eSopenharmony_ci   * @since 11
25161847f8eSopenharmony_ci   */
25261847f8eSopenharmony_ci  static error(message: string, ...arguments: any[]): void;
25361847f8eSopenharmony_ci
25461847f8eSopenharmony_ci  /**
25561847f8eSopenharmony_ci   * Prints a message if value is false or omitted.
25661847f8eSopenharmony_ci   *
25761847f8eSopenharmony_ci   * @param { Object } [value] - The value tested for being truthy.
25861847f8eSopenharmony_ci   * @param { Object[] } arguments - Used as error message to print.
25961847f8eSopenharmony_ci   * @throws { BusinessError } 401 - The parameter check failed.
26061847f8eSopenharmony_ci   * @static
26161847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
26261847f8eSopenharmony_ci   * @crossplatform
26361847f8eSopenharmony_ci   * @since 10
26461847f8eSopenharmony_ci   */
26561847f8eSopenharmony_ci  /**
26661847f8eSopenharmony_ci   * Prints a message if value is false or omitted.
26761847f8eSopenharmony_ci   *
26861847f8eSopenharmony_ci   * @param { Object } [value] - The value tested for being truthy.
26961847f8eSopenharmony_ci   * @param { Object[] } arguments - Used as error message to print.
27061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - The parameter check failed.
27161847f8eSopenharmony_ci   * @static
27261847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
27361847f8eSopenharmony_ci   * @crossplatform
27461847f8eSopenharmony_ci   * @atomicservice
27561847f8eSopenharmony_ci   * @since 12
27661847f8eSopenharmony_ci   */
27761847f8eSopenharmony_ci  static assert(value?: Object, ...arguments: Object[]): void;
27861847f8eSopenharmony_ci
27961847f8eSopenharmony_ci  /**
28061847f8eSopenharmony_ci   * Maintains an internal counter specific to label and print the number of times
28161847f8eSopenharmony_ci   * console.count() has been called with the given label.
28261847f8eSopenharmony_ci   *
28361847f8eSopenharmony_ci   * @param { string } [label] - Counter name. Default: "default".
28461847f8eSopenharmony_ci   * @throws { BusinessError } 401 - The parameter check failed.
28561847f8eSopenharmony_ci   * @static
28661847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
28761847f8eSopenharmony_ci   * @crossplatform
28861847f8eSopenharmony_ci   * @since 10
28961847f8eSopenharmony_ci   */
29061847f8eSopenharmony_ci  /**
29161847f8eSopenharmony_ci   * Maintains an internal counter specific to label and print the number of times
29261847f8eSopenharmony_ci   * console.count() has been called with the given label.
29361847f8eSopenharmony_ci   *
29461847f8eSopenharmony_ci   * @param { string } [label] - Counter name. Default: "default".
29561847f8eSopenharmony_ci   * @throws { BusinessError } 401 - The parameter check failed.
29661847f8eSopenharmony_ci   * @static
29761847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
29861847f8eSopenharmony_ci   * @crossplatform
29961847f8eSopenharmony_ci   * @atomicservice
30061847f8eSopenharmony_ci   * @since 12
30161847f8eSopenharmony_ci   */
30261847f8eSopenharmony_ci  static count(label?: string): void;
30361847f8eSopenharmony_ci
30461847f8eSopenharmony_ci  /**
30561847f8eSopenharmony_ci   * Reset the internal counter specific to label.
30661847f8eSopenharmony_ci   *
30761847f8eSopenharmony_ci   * @param { string } [label] - Counter name. Default: "default".
30861847f8eSopenharmony_ci   * @throws { BusinessError } 401 - The parameter check failed.
30961847f8eSopenharmony_ci   * @static
31061847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
31161847f8eSopenharmony_ci   * @crossplatform
31261847f8eSopenharmony_ci   * @since 10
31361847f8eSopenharmony_ci   */
31461847f8eSopenharmony_ci  /**
31561847f8eSopenharmony_ci   * Reset the internal counter specific to label.
31661847f8eSopenharmony_ci   *
31761847f8eSopenharmony_ci   * @param { string } [label] - Counter name. Default: "default".
31861847f8eSopenharmony_ci   * @throws { BusinessError } 401 - The parameter check failed.
31961847f8eSopenharmony_ci   * @static
32061847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
32161847f8eSopenharmony_ci   * @crossplatform
32261847f8eSopenharmony_ci   * @atomicservice
32361847f8eSopenharmony_ci   * @since 12
32461847f8eSopenharmony_ci   */
32561847f8eSopenharmony_ci  static countReset(label?: string): void;
32661847f8eSopenharmony_ci
32761847f8eSopenharmony_ci  /**
32861847f8eSopenharmony_ci   * Prints properties of the specified JavaScript object.
32961847f8eSopenharmony_ci   *
33061847f8eSopenharmony_ci   * @param { Object } [dir] - A JavaScript object whose properties should be output.
33161847f8eSopenharmony_ci   * @static
33261847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
33361847f8eSopenharmony_ci   * @crossplatform
33461847f8eSopenharmony_ci   * @since 10
33561847f8eSopenharmony_ci   */
33661847f8eSopenharmony_ci  /**
33761847f8eSopenharmony_ci   * Prints properties of the specified JavaScript object.
33861847f8eSopenharmony_ci   *
33961847f8eSopenharmony_ci   * @param { Object } [dir] - A JavaScript object whose properties should be output.
34061847f8eSopenharmony_ci   * @static
34161847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
34261847f8eSopenharmony_ci   * @crossplatform
34361847f8eSopenharmony_ci   * @atomicservice
34461847f8eSopenharmony_ci   * @since 12
34561847f8eSopenharmony_ci   */
34661847f8eSopenharmony_ci  static dir(dir?: Object): void;
34761847f8eSopenharmony_ci
34861847f8eSopenharmony_ci  /**
34961847f8eSopenharmony_ci   * This method calls console.log() passing it the arguments received.
35061847f8eSopenharmony_ci   * This method does not produce any XML formatting.
35161847f8eSopenharmony_ci   *
35261847f8eSopenharmony_ci   * @param { Object[] } arguments - Text to print.
35361847f8eSopenharmony_ci   * @static
35461847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
35561847f8eSopenharmony_ci   * @crossplatform
35661847f8eSopenharmony_ci   * @since 10
35761847f8eSopenharmony_ci   */
35861847f8eSopenharmony_ci  /**
35961847f8eSopenharmony_ci   * This method calls console.log() passing it the arguments received.
36061847f8eSopenharmony_ci   * This method does not produce any XML formatting.
36161847f8eSopenharmony_ci   *
36261847f8eSopenharmony_ci   * @param { Object[] } arguments - Text to print.
36361847f8eSopenharmony_ci   * @static
36461847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
36561847f8eSopenharmony_ci   * @crossplatform
36661847f8eSopenharmony_ci   * @atomicservice
36761847f8eSopenharmony_ci   * @since 12
36861847f8eSopenharmony_ci   */
36961847f8eSopenharmony_ci  static dirxml(...arguments: Object[]): void;
37061847f8eSopenharmony_ci
37161847f8eSopenharmony_ci  /**
37261847f8eSopenharmony_ci   * Creates a new inline group, causing any subsequent console messages to be indented by an additional level.
37361847f8eSopenharmony_ci   *
37461847f8eSopenharmony_ci   * @param { Object[] } arguments - messages to print first.
37561847f8eSopenharmony_ci   * @static
37661847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
37761847f8eSopenharmony_ci   * @crossplatform
37861847f8eSopenharmony_ci   * @since 10
37961847f8eSopenharmony_ci   */
38061847f8eSopenharmony_ci  /**
38161847f8eSopenharmony_ci   * Creates a new inline group, causing any subsequent console messages to be indented by an additional level.
38261847f8eSopenharmony_ci   *
38361847f8eSopenharmony_ci   * @param { Object[] } arguments - messages to print first.
38461847f8eSopenharmony_ci   * @static
38561847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
38661847f8eSopenharmony_ci   * @crossplatform
38761847f8eSopenharmony_ci   * @atomicservice
38861847f8eSopenharmony_ci   * @since 12
38961847f8eSopenharmony_ci   */
39061847f8eSopenharmony_ci  static group(...arguments: Object[]): void;
39161847f8eSopenharmony_ci
39261847f8eSopenharmony_ci  /**
39361847f8eSopenharmony_ci   * Same as console.group()
39461847f8eSopenharmony_ci   *
39561847f8eSopenharmony_ci   * @param { Object[] } arguments - messages to print first.
39661847f8eSopenharmony_ci   * @static
39761847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
39861847f8eSopenharmony_ci   * @crossplatform
39961847f8eSopenharmony_ci   * @since 10
40061847f8eSopenharmony_ci   */
40161847f8eSopenharmony_ci  /**
40261847f8eSopenharmony_ci   * Same as console.group()
40361847f8eSopenharmony_ci   *
40461847f8eSopenharmony_ci   * @param { Object[] } arguments - messages to print first.
40561847f8eSopenharmony_ci   * @static
40661847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
40761847f8eSopenharmony_ci   * @crossplatform
40861847f8eSopenharmony_ci   * @atomicservice
40961847f8eSopenharmony_ci   * @since 12
41061847f8eSopenharmony_ci   */
41161847f8eSopenharmony_ci  static groupCollapsed(...arguments: Object[]): void;
41261847f8eSopenharmony_ci
41361847f8eSopenharmony_ci  /**
41461847f8eSopenharmony_ci   * Exit current inline group.
41561847f8eSopenharmony_ci   *
41661847f8eSopenharmony_ci   * @static
41761847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
41861847f8eSopenharmony_ci   * @crossplatform
41961847f8eSopenharmony_ci   * @since 10
42061847f8eSopenharmony_ci   */
42161847f8eSopenharmony_ci  /**
42261847f8eSopenharmony_ci   * Exit current inline group.
42361847f8eSopenharmony_ci   *
42461847f8eSopenharmony_ci   * @static
42561847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
42661847f8eSopenharmony_ci   * @crossplatform
42761847f8eSopenharmony_ci   * @atomicservice
42861847f8eSopenharmony_ci   * @since 12
42961847f8eSopenharmony_ci   */
43061847f8eSopenharmony_ci  static groupEnd(): void;
43161847f8eSopenharmony_ci
43261847f8eSopenharmony_ci  /**
43361847f8eSopenharmony_ci   * Prints tabular data as a table.
43461847f8eSopenharmony_ci   *
43561847f8eSopenharmony_ci   * @param { Object } [tableData] - tabular data.
43661847f8eSopenharmony_ci   * @static
43761847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
43861847f8eSopenharmony_ci   * @crossplatform
43961847f8eSopenharmony_ci   * @since 10
44061847f8eSopenharmony_ci   */
44161847f8eSopenharmony_ci  /**
44261847f8eSopenharmony_ci   * Prints tabular data as a table.
44361847f8eSopenharmony_ci   *
44461847f8eSopenharmony_ci   * @param { Object } [tableData] - tabular data.
44561847f8eSopenharmony_ci   * @static
44661847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
44761847f8eSopenharmony_ci   * @crossplatform
44861847f8eSopenharmony_ci   * @atomicservice
44961847f8eSopenharmony_ci   * @since 12
45061847f8eSopenharmony_ci   */
45161847f8eSopenharmony_ci  static table(tableData?: Object): void;
45261847f8eSopenharmony_ci
45361847f8eSopenharmony_ci  /**
45461847f8eSopenharmony_ci   * Start a timer.
45561847f8eSopenharmony_ci   *
45661847f8eSopenharmony_ci   * @param { string } [label] - Timer name. Default: "default".
45761847f8eSopenharmony_ci   * @throws { BusinessError } 401 - The parameter check failed.
45861847f8eSopenharmony_ci   * @static
45961847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
46061847f8eSopenharmony_ci   * @crossplatform
46161847f8eSopenharmony_ci   * @since 10
46261847f8eSopenharmony_ci   */
46361847f8eSopenharmony_ci  /**
46461847f8eSopenharmony_ci   * Start a timer.
46561847f8eSopenharmony_ci   *
46661847f8eSopenharmony_ci   * @param { string } [label] - Timer name. Default: "default".
46761847f8eSopenharmony_ci   * @throws { BusinessError } 401 - The parameter check failed.
46861847f8eSopenharmony_ci   * @static
46961847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
47061847f8eSopenharmony_ci   * @crossplatform
47161847f8eSopenharmony_ci   * @atomicservice
47261847f8eSopenharmony_ci   * @since 12
47361847f8eSopenharmony_ci   */
47461847f8eSopenharmony_ci  static time(label?: string): void;
47561847f8eSopenharmony_ci
47661847f8eSopenharmony_ci  /**
47761847f8eSopenharmony_ci   * End a timer and print time duration.
47861847f8eSopenharmony_ci   *
47961847f8eSopenharmony_ci   * @param { string } [label] - Timer name. Default: "default".
48061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - The parameter check failed.
48161847f8eSopenharmony_ci   * @static
48261847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
48361847f8eSopenharmony_ci   * @crossplatform
48461847f8eSopenharmony_ci   * @since 10
48561847f8eSopenharmony_ci   */
48661847f8eSopenharmony_ci  /**
48761847f8eSopenharmony_ci   * End a timer and print time duration.
48861847f8eSopenharmony_ci   *
48961847f8eSopenharmony_ci   * @param { string } [label] - Timer name. Default: "default".
49061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - The parameter check failed.
49161847f8eSopenharmony_ci   * @static
49261847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
49361847f8eSopenharmony_ci   * @crossplatform
49461847f8eSopenharmony_ci   * @atomicservice
49561847f8eSopenharmony_ci   * @since 12
49661847f8eSopenharmony_ci   */
49761847f8eSopenharmony_ci  static timeEnd(label?: string): void;
49861847f8eSopenharmony_ci
49961847f8eSopenharmony_ci  /**
50061847f8eSopenharmony_ci   * Print the elapsed time and other data arguments.
50161847f8eSopenharmony_ci   *
50261847f8eSopenharmony_ci   * @param { string } [label] - Timer name. Default: "default".
50361847f8eSopenharmony_ci   * @param { Object[] } arguments - Text to print.
50461847f8eSopenharmony_ci   * @throws { BusinessError } 401 - The parameter check failed.
50561847f8eSopenharmony_ci   * @static
50661847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
50761847f8eSopenharmony_ci   * @crossplatform
50861847f8eSopenharmony_ci   * @since 10
50961847f8eSopenharmony_ci   */
51061847f8eSopenharmony_ci  /**
51161847f8eSopenharmony_ci   * Print the elapsed time and other data arguments.
51261847f8eSopenharmony_ci   *
51361847f8eSopenharmony_ci   * @param { string } [label] - Timer name. Default: "default".
51461847f8eSopenharmony_ci   * @param { Object[] } arguments - Text to print.
51561847f8eSopenharmony_ci   * @throws { BusinessError } 401 - The parameter check failed.
51661847f8eSopenharmony_ci   * @static
51761847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
51861847f8eSopenharmony_ci   * @crossplatform
51961847f8eSopenharmony_ci   * @atomicservice
52061847f8eSopenharmony_ci   * @since 12
52161847f8eSopenharmony_ci   */
52261847f8eSopenharmony_ci  static timeLog(label?: string, ...arguments: Object[]): void;
52361847f8eSopenharmony_ci
52461847f8eSopenharmony_ci  /**
52561847f8eSopenharmony_ci   * Prints stack information for the current code location.
52661847f8eSopenharmony_ci   *
52761847f8eSopenharmony_ci   * @param { Object[] } arguments - message to print.
52861847f8eSopenharmony_ci   * @static
52961847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
53061847f8eSopenharmony_ci   * @crossplatform
53161847f8eSopenharmony_ci   * @since 10
53261847f8eSopenharmony_ci   */
53361847f8eSopenharmony_ci  /**
53461847f8eSopenharmony_ci   * Prints stack information for the current code location.
53561847f8eSopenharmony_ci   *
53661847f8eSopenharmony_ci   * @param { Object[] } arguments - message to print.
53761847f8eSopenharmony_ci   * @static
53861847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
53961847f8eSopenharmony_ci   * @crossplatform
54061847f8eSopenharmony_ci   * @atomicservice
54161847f8eSopenharmony_ci   * @since 12
54261847f8eSopenharmony_ci   */
54361847f8eSopenharmony_ci  static trace(...arguments: Object[]): void;
54461847f8eSopenharmony_ci
54561847f8eSopenharmony_ci  /**
54661847f8eSopenharmony_ci   * Prints hybrid stack information for the current code location.
54761847f8eSopenharmony_ci   *
54861847f8eSopenharmony_ci   * @static
54961847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
55061847f8eSopenharmony_ci   * @crossplatform
55161847f8eSopenharmony_ci   * @atomicservice
55261847f8eSopenharmony_ci   * @since 12
55361847f8eSopenharmony_ci   */
55461847f8eSopenharmony_ci  static traceHybridStack(): void;
55561847f8eSopenharmony_ci}
55661847f8eSopenharmony_ci
55761847f8eSopenharmony_ci/**
55861847f8eSopenharmony_ci * Sets the interval for repeatedly calling a function.
55961847f8eSopenharmony_ci *
56061847f8eSopenharmony_ci * @param { Function | string } handler - Indicates the function to be called after the timer goes off.
56161847f8eSopenharmony_ci * For devices of "tv", "phone, tablet", and "wearable" types, this parameter can be a function or string.
56261847f8eSopenharmony_ci * For devices of "lite wearable" and "smartVision" types, this parameter must be a function.
56361847f8eSopenharmony_ci * @param { number } delay - Indicates the interval between each two calls, in milliseconds. The function will be called after this delay.
56461847f8eSopenharmony_ci * @param { any[] } arguments - Indicates additional arguments to pass to "handler" when the timer goes off.
56561847f8eSopenharmony_ci * @returns { number } Returns the timer ID.
56661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
56761847f8eSopenharmony_ci * @since 7
56861847f8eSopenharmony_ci */
56961847f8eSopenharmony_ci/**
57061847f8eSopenharmony_ci * Sets the interval for repeatedly calling a function.
57161847f8eSopenharmony_ci *
57261847f8eSopenharmony_ci * @param { Function | string } handler - Indicates the function to be called after the timer goes off.
57361847f8eSopenharmony_ci * For devices of "tv", "phone, tablet", and "wearable" types, this parameter can be a function or string.
57461847f8eSopenharmony_ci * For devices of "lite wearable" and "smartVision" types, this parameter must be a function.
57561847f8eSopenharmony_ci * @param { number } delay - Indicates the interval between each two calls, in milliseconds. The function will be called after this delay.
57661847f8eSopenharmony_ci * @param { any[] } arguments - Indicates additional arguments to pass to "handler" when the timer goes off.
57761847f8eSopenharmony_ci * @returns { number } Returns the timer ID.
57861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
57961847f8eSopenharmony_ci * @crossplatform
58061847f8eSopenharmony_ci * @since 10
58161847f8eSopenharmony_ci */
58261847f8eSopenharmony_ci/**
58361847f8eSopenharmony_ci * Sets the interval for repeatedly calling a function.
58461847f8eSopenharmony_ci *
58561847f8eSopenharmony_ci * @param { Function | string } handler - Indicates the function to be called after the timer goes off.
58661847f8eSopenharmony_ci * For devices of "tv", "phone, tablet", and "wearable" types, this parameter can be a function or string.
58761847f8eSopenharmony_ci * For devices of "lite wearable" and "smartVision" types, this parameter must be a function.
58861847f8eSopenharmony_ci * @param { number } delay - Indicates the interval between each two calls, in milliseconds. The function will be called after this delay.
58961847f8eSopenharmony_ci * @param { any[] } arguments - Indicates additional arguments to pass to "handler" when the timer goes off.
59061847f8eSopenharmony_ci * @returns { number } Returns the timer ID.
59161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
59261847f8eSopenharmony_ci * @crossplatform
59361847f8eSopenharmony_ci * @atomicservice
59461847f8eSopenharmony_ci * @since 11
59561847f8eSopenharmony_ci */
59661847f8eSopenharmony_ciexport declare function setInterval(handler: Function | string, delay: number, ...arguments: any[]): number;
59761847f8eSopenharmony_ci
59861847f8eSopenharmony_ci/**
59961847f8eSopenharmony_ci * Sets a timer after which a function will be executed.
60061847f8eSopenharmony_ci *
60161847f8eSopenharmony_ci * @param { Function | string } handler - Indicates the function to be called after the timer goes off.
60261847f8eSopenharmony_ci * For devices of "tv", "phone, tablet", and "wearable" types, this parameter can be a function or string.
60361847f8eSopenharmony_ci * For devices of "lite wearable" and "smartVision" types, this parameter must be a function.
60461847f8eSopenharmony_ci * @param { number } [delay] - Indicates the delay (in milliseconds) after which the function will be called.
60561847f8eSopenharmony_ci * If this parameter is left empty, default value "0" will be used, which means that the function will be called immediately or as soon as possible.
60661847f8eSopenharmony_ci * @param { any[] } arguments - Indicates additional arguments to pass to "handler" when the timer goes off.
60761847f8eSopenharmony_ci * @returns { number } Returns the timer ID.
60861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
60961847f8eSopenharmony_ci * @since 7
61061847f8eSopenharmony_ci */
61161847f8eSopenharmony_ci/**
61261847f8eSopenharmony_ci * Sets a timer after which a function will be executed.
61361847f8eSopenharmony_ci *
61461847f8eSopenharmony_ci * @param { Function | string } handler - Indicates the function to be called after the timer goes off.
61561847f8eSopenharmony_ci * For devices of "tv", "phone, tablet", and "wearable" types, this parameter can be a function or string.
61661847f8eSopenharmony_ci * For devices of "lite wearable" and "smartVision" types, this parameter must be a function.
61761847f8eSopenharmony_ci * @param { number } [delay] - Indicates the delay (in milliseconds) after which the function will be called.
61861847f8eSopenharmony_ci * If this parameter is left empty, default value "0" will be used, which means that the function will be called immediately or as soon as possible.
61961847f8eSopenharmony_ci * @param { any[] } [arguments] - Indicates additional arguments to pass to "handler" when the timer goes off.
62061847f8eSopenharmony_ci * @returns { number } Returns the timer ID.
62161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
62261847f8eSopenharmony_ci * @crossplatform
62361847f8eSopenharmony_ci * @since 10
62461847f8eSopenharmony_ci */
62561847f8eSopenharmony_ci/**
62661847f8eSopenharmony_ci * Sets a timer after which a function will be executed.
62761847f8eSopenharmony_ci *
62861847f8eSopenharmony_ci * @param { Function | string } handler - Indicates the function to be called after the timer goes off.
62961847f8eSopenharmony_ci * For devices of "tv", "phone, tablet", and "wearable" types, this parameter can be a function or string.
63061847f8eSopenharmony_ci * For devices of "lite wearable" and "smartVision" types, this parameter must be a function.
63161847f8eSopenharmony_ci * @param { number } [delay] - Indicates the delay (in milliseconds) after which the function will be called.
63261847f8eSopenharmony_ci * If this parameter is left empty, default value "0" will be used, which means that the function will be called immediately or as soon as possible.
63361847f8eSopenharmony_ci * @param { any[] } [arguments] - Indicates additional arguments to pass to "handler" when the timer goes off.
63461847f8eSopenharmony_ci * @returns { number } Returns the timer ID.
63561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
63661847f8eSopenharmony_ci * @crossplatform
63761847f8eSopenharmony_ci * @atomicservice
63861847f8eSopenharmony_ci * @since 11
63961847f8eSopenharmony_ci */
64061847f8eSopenharmony_ciexport declare function setTimeout(handler: Function | string, delay?: number, ...arguments: any[]): number;
64161847f8eSopenharmony_ci
64261847f8eSopenharmony_ci/**
64361847f8eSopenharmony_ci * Cancel the interval set by " setInterval()".
64461847f8eSopenharmony_ci *
64561847f8eSopenharmony_ci * @param { number } [intervalID] - Indicates the timer ID returned by "setInterval()".
64661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
64761847f8eSopenharmony_ci * @since 7
64861847f8eSopenharmony_ci */
64961847f8eSopenharmony_ci/**
65061847f8eSopenharmony_ci * Cancel the interval set by " setInterval()".
65161847f8eSopenharmony_ci *
65261847f8eSopenharmony_ci * @param { number } [intervalID] - Indicates the timer ID returned by "setInterval()".
65361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
65461847f8eSopenharmony_ci * @crossplatform
65561847f8eSopenharmony_ci * @since 10
65661847f8eSopenharmony_ci */
65761847f8eSopenharmony_ci/**
65861847f8eSopenharmony_ci * Cancel the interval set by " setInterval()".
65961847f8eSopenharmony_ci *
66061847f8eSopenharmony_ci * @param { number } [intervalID] - Indicates the timer ID returned by "setInterval()".
66161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
66261847f8eSopenharmony_ci * @crossplatform
66361847f8eSopenharmony_ci * @atomicservice
66461847f8eSopenharmony_ci * @since 11
66561847f8eSopenharmony_ci */
66661847f8eSopenharmony_ciexport declare function clearInterval(intervalID?: number): void;
66761847f8eSopenharmony_ci
66861847f8eSopenharmony_ci/**
66961847f8eSopenharmony_ci * Cancel the timer set by "setTimeout()".
67061847f8eSopenharmony_ci *
67161847f8eSopenharmony_ci * @param { number } [timeoutID] - Indicates the timer ID returned by "setTimeout()".
67261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
67361847f8eSopenharmony_ci * @since 7
67461847f8eSopenharmony_ci */
67561847f8eSopenharmony_ci/**
67661847f8eSopenharmony_ci * Cancel the timer set by "setTimeout()".
67761847f8eSopenharmony_ci *
67861847f8eSopenharmony_ci * @param { number } [timeoutID] - Indicates the timer ID returned by "setTimeout()".
67961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
68061847f8eSopenharmony_ci * @crossplatform
68161847f8eSopenharmony_ci * @since 10
68261847f8eSopenharmony_ci */
68361847f8eSopenharmony_ci/**
68461847f8eSopenharmony_ci * Cancel the timer set by "setTimeout()".
68561847f8eSopenharmony_ci *
68661847f8eSopenharmony_ci * @param { number } [timeoutID] - Indicates the timer ID returned by "setTimeout()".
68761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
68861847f8eSopenharmony_ci * @crossplatform
68961847f8eSopenharmony_ci * @atomicservice
69061847f8eSopenharmony_ci * @since 11
69161847f8eSopenharmony_ci */
69261847f8eSopenharmony_ciexport declare function clearTimeout(timeoutID?: number): void;
69361847f8eSopenharmony_ci
69461847f8eSopenharmony_ci/**
69561847f8eSopenharmony_ci * Defining syscap function.
69661847f8eSopenharmony_ci *
69761847f8eSopenharmony_ci * @param { string } syscap
69861847f8eSopenharmony_ci * @returns { boolean }
69961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
70061847f8eSopenharmony_ci * @since 8
70161847f8eSopenharmony_ci */
70261847f8eSopenharmony_ci/**
70361847f8eSopenharmony_ci * Defining syscap function.
70461847f8eSopenharmony_ci *
70561847f8eSopenharmony_ci * @param { string } syscap
70661847f8eSopenharmony_ci * @returns { boolean }
70761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
70861847f8eSopenharmony_ci * @crossplatform
70961847f8eSopenharmony_ci * @since 10
71061847f8eSopenharmony_ci */
71161847f8eSopenharmony_ci/**
71261847f8eSopenharmony_ci * Defining syscap function.
71361847f8eSopenharmony_ci *
71461847f8eSopenharmony_ci * @param { string } syscap
71561847f8eSopenharmony_ci * @returns { boolean }
71661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
71761847f8eSopenharmony_ci * @crossplatform
71861847f8eSopenharmony_ci * @atomicservice
71961847f8eSopenharmony_ci * @since 11
72061847f8eSopenharmony_ci */
72161847f8eSopenharmony_ciexport declare function canIUse(syscap: string): boolean;
72261847f8eSopenharmony_ci
72361847f8eSopenharmony_ci/**
72461847f8eSopenharmony_ci * Obtains all attributes of the component with the specified ID.
72561847f8eSopenharmony_ci *
72661847f8eSopenharmony_ci * @param { string } id - ID of the component whose attributes are to be obtained.
72761847f8eSopenharmony_ci * @returns { string }
72861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
72961847f8eSopenharmony_ci * @since 9
73061847f8eSopenharmony_ci * @test
73161847f8eSopenharmony_ci */
73261847f8eSopenharmony_ci/**
73361847f8eSopenharmony_ci * Obtains all attributes of the component with the specified ID.
73461847f8eSopenharmony_ci *
73561847f8eSopenharmony_ci * @param { string } id - ID of the component whose attributes are to be obtained.
73661847f8eSopenharmony_ci * @returns { string }
73761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
73861847f8eSopenharmony_ci * @crossplatform
73961847f8eSopenharmony_ci * @since 10
74061847f8eSopenharmony_ci * @test
74161847f8eSopenharmony_ci */
74261847f8eSopenharmony_ci/**
74361847f8eSopenharmony_ci * Obtains all attributes of the component with the specified ID.
74461847f8eSopenharmony_ci *
74561847f8eSopenharmony_ci * @param { string } id - ID of the component whose attributes are to be obtained.
74661847f8eSopenharmony_ci * @returns { string }
74761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
74861847f8eSopenharmony_ci * @crossplatform
74961847f8eSopenharmony_ci * @atomicservice
75061847f8eSopenharmony_ci * @since 11
75161847f8eSopenharmony_ci * @test
75261847f8eSopenharmony_ci */
75361847f8eSopenharmony_ciexport declare function getInspectorByKey(id: string): string;
75461847f8eSopenharmony_ci
75561847f8eSopenharmony_ci/**
75661847f8eSopenharmony_ci * Get components tree.
75761847f8eSopenharmony_ci *
75861847f8eSopenharmony_ci * @returns { Object }
75961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
76061847f8eSopenharmony_ci * @since 9
76161847f8eSopenharmony_ci * @test
76261847f8eSopenharmony_ci */
76361847f8eSopenharmony_ci/**
76461847f8eSopenharmony_ci * Get components tree.
76561847f8eSopenharmony_ci *
76661847f8eSopenharmony_ci * @returns { Object }
76761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
76861847f8eSopenharmony_ci * @crossplatform
76961847f8eSopenharmony_ci * @since 10
77061847f8eSopenharmony_ci * @test
77161847f8eSopenharmony_ci */
77261847f8eSopenharmony_ci/**
77361847f8eSopenharmony_ci * Get components tree.
77461847f8eSopenharmony_ci *
77561847f8eSopenharmony_ci * @returns { Object }
77661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
77761847f8eSopenharmony_ci * @crossplatform
77861847f8eSopenharmony_ci * @atomicservice
77961847f8eSopenharmony_ci * @since 11
78061847f8eSopenharmony_ci * @test
78161847f8eSopenharmony_ci */
78261847f8eSopenharmony_ciexport declare function getInspectorTree(): Object;
78361847f8eSopenharmony_ci
78461847f8eSopenharmony_ci/**
78561847f8eSopenharmony_ci * Sends an event to the component with the specified ID.
78661847f8eSopenharmony_ci *
78761847f8eSopenharmony_ci * @param { string } id - ID of the component for which the event is to be sent.
78861847f8eSopenharmony_ci * @param { number } action - Type of the event to be sent. The options are as follows: Click event: 10 LongClick: 11.
78961847f8eSopenharmony_ci * @param { string } params - Event parameters. If there is no parameter, pass an empty string "".
79061847f8eSopenharmony_ci * @returns { boolean }
79161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
79261847f8eSopenharmony_ci * @since 9
79361847f8eSopenharmony_ci * @test
79461847f8eSopenharmony_ci */
79561847f8eSopenharmony_ci/**
79661847f8eSopenharmony_ci * Sends an event to the component with the specified ID.
79761847f8eSopenharmony_ci *
79861847f8eSopenharmony_ci * @param { string } id - ID of the component for which the event is to be sent.
79961847f8eSopenharmony_ci * @param { number } action - Type of the event to be sent. The options are as follows: Click event: 10 LongClick: 11.
80061847f8eSopenharmony_ci * @param { string } params - Event parameters. If there is no parameter, pass an empty string "".
80161847f8eSopenharmony_ci * @returns { boolean }
80261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
80361847f8eSopenharmony_ci * @crossplatform
80461847f8eSopenharmony_ci * @since 10
80561847f8eSopenharmony_ci * @test
80661847f8eSopenharmony_ci */
80761847f8eSopenharmony_ci/**
80861847f8eSopenharmony_ci * Sends an event to the component with the specified ID.
80961847f8eSopenharmony_ci *
81061847f8eSopenharmony_ci * @param { string } id - ID of the component for which the event is to be sent.
81161847f8eSopenharmony_ci * @param { number } action - Type of the event to be sent. The options are as follows: Click event: 10 LongClick: 11.
81261847f8eSopenharmony_ci * @param { string } params - Event parameters. If there is no parameter, pass an empty string "".
81361847f8eSopenharmony_ci * @returns { boolean }
81461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
81561847f8eSopenharmony_ci * @crossplatform
81661847f8eSopenharmony_ci * @atomicservice
81761847f8eSopenharmony_ci * @since 11
81861847f8eSopenharmony_ci * @test
81961847f8eSopenharmony_ci */
82061847f8eSopenharmony_ciexport declare function sendEventByKey(id: string, action: number, params: string): boolean;
82161847f8eSopenharmony_ci
82261847f8eSopenharmony_ci/**
82361847f8eSopenharmony_ci * Send touch event.
82461847f8eSopenharmony_ci *
82561847f8eSopenharmony_ci * @param { TouchObject } event - TouchObject to be sent.
82661847f8eSopenharmony_ci * @returns { boolean }
82761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
82861847f8eSopenharmony_ci * @since 9
82961847f8eSopenharmony_ci * @test
83061847f8eSopenharmony_ci */
83161847f8eSopenharmony_ci/**
83261847f8eSopenharmony_ci * Send touch event.
83361847f8eSopenharmony_ci *
83461847f8eSopenharmony_ci * @param { TouchObject } event - TouchObject to be sent.
83561847f8eSopenharmony_ci * @returns { boolean }
83661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
83761847f8eSopenharmony_ci * @crossplatform
83861847f8eSopenharmony_ci * @since 10
83961847f8eSopenharmony_ci * @test
84061847f8eSopenharmony_ci */
84161847f8eSopenharmony_ci/**
84261847f8eSopenharmony_ci * Send touch event.
84361847f8eSopenharmony_ci *
84461847f8eSopenharmony_ci * @param { TouchObject } event - TouchObject to be sent.
84561847f8eSopenharmony_ci * @returns { boolean }
84661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
84761847f8eSopenharmony_ci * @crossplatform
84861847f8eSopenharmony_ci * @atomicservice
84961847f8eSopenharmony_ci * @since 11
85061847f8eSopenharmony_ci * @test
85161847f8eSopenharmony_ci */
85261847f8eSopenharmony_ciexport declare function sendTouchEvent(event: TouchObject): boolean;
85361847f8eSopenharmony_ci
85461847f8eSopenharmony_ci/**
85561847f8eSopenharmony_ci * Send key event.
85661847f8eSopenharmony_ci *
85761847f8eSopenharmony_ci * @param { KeyEvent } event - KeyEvent to be sent.
85861847f8eSopenharmony_ci * @returns { boolean }
85961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
86061847f8eSopenharmony_ci * @since 9
86161847f8eSopenharmony_ci * @test
86261847f8eSopenharmony_ci */
86361847f8eSopenharmony_ci/**
86461847f8eSopenharmony_ci * Send key event.
86561847f8eSopenharmony_ci *
86661847f8eSopenharmony_ci * @param { KeyEvent } event - KeyEvent to be sent.
86761847f8eSopenharmony_ci * @returns { boolean }
86861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
86961847f8eSopenharmony_ci * @crossplatform
87061847f8eSopenharmony_ci * @since 10
87161847f8eSopenharmony_ci * @test
87261847f8eSopenharmony_ci */
87361847f8eSopenharmony_ci/**
87461847f8eSopenharmony_ci * Send key event.
87561847f8eSopenharmony_ci *
87661847f8eSopenharmony_ci * @param { KeyEvent } event - KeyEvent to be sent.
87761847f8eSopenharmony_ci * @returns { boolean }
87861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
87961847f8eSopenharmony_ci * @crossplatform
88061847f8eSopenharmony_ci * @atomicservice
88161847f8eSopenharmony_ci * @since 11
88261847f8eSopenharmony_ci * @test
88361847f8eSopenharmony_ci */
88461847f8eSopenharmony_ciexport declare function sendKeyEvent(event: KeyEvent): boolean;
88561847f8eSopenharmony_ci
88661847f8eSopenharmony_ci/**
88761847f8eSopenharmony_ci * Send mouse event.
88861847f8eSopenharmony_ci *
88961847f8eSopenharmony_ci * @param { MouseEvent } event - MouseEvent to be sent.
89061847f8eSopenharmony_ci * @returns { boolean }
89161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
89261847f8eSopenharmony_ci * @since 9
89361847f8eSopenharmony_ci * @test
89461847f8eSopenharmony_ci */
89561847f8eSopenharmony_ci/**
89661847f8eSopenharmony_ci * Send mouse event.
89761847f8eSopenharmony_ci *
89861847f8eSopenharmony_ci * @param { MouseEvent } event - MouseEvent to be sent.
89961847f8eSopenharmony_ci * @returns { boolean }
90061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
90161847f8eSopenharmony_ci * @crossplatform
90261847f8eSopenharmony_ci * @since 10
90361847f8eSopenharmony_ci * @test
90461847f8eSopenharmony_ci */
90561847f8eSopenharmony_ci/**
90661847f8eSopenharmony_ci * Send mouse event.
90761847f8eSopenharmony_ci *
90861847f8eSopenharmony_ci * @param { MouseEvent } event - MouseEvent to be sent.
90961847f8eSopenharmony_ci * @returns { boolean }
91061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
91161847f8eSopenharmony_ci * @crossplatform
91261847f8eSopenharmony_ci * @atomicservice
91361847f8eSopenharmony_ci * @since 11
91461847f8eSopenharmony_ci * @test
91561847f8eSopenharmony_ci */
91661847f8eSopenharmony_ciexport declare function sendMouseEvent(event: MouseEvent): boolean;
91761847f8eSopenharmony_ci
91861847f8eSopenharmony_ci /**
91961847f8eSopenharmony_ci  * Mark moduleNamespace which loaded by dynamic-import is collectable.
92061847f8eSopenharmony_ci  *
92161847f8eSopenharmony_ci  * @param { Object } namespace - moduleNamespace to be marked.
92261847f8eSopenharmony_ci  * @throws { BusinessError } 401 - if type of object is not moduleNameSpace.
92361847f8eSopenharmony_ci  * @syscap SystemCapability.Utils.Lang
92461847f8eSopenharmony_ci  * @systemapi
92561847f8eSopenharmony_ci  * @stagemodelonly
92661847f8eSopenharmony_ci  * @since 10
92761847f8eSopenharmony_ci  */
92861847f8eSopenharmony_ciexport declare function markModuleCollectable(namespace: Object): void;
92961847f8eSopenharmony_ci
93061847f8eSopenharmony_ci/**
93161847f8eSopenharmony_ci * Support loading native module during the runtime phase.
93261847f8eSopenharmony_ci * 
93361847f8eSopenharmony_ci * @param { string } moduleName - Indicates the native module name.
93461847f8eSopenharmony_ci * @returns { Object } Returns the default export from the native module.
93561847f8eSopenharmony_ci * @throws { BusinessError } 401 - The parameter check failed.
93661847f8eSopenharmony_ci * @throws { BusinessError } 10200301 - Loading native module failed.
93761847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang
93861847f8eSopenharmony_ci * @stagemodelonly
93961847f8eSopenharmony_ci * @atomicservice
94061847f8eSopenharmony_ci * @since 12
94161847f8eSopenharmony_ci */
94261847f8eSopenharmony_ciexport declare function loadNativeModule(moduleName: string): Object;