import { type PlatformSpec } from "./platform.js"; /** * AR: شيمة المُشرِف بعد التثبيت، في ‎bin\‎ (٠٢٦). * * **كانت هذه شيمة الأمر ‎fantastic‎ للفنّي، وصارت شيمة المُشرِف للآلة.** الفنّي يكتب * ‎fantastic‎ فيصل إلى الحزمة العالمية المثبَّتة بـ‎npm‎؛ أمّا هذا الملفّ فمُناديه واحدٌ لا * ثانيَ له: مهمّة الإقلاع في جدولة ويندوز. * * **ولماذا شيمةٌ أصلًا بدل أن تنادي المهمّةُ ‎node.exe‎ مباشرةً؟** لأن الشيمة تحسب مسار زمن * التشغيل من موقعها هي، فينتقل التثبيت مع ‎--root D:\...‎ بلا أن تُعاد كتابة المهمّة. ولأن * ‎.cmd‎ تعمل تحت سياسة ويندوز الافتراضية ‎Restricted‎ التي تمنع ‎.ps1‎ (القرار D-018-03). * * ولا تُمرَّر وسائط: المُشرِف لا يقبل شيئًا، ومهمّةٌ تمرّر ‎watch‎ إلى ملفٍّ لا يقرأ الوسائط * كانت ستُخفي خطأً يومًا. * EN: The supervisor's shim after installation, in `bin\` (026). * * **This used to be the technician's `fantastic` shim; it is now the machine's supervisor * shim.** The technician types `fantastic` and reaches the global package installed with npm; * this file has exactly one caller: the Windows scheduled boot task. * * **Why a shim at all, rather than the task calling `node.exe` directly?** Because the shim * computes the runtime's path from its own location, so an installation moved with * `--root D:\...` travels without the task being rewritten. And because `.cmd` runs under * Windows' default `Restricted` policy, which blocks `.ps1` (decision D-018-03). * * No arguments are forwarded: the supervisor accepts none, and a task passing `watch` to a file * that ignores arguments would have hidden a mistake one day. */ export declare function commandShimContent(spec?: PlatformSpec): string; /** * AR: شيمة المُحدِّث. **تمرّر وسائطها** خلافًا لشيمة المُشرِف: المُحدِّث يقبل ‎--product‎ و‎--code‎، * ومن ينادي بلا وسائط يحصل على السلوك الافتراضي — وهو ما تفعله اللوحة. * EN: The updater's shim. **It forwards its arguments**, unlike the supervisor's: the updater accepts * `--product` and `--code`, and calling it with none gives the default behaviour — which is what * the dashboard does. */ export declare function updaterShimContent(spec?: PlatformSpec): string; /** * AR: شيمة الصيانة. تمرّر وسائطها كشيمة المُحدِّث: المدخل يقرأ ‎backup‎ و‎restore --archive‎ * و‎reset --backup-first‎، ولا معنى لنداءٍ بلا وضع. * EN: The maintenance shim. It forwards its arguments like the updater's: the entry reads `backup`, * `restore --archive` and `reset --backup-first`, and a call with no mode means nothing. */ export declare function maintenanceShimContent(spec?: PlatformSpec): string; /** يكتب شيمة المُشرِف في ‎bin\‎ أثناء التثبيت. */ export declare function writeCommandShim(root: string, spec?: PlatformSpec): string; /** يكتب شيمة المُحدِّث بجوارها. تُكتب في التثبيت وفي كل تحديث، فلا تفوت جهازًا رُكِّب قبل وجودها. */ export declare function writeUpdaterShim(root: string, spec?: PlatformSpec): string; /** * AR: يكتب شيمة الصيانة بجوارهما. * * **وتُكتب في كل تحديث لا في التثبيت وحده، وهذا شرطُ عملها أصلًا.** كل جهازٍ عاملٍ اليوم * رُكِّب قبل وجود هذه الشيمة، وطريقه الوحيد إليها هو التحديث. فلو كُتبت عند التثبيت فقط لظلّ * زرُّ الاستعادة في لوحة **كل جهازٍ مُحدَّث** يُطلق ملفًّا لا وجود له — بلا خطأٍ يظهر في بناء * ولا في اختبار. * EN: Writes the maintenance shim beside them. * * **And it is written on every update, not at install alone, which is the condition of it working * at all.** Every appliance running today was installed before this shim existed, and its only * road to it is an update. Written at install only, the restore button on **every updated * machine** would launch a file that is not there — with no error surfacing in a build or a test. */ export declare function writeMaintenanceShim(root: string, spec?: PlatformSpec): string; //# sourceMappingURL=shims.d.ts.map