/** * Hook to get the error handling context. * * @example * import { useErrorHandler } from "@trackunit/react-core-hooks"; * const { logError } = useErrorHandler(); * * try { ... } * catch(ex) { * logError(ex); * } * @see { ErrorHandlingContext} */ export declare const useErrorHandler: () => import("@trackunit/iris-app-runtime-core-api").ErrorHandlingContextValue; /** * Hook to get the error handling context or null if not available. * * @example * import { useErrorHandlerOrNull } from "@trackunit/react-core-hooks"; * const { logError } = useErrorHandlerOrNull(); * * if (logError) { * logError(new Error("Something went wrong")); * } */ export declare const useErrorHandlerOrNull: () => import("@trackunit/iris-app-runtime-core-api").ErrorHandlingContextValue | null;