UNPKG

778 BTypeScriptView Raw
1import type { Event, Integration, IntegrationClass, StackFrame } from '@sentry/types';
2type StackFrameIteratee = (frame: StackFrame) => StackFrame;
3interface RewriteFramesOptions {
4 root?: string;
5 prefix?: string;
6 iteratee?: StackFrameIteratee;
7}
8export declare const rewriteFramesIntegration: (options?: RewriteFramesOptions | undefined) => import("@sentry/types").IntegrationFnResult;
9/**
10 * Rewrite event frames paths.
11 * @deprecated Use `rewriteFramesIntegration()` instead.
12 */
13export declare const RewriteFrames: IntegrationClass<Integration & {
14 processEvent: (event: Event) => Event;
15}> & (new (options?: {
16 root?: string;
17 prefix?: string;
18 iteratee?: StackFrameIteratee;
19}) => Integration);
20export {};
21//# sourceMappingURL=rewriteframes.d.ts.map
\No newline at end of file