Methods
Final type for the SDK methods.
It requires the Endpoints interface to be provided.
Based on this interface it will generate the methods with the correct parameters and return types.
To each endpoint, it will add the config parameter with the MethodConfig type.
type Methods<Endpoints extends EndpointsConstraint> = { [Key in keyof Endpoints]: (...params: [...Parameters<Endpoints[Key]>, config?: MethodConfig]) => ReturnType<Endpoints[Key]> };