1/* 2 * Copyright (C) 2024 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 16export interface XTSNetworkStateObj { 17 longOperatorName: string; 18 shortOperatorName: string; 19 plmnNumeric: string; 20 isRoaming: boolean; 21 regState: number; 22 nsaState: number; 23 cfgTech: number; 24 isCaActive: boolean; 25 isEmergency: boolean; 26 } 27 28export const OHTelephonyGetDefaultCellularDataSlotId: () => number; 29 30export const OHTelephonyGetNetworkStateForSlotParam: (a: number) => number; 31 32export const OHTelephonyGetNetworkStateParam: (a: number) => number; 33 34export const OHTelephonyGetNetworkStateForSlot: (soltId: number) => XTSNetworkStateObj; 35 36export const OHTelephonyGetNetworkState: () => XTSNetworkStateObj;