/// <reference types="promise.prototype.finally" />
import { Storage } from '@ionic/storage';
export declare class CoreoUser {
    private storage;
    id: number;
    email: string;
    role: string;
    displayName: string;
    imageUrl: string;
    username: string;
    usernameConfirmed: boolean;
    isLoggedIn: boolean;
    constructor(storage: Storage);
    setProfile(data: any): void;
    setUsername(username: string): void;
    load(): Promise<CoreoUser>;
    save(): Promise<void>;
    clear(): void;
    toJSON(): {} & {
        id: number;
        email: string;
        displayName: string;
        role: string;
        imageUrl: string;
        username: string;
        usernameConfirmed: boolean;
    };
}
export default CoreoUser;
