// Utility for creating opaque branded types to avoid primitive mixing // Brand is represented as an intersection type with a unique symbol index // This pattern prevents accidental assignment between different domain primitives export type Brand = T & { readonly __brand: B }; export function makeBrand>(value: unknown): T { return value as T; }