Add the Timeline namespace.
When looking at the unity docs note how not all types are under the
UnityEngine namespace. In those cases you need to add the correct namespace to include those types.An easy way to identify what namepsace to use is to look at the menu on the left in docs. You see things like
UnityEngine.Sprite, etc .. those are all the namespaces.