import type { ActivationResult, DeviceInfo, HealthSnapshot } from "../contracts/core.js"; import { type Profile } from "../profiles/types.js"; export type InternalResult = { ok: true; data: T; } | { ok: false; /** سبب الفشل للعرض. */ reason: string; /** صحيح حين تعذّر الوصول أصلًا — يميّز «النواة متوقّفة» عن «ردّت بخطأ». */ unreachable: boolean; /** * AR: غلاف الخطأ من النواة حين ردّت به. **بلا هذا الحقل كان الفنّي يقرأ «the core * responded with status 400» على كودٍ أخطأ في حرف** — رسالةٌ عن بروتوكول HTTP * مكان رسالةٍ عربية تقول له بالضبط ما يصحّحه. النواة تكتبها جاهزةً للعرض، وكانت * تُرمى هنا. * EN: The core's error envelope when it answered with one. **Without this field the * technician read "the core responded with status 400" for a mistyped character** — an * HTTP-protocol message where an Arabic one telling him exactly what to fix belonged. * The core writes it display-ready, and it was being discarded here. */ error?: { code: string; message: string; details?: Record; }; }; /** اللقطة الغنيّة من ‎/internal/health‎. الحقول الاختيارية الغائبة تُرسَم شرطةً لا صفرًا. */ export declare function fetchInternalHealth(profile: Profile, timeoutMs?: number): Promise>; /** قراءة عامة من السطح الداخلي. */ export declare function getInternal(profile: Profile, path: string, timeoutMs?: number): Promise>; /** * كتابة على السطح الداخلي. المهلة أطول بكثير من القراءة: ‎VACUUM INTO‎ على قاعدة كبيرة يستغرق * ثوانيَ حقيقية، وقطعُه في منتصفه يترك أرشيفًا ناقصًا — وهو بالضبط ما بُني هذا المسار لتفاديه. */ export declare function postInternal(profile: Profile, path: string, body: unknown, timeoutMs?: number): Promise>; /** حالة الرخصة على هذا الجهاز، كما تصفها النواة لشاشة التفعيل حرفًا بحرف. */ export declare function fetchLicenseStatus(profile: Profile, timeoutMs?: number): Promise>; /** * AR: يفعّل هذا الجهاز. المهلة **دقيقة كاملة** لا الافتراضيةَ القصيرة: النداء يعبر النواةَ إلى * المركز عبر الإنترنت، والنواة تعيد المحاولة ثلاثًا بتباعد أسّي حين لا يجيب. قطعُه بعد * ثانيتين ونصف كان يقول «النواة لا تجيب» بينما هي تنتظر ردًّا سيصل. * EN: Activates this machine. The timeout is **a full minute** rather than the short default: the * call travels through the core to the centre over the internet, and the core retries three * times with exponential backoff when there is no answer. Cutting it off after 2.5 seconds * reported "the core is not answering" while it was waiting for a reply that would arrive. */ export declare function activateLicense(profile: Profile, code: string): Promise>; /** يوقف تفعيل هذا الجهاز ويحرّر مقعده في المركز. يُنادى من ‎uninstall‎ قبل حذف أي ملف. */ export declare function deactivateLicense(profile: Profile): Promise>; //# sourceMappingURL=internal.client.d.ts.map