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