18c339a94Sopenharmony_ci/*
28c339a94Sopenharmony_ci* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. 
38c339a94Sopenharmony_ci* Licensed under the Apache License, Version 2.0 (the "License"); 
48c339a94Sopenharmony_ci* you may not use this file except in compliance with the License. 
58c339a94Sopenharmony_ci* You may obtain a copy of the License at 
68c339a94Sopenharmony_ci*
78c339a94Sopenharmony_ci* http://www.apache.org/licenses/LICENSE-2.0 
88c339a94Sopenharmony_ci*
98c339a94Sopenharmony_ci* Unless required by applicable law or agreed to in writing, software 
108c339a94Sopenharmony_ci* distributed under the License is distributed on an "AS IS" BASIS, 
118c339a94Sopenharmony_ci* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
128c339a94Sopenharmony_ci* See the License for the specific language governing permissions and 
138c339a94Sopenharmony_ci* limitations under the License. 
148c339a94Sopenharmony_ci*/
158c339a94Sopenharmony_ciimport { AsyncCallback, Callback } from './../basic';
168c339a94Sopenharmony_ci
178c339a94Sopenharmony_cideclare namespace napitest {
188c339a94Sopenharmony_ci    interface Test {
198c339a94Sopenharmony_ci        name: string;
208c339a94Sopenharmony_ci        age: number;
218c339a94Sopenharmony_ci    }
228c339a94Sopenharmony_ci
238c339a94Sopenharmony_ci    interface Entry {
248c339a94Sopenharmony_ci        key: Array<number>;
258c339a94Sopenharmony_ci        value: Array<string>;
268c339a94Sopenharmony_ci        isExit: Array<boolean>;
278c339a94Sopenharmony_ci    }
288c339a94Sopenharmony_ci
298c339a94Sopenharmony_ci    function fun1(v1: string, v2: AsyncCallback<Array<string>>): void;
308c339a94Sopenharmony_ci    function fun1(v1: string): Promise<Array<string>>;
318c339a94Sopenharmony_ci    function fun2(v1: Array<number>, v2: AsyncCallback<Array<number>>): void;
328c339a94Sopenharmony_ci    function fun2(v1: Array<number>): Promise<Array<number>>;
338c339a94Sopenharmony_ci    function fun3(v1: Array<boolean>, v2: AsyncCallback<Array<boolean>>): void;
348c339a94Sopenharmony_ci    function fun3(v1: Array<boolean>): Promise<Array<boolean>>;
358c339a94Sopenharmony_ci    function testArray(v: Array<string>): Array<string>;
368c339a94Sopenharmony_ci    function testArray1(v: Array<number>): Array<number>;
378c339a94Sopenharmony_ci    function testArray2(v: Array<boolean>): Array<boolean>;
388c339a94Sopenharmony_ci    function fun4(v1: Array<string>, v2: Array<Test>): Array<number>;
398c339a94Sopenharmony_ci    function fun5(v1: Array<number>, v2: Array<Test>): Array<string>;
408c339a94Sopenharmony_ci    function fun6(v1: Array<boolean>, v2: Array<Test>): Array<boolean>;
418c339a94Sopenharmony_ci    function fun7(v0: Array<string>, v1: { [key: string]: Array<string> }): number;
428c339a94Sopenharmony_ci    function fun8(v0: Array<number>, v1: { [key: string]: Array<number> }): number;
438c339a94Sopenharmony_ci    function fun9(v0: Array<boolean>, v1: { [key: string]: Array<boolean> }): number;
448c339a94Sopenharmony_ci    function fun11(v1: Map<string, Array<string>>): number;
458c339a94Sopenharmony_ci    function fun12(v1: Map<string, Array<number>>): string;
468c339a94Sopenharmony_ci    function fun13(v1: Map<string, Array<boolean>>): boolean;
478c339a94Sopenharmony_ci    function fun14(v1: Array<string>, callback: Callback<Array<string>>): void;
488c339a94Sopenharmony_ci    function fun15(v1: Array<number>, callback: Callback<Array<number>>): void;
498c339a94Sopenharmony_ci    function fun16(v1: Array<boolean>, callback: Callback<Array<boolean>>): void;
508c339a94Sopenharmony_ci    function fun17(callback: Callback<Array<Test>>): void;
518c339a94Sopenharmony_ci    function fun21(v: string, v1: Array<Entry>): Array<Entry>;
528c339a94Sopenharmony_ci    /*function fun10(v1: { [key: string]: Array<Test> }): void;*/
538c339a94Sopenharmony_ci}
548c339a94Sopenharmony_ci
558c339a94Sopenharmony_ciexport default napitest;
568c339a94Sopenharmony_ci
57