import { OakUserException, OakException } from "oak-domain/lib/types"; import { EntityDict } from '../oak-app-domain'; import { EntityDict as BaseEntityDict, SelectOpResult } from 'oak-domain/lib/types/Entity'; export declare class OakNotEnoughMoneyException extends OakUserException { constructor(message?: string); } export declare class OakDistinguishUserException extends OakUserException { userId: string; usingPassword: boolean; usingIdCard: boolean; usingWechatUser: boolean; usingEmail: boolean; constructor(userId: string, usingPassword: boolean, usingIdCard: boolean, usingWechatUser: boolean, usingEmail: boolean, message?: string); toString(): string; } export declare class OakChangeLoginWayException extends OakUserException { userId: string; usingIdCard: boolean; usingWechatUser: boolean; usingEmail: boolean; constructor(userId: string, usingIdCard: boolean, usingWechatUser: boolean, usingEmail: boolean, message?: string); toString(): string; } export declare class OakMobileUnsetException extends OakUserException { constructor(message?: string); } export declare class OakUserInfoUncompletedException extends OakUserException { constructor(message?: string); } export declare class OakUserDisabledException extends OakUserException { constructor(message?: string); } export declare class OakTokenExpiredException extends OakUserException { constructor(message?: string); } export declare class OakMpHaveToSubscribeMessage extends Error { rejectedMessageType: string[]; constructor(rejectedMessageType: string[], message?: string); } /** * 前端用户信息还没加载完整 */ export declare class OakUserInfoLoadingException extends OakException { constructor(message?: string); } /** * 前端application信息还没加载完整 */ export declare class OakApplicationLoadingException extends OakException { constructor(message?: string); } export declare class OakUploadException extends OakUserException { constructor(message?: string); } export declare function makeException(data: { name: string; message?: string; opRecords: SelectOpResult; [A: string]: any; }): OakUploadException | OakTokenExpiredException | OakUserDisabledException | OakDistinguishUserException | OakException | OakNotEnoughMoneyException | OakMobileUnsetException | OakUserInfoUncompletedException | undefined;