api: add require types
add require to documentation