/** عَلَم داخليّ تحمله النسخة المرفوعة: لا تطلب الرفع ثانيةً، وتُبقي نافذتها مفتوحة حتى يقرأها صاحبها. */ export declare const ELEVATED_FLAG = "--elevated"; export type ElevationOutcome = { kind: "launched"; } | { kind: "declined"; } | { kind: "unavailable"; }; /** * AR: يقتبس وسيطاً لسطر أوامر ويندوز بقواعد ‎CommandLineToArgvW‎. **المسار المنتهي بشرطةٍ مائلة هو الفخّ**: * ‎"C:\Fantastic\"‎ تقرأ الشرطة الأخيرة هروباً لعلامة الإغلاق فيُبتلَع الوسيط التالي — فتُضاعَف الشرطات * التي تسبق علامة تنصيص. * EN: Quotes one argument for a Windows command line by `CommandLineToArgvW` rules. **A path ending in a * backslash is the trap**: in `"C:\Fantastic\"` the last backslash escapes the closing quote and swallows * the next argument — so backslashes that precede a quote are doubled. */ export declare function quoteWindowsArg(arg: string): string; /** * AR: نصّ PowerShell الذي يُطلق النسخة المرفوعة. **لا ينتظرها** (2026-10-10): النافذة المرفوعة تُمسَك حتى Enter، * فكانت النافذة الأولى تبدو عالقةً بلا سطرٍ جديد والنظام يعمل فعلاً خلفها. الرفض يُعرَف فوراً بلا انتظار: * ‎Start-Process‎ يرمي حين يُضغط «لا». نقيّ — يختبره الاختبار بلا نافذة. * EN: The PowerShell that launches the elevated copy. **It does not wait for it** (2026-10-10): the elevated window * is held until Enter, so the first window looked stuck with no new line while the system was already running * behind it. A refusal is still known at once: `Start-Process` throws when "No" is clicked. */ export declare function elevationScript(executable: string, args: string[]): string; /** * AR: يعيد تشغيل الأمر نفسه مرفوعاً في نافذةٍ جديدة — ويندوز لا يرفع عمليةً داخل طرفيّةٍ غير مرفوعة — وتحمل * ‎--elevated‎ لتبقى مفتوحة حتى يقرأها صاحبها. المُنادي لا ينتظرها. * EN: Re-runs the same command elevated in a new window — Windows does not elevate a process inside an * unelevated terminal — carrying `--elevated` so it stays open until read. The caller does not wait for it. */ export declare function relaunchElevated(commandArgs: string[]): Promise; //# sourceMappingURL=elevate.d.ts.map