import type { BusEvent } from '../orgrt/types.js'; export type RunEndKind = 'complete' | 'stopped' | 'error' | 'budget'; export interface RunEndInput { /** runtime.json's final record (status / closedBy / error). */ final: { status?: string; closedBy?: string; error?: string; }; /** The run's bus events. */ events: BusEvent[]; /** `org stop` wrote the stopfile. */ stoppedManually?: boolean; /** SIGINT/SIGTERM ended the wait. */ signal?: boolean; } export declare function classifyRunEnd(input: RunEndInput): { kind: RunEndKind; detail: string; }; export declare function runEndLine(input: RunEndInput & { name: string; run: string; wallMs: number; }): string; //# sourceMappingURL=org-run-end.d.ts.map