1/*
2 * Copyright (c) 2021-2023 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16/**
17 * @file
18 */
19
20/**
21 * interface of formBindingData.
22 *
23 * @namespace formBindingData
24 * @syscap SystemCapability.Ability.Form
25 * @since 8
26 * @deprecated since 9
27 * @useinstead ohos.app.form.formBindingData/formBindingData
28 */
29declare namespace formBindingData {
30  /**
31   * Create an FormBindingData instance.
32   *
33   * @param { Object | string } [obj] - Indicates the FormBindingData instance data.
34   * @returns { FormBindingData } Returns the {@link FormBindingData} instance.
35   * @syscap SystemCapability.Ability.Form
36   * @since 8
37   * @deprecated since 9
38   * @useinstead ohos.app.form.formBindingData/formBindingData#createFormBindingData
39   */
40  function createFormBindingData(obj?: Object | string): FormBindingData;
41
42  /**
43   * Defines the createFormBindingData result interface.
44   *
45   * @typedef FormBindingData
46   * @syscap SystemCapability.Ability.Form
47   * @since 8
48   * @deprecated since 9
49   * @useinstead ohos.app.form.formBindingData/formBindingData#FormBindingData
50   */
51  interface FormBindingData {
52    /**
53     * The data to be displayed on the js card. Can be a string in Object or json format that
54     * contains several key-value pairs.
55     *
56     * @type { Object }
57     * @syscap SystemCapability.Ability.Form
58     * @since 8
59     * @deprecated since 9
60     * @useinstead ohos.app.form.formBindingData/formBindingData#FormBindingData
61     */
62    data: Object;
63  }
64}
65export default formBindingData;
66