/** * Shared helpers for RuntimeGetDumpById / RuntimeAnalyzeDump. * * 1. Key facts from the default dump view. The generic key walker these * handlers used before picked the first `title` / `line` it met, which is * the first entry of the chapter index ("System environment", line 81) * instead of the dump itself. The dump root carries the real facts * (error, exception, terminatedProgram, …) and the termination link * carries the failing object + line. * * 2. Chapter filter for the formatted (ST22 long text) view. A formatted dump * is ~50 KB, most of it basis detail (system environment, kernel calls, * program list, memory, control blocks). Each chapter is a box separated * from the next by a blank line: * * ------------------ * |Short Text | * | text… | * ------------------ * * compactFormattedDump keeps the header block plus the requested chapters * and drops the box borders and the padding inside them. */ export declare const DEVELOPER_CHAPTERS: readonly ["Short Text", "What happened?", "Error analysis", "Chain of Exception Objects", "Information on where terminated", "Source Code Extract", "Active Calls/Events", "User and Transaction"]; export interface DumpFacts { title?: string; runtimeError?: string; exception?: string; program?: string; user?: string; datetime?: string; host?: string; termination?: { uri: string; object?: string; line?: number; }; chapters?: Array<{ title: string; line?: number; }>; } /** Facts from the parsed default view (`dump:dump` root). Empty object otherwise. */ export declare function extractDumpFacts(parsed: unknown): DumpFacts; /** Facts from the header block of the formatted view. */ export declare function extractFormattedHeaderFacts(text: unknown): DumpFacts; export interface FormattedChapter { title: string; body: string[]; } /** * Split a formatted dump into its header lines and titled chapters. * Chapters are separated by blank lines; the title of a chapter is its first * boxed line. The leading block has no boxed line and is the header * (Category / Runtime Errors / Except. / Program / Date and Time). */ export declare function splitFormattedDump(text: string): { header: string[]; chapters: FormattedChapter[]; }; /** * Keep the header plus the requested chapters, without box borders or padding. * `wanted` entries match chapter titles case-insensitively by prefix; the * keyword "developer" expands to DEVELOPER_CHAPTERS. */ export declare function compactFormattedDump(text: string, wanted: string[]): string; //# sourceMappingURL=runtimeDumpFormat.d.ts.map