UNPKG

tanebi

Version:

NTQQ Node.js Protocol Implementation

545 lines (540 loc) 149 kB
import * as _tanebijs_protobuf from '@tanebijs/protobuf'; import { ProtoMessage, InferProtoModel, InferProtoModelInput, ScalarType } from '@tanebijs/protobuf'; import * as zod_v4_core_schemas_cjs from 'zod/v4/core/schemas.cjs'; import * as zod from 'zod'; import EventEmitter$1, { EventEmitter } from 'node:events'; import { Socket } from 'node:net'; import TypedEventEmitter from 'typed-emitter'; declare abstract class BotEntity<T> { bot: Bot; data: T; constructor(bot: Bot, data: T); updateBinding(data: T): void; } declare const MessageElement: ProtoMessage<{ readonly text: _tanebijs_protobuf.ProtoSpec<() => { readonly str: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly link: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly attr6Buf: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly attr7Buf: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly buf: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly pbReserve: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; }, true, false>; readonly face: _tanebijs_protobuf.ProtoSpec<() => { readonly index: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, true, false>; readonly old: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly buf: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; }, true, false>; readonly onlineImage: _tanebijs_protobuf.ProtoSpec<() => { readonly guid: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly filePath: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly oldVerSendFile: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; }, true, false>; readonly notOnlineImage: _tanebijs_protobuf.ProtoSpec<() => { readonly filePath: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly fileLen: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly downloadPath: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly oldVerSendFile: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly imgType: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly previewsImage: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly picMd5: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly picHeight: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly picWidth: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly resId: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly flag: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly thumbUrl: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly original: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly bigUrl: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly origUrl: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly bizType: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly result: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly index: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly opFaceBuf: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly oldPicMd5: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BOOL, false, false>; readonly thumbWidth: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly thumbHeight: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly fileId: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly showLen: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly downloadLen: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly x400Url: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly x400Width: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly x400Height: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly pbRes: _tanebijs_protobuf.ProtoSpec<() => { subType: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; field3: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; field4: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; summary: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; field10: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; pbRes: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; url: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; md5Str: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; }, true, false>; }, true, false>; readonly trans: _tanebijs_protobuf.ProtoSpec<() => { readonly elemType: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly elemValue: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; }, true, false>; readonly marketFace: _tanebijs_protobuf.ProtoSpec<() => { readonly summary: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly itemType: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly info: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly faceId: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly tabId: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly subType: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly key: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly width: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly height: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly pbReserve: _tanebijs_protobuf.ProtoSpec<() => { readonly field8: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; }, true, false>; }, true, false>; readonly customFace: _tanebijs_protobuf.ProtoSpec<() => { readonly guid: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly filePath: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly shortcut: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly buffer: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly flag: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly oldData: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly fileId: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly serverIp: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, true, false>; readonly serverPort: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, true, false>; readonly fileType: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly signature: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly useful: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly md5: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly thumbUrl: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly bigUrl: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly origUrl: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly bizType: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly repeatIndex: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly repeatImage: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly imageType: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly index: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly width: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly height: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly source: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly size: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly origin: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly thumbWidth: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, true, false>; readonly thumbHeight: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, true, false>; readonly showLen: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly downloadLen: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly x400Url: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly x400Width: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly x400Height: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly pbReserve: _tanebijs_protobuf.ProtoSpec<() => { subType: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; field3: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; field4: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; summary: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; field10: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; pbRes: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; }, true, false>; }, true, false>; readonly flags2: _tanebijs_protobuf.ProtoSpec<() => { readonly colorTextId: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly msgId: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT64, false, false>; readonly whisperSessionId: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly pttChangeBit: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly vipStatus: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly compatibleId: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly insts: _tanebijs_protobuf.ProtoSpec<() => { readonly appId: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly instId: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; }, false, true>; readonly msgRptCnt: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly srcInst: _tanebijs_protobuf.ProtoSpec<() => { readonly appId: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly instId: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; }, true, false>; readonly longtitude: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly latitude: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly customFont: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly pcSupportDef: _tanebijs_protobuf.ProtoSpec<() => { readonly pcPtlBegin: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly pcPtlEnd: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly macPtlBegin: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly macPtlEnd: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly ptlsSupport: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, true>; readonly ptlsNotSupport: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, true>; }, true, false>; readonly crmFlags: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, true, false>; }, true, false>; readonly richMsg: _tanebijs_protobuf.ProtoSpec<() => { readonly template1: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly serviceId: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, true, false>; readonly msgResId: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly rand: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, true, false>; readonly seq: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, true, false>; }, true, false>; readonly groupFile: _tanebijs_protobuf.ProtoSpec<() => { readonly filename: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly fileSize: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT64, false, false>; readonly fileId: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly batchId: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly fileKey: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly mark: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly sequence: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT64, false, false>; readonly batchItemId: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly feedMsgTime: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly pbReserve: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; }, true, false>; readonly extraInfo: _tanebijs_protobuf.ProtoSpec<() => { readonly nick: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly groupCard: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly level: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly flags: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly groupMask: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly msgTailId: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly senderTitle: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly apnsTips: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly uin: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT64, false, false>; readonly msgStateFlag: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly apnsSoundType: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly newGroupFlag: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; }, true, false>; readonly videoFile: _tanebijs_protobuf.ProtoSpec<() => { readonly fileUuid: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly fileMd5: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly fileName: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly fileFormat: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly fileTime: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly fileSize: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly thumbWidth: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly thumbHeight: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly thumbFileMd5: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly source: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly thumbFileSize: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly busiType: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly fromChatType: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly toChatType: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly boolSupportProgressive: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BOOL, false, false>; readonly fileWidth: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly fileHeight: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly subBusiType: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly videoAttr: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly bytesThumbFileUrls: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, false, true>; readonly bytesVideoFileUrls: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, false, true>; readonly thumbDownloadFlag: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly videoDownloadFlag: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly pbReserve: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; }, true, false>; readonly anonGroupMsg: _tanebijs_protobuf.ProtoSpec<() => { readonly flags: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly anonId: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly anonNick: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly headPortrait: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly expireTime: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly bubbleId: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly rankColor: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; }, true, false>; readonly qqWalletMsg: _tanebijs_protobuf.ProtoSpec<() => { readonly type: _tanebijs_protobuf.ProtoSpec<() => { sendUin: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT64, false, false>; sender: _tanebijs_protobuf.ProtoSpec<() => { readonly background: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly icon: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly title: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly subtitle: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly content: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly linkUrl: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly blackStripe: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly notice: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly titleColor: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly subtitleColor: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly actionsPriority: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly jumpUrl: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly nativeIos: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly nativeAndroid: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly iconUrl: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly contentColor: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly contentBgColor: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly aioImageLeft: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly aioImageRight: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly cftImage: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly pbReserve: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; }, true, false>; receiver: _tanebijs_protobuf.ProtoSpec<() => { readonly background: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly icon: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly title: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly subtitle: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly content: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly linkUrl: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly blackStripe: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly notice: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly titleColor: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly subtitleColor: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly actionsPriority: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly jumpUrl: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly nativeIos: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly nativeAndroid: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly iconUrl: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly contentColor: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly contentBgColor: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly aioImageLeft: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly aioImageRight: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly cftImage: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly pbReserve: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; }, true, false>; channelId: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; templateId: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; resend: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; msgPriority: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; redType: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; billNo: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; authKey: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; sessionType: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; msgType: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; envelOpeId: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; name: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; confType: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; msgFrom: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; pcBody: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; index: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; redChannel: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; grapUin: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT64, false, true>; pbReserve: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; }, true, false>; }, true, false>; readonly custom: _tanebijs_protobuf.ProtoSpec<() => { readonly desc: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly data: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly enumType: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly ext: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly sound: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; }, true, false>; readonly generalFlags: _tanebijs_protobuf.ProtoSpec<() => { readonly bubbleDiyTextId: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly groupFlagNew: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly uin: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT64, false, false>; readonly rpId: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly prpFold: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly longTextFlag: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly longTextResId: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly groupType: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly toUinFlag: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly glamourLevel: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly memberLevel: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly groupRankSeq: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT64, false, false>; readonly olympicTorch: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly babyqGuideMsgCookie: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly uin32ExpertFlag: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly bubbleSubId: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly pendantId: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT64, false, false>; readonly rpIndex: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly pbReserve: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; }, true, false>; readonly srcMsg: _tanebijs_protobuf.ProtoSpec<() => { readonly origSeqs: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, true>; readonly senderUin: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly time: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, true, false>; readonly flag: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, true, false>; readonly elems: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, false, true>; readonly type: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, true, false>; readonly richMsg: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly pbReserve: _tanebijs_protobuf.ProtoSpec<() => { messageId: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT64, false, false>; senderUid: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; receiverUid: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; friendSequence: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, true, false>; }, true, false>; readonly sourceMsg: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly toUin: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, true, false>; readonly troopName: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; }, true, false>; readonly lightApp: _tanebijs_protobuf.ProtoSpec<() => { readonly data: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly msgResid: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; }, true, false>; readonly common: _tanebijs_protobuf.ProtoSpec<() => { readonly serviceType: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly pbElement: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly businessType: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; }, true, false>; }>; declare enum MessageType { PrivateMessage = 1, GroupMessage = 2 } type MessageElementDecoded = InferProtoModel<typeof MessageElement.fields>; type MessageElementEncoded = InferProtoModelInput<typeof MessageElement.fields>; interface OutgoingSegmentBuilder<T extends string, S> { segmentType: T; build(segment: S, msg: OutgoingMessage): MessageElementEncoded | MessageElementEncoded[] | undefined; } type ConstructInputType<P> = P extends OutgoingSegmentBuilder<infer T, infer S> ? { type: T; } & S : never; declare class OutgoingSegmentCollection<T extends OutgoingSegmentBuilder<string, unknown>[]> { private builderMap; constructor(builders: T); build(segment: ConstructInputType<T[number]>, msg: OutgoingMessage): MessageElementEncoded[]; } declare const outgoingSegments: OutgoingSegmentCollection<(OutgoingSegmentBuilder<"mention", { name: string; uin: number; uid: string; }> | OutgoingSegmentBuilder<"text", { content: string; }> | OutgoingSegmentBuilder<"image", { msgInfo: _tanebijs_protobuf.InferProtoModelInput<{ readonly msgInfoBody: _tanebijs_protobuf.ProtoSpec<() => { readonly index: _tanebijs_protobuf.ProtoSpec<() => { readonly info: _tanebijs_protobuf.ProtoSpec<() => { readonly fileSize: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly fileHash: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly fileSha1: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly fileName: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly type: _tanebijs_protobuf.ProtoSpec<() => { type: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; picFormat: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; videoFormat: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; voiceFormat: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; }, true, false>; readonly width: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly height: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly time: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly original: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; }, true, false>; readonly fileUuid: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly storeId: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly uploadTime: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly ttl: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly subType: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; }, true, false>; readonly picture: _tanebijs_protobuf.ProtoSpec<() => { readonly urlPath: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly ext: _tanebijs_protobuf.ProtoSpec<() => { readonly originalParameter: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly bigParameter: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly thumbParameter: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; }, true, false>; readonly domain: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; }, true, false>; readonly video: _tanebijs_protobuf.ProtoSpec<() => {}, true, false>; readonly audio: _tanebijs_protobuf.ProtoSpec<() => {}, true, false>; readonly fileExist: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BOOL, false, false>; readonly hashSum: _tanebijs_protobuf.ProtoSpec<() => {}, true, false>; }, false, true>; readonly extBizInfo: _tanebijs_protobuf.ProtoSpec<() => { readonly pic: _tanebijs_protobuf.ProtoSpec<() => { readonly bizType: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly textSummary: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly bytesPbReserveC2C: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly bytesPbReserveTroop: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly fromScene: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly toScene: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly oldFileId: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; }, true, false>; readonly video: _tanebijs_protobuf.ProtoSpec<() => { readonly fromScene: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly toScene: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly bytesPbReserve: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; }, true, false>; readonly ptt: _tanebijs_protobuf.ProtoSpec<() => { readonly srcUin: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT64, false, false>; readonly pttScene: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly pttType: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly changeVoice: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly waveform: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly autoConvertText: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly bytesReserve: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly bytesPbReserve: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly bytesGeneralFlags: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; }, true, false>; readonly busiType: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; }, true, false>; }>; compatImage?: _tanebijs_protobuf.InferProtoModelInput<{ readonly filePath: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly fileLen: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly downloadPath: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly oldVerSendFile: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly imgType: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly previewsImage: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly picMd5: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly picHeight: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly picWidth: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly resId: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly flag: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly thumbUrl: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly original: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly bigUrl: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly origUrl: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly bizType: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly result: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly index: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly opFaceBuf: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly oldPicMd5: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BOOL, false, false>; readonly thumbWidth: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly thumbHeight: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly fileId: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly showLen: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly downloadLen: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly x400Url: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly x400Width: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly x400Height: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly pbRes: _tanebijs_protobuf.ProtoSpec<() => { subType: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; field3: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; field4: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; summary: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; field10: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; pbRes: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; url: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; md5Str: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; }, true, false>; }>; compatFace?: _tanebijs_protobuf.InferProtoModelInput<{ readonly guid: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly filePath: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly shortcut: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly buffer: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly flag: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly oldData: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly fileId: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly serverIp: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, true, false>; readonly serverPort: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, true, false>; readonly fileType: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly signature: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly useful: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly md5: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; readonly thumbUrl: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly bigUrl: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly origUrl: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly bizType: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly repeatIndex: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly repeatImage: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly imageType: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly index: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly width: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly height: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly source: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly size: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.UINT32, false, false>; readonly origin: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly thumbWidth: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, true, false>; readonly thumbHeight: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, true, false>; readonly showLen: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly downloadLen: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly x400Url: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; readonly x400Width: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly x400Height: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly pbReserve: _tanebijs_protobuf.ProtoSpec<() => { subType: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; field3: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; field4: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; summary: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, true, false>; field10: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; pbRes: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.BYTES, true, false>; }, true, false>; }>; }> | OutgoingSegmentBuilder<"face", { oldFaceId: number; } | { largeFaceInfo: _tanebijs_protobuf.InferProtoModelInput<{ readonly aniStickerPackId: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, false, false>; readonly aniStickerId: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.STRING, false, false>; readonly faceId: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly field4: _tanebijs_protobuf.ProtoSpec<_tanebijs_protobuf.ScalarType.INT32, false, false>; readonly aniStickerTyp