export declare function tryCatch<T, E>(fn: () => T, onError: (e: unknown) => E): T | E;
