/* * 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 { export enum GrantStatus { PERMISSION_DEFAULT = "", PERMISSION_DENIED = "-1", PERMISSION_GRANTED = "2", PERMISSION_PASS = "3", } export enum HttpStatus { STATUS0 = 0, STATUS1 = 500, STATUS2 = 503, } interface Human { name: string; age: number; isAboy: true; } interface TestClass1 { ahuman: Human; num1: number; str1: string; nums: Array; strs: Array; mans: Array; if_direct(v1: string, v2: boolean): string; if_callback(v1: string, cb: Callback): string; if_async(v1: string, cb: AsyncCallback): string; } function fun2(v2: string, numcc: Array, mancc: Human): Array; function fun3(v2: string, cb: Callback): void; function fun4(v2: string, cb: AsyncCallback): void; function fun5(v2: boolean, cb: Callback): boolean; function fun6(v2: Array): boolean; namespace Space3 { function fun3(v3: string): string; interface TestClass2 { haha: number; } namespace Space4 { function fun3(v3: string): string; interface TestClass3 { hoho: number; add(v1: Array): number; } } } } export default napitest;