Get a required configuration value
The configuration key
The configuration value
Get all configuration as an object
The complete configuration object
Get configuration for a specific namespace
The namespace key (e.g., 'database', 'server')
Configuration object for the namespace
OptionalreloadOptionalwatchWatch for configuration changes (if supported)
Function called when configuration changes
Function to unsubscribe from changes
Configuration Provider Interface
Defines the contract for retrieving application configuration from various sources with type safety and validation.
Example