Get Safari Bookmarks and History as array

Hi all!


Is it possible to get bookmarks and history of the current Safari window as array inside SafariExtensionHandler.swift like bookmarks.get() and history.search() from the javascript APIs?


Thanks.