import { AgreementCode } from '../../constants/lookups'; import { AccountWithExtraInfo, Agreement, AgreementEntry, Settings, User, UserWithExtraInfo } from '../../types'; export interface IUserApi { getUser(userId: number): Promise; getAccounts(userId: number): Promise; setPassword(currentPassword: string, newPassword: string): Promise<{ success: boolean; }>; resetPassword(username: string): Promise<{ success: boolean; }>; getUserAgreements(): Promise; signUserAgreement(code: AgreementCode, entries: AgreementEntry[]): Promise<{ success: boolean; }>; getUserInfo(): Promise; getUserSettings(): Promise; setUserSettings(data: Settings): Promise; deleteUserSettings(keys: string[]): Promise; }