Files
NapCatQQ/.pnpm-store/v3/files/c0/cfa58677edaebc1d1bb5174b5ce506d41ee26ab966c6d8ea5a0808dc0e35a6f87c00c925e8ec094bd30f72d8e0aff2caddbec26436f111d6eb7b3d918cdc32
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

70 lines
2.8 KiB
Plaintext

import { NTQQFileApi, NTQQFriendApi, NTQQGroupApi, NTQQMsgApi, NTQQSystemApi, NTQQUserApi, NTQQWebApi, NTQQFlashApi, NTQQOnlineApi } from './apis';
import { NTQQCollectionApi } from './apis/collection';
import { NodeIQQNTWrapperSession, NodeQQNTWrapperUtil, WrapperNodeApi, WrapperSessionInitConfig } from './wrapper';
import { LogWrapper } from './helper/log';
import { QQBasicInfoWrapper } from './helper/qq-basic-info';
import { NapCatPathWrapper } from '../napcat-common/src/path';
import { NTEventWrapper } from './helper/event';
import { SelfInfo } from './types';
import { NapCatConfigLoader } from './helper/config';
import { NTQQPacketApi } from './apis/packet';
import { NativePacketHandler } from './packet/handler/client';
import { TypedEventEmitter } from './packet/handler/typeEvent';
export * from './wrapper';
export * from './types/index';
export * from './services/index';
export * from './listeners/index';
export * from './apis/index';
export * from './helper/log';
export * from './helper/qq-basic-info';
export * from './helper/event';
export * from './helper/config';
export * from './helper/config-base';
export * from './helper/proxy-handler';
export * from './helper/session-proxy';
export enum NapCatCoreWorkingEnv {
Unknown = 0,
Shell = 1,
Framework = 2
}
export declare function loadQQWrapper(execPath: string | undefined, QQVersion: string): WrapperNodeApi;
export declare function getMajorPath(execPath: string, QQVersion: string): string;
export declare class NapCatCore {
readonly context: InstanceContext;
readonly eventWrapper: NTEventWrapper;
event: TypedEventEmitter<import("./packet/handler/eventList").AppEvents>;
NapCatDataPath: string;
NapCatTempPath: string;
apis: StableNTApiWrapper;
selfInfo: SelfInfo;
util: NodeQQNTWrapperUtil;
configLoader: NapCatConfigLoader;
constructor(context: InstanceContext, selfInfo: SelfInfo);
initCore(): Promise<void>;
get dataPath(): string;
initNapCatCoreListeners(): Promise<void>;
}
export declare function genSessionConfig(guid: string, QQVersionAppid: string, QQVersion: string, selfUin: string, selfUid: string, account_path: string): Promise<WrapperSessionInitConfig>;
export interface InstanceContext {
readonly workingEnv: NapCatCoreWorkingEnv;
readonly wrapper: WrapperNodeApi;
readonly session: NodeIQQNTWrapperSession;
readonly logger: LogWrapper;
readonly basicInfoWrapper: QQBasicInfoWrapper;
readonly pathWrapper: NapCatPathWrapper;
readonly packetHandler: NativePacketHandler;
}
export interface StableNTApiWrapper {
FileApi: NTQQFileApi;
SystemApi: NTQQSystemApi;
PacketApi: NTQQPacketApi;
CollectionApi: NTQQCollectionApi;
WebApi: NTQQWebApi;
FriendApi: NTQQFriendApi;
MsgApi: NTQQMsgApi;
UserApi: NTQQUserApi;
GroupApi: NTQQGroupApi;
FlashApi: NTQQFlashApi;
OnlineApi: NTQQOnlineApi;
}