1/* 2 * Copyright (c) 2021-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 * @file Provides sorting information about the active notifications among all the notifications that have been subscribed to 18 * @kit NotificationKit 19 */ 20 21import { NotificationSorting } from './notificationSorting'; 22 23/** 24 * Provides sorting information about the active notifications among all the notifications that have been subscribed to 25 * 26 * @typedef NotificationSortingMap 27 * @syscap SystemCapability.Notification.Notification 28 * @systemapi 29 * @since 7 30 */ 31interface NotificationSortingMap { 32 /** 33 * An array of notification sort information. 34 * 35 * @type { Record<string, NotificationSorting> } 36 * @readonly 37 * @syscap SystemCapability.Notification.Notification 38 * @systemapi 39 * @since 7 40 */ 41 readonly sortings: Record<string, NotificationSorting>; 42 43 /** 44 * Notification unique identification array. 45 * 46 * @type { Array<string> } 47 * @readonly 48 * @syscap SystemCapability.Notification.Notification 49 * @systemapi 50 * @since 7 51 */ 52 readonly sortedHashCode: Array<string>; 53} 54