1/* 2 * Copyright (c) 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 * A namespace for mathematical operations. 18 * @namespace 19 */ 20declare namespace MathOperations { 21 /** 22 * Adds two numbers. 23 * @param {number} a - The first number. 24 * @param {number} b - The second number. 25 * @returns {number} The sum of a and b. 26 */ 27 function add(a: number, b: number): number; 28 29 /** 30 * Multiplies two numbers. 31 * @param {number} a - The first number. 32 * @param {number} b - The second number. 33 * @returns {number} The product of a and b. 34 */ 35 function multiply(a: number, b: number): number; 36} 37 38/** 39 * A type representing a callback function. 40 * @typedef {function} CallbackFunction 41 * @param {string} result - The result parameter. 42 */ 43type CallbackFunction = (result: string) => void; 44 45/** 46 * An enum representing days of the week. 47 * @enum {string} 48 */ 49declare enum DaysOfWeek { 50 Sunday = "Sunday", 51 Monday = "Monday", 52 Tuesday = "Tuesday", 53 Wednesday = "Wednesday", 54 Thursday = "Thursday", 55 Friday = "Friday", 56 Saturday = "Saturday", 57} 58