/// import { NextPageContext } from 'next'; import * as SentryModule from '@sentry/node'; export declare type CaptureExceptionFn = ({ ctx, errorInfo, exception, }: { ctx?: NextPageContext; errorInfo?: React.ErrorInfo; exception: any; }) => string; /** * Initialize Sentry with the given DSN and build ID. * Return the Sentry instance, and a `captureException` function which adds extra Next.js * information to the captured exception. * * @param sentryDsn The Sentry instance DSN. * @param buildId A build ID to use as the Sentry release name. * @param appPath The path to the application folder containing ".next/". e.g. '/path/to/yolkjs/packages/chatbot-manage-web' */ export default function initSentry(sentryDsn: string, buildId: string, appPath: string): { Sentry: typeof SentryModule; captureException: CaptureExceptionFn; };