import type { BundleManifest } from "../contracts/core.js"; /** * AR: يعيد كتابة الصفّ الخاص بمكوّن. * * **تُحسَب البصمة من المجلد لا من الزِب.** ‎sha256‎ في هذا الملفّ **بصمةُ شجرة** يحسبها * ‎hashDirectory‎ (اسم كل ملفّ ومحتواه بترتيب مستقرّ)، وهي ما يكشف به ‎doctor‎ تلفَ * التثبيت لاحقًا. كتابةُ بصمة الزِب مكانها تبدو صحيحة وتُبطل الكشف صامتةً: كل فحصٍ بعدها * يقارن شجرةً بأرشيفٍ فيقول «تالف» عن تثبيتٍ سليم. * EN: Rewrites one component's row. * * **The digest is computed from the directory, not from the zip.** `sha256` in this file is a * **tree hash** produced by `hashDirectory` (every file's name and contents in a stable order), * and it is what lets `doctor` detect a damaged installation later. Writing the zip's digest * there looks right and silently disables the detection: every check afterwards compares a tree * against an archive and calls a sound installation corrupt. */ export declare function recordInstalledComponent(root: string, manifest: BundleManifest, component: string, version: string): BundleManifest; /** * AR: الإصدار المركَّب من مكوّن، كما يقوله ‎versions.json‎. * * **يُقرَأ من الملفّ لا من إصدار العمليّة الجارية.** المكوّنات أربعة والـ CLI واحد، ولا * يعرف إصدار النواة إلّا من هنا — و`APP_VERSION` عنده هو إصداره هو. * EN: A component's installed version, as `versions.json` states it. * * **Read from the file, not from the running process's version.** There are four components and * one CLI, which knows the core's version only from here — its own `APP_VERSION` is its own. */ export declare function installedVersion(manifest: BundleManifest, component: string): string | undefined; /** هل هذا الجذر تثبيتٌ فعليّ (فيه ‎updates/versions.json‎)؟ */ export declare function isInstalledRoot(root: string): boolean; //# sourceMappingURL=versions.d.ts.map