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