export declare const ACTIVATION_CODE_ENV = "FANTASTIC_ACTIVATION_CODE"; export declare class MissingActivationCode extends Error { constructor(); } export interface CodeSources { /** ما مُرِّر في ‎--code‎، إن مُرِّر. */ flag?: string; /** هل يوجد إنسانٌ يجيب؟ يُمرَّر ليكون القرار قابلًا للاختبار بلا طرفية حقيقية. */ interactive: boolean; } /** * AR: يتحقّق من شكل الكود قبل إرساله. **الغاية رسالةٌ أوضح لا أمانٌ إضافيّ**: المركز هو من يقرّر * صحّة الكود، لكن نصًّا فارغًا أو حرفًا واحدًا لا يستحقّ نداءً شبكيًّا ولا ردًّا يقول «غير * صحيح» بعد ثانيتين من الانتظار. * EN: Checks the code's shape before sending it. **The aim is a clearer message, not extra * security**: the centre decides whether a code is valid, but an empty string or a single * character deserves neither a network call nor a "not valid" answer two seconds later. */ export declare function looksLikeCode(value: string): boolean; export declare function readActivationCode(sources: CodeSources): Promise; //# sourceMappingURL=code.d.ts.map