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