UNPKG

@hhgtech/hhg-components

Version:
25 lines (24 loc) 831 B
export declare enum SSOStepTypeType { FIRST = "first", EMAIL = "email", VERIFY_PHONE = "verify_phone", PASSWORD = "password", UPDATE_EMAIL = "update_email", FORGOT_PASSWORD_PHONE = "forgot_password_phone", FORGOT_PASSWORD_SETUP = "forgot_password_setup", OTP = "otp", SETUP_FULL = "setup_full" } export type SSOStepType = { type: SSOStepTypeType; config?: Record<string, any>; }; export type SSOStepsContextType = { currentStepIndex: number; steps: SSOStepType[]; setSteps: (s: SSOStepType[] | ((d: SSOStepType[]) => SSOStepType[])) => void; goNext: () => void; goBack: () => void; addStep: (step: SSOStepType) => void; }; export declare const useSSOSteps: import("zustand").UseBoundStore<import("zustand").StoreApi<SSOStepsContextType>>;