/* * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved. * This file is licensed to you 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 https://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 REPRESENTATIONS * OF ANY KIND, either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ import { NoticeContent, NoticeDequeueEvent } from "./types.js"; import "client-only"; //#region src/components/notice/utils.d.ts /** * Checks if a payload matches metadata on a notice. * Used for filtering notices during dequeue operations. * * @param payload - Object with key-value pairs to match against. * @param metadata - Metadata object from a notice to check. * @returns True if all payload entries match corresponding metadata entries. */ declare function matchesMetadata(payload: Record, metadata?: Record): boolean; /** * Checks if a dequeue payload matches a notice's content. * Supports filtering by top-level fields (id, color, target) and nested metadata. * * @param dequeuePayload - Dequeue event payload with optional id, color, target, metadata. * @param noticeContent - Notice content to match against. * @returns True if all provided criteria match. */ declare function matchesDequeueFilter(dequeuePayload: NoticeDequeueEvent['payload'], noticeContent: NoticeContent): boolean; //#endregion export { matchesDequeueFilter, matchesMetadata }; //# sourceMappingURL=utils.d.ts.map