/* * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import { AsyncCallback, Callback } from './../basic'; declare namespace napitest { interface DataInfo { dataName: string; dataIndex: number; } export enum EOptions { OPTION0 = 0, OPTION1 = 500, OPTION2 = 503, } interface TestClass1 { fun10(): Promise; fun11(): Promise; fun12(): Promise; fun13(): Promise; fun14(v1: number): Promise; fun15(v1: number): Promise; fun16(v1: number): Promise>; funX11(v1: number, v2: string, cb: AsyncCallback): void; funX11(v1: number, v2: string, ): Promise; funX12(v1: number, v2: string, ): Promise; funX12(v1: number, v2: string, cb: AsyncCallback): void; } function fun0(): Promise; function fun1(): Promise; function fun2(): Promise; function fun3(): Promise; function fun4(v1: number): Promise; function fun5(v1: number): Promise; function fun6(v1: number): Promise>; function funX1(v1: number, v2: string, cb: AsyncCallback): void; function funX1(v1: number, v2: string): Promise; function funX2(v1: number, v2: string): Promise; function funX2(v1: number, v2: string, cb: AsyncCallback): void; } export default napitest;