161847f8eSopenharmony_ci/*
261847f8eSopenharmony_ci * Copyright (c) 2023 Huawei Device Co., Ltd.
361847f8eSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
461847f8eSopenharmony_ci * you may not use this file except in compliance with the License.
561847f8eSopenharmony_ci * You may obtain a copy of the License at
661847f8eSopenharmony_ci *
761847f8eSopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
861847f8eSopenharmony_ci *
961847f8eSopenharmony_ci * Unless required by applicable law or agreed to in writing, software
1061847f8eSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
1161847f8eSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1261847f8eSopenharmony_ci * See the License for the specific language governing permissions and
1361847f8eSopenharmony_ci * limitations under the License.
1461847f8eSopenharmony_ci */
1561847f8eSopenharmony_ci
1661847f8eSopenharmony_ci/**
1761847f8eSopenharmony_ci * @file
1861847f8eSopenharmony_ci * @kit ArkUI
1961847f8eSopenharmony_ci */
2061847f8eSopenharmony_ci
2161847f8eSopenharmony_ci/**
2261847f8eSopenharmony_ci * Enumerates the icon styles.
2361847f8eSopenharmony_ci *
2461847f8eSopenharmony_ci * @enum { number }
2561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
2661847f8eSopenharmony_ci * @since 10
2761847f8eSopenharmony_ci */
2861847f8eSopenharmony_ci/**
2961847f8eSopenharmony_ci * Enumerates the icon styles.
3061847f8eSopenharmony_ci *
3161847f8eSopenharmony_ci * @enum { number }
3261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
3361847f8eSopenharmony_ci * @atomicservice
3461847f8eSopenharmony_ci * @since 11
3561847f8eSopenharmony_ci */
3661847f8eSopenharmony_cideclare enum SaveIconStyle {
3761847f8eSopenharmony_ci  /**
3861847f8eSopenharmony_ci   * Icon filled with the specified color.
3961847f8eSopenharmony_ci   *
4061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
4161847f8eSopenharmony_ci   * @since 10
4261847f8eSopenharmony_ci   */
4361847f8eSopenharmony_ci  /**
4461847f8eSopenharmony_ci   * Icon filled with the specified color.
4561847f8eSopenharmony_ci   *
4661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
4761847f8eSopenharmony_ci   * @atomicservice
4861847f8eSopenharmony_ci   * @since 11
4961847f8eSopenharmony_ci   */
5061847f8eSopenharmony_ci  FULL_FILLED = 0,
5161847f8eSopenharmony_ci
5261847f8eSopenharmony_ci  /**
5361847f8eSopenharmony_ci   * Icon rendered as lines.
5461847f8eSopenharmony_ci   *
5561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
5661847f8eSopenharmony_ci   * @since 10
5761847f8eSopenharmony_ci   */
5861847f8eSopenharmony_ci  /**
5961847f8eSopenharmony_ci   * Icon rendered as lines.
6061847f8eSopenharmony_ci   *
6161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
6261847f8eSopenharmony_ci   * @atomicservice
6361847f8eSopenharmony_ci   * @since 11
6461847f8eSopenharmony_ci   */
6561847f8eSopenharmony_ci  LINES = 1,
6661847f8eSopenharmony_ci
6761847f8eSopenharmony_ci  /**
6861847f8eSopenharmony_ci   * Icon rendered as picture.
6961847f8eSopenharmony_ci   *
7061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
7161847f8eSopenharmony_ci   * @systemapi
7261847f8eSopenharmony_ci   * @since 12
7361847f8eSopenharmony_ci   */
7461847f8eSopenharmony_ci  PICTURE = 2
7561847f8eSopenharmony_ci}
7661847f8eSopenharmony_ci
7761847f8eSopenharmony_ci/**
7861847f8eSopenharmony_ci * Enumerates the text that can be displayed on the save button.
7961847f8eSopenharmony_ci *
8061847f8eSopenharmony_ci * @enum { number }
8161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
8261847f8eSopenharmony_ci * @since 10
8361847f8eSopenharmony_ci */
8461847f8eSopenharmony_ci/**
8561847f8eSopenharmony_ci * Enumerates the text that can be displayed on the save button.
8661847f8eSopenharmony_ci *
8761847f8eSopenharmony_ci * @enum { number }
8861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
8961847f8eSopenharmony_ci * @atomicservice
9061847f8eSopenharmony_ci * @since 11
9161847f8eSopenharmony_ci */
9261847f8eSopenharmony_cideclare enum SaveDescription {
9361847f8eSopenharmony_ci  /**
9461847f8eSopenharmony_ci   * Download
9561847f8eSopenharmony_ci   *
9661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
9761847f8eSopenharmony_ci   * @since 10
9861847f8eSopenharmony_ci   */
9961847f8eSopenharmony_ci  /**
10061847f8eSopenharmony_ci   * Download
10161847f8eSopenharmony_ci   *
10261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
10361847f8eSopenharmony_ci   * @atomicservice
10461847f8eSopenharmony_ci   * @since 11
10561847f8eSopenharmony_ci   */
10661847f8eSopenharmony_ci  DOWNLOAD = 0,
10761847f8eSopenharmony_ci
10861847f8eSopenharmony_ci  /**
10961847f8eSopenharmony_ci   * Download File
11061847f8eSopenharmony_ci   *
11161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
11261847f8eSopenharmony_ci   * @since 10
11361847f8eSopenharmony_ci   */
11461847f8eSopenharmony_ci  /**
11561847f8eSopenharmony_ci   * Download File
11661847f8eSopenharmony_ci   *
11761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
11861847f8eSopenharmony_ci   * @atomicservice
11961847f8eSopenharmony_ci   * @since 11
12061847f8eSopenharmony_ci   */
12161847f8eSopenharmony_ci  DOWNLOAD_FILE = 1,
12261847f8eSopenharmony_ci
12361847f8eSopenharmony_ci  /**
12461847f8eSopenharmony_ci   * Save
12561847f8eSopenharmony_ci   *
12661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
12761847f8eSopenharmony_ci   * @since 10
12861847f8eSopenharmony_ci   */
12961847f8eSopenharmony_ci  /**
13061847f8eSopenharmony_ci   * Save
13161847f8eSopenharmony_ci   *
13261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
13361847f8eSopenharmony_ci   * @atomicservice
13461847f8eSopenharmony_ci   * @since 11
13561847f8eSopenharmony_ci   */
13661847f8eSopenharmony_ci  SAVE = 2,
13761847f8eSopenharmony_ci
13861847f8eSopenharmony_ci  /**
13961847f8eSopenharmony_ci   * Save Image
14061847f8eSopenharmony_ci   *
14161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
14261847f8eSopenharmony_ci   * @since 10
14361847f8eSopenharmony_ci   */
14461847f8eSopenharmony_ci  /**
14561847f8eSopenharmony_ci   * Save Image
14661847f8eSopenharmony_ci   *
14761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
14861847f8eSopenharmony_ci   * @atomicservice
14961847f8eSopenharmony_ci   * @since 11
15061847f8eSopenharmony_ci   */
15161847f8eSopenharmony_ci  SAVE_IMAGE = 3,
15261847f8eSopenharmony_ci
15361847f8eSopenharmony_ci  /**
15461847f8eSopenharmony_ci   * Save File
15561847f8eSopenharmony_ci   *
15661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
15761847f8eSopenharmony_ci   * @since 10
15861847f8eSopenharmony_ci   */
15961847f8eSopenharmony_ci  /**
16061847f8eSopenharmony_ci   * Save File
16161847f8eSopenharmony_ci   *
16261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
16361847f8eSopenharmony_ci   * @atomicservice
16461847f8eSopenharmony_ci   * @since 11
16561847f8eSopenharmony_ci   */
16661847f8eSopenharmony_ci  SAVE_FILE = 4,
16761847f8eSopenharmony_ci
16861847f8eSopenharmony_ci  /**
16961847f8eSopenharmony_ci   * Download and Share
17061847f8eSopenharmony_ci   *
17161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
17261847f8eSopenharmony_ci   * @since 10
17361847f8eSopenharmony_ci   */
17461847f8eSopenharmony_ci  /**
17561847f8eSopenharmony_ci   * Download and Share
17661847f8eSopenharmony_ci   *
17761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
17861847f8eSopenharmony_ci   * @atomicservice
17961847f8eSopenharmony_ci   * @since 11
18061847f8eSopenharmony_ci   */
18161847f8eSopenharmony_ci  DOWNLOAD_AND_SHARE = 5,
18261847f8eSopenharmony_ci
18361847f8eSopenharmony_ci  /**
18461847f8eSopenharmony_ci   * Receive
18561847f8eSopenharmony_ci   *
18661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
18761847f8eSopenharmony_ci   * @since 10
18861847f8eSopenharmony_ci   */
18961847f8eSopenharmony_ci  /**
19061847f8eSopenharmony_ci   * Receive
19161847f8eSopenharmony_ci   *
19261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
19361847f8eSopenharmony_ci   * @atomicservice
19461847f8eSopenharmony_ci   * @since 11
19561847f8eSopenharmony_ci   */
19661847f8eSopenharmony_ci  RECEIVE = 6,
19761847f8eSopenharmony_ci
19861847f8eSopenharmony_ci  /**
19961847f8eSopenharmony_ci   * Continue to Receive
20061847f8eSopenharmony_ci   *
20161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
20261847f8eSopenharmony_ci   * @since 10
20361847f8eSopenharmony_ci   */
20461847f8eSopenharmony_ci  /**
20561847f8eSopenharmony_ci   * Continue to Receive
20661847f8eSopenharmony_ci   *
20761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
20861847f8eSopenharmony_ci   * @atomicservice
20961847f8eSopenharmony_ci   * @since 11
21061847f8eSopenharmony_ci   */
21161847f8eSopenharmony_ci  CONTINUE_TO_RECEIVE = 7,
21261847f8eSopenharmony_ci
21361847f8eSopenharmony_ci  /**
21461847f8eSopenharmony_ci   * Save to gallery
21561847f8eSopenharmony_ci   *
21661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
21761847f8eSopenharmony_ci   * @atomicservice
21861847f8eSopenharmony_ci   * @since 12
21961847f8eSopenharmony_ci   */
22061847f8eSopenharmony_ci  SAVE_TO_GALLERY = 8,
22161847f8eSopenharmony_ci
22261847f8eSopenharmony_ci  /**
22361847f8eSopenharmony_ci   * Export to gallery
22461847f8eSopenharmony_ci   *
22561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
22661847f8eSopenharmony_ci   * @atomicservice
22761847f8eSopenharmony_ci   * @since 12
22861847f8eSopenharmony_ci   */
22961847f8eSopenharmony_ci  EXPORT_TO_GALLERY = 9,
23061847f8eSopenharmony_ci  
23161847f8eSopenharmony_ci  /**
23261847f8eSopenharmony_ci   * Quick save to gallery
23361847f8eSopenharmony_ci   *
23461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
23561847f8eSopenharmony_ci   * @atomicservice
23661847f8eSopenharmony_ci   * @since 12
23761847f8eSopenharmony_ci   */
23861847f8eSopenharmony_ci  QUICK_SAVE_TO_GALLERY = 10,
23961847f8eSopenharmony_ci
24061847f8eSopenharmony_ci  /**
24161847f8eSopenharmony_ci   * Resave to gallery
24261847f8eSopenharmony_ci   *
24361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
24461847f8eSopenharmony_ci   * @atomicservice
24561847f8eSopenharmony_ci   * @since 12
24661847f8eSopenharmony_ci   */
24761847f8eSopenharmony_ci  RESAVE_TO_GALLERY = 11
24861847f8eSopenharmony_ci}
24961847f8eSopenharmony_ci
25061847f8eSopenharmony_ci/**
25161847f8eSopenharmony_ci * Declares the interface for setting the save button options.
25261847f8eSopenharmony_ci *
25361847f8eSopenharmony_ci * @interface SaveButtonOptions
25461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
25561847f8eSopenharmony_ci * @since 10
25661847f8eSopenharmony_ci */
25761847f8eSopenharmony_ci/**
25861847f8eSopenharmony_ci * Declares the interface for setting the save button options.
25961847f8eSopenharmony_ci *
26061847f8eSopenharmony_ci * @interface SaveButtonOptions
26161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
26261847f8eSopenharmony_ci * @atomicservice
26361847f8eSopenharmony_ci * @since 11
26461847f8eSopenharmony_ci */
26561847f8eSopenharmony_cideclare interface SaveButtonOptions {
26661847f8eSopenharmony_ci  /**
26761847f8eSopenharmony_ci   * Style of the icon to be drawn.
26861847f8eSopenharmony_ci   *
26961847f8eSopenharmony_ci   * @type { ?SaveIconStyle }
27061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
27161847f8eSopenharmony_ci   * @since 10
27261847f8eSopenharmony_ci   */
27361847f8eSopenharmony_ci  /**
27461847f8eSopenharmony_ci   * Style of the icon to be drawn.
27561847f8eSopenharmony_ci   *
27661847f8eSopenharmony_ci   * @type { ?SaveIconStyle }
27761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
27861847f8eSopenharmony_ci   * @atomicservice
27961847f8eSopenharmony_ci   * @since 11
28061847f8eSopenharmony_ci   */
28161847f8eSopenharmony_ci  icon?: SaveIconStyle;
28261847f8eSopenharmony_ci
28361847f8eSopenharmony_ci  /**
28461847f8eSopenharmony_ci   * Text to be displayed on the button.
28561847f8eSopenharmony_ci   *
28661847f8eSopenharmony_ci   * @type { ?SaveDescription }
28761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
28861847f8eSopenharmony_ci   * @since 10
28961847f8eSopenharmony_ci   */
29061847f8eSopenharmony_ci  /**
29161847f8eSopenharmony_ci   * Text to be displayed on the button.
29261847f8eSopenharmony_ci   *
29361847f8eSopenharmony_ci   * @type { ?SaveDescription }
29461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
29561847f8eSopenharmony_ci   * @atomicservice
29661847f8eSopenharmony_ci   * @since 11
29761847f8eSopenharmony_ci   */
29861847f8eSopenharmony_ci  text?: SaveDescription;
29961847f8eSopenharmony_ci
30061847f8eSopenharmony_ci  /**
30161847f8eSopenharmony_ci   * Type of the button.
30261847f8eSopenharmony_ci   *
30361847f8eSopenharmony_ci   * @type { ?ButtonType }
30461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
30561847f8eSopenharmony_ci   * @since 10
30661847f8eSopenharmony_ci   */
30761847f8eSopenharmony_ci  /**
30861847f8eSopenharmony_ci   * Type of the button.
30961847f8eSopenharmony_ci   *
31061847f8eSopenharmony_ci   * @type { ?ButtonType }
31161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
31261847f8eSopenharmony_ci   * @atomicservice
31361847f8eSopenharmony_ci   * @since 11
31461847f8eSopenharmony_ci   */
31561847f8eSopenharmony_ci  buttonType?: ButtonType;
31661847f8eSopenharmony_ci}
31761847f8eSopenharmony_ci
31861847f8eSopenharmony_ci/**
31961847f8eSopenharmony_ci * Enumerates the click event results of the save button.
32061847f8eSopenharmony_ci *
32161847f8eSopenharmony_ci * @enum { number }
32261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
32361847f8eSopenharmony_ci * @since 10
32461847f8eSopenharmony_ci */
32561847f8eSopenharmony_ci/**
32661847f8eSopenharmony_ci * Enumerates the click event results of the save button.
32761847f8eSopenharmony_ci *
32861847f8eSopenharmony_ci * @enum { number }
32961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
33061847f8eSopenharmony_ci * @atomicservice
33161847f8eSopenharmony_ci * @since 11
33261847f8eSopenharmony_ci */
33361847f8eSopenharmony_cideclare enum SaveButtonOnClickResult {
33461847f8eSopenharmony_ci  /**
33561847f8eSopenharmony_ci   * Success.
33661847f8eSopenharmony_ci   *
33761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
33861847f8eSopenharmony_ci   * @since 10
33961847f8eSopenharmony_ci   */
34061847f8eSopenharmony_ci  /**
34161847f8eSopenharmony_ci   * Success.
34261847f8eSopenharmony_ci   *
34361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
34461847f8eSopenharmony_ci   * @atomicservice
34561847f8eSopenharmony_ci   * @since 11
34661847f8eSopenharmony_ci   */
34761847f8eSopenharmony_ci  SUCCESS = 0,
34861847f8eSopenharmony_ci
34961847f8eSopenharmony_ci  /**
35061847f8eSopenharmony_ci   * Failure because the application is not temporarily authorized for saving files.
35161847f8eSopenharmony_ci   *
35261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
35361847f8eSopenharmony_ci   * @since 10
35461847f8eSopenharmony_ci   */
35561847f8eSopenharmony_ci  /**
35661847f8eSopenharmony_ci   * Failure because the application is not temporarily authorized for saving files.
35761847f8eSopenharmony_ci   *
35861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
35961847f8eSopenharmony_ci   * @atomicservice
36061847f8eSopenharmony_ci   * @since 11
36161847f8eSopenharmony_ci   */
36261847f8eSopenharmony_ci  TEMPORARY_AUTHORIZATION_FAILED = 1
36361847f8eSopenharmony_ci}
36461847f8eSopenharmony_ci
36561847f8eSopenharmony_ci/**
36661847f8eSopenharmony_ci * Defines the interface for setting a save button.
36761847f8eSopenharmony_ci *
36861847f8eSopenharmony_ci * @interface SaveButtonInterface
36961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
37061847f8eSopenharmony_ci * @since 10
37161847f8eSopenharmony_ci */
37261847f8eSopenharmony_ci/**
37361847f8eSopenharmony_ci * Defines the interface for setting a save button.
37461847f8eSopenharmony_ci *
37561847f8eSopenharmony_ci * @interface SaveButtonInterface
37661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
37761847f8eSopenharmony_ci * @atomicservice
37861847f8eSopenharmony_ci * @since 11
37961847f8eSopenharmony_ci */
38061847f8eSopenharmony_ciinterface SaveButtonInterface {
38161847f8eSopenharmony_ci  /**
38261847f8eSopenharmony_ci   * Creates a save button.
38361847f8eSopenharmony_ci   *
38461847f8eSopenharmony_ci   * @returns { SaveButtonAttribute } Returns the attribute of the save button.
38561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
38661847f8eSopenharmony_ci   * @since 10
38761847f8eSopenharmony_ci   */
38861847f8eSopenharmony_ci  /**
38961847f8eSopenharmony_ci   * Creates a save button.
39061847f8eSopenharmony_ci   *
39161847f8eSopenharmony_ci   * @returns { SaveButtonAttribute } Returns the attribute of the save button.
39261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
39361847f8eSopenharmony_ci   * @atomicservice
39461847f8eSopenharmony_ci   * @since 11
39561847f8eSopenharmony_ci   */
39661847f8eSopenharmony_ci  (): SaveButtonAttribute;
39761847f8eSopenharmony_ci
39861847f8eSopenharmony_ci  /**
39961847f8eSopenharmony_ci   * Creates a save button with the specified composition.
40061847f8eSopenharmony_ci   * If an attribute is not set, the corresponding element will not be drawn.
40161847f8eSopenharmony_ci   *
40261847f8eSopenharmony_ci   * @param { SaveButtonOptions } options - Indicates the options of the save button.
40361847f8eSopenharmony_ci   * @returns { SaveButtonAttribute } Returns the attribute of the save button.
40461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
40561847f8eSopenharmony_ci   * @since 10
40661847f8eSopenharmony_ci   */
40761847f8eSopenharmony_ci  /**
40861847f8eSopenharmony_ci   * Creates a save button with the specified composition.
40961847f8eSopenharmony_ci   * If an attribute is not set, the corresponding element will not be drawn.
41061847f8eSopenharmony_ci   *
41161847f8eSopenharmony_ci   * @param { SaveButtonOptions } options - Indicates the options of the save button.
41261847f8eSopenharmony_ci   * @returns { SaveButtonAttribute } Returns the attribute of the save button.
41361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
41461847f8eSopenharmony_ci   * @atomicservice
41561847f8eSopenharmony_ci   * @since 11
41661847f8eSopenharmony_ci   */
41761847f8eSopenharmony_ci  (options: SaveButtonOptions): SaveButtonAttribute;
41861847f8eSopenharmony_ci}
41961847f8eSopenharmony_ci
42061847f8eSopenharmony_ci/**
42161847f8eSopenharmony_ci * Defines the attributes of the save button.
42261847f8eSopenharmony_ci *
42361847f8eSopenharmony_ci * @extends SecurityComponentMethod<SaveButtonAttribute>
42461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
42561847f8eSopenharmony_ci * @since 10
42661847f8eSopenharmony_ci */
42761847f8eSopenharmony_ci/**
42861847f8eSopenharmony_ci * Defines the attributes of the save button.
42961847f8eSopenharmony_ci *
43061847f8eSopenharmony_ci * @extends SecurityComponentMethod<SaveButtonAttribute>
43161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
43261847f8eSopenharmony_ci * @atomicservice
43361847f8eSopenharmony_ci * @since 11
43461847f8eSopenharmony_ci */
43561847f8eSopenharmony_cideclare class SaveButtonAttribute extends SecurityComponentMethod<SaveButtonAttribute> {
43661847f8eSopenharmony_ci  /**
43761847f8eSopenharmony_ci   * Called when the save button is clicked.
43861847f8eSopenharmony_ci   *
43961847f8eSopenharmony_ci   * @param { function } event
44061847f8eSopenharmony_ci   * @returns { SaveButtonAttribute } Returns the attribute of the save button.
44161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
44261847f8eSopenharmony_ci   * @since 10
44361847f8eSopenharmony_ci   */
44461847f8eSopenharmony_ci  /**
44561847f8eSopenharmony_ci   * Called when the save button is clicked.
44661847f8eSopenharmony_ci   *
44761847f8eSopenharmony_ci   * @param { function } event
44861847f8eSopenharmony_ci   * @returns { SaveButtonAttribute } Returns the attribute of the save button.
44961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
45061847f8eSopenharmony_ci   * @atomicservice
45161847f8eSopenharmony_ci   * @since 11
45261847f8eSopenharmony_ci   */
45361847f8eSopenharmony_ci  onClick(event: (event: ClickEvent, result: SaveButtonOnClickResult) => void): SaveButtonAttribute;
45461847f8eSopenharmony_ci}
45561847f8eSopenharmony_ci
45661847f8eSopenharmony_ci/**
45761847f8eSopenharmony_ci * Defines a button that interacts with the security component service to
45861847f8eSopenharmony_ci * request the permission for saving files in the media library.
45961847f8eSopenharmony_ci *
46061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
46161847f8eSopenharmony_ci * @since 10
46261847f8eSopenharmony_ci */
46361847f8eSopenharmony_ci/**
46461847f8eSopenharmony_ci * Defines a button that interacts with the security component service to
46561847f8eSopenharmony_ci * request the permission for saving files in the media library.
46661847f8eSopenharmony_ci *
46761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
46861847f8eSopenharmony_ci * @atomicservice
46961847f8eSopenharmony_ci * @since 11
47061847f8eSopenharmony_ci */
47161847f8eSopenharmony_cideclare const SaveButton: SaveButtonInterface;
47261847f8eSopenharmony_ci
47361847f8eSopenharmony_ci/**
47461847f8eSopenharmony_ci * Defines a save button instance for secure access.
47561847f8eSopenharmony_ci *
47661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
47761847f8eSopenharmony_ci * @since 10
47861847f8eSopenharmony_ci */
47961847f8eSopenharmony_ci/**
48061847f8eSopenharmony_ci * Defines a save button instance for secure access.
48161847f8eSopenharmony_ci *
48261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
48361847f8eSopenharmony_ci * @atomicservice
48461847f8eSopenharmony_ci * @since 11
48561847f8eSopenharmony_ci */
48661847f8eSopenharmony_cideclare const SaveButtonInstance: SaveButtonAttribute;
487