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