getSection
Get an entire top-level configuration section with all
${VAR|default} environment-variable references substituted. Internally
calls substituteVars() on the resolved value.
Returns an empty object ({}) if the section does not exist or is not an
object. For single-value lookups, use get() instead.
Parameters
section
The top-level section name (e.g., "security", "server").
Returns
Record<string, unknown> — the configuration section, with env-var
substitution applied; empty object if the section is missing or not an object.