export declare function activationKeyFile(): string; /** * AR: يضيّق صلاحيّات الملفّ على مالكه ومديري الآلة. * * **يفشل بهدوء عمدًا.** الملفّ مكتوبٌ قبل أن يُنادى هذا، وإسقاطُ تثبيتٍ اكتمل لأن ‎icacls‎ * تعثّر يترك العميل بلا منتجٍ أصلًا — وهو أسوأ من ملفٍّ بصلاحيّات المجلد الموروثة، وهو ما كان * عليه الحال قبل هذا التغيير كلّه. فيُعاد الفشل ليُقال في سطرٍ لا ليُوقف عملًا. * EN: Narrows the file's permissions to its owner and the machine's administrators. * * **It fails quietly on purpose.** The file is written before this is called, and dropping a * completed installation because `icacls` stumbled leaves the customer with no product at all — * worse than a file carrying the directory's inherited permissions, which is what it had before * any of this. So the failure is returned to be reported in one line rather than to stop work. */ export declare function restrictToAdministrators(path: string): { ok: boolean; detail: string; }; /** يقرأ الكود المحفوظ، أو ‎null‎ حين لا يوجد. غيابه حالةٌ عاديّة لا عطل. */ export declare function readActivationKey(): string | null; /** * AR: يكتب الكود ثم يضيّق صلاحيّاته. **الترتيب مقصود ولا يُعكَس**: ملفٌّ يُنشأ بصلاحيّات المجلد * ثم تُضيَّق يبقى مقروءًا لأجزاء من الثانية، وملفٌّ لا يُكتب أصلًا لا يبقى شيئًا. والنافذة * مقبولةٌ هنا لأن البديل — إنشاءٌ بصلاحيّات نهائية عبر واجهة النظام — يحتاج وحدةً أصلية. * EN: Writes the code then narrows its permissions. **The order is deliberate and is not reversed**: * a file created with the directory's permissions and then narrowed is readable for fractions of * a second, and a file never written is readable for none. The window is acceptable here because * the alternative — creating it with final permissions through the platform API — needs a native * module. */ export declare function writeActivationKey(code: string): { ok: boolean; detail: string; stored: boolean; }; /** يمحو الكود المحفوظ. يُنادى عند الإزالة: مقعدٌ تُحرَّر رخصته لا يترك اعتمادًا على القرص. */ export declare function forgetActivationKey(): void; export declare function hasActivationKey(): boolean; //# sourceMappingURL=activation-key.d.ts.map