/**
 * EvalModeConfig — Rich discriminated union for evaluation mode configuration.
 *
 * This is the NEW type system for evaluation modes, introduced in the
 * architecture overhaul (Phase 0). It carries per-mode configuration
 * payloads that the compiler and new evaluation modes use.
 *
 * The existing `EvalMode` string union in @sanity/ailf-shared remains
 * unchanged — it is the lightweight identifier used throughout the
 * existing pipeline. `EvalModeConfig` is the rich type that new code
 * authors against.
 *
 * @see docs/design-docs/architecture-overhaul/domain-model.md (canonical)
 */
/**
 * Extract the string-level EvalMode from a rich EvalModeConfig.
 *
 * This bridges the new discriminated union with the existing string
 * union used throughout the pipeline. The returned value is always
 * a valid `EvalMode` string.
 */
export function evalModeType(config) {
    return config.type;
}
