• Loads and validates a configuration file. Supports JSON and YAML formats.

    Parameters

    • configPath: string

      Path to the configuration file

    Returns Config

    The validated configuration object

    Throws

    If the configuration is invalid

    Throws

    If the file can't be read