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