1 | import { Event, EventProcessor, Integration, StackFrame } from '@sentry/types';
|
2 |
|
3 |
|
4 |
|
5 |
|
6 | export declare function resetFileContentCache(): void;
|
7 | interface ContextLinesOptions {
|
8 | |
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 | frameContextLines?: number;
|
15 | }
|
16 |
|
17 | export declare class ContextLines implements Integration {
|
18 | private readonly _options;
|
19 | |
20 |
|
21 |
|
22 | static id: string;
|
23 | |
24 |
|
25 |
|
26 | name: string;
|
27 | constructor(_options?: ContextLinesOptions);
|
28 | /** Get's the number of context lines to add */
|
29 | private get _contextLines();
|
30 | /**
|
31 | * @inheritDoc
|
32 | */
|
33 | setupOnce(addGlobalEventProcessor: (callback: EventProcessor) => void): void;
|
34 | /** Processes an event and adds context lines */
|
35 | addSourceContext(event: Event): Promise<Event>;
|
36 | /** Adds context lines to frames */
|
37 | addSourceContextToFrames(frames: StackFrame[]): Promise<void>;
|
38 | }
|
39 | export {};
|
40 |
|
\ | No newline at end of file |