Add type checking to libraries GitOrigin-RevId: bed79f5123081773d6ac6e27698246726184c5e6
move stream-related code to separate `@overleaf/stream-utils` library GitOrigin-RevId: a79a873109b927b4fc0ae36f47d5c67e0df58041