declare function tryCatch any>(fn: Fn, onException?: (error: Error) => void): ReturnType | undefined; export { tryCatch };