import type { JazzError } from "./JazzError"; /** * A platform agnostic way to check if we're in development mode * * Works in Node.js and bundled code, falls back to false if process is not available */ export declare const isDev: boolean; type CustomErrorReporterProps = { getPrettyStackTrace: () => string; jazzError: JazzError; }; type CustomErrorReporter = (error: Error, props: CustomErrorReporterProps) => void; /** * Turns on the additonal debug info coming from React hooks on the original subscription of the errors. * * Enabled by default in development mode. */ export declare function enableCaptureErrorCause(capture: boolean): void; /** * Set a custom error reporter to be used instead of the default console.error. * * Useful for sending errors to a logging service or silence some annoying errors in production. */ export declare function setCustomErrorReporter(reporter?: CustomErrorReporter): void; /** * Check if we're in development mode. * Stack traces are only captured in development to avoid overhead in production. */ export declare function isCustomErrorReportingEnabled(): boolean; /** * Capture a stack trace only in development mode. * Returns undefined in production to avoid overhead. */ export declare function captureStack(): Error | undefined; export declare function captureError(error: Error, props: CustomErrorReporterProps): void; export {}; //# sourceMappingURL=errorReporting.d.ts.map