[doc] Added wrappers for finish callback hooks
Extracted block typedefs to a separate file
[doc] Added a wrapper class for hooks