UNPKG

apphouse

Version:

Component library for React that uses observable state management and theme-able components.

30 lines (29 loc) 1.16 kB
export declare const GET_FIREBASE_STORAGE_IMAGE_PROFILE_PATH: (email: string) => string; export declare const GET_FIREBASE_STORAGE_RESIZED_IMAGE_PROFILE_PATH: (email: string) => string; export type MembershipOptionsType = 'free' | 'premium'; export interface UserProfileType { displayName?: string; email?: string; membership?: MembershipOptionsType; supportModeEnabled?: boolean; profileImageUrl?: string; createdAt?: number; } export declare class UserProfile { displayName: string; email: string; membership: MembershipOptionsType; supportModeEnabled: boolean; profileImageUrl?: string; createdAt?: number; constructor(userProfile: UserProfileType); setDisplayName: (value: string) => void; setCreatedAt: (value: number) => void; setEmail: (value: string) => void; setMembership: (value: MembershipOptionsType) => void; setSupportModeEnabled: (value: boolean) => void; setProfileImage: (value?: string) => void; loadProfileImage: () => Promise<void>; getProfileImageUrl: (userId: string) => Promise<string>; static getProfileImage: (userId: string) => Promise<string>; }