[lib] extract ThreadStore ops types to a separate file
Summary: This is part of ops clean on JS side - avoid mixing those with general types.
Test Plan: Flow
Reviewers: michal, tomek, atul
Reviewed By: atul
Subscribers: ashoat
Differential Revision: https://phab.comm.dev/D8616