import DateUtil from '../util/DateUtil';
import { func } from 'prop-types';

declare namespace CurrentUser {
    function addFunction(pFuncId: string):void;
    function hasFunction(pFuncId: string): boolean;
    function clearFunction(): void;
    function initFunctionMap(functionMap:Array<string>): void;

    function getProperty(propertyName: string): any;
    function setProperty(propertyName:string, propertyValue: any): void;
    function removeProperty(propertyName:string): void;
    function containsProperty(propertyName: string): boolean;
    function clearProperty():void;

    function getUserName(): string;
    function getUserId(): string;

    function getLogonTime(): Date;

    function getAppRuntimeInstitution():string
}

export default CurrentUser;
