import type { UnidyClient } from "../api"; import { RegistrationHelpers } from "./registration-helpers"; export declare class Registration { private static instance; readonly helpers: RegistrationHelpers; private constructor(); static Errors: { readonly email: { readonly ALREADY_REGISTERED: "email_already_registered"; readonly REQUIRED: "email_required"; }; readonly registration: { readonly NOT_FOUND: "registration_not_found"; readonly EXPIRED: "registration_expired"; readonly FLOW_ALREADY_EXISTS: "registration_flow_already_exists"; readonly CANNOT_FINALIZE: "cannot_finalize"; readonly AUTH_METHOD_REQUIRED: "auth_method_required"; }; readonly verification: { readonly CODE_RECENTLY_SENT: "verification_code_recently_sent"; readonly INVALID_CODE: "invalid_code"; readonly CODE_EXPIRED: "code_expired"; }; }; static getInstance(): Promise; static initialize(client: UnidyClient): Registration; static isInitialized(): boolean; /** * Check if a registration flow is in progress. */ isFlowInProgress(): boolean; /** * Get the current step name. */ getCurrentStep(): string; /** * Get the current step index. */ getCurrentStepIndex(): number; /** * Check if the email is verified. */ isEmailVerified(): boolean; /** * Check if the registration can be finalized. */ canFinalize(): boolean; /** * Reset the registration flow. */ reset(): void; }