export declare type JSONValue = string | number | boolean | null | JSONValue[] | { [key: string]: JSONValue; }; export interface JSONObject { [k: string]: JSONValue; } export declare type Params = Record; export declare type Form = Record; export interface StatusOKResponse { status: 'OK'; } export interface WrongCredentialsResponse { status: 'WRONG_CREDENTIALS_ERROR'; } export interface EmailPasswordOKResponse extends StatusOKResponse { user: { id: string; email: string; timeJoined: number; }; } export declare type LoginEmailResponse = WrongCredentialsResponse | EmailPasswordOKResponse; export interface PasswordResetTokenResponseOK extends StatusOKResponse { token: string; } export interface UnknownUserIdResponse { status: 'UNKNOWN_USER_ID_ERROR'; } export declare type PasswordResetTokenResponse = PasswordResetTokenResponseOK | UnknownUserIdResponse; export interface PasswordResetOK extends StatusOKResponse { userId: string; } export interface PasswordResetInvalidTokenResponse { status: 'RESET_PASSWORD_INVALID_TOKEN_ERROR'; } export declare type PasswordResetResponse = PasswordResetOK | PasswordResetInvalidTokenResponse; export interface EmailAlreadyExistsError { status: 'EMAIL_ALREADY_EXISTS_ERROR'; } export declare type PasswordChangeResponse = StatusOKResponse | WrongCredentialsResponse | EmailAlreadyExistsError | UnknownUserIdResponse;