Pkg: export public API functions.