UNPKG

posthog-node

Version:
16 lines (15 loc) 983 B
import { StackFrame, StackLineParser, StackLineParserFn, StackParser } from './types'; type GetModuleFn = (filename: string | undefined) => string | undefined; /** Node Stack line parser */ export declare function node(getModule?: GetModuleFn): StackLineParserFn; /** * Does this filename look like it's part of the app code? */ export declare function filenameIsInApp(filename: string, isNative?: boolean): boolean; export declare function nodeStackLineParser(getModule?: GetModuleFn): StackLineParser; export declare const defaultStackParser: StackParser; /** Creates a function that gets the module name from a filename */ export declare function createGetModuleFromFilename(basePath?: string, isWindows?: boolean): (filename: string | undefined) => string | undefined; export declare function createStackParser(...parsers: StackLineParser[]): StackParser; export declare function reverseAndStripFrames(stack: ReadonlyArray<StackFrame>): StackFrame[]; export {};