export type PostHogExceptionLevel = "fatal" | "error" | "warning" | "info" | "debug"; export interface PostHogStackFrame { platform: "custom"; lang: string; function: string; filename?: string; lineno?: number; colno?: number; in_app: boolean; resolved: boolean; } export interface PostHogExceptionEntry { type: string; value: string; mechanism: { handled: boolean; synthetic: boolean; type?: string; }; stacktrace?: { type: "raw"; frames: PostHogStackFrame[]; }; } export interface PostHogExceptionProperties { $exception_list: PostHogExceptionEntry[]; $exception_level: PostHogExceptionLevel; $exception_fingerprint?: string; [key: string]: unknown; } export interface PostHogExceptionInput { type: string; value: string; stack?: string; handled?: boolean; synthetic?: boolean; mechanismType?: string; level?: PostHogExceptionLevel; fingerprint?: string; lang?: string; } export declare function parseStackFrames(stack: string | undefined, lang?: string): PostHogStackFrame[]; export declare function toPostHogExceptionProperties(input: PostHogExceptionInput): PostHogExceptionProperties; export declare function errorToPostHogExceptionProperties(error: unknown, options?: Omit): PostHogExceptionProperties; export declare function reshapeTrackedExceptionProperties(properties: Record | undefined): Record | undefined;