@napuketto/kernel 0.12.3 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -104,6 +104,8 @@ interface ReplyElement {
104
104
  senderUid?: string;
105
105
  senderUin?: string;
106
106
  }
107
+ /** 视频缩略图在 thumbPath Map 中的 key(收向实测 Map<0, path>)。 */
108
+ export declare const VIDEO_THUMB_KEY = 0;
107
109
  /** 视频元素(接收 + 发送)。 */
108
110
  interface VideoElement {
109
111
  filePath?: string;
@@ -546,6 +548,81 @@ interface NodeIKernelBuddyService {
546
548
  /** 处理可疑好友申请(set_doubt_friends_add_request;str1/str2 语义未知,传空串)。 */
547
549
  approvalDoubtBuddyReq(uid: string, str1: string, str2: string): void;
548
550
  }
551
+ /** 闪传分享权限(permission.code,语义待校准;实测 0 = 链接可直接打开)。 */
552
+ interface FlashTransferPermission {
553
+ code: number;
554
+ }
555
+ /** 卡片发送目标:destType 取 ChatType(2 = 群、1 = 私聊),destUid 取群号 / 用户 uid。 */
556
+ interface FlashTransferTarget {
557
+ destType: number;
558
+ destUid: string;
559
+ }
560
+ /** 上传任务参数(createFlashTransferUploadTask 第 2 参,原生逐字段读取的 20 项)。 */
561
+ interface FlashTransferTaskInfo {
562
+ scene: number;
563
+ name: string;
564
+ uploaders: string[];
565
+ permission: FlashTransferPermission;
566
+ coverPath: string;
567
+ coverOriginalInfos: unknown[];
568
+ paths: string[];
569
+ albumFilePathList: string[];
570
+ excludePaths: string[];
571
+ expireLeftTime: number;
572
+ validitySeconds: number;
573
+ uploadSceneType: number;
574
+ isNeedDelDeviceInfo: boolean;
575
+ isNeedDelLocation: boolean;
576
+ pathsWithPrivacyInfo: unknown[];
577
+ detectPrivacyInfoResult: {
578
+ exists: boolean;
579
+ allDetectResults: Map<unknown, unknown>;
580
+ };
581
+ hybridFileInfos: unknown[];
582
+ announcement: {
583
+ announcementSegments: unknown[];
584
+ modifyTime: number;
585
+ avatarUrl: string;
586
+ };
587
+ }
588
+ /** 文件集快照(事件回调第 1 参;只收录本 API 用到的字段)。 */
589
+ interface FlashTransferFileSet {
590
+ fileSetId: string;
591
+ name?: string;
592
+ totalFileCount?: string;
593
+ totalFileSize?: string;
594
+ permission?: FlashTransferPermission;
595
+ shareInfo?: {
596
+ shareLink?: string;
597
+ extractionCode?: string;
598
+ };
599
+ [key: string]: unknown;
600
+ }
601
+ /** 单个文件的状态快照(fileSet 内条目)。 */
602
+ interface FlashTransferFileStatus {
603
+ fileSetId: string;
604
+ cliFileId: string;
605
+ name: string;
606
+ fileType?: number;
607
+ [key: string]: unknown;
608
+ }
609
+ /**
610
+ * 上传监听器(delegate):原生按名取回调,未定义的事件直接跳过。
611
+ * 实测事件序列:onFileDidStartUpload → onFileUploadStatusChanged → onFileSetUploadStatusChanged
612
+ * → onFileSetUploadProgressChanged / onFileUploadProgressChanged → onFileDidFinishUpload。
613
+ */
614
+ interface FlashTransferUploadListener {
615
+ onFileDidStartUpload?(file: FlashTransferFileStatus): void;
616
+ onFileUploadStatusChanged?(file: FlashTransferFileStatus): void;
617
+ onFileSetUploadStatusChanged?(fileSet: FlashTransferFileSet): void;
618
+ onFileSetUploadProgressChanged?(payload: {
619
+ fileSet: FlashTransferFileSet;
620
+ uploaded: string;
621
+ total: string;
622
+ }): void;
623
+ onFileUploadProgressChanged?(file: FlashTransferFileStatus, ...args: string[]): void;
624
+ onFileDidFinishUpload?(file: FlashTransferFileStatus): void;
625
+ }
549
626
  /** 群成员角色(QQ wrapper 契约)。 */
550
627
  export declare const NTGroupMemberRole: {
551
628
  readonly UNSPECIFIED: 0;
@@ -1023,13 +1100,13 @@ export declare const GroupListUpdateType: {
1023
1100
  };
1024
1101
  export type GroupListUpdateType = (typeof GroupListUpdateType)[keyof typeof GroupListUpdateType];
1025
1102
  /** 成员数据来源(onMemberInfoChange 第二参,说明书参考)。 */
1026
- declare const GroupMemberDataSource: {
1103
+ export declare const GroupMemberDataSource: {
1027
1104
  /** 本地缓存。 */
1028
1105
  readonly CACHE: 0;
1029
1106
  /** 网络拉取。 */
1030
1107
  readonly NETWORK: 1;
1031
1108
  };
1032
- type GroupMemberDataSource = (typeof GroupMemberDataSource)[keyof typeof GroupMemberDataSource];
1109
+ export type GroupMemberDataSource = (typeof GroupMemberDataSource)[keyof typeof GroupMemberDataSource];
1033
1110
  /** onMemberListChange 参数(sceneId 为群号 groupCode)。 */
1034
1111
  interface GroupMemberListChange {
1035
1112
  sceneId: string;
@@ -1391,7 +1468,8 @@ type NodeIQQNTStartupSessionWrapperCtor = new () => NodeIQQNTStartupSessionWrapp
1391
1468
  interface NodeIKernelLoginService {
1392
1469
  addKernelLoginListener(listener: unknown): number;
1393
1470
  removeKernelLoginListener(listener: number): void;
1394
- initConfig(config: unknown): void;
1471
+ /** 初始化登录配置(老版本 wrapper 可能缺此方法,调用方需按可选处理)。 */
1472
+ initConfig?(config: unknown): void;
1395
1473
  connect(): void;
1396
1474
  getLoginList(): Promise<{
1397
1475
  result: number;
@@ -1400,8 +1478,8 @@ interface NodeIKernelLoginService {
1400
1478
  quickLoginWithUin(uin: string): Promise<unknown>;
1401
1479
  getQRCodePicture(): boolean;
1402
1480
  getMsfStatus(): number;
1403
- /** 设备指纹 guid(wrapper.node 字符串分析实证,2026-08-12;无 getMachineId)。 */
1404
- getMachineGuid(): string;
1481
+ /** 设备指纹 guid(wrapper.node 字符串分析实证,2026-08-12;无 getMachineId;可选)。 */
1482
+ getMachineGuid?(): string;
1405
1483
  }
1406
1484
  /** NodeIKernelLoginService 构造器(含静态 get)。 */
1407
1485
  type NodeIKernelLoginServiceCtor = new () => NodeIKernelLoginService & {
@@ -1460,6 +1538,8 @@ interface KernelLoginListener {
1460
1538
  onQQLoginNumLimited?(...args: unknown[]): void;
1461
1539
  onLoginState?(...args: unknown[]): void;
1462
1540
  }
1541
+ /** @deprecated 使用 `KernelLoginListener`(匈牙利 `I` 前缀已废弃)。 */
1542
+ type IKernelLoginListener = KernelLoginListener;
1463
1543
  /**
1464
1544
  * NodeIKernelSessionListener:session.init 第四参监听器(普通 JS 对象)。
1465
1545
  * init 完成信号:以 onOpentelemetryInit(is_init===true) 为准(onSessionInitComplete 为辅)。
@@ -1499,11 +1579,11 @@ interface FlashTransferUploadResult {
1499
1579
  /** 上传选项。 */
1500
1580
  interface FlashTransferUploadOptions {
1501
1581
  /** 文件集名称(对端卡片标题);缺省取首个文件名。 */
1502
- name?: string;
1582
+ name?: string | undefined;
1503
1583
  /** 分享权限码(permission.code,实测 0 = 链接可直接打开)。 */
1504
- permissionCode?: number;
1584
+ permissionCode?: number | undefined;
1505
1585
  /** 超时毫秒(缺省 10 分钟)。 */
1506
- timeoutMs?: number;
1586
+ timeoutMs?: number | undefined;
1507
1587
  }
1508
1588
  /** 闪传 API:从 session 拿 flash transfer service,包装成语义化方法。 */
1509
1589
  export declare class FlashTransferApi {
@@ -1552,7 +1632,7 @@ interface DoubtFriendRequestInfo {
1552
1632
  /** FriendApi 构造选项。 */
1553
1633
  interface FriendApiOptions {
1554
1634
  /** uid→uin 转换器(通常注入 GroupApi.uidToUin);缺省 uin 退化为 uid。 */
1555
- uidToUin?: (uids: string[]) => Promise<Map<string, string>>;
1635
+ uidToUin?: ((uids: string[]) => Promise<Map<string, string>>) | undefined;
1556
1636
  }
1557
1637
  /** 好友 API:从 session 拿 buddy service,包装成语义化方法。 */
1558
1638
  export declare class FriendApi {
@@ -1591,10 +1671,12 @@ export declare class GroupApi {
1591
1671
  /**
1592
1672
  * 群列表(force=true 触发原生刷新)。
1593
1673
  *
1594
- * ⚠️ 实测校准(2026-08-08 端到端联调):原生 getGroupList 返回仅
1595
- * `{ result, errMsg }`——**列表数据经 onGroupListUpdate 事件推送**,
1596
- * 不走返回值。消费群列表一律从 `GroupCache.listGroups()` 读(缓存由
1597
- * 事件主动维护);本方法仅作「触发刷新」用,返回值恒为 []。
1674
+ * @remarks
1675
+ * ⚠️ 本方法**只触发底层事件推送,返回值恒为 `[]`**——原生 getGroupList
1676
+ * 返回仅 `{ result, errMsg }`,列表数据经 onGroupListUpdate 事件推送。
1677
+ * 需要群列表数组请改用 `GroupCache.listGroups()`(缓存快照)或
1678
+ * `GroupCache.listGroupsRefreshed()`(触发刷新并等待事件落地)。
1679
+ * @see GroupCache.listGroupsRefreshed
1598
1680
  */
1599
1681
  getGroupList(force?: boolean): Promise<Group[]>;
1600
1682
  /** 群详情(groupCode 为群号字符串)。
@@ -1618,7 +1700,12 @@ export declare class GroupApi {
1618
1700
  * kickMemberV2 的 kickFlag/kickList 字段值待探测校准(TODO P3 联调)。
1619
1701
  */
1620
1702
  kickMember(groupCode: string, memberUids: string[], refuseForever: boolean, reason?: string): Promise<void>;
1621
- /** 成员禁言(duration 秒,0 解除禁言)。 */
1703
+ /**
1704
+ * 成员禁言。
1705
+ *
1706
+ * @param members 每项 `duration` 单位为**秒(s)**,`0` 表示解除禁言。
1707
+ * @throws {KernelError} 成员列表为空(INVALID_PARAM)或原生调用失败。
1708
+ */
1622
1709
  setMemberShutUp(groupCode: string, members: Array<{
1623
1710
  uid: string;
1624
1711
  duration: number;
@@ -1732,10 +1819,19 @@ export declare class NTEventChannel<L extends ListenerShape, Name extends string
1732
1819
  */
1733
1820
  onAny(handler: (event: string, ...args: unknown[]) => void): () => void;
1734
1821
  emit<E extends EventName<L, Name>>(event: E, ...args: EventArgs<L, Name, E>): void;
1735
- /** 通知所有错误处理器(单个异常不打断其他处理器)。 */
1822
+ /**
1823
+ * 下游 async 监听器的 Promise 拒绝不会被 try/catch 捕获(会变成进程级
1824
+ * UnhandledRejection)——这里统一挂 catch 转发到 onError 兜底。
1825
+ */
1826
+ private catchAsyncListenerError;
1827
+ /** 通知所有错误处理器(单个处理器异常不打断其他处理器)。 */
1736
1828
  private notifyError;
1737
1829
  /** 订阅错误通知(监听器抛出的异常 / 其他内部错误)。 */
1738
1830
  onError(handler: (err: unknown) => void): () => void;
1831
+ /** 清空全部监听器与错误处理器(幂等;Runtime 销毁时调用)。 */
1832
+ dispose(): void;
1833
+ /** `using channel = ...` 自动清理。 */
1834
+ [Symbol.dispose](): void;
1739
1835
  }
1740
1836
  /** 好友事件通道的固定类型(事件名前缀 "Buddy")。 */
1741
1837
  type BuddyEventChannel = NTEventChannel<BuddyListener, "Buddy">;
@@ -1752,6 +1848,10 @@ export declare class FriendBridge {
1752
1848
  register(): void;
1753
1849
  /** 注销原生监听(幂等)。 */
1754
1850
  unregister(): void;
1851
+ /** 释放(等价 unregister,幂等)。 */
1852
+ dispose(): void;
1853
+ /** `using bridge = ...` 自动释放。 */
1854
+ [Symbol.dispose](): void;
1755
1855
  }
1756
1856
  /** 群事件通道的固定类型(事件名前缀 "Group")。 */
1757
1857
  type GroupEventChannel = NTEventChannel<GroupListener, "Group">;
@@ -1768,6 +1868,10 @@ export declare class GroupBridge {
1768
1868
  register(): void;
1769
1869
  /** 注销原生监听(幂等)。 */
1770
1870
  unregister(): void;
1871
+ /** 释放(等价 unregister,幂等)。 */
1872
+ dispose(): void;
1873
+ /** `using bridge = ...` 自动释放。 */
1874
+ [Symbol.dispose](): void;
1771
1875
  }
1772
1876
  /** 登录事件通道的固定类型(事件名前缀 "Login")。 */
1773
1877
  type LoginEventChannel = NTEventChannel<LoginListener, "Login">;
@@ -1784,6 +1888,10 @@ export declare class LoginBridge {
1784
1888
  register(): void;
1785
1889
  /** 注销原生监听(幂等)。 */
1786
1890
  unregister(): void;
1891
+ /** 释放(等价 unregister,幂等)。 */
1892
+ dispose(): void;
1893
+ /** `using bridge = ...` 自动释放。 */
1894
+ [Symbol.dispose](): void;
1787
1895
  }
1788
1896
  /** 消息事件通道的固定类型(事件名前缀 "Msg")。 */
1789
1897
  type MsgEventChannel = NTEventChannel<MsgListener, "Msg">;
@@ -1806,6 +1914,10 @@ export declare class MsgBridge {
1806
1914
  register(): void;
1807
1915
  /** 注销原生监听(幂等)。 */
1808
1916
  unregister(): void;
1917
+ /** 释放(等价 unregister,幂等)。 */
1918
+ dispose(): void;
1919
+ /** `using bridge = ...` 自动释放。 */
1920
+ [Symbol.dispose](): void;
1809
1921
  }
1810
1922
  /** 会话列表事件通道的固定类型(事件名前缀 "RecentContact")。 */
1811
1923
  type RecentContactEventChannel = NTEventChannel<RecentContactListener, "RecentContact">;
@@ -1822,6 +1934,10 @@ export declare class RecentContactBridge {
1822
1934
  register(): void;
1823
1935
  /** 注销原生监听(幂等)。 */
1824
1936
  unregister(): void;
1937
+ /** 释放(等价 unregister,幂等)。 */
1938
+ dispose(): void;
1939
+ /** `using bridge = ...` 自动释放。 */
1940
+ [Symbol.dispose](): void;
1825
1941
  }
1826
1942
  /** 消息 API:从 session 拿 msg service,包装成语义化方法。 */
1827
1943
  export declare class MsgApi {
@@ -2196,6 +2312,10 @@ export declare class BuddyCache {
2196
2312
  register(): void;
2197
2313
  /** 退订事件通道(幂等)。 */
2198
2314
  unregister(): void;
2315
+ /** 释放(等价 unregister,幂等)。 */
2316
+ dispose(): void;
2317
+ /** `using cache = ...` 自动释放。 */
2318
+ [Symbol.dispose](): void;
2199
2319
  /** 应用全量快照:首帧建 baseline,之后 diff 发布归一化事件。 */
2200
2320
  private applySnapshot;
2201
2321
  /** 好友快照(只读拷贝)。 */
@@ -2233,6 +2353,10 @@ export declare class GroupCache {
2233
2353
  register(): void;
2234
2354
  /** 退订事件通道(幂等)。 */
2235
2355
  unregister(): void;
2356
+ /** 释放(等价 unregister,幂等)。 */
2357
+ dispose(): void;
2358
+ /** `using cache = ...` 自动释放。 */
2359
+ [Symbol.dispose](): void;
2236
2360
  /** 合并成员到该群缓存(uid → GroupMember)。 */
2237
2361
  private upsertMembers;
2238
2362
  /** 群列表是否已有缓存(同步判断)。 */
@@ -2433,6 +2557,19 @@ type LogEnvSource = Record<string, string | undefined>;
2433
2557
  * @param env 环境变量快照(默认空对象 = 无 env 覆盖)
2434
2558
  */
2435
2559
  export declare function parseLogConfig(section: unknown, env?: LogEnvSource): LogConfig;
2560
+ /** 结构化流选项。 */
2561
+ interface ConsoleFormatStreamOptions {
2562
+ /** 输出格式(三种格式全部由本模块渲染)。 */
2563
+ format: LogFormat;
2564
+ /** 时间戳渲染模式。 */
2565
+ timestamp: TimestampMode;
2566
+ /** pretty / single-line 是否着色(json 恒不着色)。 */
2567
+ colorize: boolean;
2568
+ /** 输出目的地(缺省 process.stdout;测试注入用)。 */
2569
+ destination?: NodeJS.WriteStream;
2570
+ }
2571
+ /** 创建控制台渲染流(pretty / single-line / json)。 */
2572
+ export declare function createConsoleFormatStream(opts: ConsoleFormatStreamOptions): pino.DestinationStream;
2436
2573
  /**
2437
2574
  * 可选属性统一带 `| undefined`(2026-10-25):exactOptionalPropertyTypes 下
2438
2575
  * 纯直传调用点(装配层透传 LogConfig 字段)可写 `format: cfg.format` 一类
@@ -2479,9 +2616,9 @@ export declare const DEFAULT_DATA_ROOT_NAME = ".napuketto";
2479
2616
  export declare const MAIN_CONFIG_FILE = "napuketto.toml";
2480
2617
  interface PathOptions {
2481
2618
  /** 显式数据根(cli `--data-dir` 传入,优先级最高)。 */
2482
- dataRoot?: string;
2619
+ dataRoot?: string | undefined;
2483
2620
  /** QQ 号,用于多账号隔离;缺省时直接使用数据根本身。 */
2484
- account?: string;
2621
+ account?: string | undefined;
2485
2622
  }
2486
2623
  /**
2487
2624
  * 解析数据根:显式参数 > 环境变量 > `<项目根>/.napuketto`(默认)> 用户目录兜底(裸脚本)。
@@ -2491,7 +2628,7 @@ interface PathOptions {
2491
2628
  export declare function resolveDataRoot(dataRoot?: string): string;
2492
2629
  interface ConfigPathOptions {
2493
2630
  /** 兜底数据根(探测全部失败时用 `<dataRoot>/napuketto.toml`,保持旧行为)。 */
2494
- dataRoot?: string;
2631
+ dataRoot?: string | undefined;
2495
2632
  }
2496
2633
  /**
2497
2634
  * 全局配置文件路径解析(2026-08-07 用户拍板:**配置文件放项目根目录,
@@ -2531,6 +2668,16 @@ export declare class PathWrapper {
2531
2668
  */
2532
2669
  clearCache(): void;
2533
2670
  }
2671
+ /**
2672
+ * 等待/延迟工具(通用底层原语,2026-08-08 克隆合并;2026-11 下沉至 infra)
2673
+ *
2674
+ * 纯 promise 工具,无任何业务依赖——login / cache 等上层模块经
2675
+ * `infra/index.js` 复用,杜绝 cache -> login 的跨领域依赖。
2676
+ */
2677
+ /** 等待条件满足(轮询,带超时)。 */
2678
+ export declare function waitFor(predicate: () => boolean, timeoutMs: number, intervalMs?: number): Promise<boolean>;
2679
+ /** 短延迟。 */
2680
+ export declare function sleep(ms: number): Promise<void>;
2534
2681
  /**
2535
2682
  * Electron 进程类型(Node 的 process 类型无此字段)。
2536
2683
  * - "browser":QQ 主进程(V1 模式)
@@ -2540,9 +2687,9 @@ export declare function electronProcessType(): string | undefined;
2540
2687
  /** `resolveQqUserDataRoot` 选项(平台覆盖供测试/联调,缺省按 `process.platform` 探测)。 */
2541
2688
  interface QqDataRootOptions {
2542
2689
  /** 数据根(`NAPKETTO_DATA` / `--data-dir` 解析结果)。Linux 下 QQ 数据落 `<dataRoot>/nt_qq`。 */
2543
- dataRoot?: string;
2690
+ dataRoot?: string | undefined;
2544
2691
  /** 平台覆盖(缺省 `detectPlatformType()`)。 */
2545
- platform?: PlatformType;
2692
+ platform?: PlatformType | undefined;
2546
2693
  }
2547
2694
  /**
2548
2695
  * 解析 QQ 用户数据根(登录数据目录,如 `C:\Users\<user>\Documents\Tencent Files`)。
@@ -2578,8 +2725,13 @@ interface WrapperContext {
2578
2725
  session: NodeIQQNTWrapperSession | null;
2579
2726
  /** 启动会话包装(NapCat 同款:StartupSessionWrapper.create(),start() 替代 startNT)。 */
2580
2727
  startupSession: NodeIQQNTStartupSessionWrapper | null;
2581
- /** QQ 的 loginService 实例(拦截 new 捕获,可为 null)。 */
2582
- loginService: unknown;
2728
+ /**
2729
+ * QQ 的 loginService 实例(拦截 new 捕获,可为 null)。
2730
+ * 保留 `unknown` 联合以兼容测试桩与老版本 wrapper(仅按方法名反射调用)。
2731
+ */
2732
+ loginService: NodeIKernelLoginService | unknown;
2733
+ /** wrapper.node 绝对路径(BootEnv.wrapperPath 注入;appid 自动解析用)。 */
2734
+ wrapperPath?: string | undefined;
2583
2735
  }
2584
2736
  /**
2585
2737
  * 从 loader 截获的 NAPI exports 创建 wrapper 上下文。
@@ -2626,28 +2778,33 @@ export declare function startNapuketto(options: StartNapukettoOptions): WrapperC
2626
2778
  /** startNapuketto 的引导环境(由 loader launcher 注入环境变量,boot.cjs 透传)。 */
2627
2779
  interface BootEnv {
2628
2780
  /** QQ 版本(如 "9.9.31-49919")。 */
2629
- qqVersion?: string;
2781
+ qqVersion?: string | undefined;
2630
2782
  /** 用户数据目录(cfgDir 的父级,用于 desktopPathConfig)。 */
2631
- dataDir?: string;
2783
+ dataDir?: string | undefined;
2632
2784
  /** 数据根(Linux 下 QQ 数据根 = `<dataRoot>/nt_qq`;Windows 忽略)。 */
2633
- dataRoot?: string;
2785
+ dataRoot?: string | undefined;
2634
2786
  /** 账号 uin(可选,提供则一步 init+start)。 */
2635
- selfUin?: string;
2787
+ selfUin?: string | undefined;
2636
2788
  /** 账号 uid(可选)。 */
2637
- selfUid?: string;
2789
+ selfUid?: string | undefined;
2790
+ /**
2791
+ * wrapper.node 绝对路径(appid 自动解析用:同目录 major.node)。
2792
+ * 缺省回退 `NAPUKETTO_WRAPPER_PATH` / `NAPUTO_WRAPPER_PATH` 环境变量。
2793
+ */
2794
+ wrapperPath?: string | undefined;
2638
2795
  }
2639
2796
  /** startNapuketto 选项。 */
2640
2797
  interface StartNapukettoOptions {
2641
2798
  /** 截获的 wrapper.node NAPI exports(boot.cjs 传入)。 */
2642
2799
  wrapperExports: WrapperNodeApi;
2643
2800
  /** 引导环境(版本/数据目录/账号)。 */
2644
- env?: BootEnv;
2801
+ env?: BootEnv | undefined;
2645
2802
  /** 覆盖 engine 配置(联调用)。 */
2646
- engineConfig?: EnginInitDesktopConfig;
2803
+ engineConfig?: EnginInitDesktopConfig | undefined;
2647
2804
  /** 覆盖 session 配置(联调用,提供则自动 init+start)。 */
2648
- sessionConfig?: WrapperSessionInitConfig;
2805
+ sessionConfig?: WrapperSessionInitConfig | undefined;
2649
2806
  /** QQ 已 init 的 session(boot.cjs 拦截 new 捕获)。 */
2650
- qqSession?: NodeIQQNTWrapperSession | null;
2807
+ qqSession?: NodeIQQNTWrapperSession | null | undefined;
2651
2808
  /** QQ 的 loginService 实例(boot.cjs 拦截 new 捕获)。 */
2652
2809
  qqLoginService?: unknown;
2653
2810
  }
@@ -2660,16 +2817,18 @@ interface StartNapukettoOptions {
2660
2817
  * @returns NAPI exports(含 NodeIKernelLoginService 等构造器)
2661
2818
  * @throws KernelError exports 缺 NodeIKernelLoginService(stub 环境异常)或 dlopen 失败
2662
2819
  */
2663
- export declare function dlopenWrapper(wrapperPath: string): Record<string, unknown>;
2820
+ export declare function dlopenWrapper(wrapperPath: string): WrapperNodeApi;
2664
2821
  /**
2665
2822
  * 激活自建宿主 O3MiscService 事件分发(三要素之二,V6 实测决定性):
2666
2823
  * 不激活则 getLoginList 永不 resolve(挂起)。listener 用普通对象
2667
2824
  * (getOnAmgomDataPiece 空实现,wrapper 契约回调)。
2668
2825
  *
2826
+ * 幂等:同一 exports 重复调用只激活一次(已激活返回 true)。
2827
+ *
2669
2828
  * @param wrapperExports dlopen 产出的 exports(缺失/版本变化时返回 false)
2670
2829
  * @returns 是否成功激活
2671
2830
  */
2672
- export declare function activateO3MiscService(wrapperExports: Record<string, unknown> | undefined): boolean;
2831
+ export declare function activateO3MiscService(wrapperExports: WrapperNodeApi | Record<string, unknown> | undefined): boolean;
2673
2832
  /** 登录结果(QR 或快速登录)。 */
2674
2833
  interface LoginResult {
2675
2834
  uin: string;
@@ -2679,9 +2838,9 @@ interface LoginResult {
2679
2838
  /** 登录列表项(getLoginList 返回,说明书参考)。 */
2680
2839
  interface LoginAccountInfo {
2681
2840
  uin: string;
2682
- uid?: string;
2683
- nickName?: string;
2684
- isQuickLogin?: boolean;
2841
+ uid?: string | undefined;
2842
+ nickName?: string | undefined;
2843
+ isQuickLogin?: boolean | undefined;
2685
2844
  }
2686
2845
  /**
2687
2846
  * 等待网络连接就绪(loginService.getMsfStatus() === 3)。
@@ -2697,11 +2856,11 @@ export declare function listLoginAccounts(ctx: WrapperContext): Promise<LoginAcc
2697
2856
  /** quickLogin 参数(uin 指定账号;timeoutMs 网络就绪等待;quickLoginTimeoutMs 单步超时)。 */
2698
2857
  interface QuickLoginOptions {
2699
2858
  /** 指定快速登录账号(缺省遍历历史列表,优先 isQuickLogin)。 */
2700
- uin?: string;
2859
+ uin?: string | undefined;
2701
2860
  /** 网络就绪等待超时(毫秒,P2-1 既有语义),默认 15s。 */
2702
- timeoutMs?: number;
2861
+ timeoutMs?: number | undefined;
2703
2862
  /** 单步快速登录超时(毫秒,T3 挂起兜底),默认 {@link QUICK_LOGIN_TIMEOUT_MS}。 */
2704
- quickLoginTimeoutMs?: number;
2863
+ quickLoginTimeoutMs?: number | undefined;
2705
2864
  }
2706
2865
  /**
2707
2866
  * 快速登录:遍历历史登录列表尝试。
@@ -2719,13 +2878,13 @@ export declare function quickLogin(ctx: WrapperContext, opts?: QuickLoginOptions
2719
2878
  * 也不自己 create(登录前 create() 干扰 QQ,实测 QQ 退出 code=0)。
2720
2879
  * 正确做法:等 QQ 的 session 就绪(getMsgService 非 null = 核心 service 已挂载)。
2721
2880
  */
2722
- export declare function waitSessionReady(ctx: WrapperContext, opts: {
2723
- timeoutMs?: number;
2881
+ export declare function waitSessionReady(ctx: WrapperContext, opts?: {
2882
+ timeoutMs?: number | undefined;
2724
2883
  }): Promise<void>;
2725
2884
  /** 登录连接 + 快速登录(quickLogin 等)已拆到 login-connect.ts(见文件头 re-export)。 */
2726
2885
  /** session 初始化(4 参全为普通 JS 对象,等 init 完成信号)。 */
2727
- export declare function initAndStartSession(ctx: WrapperContext, config: WrapperSessionInitConfig, listener: NodeIKernelSessionListener, opts: {
2728
- timeoutMs?: number;
2886
+ export declare function initAndStartSession(ctx: WrapperContext, config: WrapperSessionInitConfig, listener?: NodeIKernelSessionListener, opts?: {
2887
+ timeoutMs?: number | undefined;
2729
2888
  }): Promise<void>;
2730
2889
  /** 登录状态。 */
2731
2890
  type LoginState = "idle" | "waiting_scan" | "scanned" | "logged_in" | "failed";
@@ -2816,9 +2975,67 @@ interface CoreContext {
2816
2975
  }
2817
2976
  /** 创建装配根(初始 wrapper/login 为 null)。 */
2818
2977
  export declare function createCoreContext(opts: CoreContextOptions): CoreContext;
2978
+ /** 运行时装配参数。 */
2979
+ interface KernelRuntimeOptions {
2980
+ /** 已 init 的 wrapper session(getMsgService 等非空)。 */
2981
+ session: NodeIQQNTWrapperSession;
2982
+ /** 登录结果(WebApi getCookies 的 uin 来源;未传时用空串)。 */
2983
+ login?: LoginResult | null | undefined;
2984
+ /** wrapper.node exports(MsgApi 富媒体 copyFile 用 NodeQQNTWrapperUtil)。 */
2985
+ wrapperExports?: WrapperNodeApi | Record<string, unknown> | undefined;
2986
+ /** QQ loginService(传入时装配 LoginBridge,提供 Login 事件通道数据)。 */
2987
+ loginService?: unknown;
2988
+ /** 校准日志出口(在线状态上报失败等;缺省静默)。 */
2989
+ logger?: {
2990
+ warn(obj: unknown, msg?: string): void;
2991
+ } | undefined;
2992
+ /** 是否自动注册全部原生事件桥与缓存(默认 true)。 */
2993
+ autoRegister?: boolean | undefined;
2994
+ /** 是否自动上报在线状态 status=10 以开启服务端实时消息推送(默认 false;自建宿主传 true)。 */
2995
+ reportOnlineStatus?: boolean | undefined;
2996
+ }
2997
+ /** 内核服务聚合(createKernelRuntime 产物)。 */
2998
+ interface KernelRuntime {
2999
+ readonly msgChannel: MsgEventChannel;
3000
+ readonly groupChannel: GroupEventChannel;
3001
+ readonly friendChannel: BuddyEventChannel;
3002
+ readonly recentContactChannel: RecentContactEventChannel;
3003
+ readonly loginChannel: LoginEventChannel;
3004
+ readonly msgBridge: MsgBridge;
3005
+ readonly groupBridge: GroupBridge;
3006
+ readonly friendBridge: FriendBridge;
3007
+ /** getRecentContactService 不存在/不可用时为 null(跳过注册)。 */
3008
+ readonly recentContactBridge: RecentContactBridge | null;
3009
+ /** 未传 loginService 时为 null(跳过注册)。 */
3010
+ readonly loginBridge: LoginBridge | null;
3011
+ readonly msgApi: MsgApi;
3012
+ readonly groupApi: GroupApi;
3013
+ readonly friendApi: FriendApi;
3014
+ readonly groupNotifyApi: GroupNotifyApi;
3015
+ readonly ticketApi: TicketApi;
3016
+ readonly richMediaApi: RichMediaApi;
3017
+ readonly flashTransferApi: FlashTransferApi;
3018
+ readonly recentContactApi: RecentContactApi;
3019
+ readonly profileApi: ProfileApi;
3020
+ readonly profileLikeApi: ProfileLikeApi;
3021
+ readonly webApi: WebApi;
3022
+ readonly groupCache: GroupCache;
3023
+ readonly buddyCache: BuddyCache;
3024
+ /** 一键清理(幂等):桥/缓存 unregister + 通道 dispose。 */
3025
+ dispose(): void;
3026
+ /** `using runtime = ...` 自动清理。 */
3027
+ [Symbol.dispose](): void;
3028
+ }
3029
+ /**
3030
+ * 装配内核运行时(同步;API 构造失败即抛 KernelError)。
3031
+ *
3032
+ * @param opts 装配参数(session 必填)
3033
+ * @returns 聚合了全部通道/桥/API/缓存的服务对象
3034
+ */
3035
+ export declare function createKernelRuntime(opts: KernelRuntimeOptions): KernelRuntime;
2819
3036
  interface NapukettoCoreOptions {
2820
3037
  /** 数据根 / 账号(透传给 PathWrapper,见 ADR-016)。 */
2821
- paths?: PathOptions;
3038
+ paths?: PathOptions | undefined;
2822
3039
  /** 日志级别,默认 info。 */
2823
3040
  logLevel?: LogLevel | undefined;
2824
3041
  /** 文件日志路径;不传则默认 `logs/napuketto.log`(父目录自动创建)。 */
@@ -2841,34 +3058,44 @@ interface LoginProgress {
2841
3058
  /** 登录状态(QR 状态机)。 */
2842
3059
  state: LoginState;
2843
3060
  /** 二维码数据(state=waiting_scan 时有)。 */
2844
- qr?: QrCodeData;
3061
+ qr?: QrCodeData | undefined;
2845
3062
  /** 登录成功 selfInfo(state=logged_in 时有)。 */
2846
- selfInfo?: SelfInfo;
3063
+ selfInfo?: SelfInfo | undefined;
2847
3064
  /** 失败原因(state=failed 时有;如「登录超时,请刷新页面重试」)。 */
2848
- message?: string;
3065
+ message?: string | undefined;
2849
3066
  }
2850
3067
  /** login 参数。 */
2851
3068
  interface CoreLoginOptions {
2852
- /** appid(登录握手,由 resolveAppidQua 从 major.node 动态解析,不写死)。 */
2853
- appid: string;
3069
+ /**
3070
+ * appid(登录握手)。**可选**:未传时自动从 wrapperPath 同目录 major.node
3071
+ * 解析(`resolveAppidQua`);wrapperPath 缺省回退 `NAPUKETTO_WRAPPER_PATH` /
3072
+ * `NAPUTO_WRAPPER_PATH` 环境变量。仍无法解析则抛 INVALID_PARAM。
3073
+ */
3074
+ appid?: string | undefined;
2854
3075
  /** session.init 超时(毫秒),默认 15s。 */
2855
- initTimeoutMs?: number;
3076
+ initTimeoutMs?: number | undefined;
2856
3077
  /** 指定快速登录账号(缺省遍历历史列表)。 */
2857
- quickUin?: string;
3078
+ quickUin?: string | undefined;
2858
3079
  /**
2859
3080
  * 单步快速登录超时(毫秒,T3 软重登挂起兜底),默认 20s。服务端已有同账号
2860
3081
  * 会话时底层 quickLoginWithUin/getLoginList 永久挂起,超时按登录失败抛出
2861
3082
  * (qrFallback 可接)。底层 promise 无法取消:超时后悬挂丢弃。
2862
3083
  */
2863
- quickLoginTimeoutMs?: number;
3084
+ quickLoginTimeoutMs?: number | undefined;
2864
3085
  /** 快速登录失败时回退 QR 登录(二维码写缓存目录),默认 false。 */
2865
- qrFallback?: boolean;
3086
+ qrFallback?: boolean | undefined;
2866
3087
  /** 强制扫码:跳过快速登录,直接走 QR 登录(koishi 强制扫码 / 切账号)。默认 false。 */
2867
- qrOnly?: boolean;
3088
+ qrOnly?: boolean | undefined;
2868
3089
  /** QR 二维码图片保存路径(默认缓存目录 qrcode.png)。 */
2869
- qrCodePath?: string;
3090
+ qrCodePath?: string | undefined;
2870
3091
  /** 登录进度回调(QR 阶段:二维码数据 + 状态变化)。子进程 IPC 模式转发用。 */
2871
- onLoginProgress?: (progress: LoginProgress) => void;
3092
+ onLoginProgress?: ((progress: LoginProgress) => void) | undefined;
3093
+ /**
3094
+ * 登录成功后自动完成 Session 激活闭环(accountPath → machineGuid →
3095
+ * buildSessionConfig → initAndStartSession → waitSessionReady)。
3096
+ * 默认 false:保持 loader 现有「手动 activateSession」流程 100% 兼容。
3097
+ */
3098
+ activateSession?: boolean | undefined;
2872
3099
  }
2873
3100
  /**
2874
3101
  * 核心装配器:持有 CoreContext,负责启动/停止编排。
@@ -2879,6 +3106,10 @@ export declare class NapukettoCore {
2879
3106
  readonly ctx: CoreContext;
2880
3107
  /** QR 登录会话句柄(登录期间非空;登录终态后清空)。refreshQr() 据此可达。 */
2881
3108
  private qrSession;
3109
+ /** 由 createRuntime() 装配的运行时服务集合(stop/dispose 时统一清理)。 */
3110
+ private runtime;
3111
+ /** stop 幂等标记。 */
3112
+ private stopped;
2882
3113
  /** 由 create() 装配,不直接 new。 */
2883
3114
  private constructor();
2884
3115
  /**
@@ -2896,15 +3127,34 @@ export declare class NapukettoCore {
2896
3127
  qqLoginService?: unknown;
2897
3128
  }): WrapperContext;
2898
3129
  /**
2899
- * 登录 + session 初始化(wrapper 契约,2026-08-05 实测确认):
2900
- * loginService.initConfig → 登录(快速/QR)→ **登录成功后** create session + init
2901
- * → 等 onOpentelemetryInit(is_init) 完成信号。成功后填 ctx.login。
3130
+ * 登录握手(wrapper 契约,2026-08-05 实测确认):
3131
+ * loginService.initConfig → 登录(快速/QR)→ 填 ctx.login 后返回。
2902
3132
  *
2903
- * 关键(实测):登录前 create()/init 均断言失败(session 未 init / 干扰 QQ);
2904
- * 登录后 QQ 自己 init 并触发 listener.onOpentelemetryInit——我们只需在登录后
2905
- * create + init 并监听该信号。
3133
+ * 默认**仅完成登录握手**,不做 session 初始化——QQ 登录后重建 session
3134
+ * (boot.cjs Proxy 捕获新实例并 setSession 替换),替换发生在 login 返回之后。
3135
+ * 需要一步完成会话初始化时:传 `activateSession: true`(登录成功后自动跑
3136
+ * accountPath → machineGuid → buildSessionConfig → initAndStartSession →
3137
+ * waitSessionReady),或随后手动调用 `core.activateSession()`。
2906
3138
  */
2907
3139
  login(opts: CoreLoginOptions): Promise<LoginResult>;
3140
+ /**
3141
+ * 激活当前登录账号的 Session(先 init 后 startupSession.start,再等就绪)。
3142
+ *
3143
+ * 前置:必须已 `attachWrapper` 且 `login` 成功(否则 fail-fast INVALID_STATE)。
3144
+ * appid 未传时按 wrapperPath / 环境变量同目录 major.node 自动解析。
3145
+ * 幂等性由底层 init 语义决定:重复调用会再次 init(调用方自行保证只激活一次)。
3146
+ */
3147
+ activateSession(opts?: {
3148
+ appid?: string | undefined;
3149
+ timeoutMs?: number | undefined;
3150
+ readyTimeoutMs?: number | undefined;
3151
+ }): Promise<void>;
3152
+ /**
3153
+ * 装配开箱即用的内核运行时服务(事件通道 + 桥 + 业务 API + 缓存聚合)。
3154
+ * 前置:wrapper 已 attach 且 session 非空(否则 fail-fast INVALID_STATE)。
3155
+ * dispose 由 `stop()` / `dispose()` 统一回收。
3156
+ */
3157
+ createRuntime(opts?: Omit<KernelRuntimeOptions, "session" | "login" | "wrapperExports">): KernelRuntime;
2908
3158
  /** 快速登录优先,失败按 qrFallback 决定是否回退 QR(QR 应直接出码,见 loginByQr 注)。 */
2909
3159
  private loginQuickFirst;
2910
3160
  /**
@@ -2932,8 +3182,15 @@ export declare class NapukettoCore {
2932
3182
  private subscribeQrProgress;
2933
3183
  /** QR 状态转发:日志 + onLoginProgress(failed 附 failureReason)。 */
2934
3184
  private forwardQrState;
2935
- /** 停止:日志收尾(资源清理留给 P2 常驻管理)。 */
3185
+ /**
3186
+ * 停止:幂等清理 QR 会话 + 已装配的运行时服务(桥/缓存/通道)后日志收尾。
3187
+ * 重复调用直接返回(宿主关停钩子可能同时触发多次)。
3188
+ */
2936
3189
  stop(): void;
3190
+ /** 显式释放(`using` / 手动调用的统一入口;等价 stop)。 */
3191
+ dispose(): void;
3192
+ /** `using core = ...` 自动释放。 */
3193
+ [Symbol.dispose](): void;
2937
3194
  }
2938
3195
  /**
2939
3196
  * 探测 wrapper 运行时:dump session 方法与各 service 方法名到 JSON。
@@ -2999,6 +3256,8 @@ export declare function resolveQqGlobalPath(root: string): string;
2999
3256
  /**
3000
3257
  * 复用 QQ 已有 session(P1-4:QQ 已登录,直接拿单例避免重复 init)。
3001
3258
  * 优先 `NodeIQQNTWrapperSession.get()`;返回 null 时回退 createSession。
3259
+ *
3260
+ * @internal 仅供 probe 诊断参考,请勿在业务装配中直接调用(会写回 ctx.session)。
3002
3261
  */
3003
3262
  export declare function getExistingSession(ctx: WrapperContext): NodeIQQNTWrapperSession | null;
3004
3263
  /**
@@ -3006,12 +3265,39 @@ export declare function getExistingSession(ctx: WrapperContext): NodeIQQNTWrappe
3006
3265
  * `NodeIQQNTStartupSessionWrapper.create()` → `start()` → `getSessionIdList()`(Map
3007
3266
  * {nt:"nt_3", gpro:"gpro_3"})→ `NodeIQQNTWrapperSession.getNTWrapperSession("nt_3")`。
3008
3267
  * 注:实测这些 session 是空壳(核心 service null),真正可用的是 new + init(lifecycle.ts)。
3268
+ *
3269
+ * @internal 仅供 probe 诊断参考,请勿在业务装配中直接调用(纯查询语义,不改写 ctx.session)。
3009
3270
  */
3010
3271
  export declare function getMainSession(ctx: WrapperContext): NodeIQQNTWrapperSession | null;
3272
+ /** NAPI 回调占位(方法存在即可被反射调用,无副作用)。 */
3273
+ declare const noop: () => void;
3274
+ /** NodeIGlobalAdapter 实现(engine.initWithDeskTopConfig 第二参)。 */
3275
+ export declare class GlobalAdapter implements NodeIGlobalAdapter {
3276
+ onLog: typeof noop;
3277
+ onGetSrvCalTime: typeof noop;
3278
+ onShowErrUITips: typeof noop;
3279
+ fixPicImgType: typeof noop;
3280
+ getAppSetting: typeof noop;
3281
+ onInstallFinished: typeof noop;
3282
+ onUpdateGeneralFlag: typeof noop;
3283
+ onGetOfflineMsg: typeof noop;
3284
+ }
3285
+ /** NodeIDependsAdapter 实现(session.init 第二参)。 */
3286
+ export declare class DependsAdapter implements NodeIDependsAdapter {
3287
+ onMSFStatusChange: typeof noop;
3288
+ onMSFSsoError: typeof noop;
3289
+ getGroupCode: typeof noop;
3290
+ }
3291
+ /** NodeIDispatcherAdapter 实现(session.init 第三参)。 */
3292
+ export declare class DispatcherAdapter implements NodeIDispatcherAdapter {
3293
+ dispatchRequest: typeof noop;
3294
+ dispatchCall: typeof noop;
3295
+ dispatchCallWithJson: typeof noop;
3296
+ }
3011
3297
  /** 会话监听器选项。 */
3012
3298
  interface SessionListenerOptions {
3013
3299
  /** 事件日志回调(默认静默——boot 阶段事件对用户是噪音;调试时可传回调观察)。 */
3014
- onEvent?: (name: string, ...args: unknown[]) => void;
3300
+ onEvent?: ((name: string, ...args: unknown[]) => void) | undefined;
3015
3301
  }
3016
3302
  /**
3017
3303
  * 创建会话监听器(默认静默,boot 阶段默认;login 模块接入后可覆盖)。
@@ -3050,9 +3336,9 @@ interface SessionConfigOptions {
3050
3336
  accountPath: string;
3051
3337
  downloadPath: string;
3052
3338
  /** 设备指纹 guid(来自 loginService.getMachineGuid();缺省空串)。 */
3053
- machineGuid?: string;
3339
+ machineGuid?: string | undefined;
3054
3340
  /** 平台(缺省按 process.platform 探测;测试/联调可显式覆盖)。 */
3055
- platform?: PlatformType;
3341
+ platform?: PlatformType | undefined;
3056
3342
  }
3057
3343
  /** 生成 session 初始化配置(登录成功后调用)。 */
3058
3344
  export declare function buildSessionConfig(options: SessionConfigOptions): WrapperSessionInitConfig;
@@ -3098,5 +3384,5 @@ interface QqVersionInfo {
3098
3384
  }
3099
3385
  /** @deprecated 使用 `QqVersionInfo`(缩写大小写统一为 `Qq`)。 */
3100
3386
  type QQVersionInfo = QqVersionInfo;
3101
- export { type BootEnv, type BuddyCacheEventChannel, type BuddyCacheListener, type BuddyCacheOptions, type BuddyCategory, type BuddyCoreInfo, type BuddyEventChannel, type BuddyListEntry, type BuddyListener, type BuddyReq, type CanonicalElement, type ConfigFormat, type ConfigOptions, type ConfigSchema, type CoreContext, type CoreContextOptions, type CoreLoginOptions, type DesktopPathConfig, type DeviceInfo, type DoubtBuddyReq, type DoubtFriendRequestInfo, type EnginInitDesktopConfig, type EssenceMsgItem, type FlashTransferUploadOptions, type FlashTransferUploadResult, type ForceFetchClientKeyRetType, type Friend, type FriendCategory, type GeneralCallResult, type GetFileListParam, type GrayTipElement, type GrayTipRevokeElement, type Group, type GroupBulletin, type GroupCacheOptions, type GroupDetailInfo, type GroupEventChannel, type GroupFileItemInfo, type GroupFolderInfo, type GroupHonorWebInfo, type GroupListener, type GroupMember, type GroupMemberDataSource, type GroupMemberListChange, type GroupNotify, type GroupSpaceInfo, type HonorListItem, type KernelErrorCode, type ListenerEvents, type ListenerRecordEvent, type ListenerRecordingResult, type LogConfig, type LogEnvSource, type LogFileConfig, type LogFormat, type LogLevel, type LogModuleName, type LoggerOptions, type LoginAccountInfo, type LoginEventChannel, type LoginListItem, type LoginProgress, type LoginResult, type LoginState, type MsgEventChannel, type MsgListener, type NapukettoCoreOptions, type NodeIDependsAdapter, type NodeIDispatcherAdapter, type NodeIGlobalAdapter, type NodeIKernelBuddyService, type NodeIKernelGroupService, type NodeIKernelLoginService, type NodeIKernelMsgService, type NodeIKernelProfileLikeService, type NodeIKernelProfileService, type NodeIKernelRecentContactService, type NodeIKernelRichMediaService, type NodeIKernelSessionListener, type NodeIKernelTicketService, type NodeIQQNTStartupSessionWrapper, type NodeIQQNTWrapperEngine, type NodeIQQNTWrapperSession, type NodeQQNTWrapperUtil, type NudgeParam, type PathOptions, type Peer, type PinnedContact, type PlatformType, type QQVersionContext, type QQVersionInfo, type QqVersionContext, type QqVersionInfo, type QrCodeData, type RDeliveryConfig, type RawElement, type RawMessage, type RecentContact, type RecentContactEventChannel, type RecentContactFetchParam, type RecentContactListChanged, type RecentContactListener, type SelfInfo, type SendMessageElement, type SessionConfigOptions, type ShutUpGroupMember, type StartNapukettoOptions, type StrangerInfo, type TimestampMode, type TipAioOpGrayTipElement, type TipGroupElement, type UserDetailInfoByUin, type VendorType, type WrapperContext, type WrapperNodeApi, type WrapperSessionInitConfig, createSessionListener as createLifecycleSessionListener };
3387
+ export { type BootEnv, type BuddyCacheEventChannel, type BuddyCacheListener, type BuddyCacheOptions, type BuddyCategory, type BuddyCoreInfo, type BuddyEventChannel, type BuddyListEntry, type BuddyListener, type BuddyProfileLikeResult, type BuddyReq, type CanonicalElement, type ConfigFormat, type ConfigOptions, type ConfigPathOptions, type ConfigSchema, type ConsoleFormatStreamOptions, type CoreContext, type CoreContextOptions, type CoreLoginOptions, type DesktopPathConfig, type DeviceInfo, type DoubtBuddyReq, type DoubtFriendRequestInfo, type EnginInitDesktopConfig, type EssenceMsgItem, type FaceElement, type FileElement, type FlashTransferFileSet, type FlashTransferFileStatus, type FlashTransferPermission, type FlashTransferTarget, type FlashTransferTaskInfo, type FlashTransferUploadListener, type FlashTransferUploadOptions, type FlashTransferUploadResult, type ForceFetchClientKeyRetType, type Friend, type FriendApiOptions, type FriendCategory, type GeneralCallResult, type GetFileListParam, type GrayTipElement, type GrayTipRevokeElement, type Group, type GroupBulletin, type GroupCacheOptions, type GroupDetailInfo, type GroupEventChannel, type GroupFileItemInfo, type GroupFileListItem, type GroupFileSystemInfo, type GroupFolderInfo, type GroupHonorWebInfo, type GroupListener, type GroupMember, type GroupMemberListChange, type GroupNotify, type GroupRemainAtTimes, type GroupSpaceInfo, type HonorListItem, type IKernelLoginListener, type KernelErrorCode, type KernelLoginListener, type KernelRuntime, type KernelRuntimeOptions, type KickMemberInfo, type KickMemberV2Req, type ListenerEvents, type ListenerRecordEvent, type ListenerRecordingResult, type LogConfig, type LogEnvSource, type LogFileConfig, type LogFormat, type LogLevel, type LogModuleName, type LoggerOptions, type LoginAccountInfo, type LoginEventChannel, type LoginListItem, type LoginListener, type LoginProgress, type LoginResult, type LoginState, type MsgEventChannel, type MsgListener, type MsgReadReportItem, type MsgReceipt, type NapukettoCoreOptions, type NodeIDependsAdapter, type NodeIDispatcherAdapter, type NodeIGlobalAdapter, type NodeIKernelBuddyService, type NodeIKernelGroupService, type NodeIKernelLoginService, type NodeIKernelMsgService, type NodeIKernelProfileLikeService, type NodeIKernelProfileService, type NodeIKernelRecentContactService, type NodeIKernelRichMediaService, type NodeIKernelSessionListener, type NodeIKernelTicketService, type NodeIQQNTStartupSessionWrapper, type NodeIQQNTWrapperEngine, type NodeIQQNTWrapperSession, type NodeQQNTWrapperUtil, type NudgeParam, type PathOptions, type Peer, type PicElement, type PinnedContact, type PlatformType, type PttElement, type QQVersionContext, type QQVersionInfo, type QqDataRootOptions, type QqVersionContext, type QqVersionInfo, type QrCodeData, type QuickLoginOptions, type RDeliveryConfig, type RawElement, type RawMessage, type RecentContact, type RecentContactEventChannel, type RecentContactFetchParam, type RecentContactListChanged, type RecentContactListener, type ReplyElement, type SelfInfo, type SendMessageElement, type SessionConfigOptions, type SessionListenerOptions, type ShutUpGroupMember, type StartNapukettoOptions, type StrangerInfo, type TextElement, type TimestampMode, type TipAioOpGrayTipElement, type TipGroupElement, type UserDetailInfoByUin, type VendorType, type VideoElement, type WrapperContext, type WrapperNodeApi, type WrapperSessionInitConfig, createSessionListener as createLifecycleSessionListener };
3102
3388
  //# sourceMappingURL=index.d.mts.map