export function Errcode(message: any, errcode?: number): void;
export class Errcode {
    constructor(message: any, errcode?: number);
    name: string;
    message: any;
    errcode: number;
    stack: string | undefined;
    toJSON: () => {
        errcode: number;
        msg: any;
    };
}
export namespace EC {
    const ERR_SYSTEM_ERROR: number;
    const ERR_OK: number;
    const ERR_UNAUTH: number;
    const ERR_UNKNOWN: number;
    const ERR_BUSY: number;
    const ERR_PARAM_ERROR: number;
    const ERR_NO_SUCH_API: number;
    const ERR_3RD_API_FAIL: number;
    const ERR_NO_SUCH_ENTITY: number;
    const ERR_ALREADY_EXIST: number;
    const ERR_DB_ENTITY_DAMAGE: number;
    const ERR_SMS_FAIL: number;
    const ERR_SMS_LIMIT_CONTROL: number;
    const ERR_SMS_DAY_LIMIT_CONTROL: number;
    const ERR_SMS_MONTH_LIMIT_CONTROL: number;
    const ERR_AUTH_NOT_REGIST_PHONE: number;
    const ERR_AUTH_WRONG_PASSWORD: number;
    const ERR_AUTH_SMSCODE_NONE: number;
    const ERR_AUTH_SMSCODE_MISMATCH: number;
    const ERR_AUTH_USER_MISMATCH: number;
    const ERR_AUTH_WXSTATE_NONE: number;
    const ERR_AUTH_WXSTATE_EXPIRE: number;
    const ERR_AUTH_NO_SUCH_USERNAME: number;
    const ERR_CTWING_PAYLOAD_PARSE_FAIL: number;
    const ERR_CTWING_NOT_ALLOW_X_PRODUCT: number;
    const ERR_PULSAR_NETWORK_FAIL: number;
    const ERR_PULSAR_OP_FAIL: number;
    const ERR_PULSAR_OP_CONFLICT: number;
    const ERR_IOT_NOT_ALLOW_X_PRODUCT: number;
}
export const EM: {
    [x: number]: string;
};
export default Errcode;
