import type { JSONSupport } from "../../core/JSONSupport.js";

/** @since 5.0 */
export interface CodedValueProperties extends Partial<Pick<CodedValue, "code" | "name">> {}

/**
 * The coded value in a domain.
 *
 * @since 5.0
 */
export default class CodedValue extends JSONSupport {
  constructor(properties?: CodedValueProperties);
  /**
   * The value of the code.
   *
   * @since 5.0
   */
  accessor code: string | number;
  /**
   * The name of the coded value.
   *
   * @since 5.0
   */
  accessor name: string;
}