import { NewType } from "~/types/NewType"; import { Id } from "~/utils/number/Id"; declare enum notificationId { type = "NotificationId" } export declare type NotificationId = NewType; /** * Check if the string value is a NotificationId value */ export declare const is: (s: string) => s is NotificationId; /** * Try to read a NotificationId value from a string */ export declare const fromString: (t: string) => NotificationId | undefined; /** * Create a NotificationId value from an numeric Id */ export declare const fromId: (id: Id) => NotificationId; /** * Converts a NotificationId value to an numeric Id * * Note: A NotificationId value contains a Id value inside, so we can afford this dangerous forced conversion to Id */ export declare const toId: (notificationId: NotificationId) => Id; export {};