1 | export * from './config';
|
2 | export * from './client';
|
3 | export * from './server';
|
4 | export * from './edge';
|
5 | import type { Integration, Options, StackParser } from '@sentry/types';
|
6 | import type { BrowserOptions } from './client';
|
7 | import * as clientSdk from './client';
|
8 | import type { EdgeOptions } from './edge';
|
9 | import type { NodeOptions } from './server';
|
10 |
|
11 | export declare function init(options: Options | BrowserOptions | NodeOptions | EdgeOptions): void;
|
12 | export declare const Integrations: {
|
13 | FunctionToString: typeof clientSdk.FunctionToString;
|
14 | InboundFilters: typeof clientSdk.InboundFilters;
|
15 | Console: typeof import("@sentry/node/build/types/integrations").Console;
|
16 | Http: typeof import("@sentry/node/build/types/integrations").Http;
|
17 | OnUncaughtException: typeof import("@sentry/node/build/types/integrations").OnUncaughtException;
|
18 | OnUnhandledRejection: typeof import("@sentry/node/build/types/integrations").OnUnhandledRejection;
|
19 | LinkedErrors: typeof import("@sentry/node/build/types/integrations").LinkedErrors;
|
20 | Modules: typeof import("@sentry/node/build/types/integrations").Modules;
|
21 | ContextLines: typeof import("@sentry/node/build/types/integrations").ContextLines;
|
22 | Context: typeof import("@sentry/node/build/types/integrations").Context;
|
23 | RequestData: typeof import("@sentry/node/build/types/integrations").RequestData;
|
24 | LocalVariables: typeof import("@sentry/node/build/types/integrations").LocalVariables;
|
25 | GlobalHandlers: typeof clientSdk.GlobalHandlers;
|
26 | TryCatch: typeof clientSdk.TryCatch;
|
27 | Breadcrumbs: typeof clientSdk.Breadcrumbs;
|
28 | HttpContext: typeof clientSdk.HttpContext;
|
29 | Dedupe: typeof clientSdk.Dedupe;
|
30 | };
|
31 | export declare const defaultIntegrations: Integration[];
|
32 | export declare const defaultStackParser: StackParser;
|
33 | export declare function close(timeout?: number | undefined): PromiseLike<boolean>;
|
34 | export declare function flush(timeout?: number | undefined): PromiseLike<boolean>;
|
35 | export declare function lastEventId(): string | undefined;
|
36 | export declare function getSentryRelease(fallback?: string): string | undefined;
|
37 | export declare const ErrorBoundary: typeof clientSdk.ErrorBoundary;
|
38 | export declare const showReportDialog: typeof clientSdk.showReportDialog;
|
39 | export declare const withErrorBoundary: typeof clientSdk.withErrorBoundary;
|
40 |
|
41 |
|
42 |
|
43 | export declare function withSentryAPI<APIHandler extends (...args: any[]) => any>(handler: APIHandler, parameterizedRoute: string): (...args: Parameters<APIHandler>) => ReturnType<APIHandler> extends Promise<unknown> ? ReturnType<APIHandler> : Promise<ReturnType<APIHandler>>;
|
44 |
|
45 |
|
46 |
|
47 |
|
48 |
|
49 |
|
50 |
|
51 | export declare function wrapApiHandlerWithSentry<APIHandler extends (...args: any[]) => any>(handler: APIHandler, parameterizedRoute: string): (...args: Parameters<APIHandler>) => ReturnType<APIHandler> extends Promise<unknown> ? ReturnType<APIHandler> : Promise<ReturnType<APIHandler>>;
|
52 |
|
53 |
|
54 |
|
55 |
|
56 |
|
57 |
|
58 | export declare function wrapGetInitialPropsWithSentry<F extends (...args: any[]) => any>(getInitialProps: F): (...args: Parameters<F>) => ReturnType<F> extends Promise<unknown> ? ReturnType<F> : Promise<ReturnType<F>>;
|
59 |
|
60 |
|
61 |
|
62 | export declare function withSentryServerSideGetInitialProps<F extends (...args: any[]) => any>(getInitialProps: F): (...args: Parameters<F>) => ReturnType<F> extends Promise<unknown> ? ReturnType<F> : Promise<ReturnType<F>>;
|
63 |
|
64 |
|
65 |
|
66 |
|
67 |
|
68 |
|
69 | export declare function wrapAppGetInitialPropsWithSentry<F extends (...args: any[]) => any>(getInitialProps: F): (...args: Parameters<F>) => ReturnType<F> extends Promise<unknown> ? ReturnType<F> : Promise<ReturnType<F>>;
|
70 |
|
71 |
|
72 |
|
73 | export declare function withSentryServerSideAppGetInitialProps<F extends (...args: any[]) => any>(getInitialProps: F): (...args: Parameters<F>) => ReturnType<F> extends Promise<unknown> ? ReturnType<F> : Promise<ReturnType<F>>;
|
74 |
|
75 |
|
76 |
|
77 |
|
78 |
|
79 |
|
80 | export declare function wrapDocumentGetInitialPropsWithSentry<F extends (...args: any[]) => any>(getInitialProps: F): (...args: Parameters<F>) => ReturnType<F> extends Promise<unknown> ? ReturnType<F> : Promise<ReturnType<F>>;
|
81 |
|
82 |
|
83 |
|
84 | export declare function withSentryServerSideDocumentGetInitialProps<F extends (...args: any[]) => any>(getInitialProps: F): (...args: Parameters<F>) => ReturnType<F> extends Promise<unknown> ? ReturnType<F> : Promise<ReturnType<F>>;
|
85 |
|
86 |
|
87 |
|
88 |
|
89 |
|
90 |
|
91 | export declare function wrapErrorGetInitialPropsWithSentry<F extends (...args: any[]) => any>(getInitialProps: F): (...args: Parameters<F>) => ReturnType<F> extends Promise<unknown> ? ReturnType<F> : Promise<ReturnType<F>>;
|
92 |
|
93 |
|
94 |
|
95 | export declare function withSentryServerSideErrorGetInitialProps<F extends (...args: any[]) => any>(getInitialProps: F): (...args: Parameters<F>) => ReturnType<F> extends Promise<unknown> ? ReturnType<F> : Promise<ReturnType<F>>;
|
96 |
|
97 |
|
98 |
|
99 | export declare function wrapAppDirComponentWithSentry<F extends (...args: any[]) => any>(WrappingTarget: F): F;
|
100 |
|
\ | No newline at end of file |