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