export type AccountDetails = { username: string | null; password: string; initialDeviceDisplayName: string; inhibitLogin: boolean; }; export type RegistrationResponse = RegistrationResponseMoreDataNeeded | RegistrationResponseSuccess; export type RegistrationResponseMoreDataNeeded = { completed?: string[]; flows: RegistrationFlow[]; params: Record; session: string; status: 401; }; export type RegistrationResponseSuccess = { user_id: string; device_id: string; access_token?: string; status: 200; }; export type AuthData = { userId: string; deviceId: string; homeserver: string; accessToken?: string; }; export type RegistrationFlow = { stages: string[]; }; export type AuthenticationData = { type: string; session: string; [key: string]: any; }; export type RegistrationParams = { [key: string]: any; };