import { MessageInstance } from 'antd/es/message/interface';

declare global {
  interface Window {
    messageApi: MessageInstance;    //全局消息提示api
    WxLogin: any;       //微信登录对象
    _AMapSecurityConfig: { securityJsCode: string };  //高德地图api密钥配置
    AMap: any;
    setUserInfo: Dispatch<SetStateAction<UserInfoResp | null | undefined>>;   //设置userInfo
    setNeedLogin: Dispatch<SetStateAction<Boolean>>;  //需要登录操作
    logout: () => void; //退出登录
  }
}
