/** * Frame represents a stack frame. */ export interface Frame { function: string | null; file: string; line: number; column: number; } /** * getStackTrace returns the current stack trace * with frames from the internals of the javascript runtime removed. */ export declare function getStackTrace(drop?: number): Frame[]; /** * extractFrames extracts the frames from a stack trace string generated by Error.stack */ export declare function extractFrames(stack?: string): Frame[] | undefined; /** * isCommonFrame returns true if the frame is a common frame that should be ignored. * as it is outside the users code base (such as it comes from the node runtime). */ export declare function isCommonFrame(stack: Frame): boolean; /** * Typeguard for a stack trace */ export declare function isStackFrames(stack: unknown): stack is Frame[];