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