import type { UpdatePhase } from "../updating/progress-file.js"; /** ما يُكتب لكل مرحلة. **الأسماء وحدها هنا** — المراحل نفسها يعرّفها ملفّ التقدّم. */ export declare const PHASE_LABEL: Record; export interface UpdateRunDrawer { /** يُمرَّر إلى ‎runUpdate‎ كما هو. */ onBytes: (received: number, total: number, resumed: boolean) => void; /** يُمرَّر إلى ‎runUpdate‎ كما هو. */ onProgress: (phase: UpdatePhase, percent: number, within: number) => void; /** يُنادى بعد عودة ‎runUpdate‎ مهما كانت نتيجته: يغلق الشريط ويعيد المؤشّر. */ finish: () => void; } /** * AR: يبني الراسم. **الشريط يُغلَق في ‎finish‎ لا عند «‎done‎» وحدها**: فشلٌ في منتصف التنزيل * يترك المؤشّر مخفيًّا إلى أن يُغلَق الشريط، والمُنادي هو من يعرف أن الجسم عاد. * EN: Builds the drawer. **The bar is closed in `finish`, not on "done" alone**: a failure halfway * through the download leaves the cursor hidden until the bar is closed, and the caller is what * knows the body has returned. */ export declare function updateRunDrawer(log: (line: string) => void): UpdateRunDrawer; //# sourceMappingURL=update-run.render.d.ts.map