• Parses the given input and returns a Config object if the input is valid.

    Parameters

    • input: unknown

      The input to be parsed, which can be of any type.

    Returns Config

    The validated input as a Config object.

    If the input is not valid according to the validation rules.