declare const tag: unique symbol; interface Tagged { readonly [tag]: Tag; } /** * Creates an opaque type, which hides its internal details from the public, and can only be created by being used explicitly. * * @example * ```ts * type AccountId = OpaqueType; * type PersonId = OpaqueType; * * const createPersonId = () => 1 as PersonId; * * // This will fail to compile, as they are fundamentally different types. * const accountId: AccountId = createPersonId(); * ``` */ export type OpaqueType = Type & Tagged; export {};