export declare const LOGON_TASK_NAME = "Fantastic Start"; export interface LogonTaskChange { changed: boolean; detail: string; } /** * AR: شيمة npm العالمية التي تحمل هذه الأداة (‎%AppData%\npm\fantastic.cmd‎) — تبقى في مكانها بعد ‎npm i -g‎ بنسخةٍ أحدث، * فلا تشير المهمّة إلى ملفٍّ أزاله التحديث. وإن لم تُعرف يُكتفى بالاسم على ‎PATH‎، كما يفعل الاختصار. * EN: The global npm shim carrying this CLI (`%AppData%\npm\fantastic.cmd`) — it stays put across `npm i -g` of a newer * version, so the task never points at a file an update removed. When it cannot be found, the name on `PATH` does, * as the shortcut does. */ export declare function cliShimPath(entry?: string | undefined): string; /** * AR: نصّ التسجيل — نقيّ ليُختبَر. **بلا مهلة تشغيل وعلى البطّارية أيضًا**: إعدادات ‎schtasks /Create‎ الافتراضيّة توقف * المهمّة بعد ثلاثة أيام ولا تبدؤها على حاسوبٍ محمول بلا شاحن. ‎IgnoreNew‎: الاختصار ومُشغِّل الدخول معًا لا يُقلعان * نسختين. والنافذة تُغلق بعد إقلاعٍ ناجح، وتبقى عند الفشل ليقرأها أحد. ويُعطى صاحب الحساب حقّ تشغيلها من طرفيّته * العاديّة — وهو ما يجعل ‎start‎ غير المرفوع يُطلقها. * EN: The registration script — pure, so it is tested. **No run-time limit, and on battery too**: `schtasks /Create`'s * defaults stop a task after three days and never start it on an unplugged laptop. `IgnoreNew`: the shortcut and the * sign-in trigger together do not start two copies. The window closes after a sound start and stays on failure for * someone to read. And the account's owner is granted the right to run it from his ordinary terminal — which is what * lets an unelevated `start` launch it. */ export declare function logonTaskScript(shim: string): string; export declare function isLogonTaskInstalled(): Promise; /** يسجّل المهمّة أو يستبدلها. يحتاج مديرًا؛ لا يرمي. */ export declare function registerLogonTask(): Promise; /** * AR: يُطلق المهمّة من طرفيّةٍ عاديّة. ‎true‎ حين قَبِلها ويندوز — فالأمر يكمل في نافذتها مرفوعًا. ‎false‎ حين لا مهمّة * أو لا حقّ تشغيل، فيعود المُنادي إلى نافذة UAC. * EN: Launches the task from an ordinary terminal. `true` when Windows accepted it — the command carries on in its window, * elevated. `false` when there is no task or no right to run it, and the caller falls back to the UAC prompt. */ export declare function runLogonTask(): Promise; export declare function removeLogonTask(): Promise; //# sourceMappingURL=logon-task.d.ts.map