export type BatchSectionStatus = "ok" | "fail" | "cancelled" | "running"; export interface BatchSection { readonly index: number; readonly name: string; readonly ok: boolean; readonly status: BatchSectionStatus; readonly exitCode: number | undefined; readonly body: string; } export declare function parseBatchSections(output: string): BatchSection[]; export interface BatchSectionPresentation { readonly glyph: string; readonly statusLabel: string; readonly name: string; readonly lines: readonly string[]; readonly hiddenAboveCount: number; readonly hasBody: boolean; } export declare function presentBatchSection(section: BatchSection, expanded: boolean): BatchSectionPresentation; export declare function batchSummaryLine(sections: readonly BatchSection[]): string; export declare function isBatchToolName(name: string): boolean; export interface BatchLiveLine { readonly text: string; readonly tone: "info" | "ok" | "fail" | "running"; } export declare function parseBatchLiveProgress(raw: string): { readonly lines: readonly BatchLiveLine[]; readonly summary: string; }; export declare function buildBatchCardsFromSpool(raw: string): BatchSection[]; export declare function formatBatchSectionForPager(section: BatchSection): string; export declare function formatBatchForPager(sections: readonly BatchSection[], raw: string): string; export declare function cleanBatchBodyLines(body: string): string[];