import type { Client, Integration, Options, StackParser } from '@sentry/core'; import type * as clientSdk from './client'; import type { ServerComponentContext, VercelCronsConfig } from './common/types'; import type * as edgeSdk from './edge'; import type * as serverSdk from './server'; export * from './config'; export * from './client'; export * from './server'; export * from './edge'; /** Initializes Sentry Next.js SDK */ export declare function init(options: Options | clientSdk.BrowserOptions | serverSdk.NodeOptions | edgeSdk.EdgeOptions): Client | undefined; export declare const linkedErrorsIntegration: typeof clientSdk.linkedErrorsIntegration; export declare const contextLinesIntegration: typeof clientSdk.contextLinesIntegration; export declare const vercelAIIntegration: typeof serverSdk.vercelAIIntegration; export declare const getDefaultIntegrations: (options: Options) => Integration[]; export declare const defaultStackParser: StackParser; export declare function getSentryRelease(fallback?: string): string | undefined; export declare const ErrorBoundary: typeof clientSdk.ErrorBoundary; export declare const createReduxEnhancer: typeof clientSdk.createReduxEnhancer; export declare const showReportDialog: typeof clientSdk.showReportDialog; export declare const withErrorBoundary: typeof clientSdk.withErrorBoundary; export declare const logger: typeof clientSdk.logger | typeof serverSdk.logger; export { withSentryConfig } from './config'; /** * Wraps a Next.js Pages Router API route with Sentry error and performance instrumentation. * * NOTICE: This wrapper is for Pages Router API routes. If you are looking to wrap App Router API routes use `wrapRouteHandlerWithSentry` instead. * * @param handler The handler exported from the API route file. * @param parameterizedRoute The page's parameterized route. * @returns The wrapped handler. */ export declare function wrapApiHandlerWithSentry any>(handler: APIHandler, parameterizedRoute: string): (...args: Parameters) => ReturnType extends Promise ? ReturnType : Promise>; /** * Wraps a `getInitialProps` function with Sentry error and performance instrumentation. * * @param getInitialProps The `getInitialProps` function * @returns A wrapped version of the function */ export declare function wrapGetInitialPropsWithSentry any>(getInitialProps: F): (...args: Parameters) => ReturnType extends Promise ? ReturnType : Promise>; /** * Wraps a `getInitialProps` function of a custom `_app` page with Sentry error and performance instrumentation. * * @param getInitialProps The `getInitialProps` function * @returns A wrapped version of the function */ export declare function wrapAppGetInitialPropsWithSentry any>(getInitialProps: F): (...args: Parameters) => ReturnType extends Promise ? ReturnType : Promise>; /** * Wraps a `getInitialProps` function of a custom `_document` page with Sentry error and performance instrumentation. * * @param getInitialProps The `getInitialProps` function * @returns A wrapped version of the function */ export declare function wrapDocumentGetInitialPropsWithSentry any>(getInitialProps: F): (...args: Parameters) => ReturnType extends Promise ? ReturnType : Promise>; /** * Wraps a `getInitialProps` function of a custom `_error` page with Sentry error and performance instrumentation. * * @param getInitialProps The `getInitialProps` function * @returns A wrapped version of the function */ export declare function wrapErrorGetInitialPropsWithSentry any>(getInitialProps: F): (...args: Parameters) => ReturnType extends Promise ? ReturnType : Promise>; /** * Wraps a `getServerSideProps` function with Sentry error and performance instrumentation. * * @param origGetServerSideProps The `getServerSideProps` function * @param parameterizedRoute The page's parameterized route * @returns A wrapped version of the function */ export declare function wrapGetServerSidePropsWithSentry any>(origGetServerSideProps: F, parameterizedRoute: string): (...args: Parameters) => ReturnType extends Promise ? ReturnType : Promise>; /** * Wraps a `getStaticProps` function with Sentry error and performance instrumentation. * * @param origGetStaticProps The `getStaticProps` function * @param parameterizedRoute The page's parameterized route * @returns A wrapped version of the function */ export declare function wrapGetStaticPropsWithSentry any>(origGetStaticPropsa: F, parameterizedRoute: string): (...args: Parameters) => ReturnType extends Promise ? ReturnType : Promise>; /** * Wraps an `app` directory server component with Sentry error and performance instrumentation. */ export declare function wrapServerComponentWithSentry any>(WrappingTarget: F, context: ServerComponentContext): F; /** * Wraps an `app` directory server component with Sentry error and performance instrumentation. */ export declare function wrapApiHandlerWithSentryVercelCrons any>(WrappingTarget: F, vercelCronsConfig: VercelCronsConfig): F; /** * Wraps a page component with Sentry error instrumentation. */ export declare function wrapPageComponentWithSentry(WrappingTarget: C): C; export { captureRequestError } from './common/captureRequestError'; export declare const growthbookIntegration: typeof clientSdk.growthbookIntegration; export declare const launchDarklyIntegration: typeof clientSdk.launchDarklyIntegration; export declare const buildLaunchDarklyFlagUsedHandler: typeof clientSdk.buildLaunchDarklyFlagUsedHandler; export declare const openFeatureIntegration: typeof clientSdk.openFeatureIntegration; export declare const OpenFeatureIntegrationHook: typeof clientSdk.OpenFeatureIntegrationHook; export declare const statsigIntegration: typeof clientSdk.statsigIntegration; export declare const unleashIntegration: typeof clientSdk.unleashIntegration; //# sourceMappingURL=index.types.d.ts.map