1 | import type { Event, StackFrame, StackLineParser, StackParser } from '@sentry/types';
|
2 | export declare const UNKNOWN_FUNCTION = "?";
|
3 | /**
|
4 | * Creates a stack parser with the supplied line parsers
|
5 | *
|
6 | * StackFrames are returned in the correct order for Sentry Exception
|
7 | * frames and with Sentry SDK internal frames removed from the top and bottom
|
8 | *
|
9 | */
|
10 | export declare function createStackParser(...parsers: StackLineParser[]): StackParser;
|
11 | /**
|
12 | * Gets a stack parser implementation from Options.stackParser
|
13 | * @see Options
|
14 | *
|
15 | * If options contains an array of line parsers, it is converted into a parser
|
16 | */
|
17 | export declare function stackParserFromStackParserOptions(stackParser: StackParser | StackLineParser[]): StackParser;
|
18 | /**
|
19 | * Removes Sentry frames from the top and bottom of the stack if present and enforces a limit of max number of frames.
|
20 | * Assumes stack input is ordered from top to bottom and returns the reverse representation so call site of the
|
21 | * function that caused the crash is the last frame in the array.
|
22 | * @hidden
|
23 | */
|
24 | export declare function stripSentryFramesAndReverse(stack: ReadonlyArray<StackFrame>): StackFrame[];
|
25 | /**
|
26 | * Safely extract function name from itself
|
27 | */
|
28 | export declare function getFunctionName(fn: unknown): string;
|
29 | /**
|
30 | * Get's stack frames from an event without needing to check for undefined properties.
|
31 | */
|
32 | export declare function getFramesFromEvent(event: Event): StackFrame[] | undefined;
|
33 | //# sourceMappingURL=stacktrace.d.ts.map |
\ | No newline at end of file |