pub type Cue { Cue(id: Int, start_time: Int, end_time: Int, payload: String) }
Cue(id: Int, start_time: Int, end_time: Int, payload: String)
pub type Srt { Srt(cues: List(Cue)) }
Srt(cues: List(Cue))
pub fn parse(input: String) -> Result(Srt, String)
pub fn to_string(srt: Srt) -> String
Converts a Srt type to a string.