1 | import type { StackFrame } from '@sentry/types';
|
2 | type WatchdogReturn = {
|
3 |
|
4 | poll: () => void;
|
5 |
|
6 | enabled: (state: boolean) => void;
|
7 | };
|
8 | type CreateTimerImpl = () => {
|
9 | getTimeMs: () => number;
|
10 | reset: () => void;
|
11 | };
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 | export declare function watchdogTimer(createTimer: CreateTimerImpl, pollInterval: number, anrThreshold: number, callback: () => void): WatchdogReturn;
|
20 | interface Location {
|
21 | scriptId: string;
|
22 | lineNumber: number;
|
23 | columnNumber?: number;
|
24 | }
|
25 | interface CallFrame {
|
26 | functionName: string;
|
27 | location: Location;
|
28 | url: string;
|
29 | }
|
30 |
|
31 |
|
32 |
|
33 | export declare function callFrameToStackFrame(frame: CallFrame, url: string | undefined, getModuleFromFilename: (filename: string | undefined) => string | undefined): StackFrame;
|
34 | export {};
|
35 |
|
\ | No newline at end of file |