/** مجلّدات لا يقرؤها إلا SYSTEM والمدراء. */ export declare const PRIVATE_DIRS: readonly ["data", "logs", "run"]; /** أوامر ‎icacls‎ بالترتيب، لشجرة تثبيت. نقيّة — يختبرها الاختبار بلا أن يلمس قرصاً. */ export declare function windowsHardeningCommands(root: string, existing?: (path: string) => boolean): string[][]; export declare function linuxHardeningCommands(root: string, existing?: (path: string) => boolean): string[][]; export type HardeningOutcome = { ok: true; applied: number; } | { ok: false; reason: string; }; /** يشدّد الشجرة. فشلٌ يُعاد سبباً لا يُرمى: التثبيت نجح، والمطلوب أن يُقال للفنّي إن الحماية لم تكتمل. */ export declare function hardenInstallTree(root: string, platform?: NodeJS.Platform): Promise; /** * AR: يقرأ سطور ‎SID|Rights|Type‎ (مخرَج PowerShell أدناه) ويعيد ما يمنح غير المدير كتابة. نقيّة. * EN: Reads `SID|Rights|Type` lines and returns the entries granting a non-administrator write access. Pure. */ export declare function untrustedWriters(lines: string): string[]; /** هل يكتب غير المدير في هذا المجلد؟ ويندوز وحده؛ \null\ حين تعذّر السؤال. */ export declare function writableByNonAdmins(path: string): Promise; /** يُرى في رسالة الرفض وفي الاختبار. */ export declare const ADMIN_REQUIRED_REASON: string; /** * AR: رسالة ‎start‎ حين رُفضت نافذة UAC والشجرة مقفولة. **لصاحب الجهاز لا للفنّي**: لا «طرفيّة» ولا «مسؤول»، * بل ما يفعله — يعيد الأمر ويضغط «نعم». * EN: `start`'s message when the UAC prompt was declined and the tree is locked. **For the owner, not the * technician**: no "terminal", no "administrator" — just what to do: run it again and click "Yes". */ export declare const STARTING_NEEDS_PERMISSION = "The system needs Windows' permission to start. Run the same command again and click \"Yes\" when Windows asks."; /** رسالة ‎update‎ حين رُفضت نافذة UAC — لصاحب الجهاز كسابقتها. */ export declare const UPDATING_NEEDS_PERMISSION = "Installing an update needs Windows' permission. Run the same command again and click \"Yes\" when Windows asks. Nothing was changed."; /** * AR: **من يعدّل الشجرة يجب أن يكون مديراً، ويُسأل قبل أن يلمسها** (2026-10-09). تحديثٌ شُغّل من طرفيّةٍ عاديّة * ركّب الملفات ثم قفل الشجرة على نفسه في منتصفه: النواة التي أقلعها بحسابه لم تستطع إنشاء ‎data\internal.token‎ * فسقطت، ولم يستطع حذف مجلد التجهيز. المشرف يعمل كـSYSTEM فيمرّ دائماً؛ الرفض يخصّ الفنّي في طرفيّةٍ غير مرفوعة، * ويقع قبل التنزيل وقبل إيقاف أيّ خدمة. ولينكس لا يُسأل: ‎chmod go-w‎ لا يسحب الكتابة من المالك نفسه. * EN: **Whoever changes the tree must be an administrator, and is asked before touching it** (2026-10-09). An * update run from an unelevated terminal installed the files, then locked the tree against itself half way: * the core it booted under that account could not create data\internal.token, and the staging folder could * not be removed. The supervisor runs as SYSTEM and always passes; the refusal is for a technician in an * unelevated terminal, before any download or stop. Linux is not asked: `chmod go-w` keeps the owner's write. */ export declare function treeLockRefusal(platform?: NodeJS.Platform, isAdmin?: () => Promise): Promise; /** هل تكتب هذه العملية في المجلد؟ تجربةٌ فعليّة لا سؤالٌ عن الهويّة — يُجيب بصدقٍ على أيّ حساب. */ export declare function canWriteDir(dir: string): boolean; //# sourceMappingURL=acl.d.ts.map