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