export interface StackFrame { filename?: string; function?: string; lineno?: number; colno?: number; in_app?: boolean; } export interface Exception { type: string; value: string; stacktrace?: { frames: StackFrame[]; }; mechanism: { type: string; handled: boolean; }; } export interface ErrorEvent { event_id: string; timestamp: number; platform: string; level: 'error' | 'fatal'; release: string; environment: string; exception: { values: Exception[]; }; tags: Record; contexts: Record>; } export interface SdkInfo { name: string; version: string; } /** * The frames of a V8 `err.stack`, outermost first as Sentry expects them. * Lines that are not frames, such as the message, are skipped. */ export declare function parseStack(stack: string): StackFrame[]; /** A Sentry event id: 32 hex characters. */ export declare function eventId(): string; /** * The URL to post envelopes to for a DSN `https://@[/]/`, * with the key in the query string, or `undefined` for a DSN that is not one. */ export declare function envelopeEndpoint(dsn: string): string | undefined; /** An envelope holding just `event`: its headers, the item's header and the event, one JSON document per line. */ export declare function serializeEventEnvelope(event: ErrorEvent, sdk: SdkInfo): string;