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