Recursively substitute ${VAR|default} environment-variable references in any
value. Walks strings, objects, and arrays. After substitution, resulting
strings are coerced to:
true / false when they equal "true" / "false" (case-insensitive)/^\d+$//^\d+\.\d+$/For raw string interpolation without type coercion, use
interpolateEnvVars() instead.
The value to process. Can be a string, object, array, or primitive.
Maximum recursion depth. Throws Error("Maximum variable substitution depth exceeded") when the limit is reached.
The input value with all environment variables substituted. Type depends on the input and the coercion rules above.