import { latestPublished } from "./self.js"; export declare const SELF_UPDATED_ENV = "FANTASTIC_SELF_UPDATED"; export interface SelfUpdateReporter { info(line: string): void; } export interface SelfUpdateDeps { latest: typeof latestPublished; /** هل npm متاحٌ لهذا الحساب؟ حساب SYSTEM عند الإقلاع على ويندوز كثيرًا ما يخلو منه. */ hasNpm(): Promise; /** يثبّت النسخة من السجلّ؛ ‎true‎ عند النجاح. لا يرمي. */ install(version: string): Promise; /** يعيد تنفيذ الأمر بالأداة المثبَّتة الآن ويعيد كود خروجه. */ rerun(argv: readonly string[]): Promise; } /** * AR: يحدّث الأداة العامّة إن وُجد أحدث، **بلا إعادة تنفيذ**. للمشرِف ولنافذة الصيانة. لا يرمي. * EN: Updates the global CLI when a newer one exists, **without a re-run**. For the supervisor and the * maintenance window. Never throws. */ export declare function updateGlobalCli(reporter: SelfUpdateReporter, deps?: SelfUpdateDeps): Promise; /** * AR: يحدّث الأداة ثم يعيد تنفيذ ‎argv‎ بالجديدة ويعيد كود خروجها؛ أو ‎null‎ إن وجب المتابعة في هذه العمليّة * (لا أحدث، أو أُعيد التنفيذ سلفًا، أو فشل التثبيت). * EN: Updates the CLI then re-runs `argv` with the new one and returns its exit code; or `null` when this * process should carry on (nothing newer, already re-run, or the install failed). */ export declare function selfUpdateAndReexec(argv: readonly string[], reporter: SelfUpdateReporter, deps?: SelfUpdateDeps): Promise; //# sourceMappingURL=self-reexec.d.ts.map