Files
SnowCatQQ/packages/snowcat-types/external-shims.d.ts
T
天天的鸟蛋蛋 b9655a5ab1 SnowCat 雪猫底层全源码:NapCat 4.18.28 底座 + SnowLuma 能力移植 + V8 通道适配 9.9.37
26 包 monorepo(TS 全源码):
- snowcat-core: NT 内核 API 封装 + listener(含 9.9.37 六回调适配)+ Packet 发包
- snowcat-onebot: OneBot v11 全动作 + MCP Streamable HTTP 适配器 + 稳定线
- snowcat-webui-frontend/backend: 雪猫控制台(React+HeroUI)
- snowcat-shell: 单文件 bundle 出口(vite inlineDynamicImports)
- snowcat-native: napi2native / MoeHoo / ffmpeg / pty 运行时
- 56 项 SnowLuma 独门动作移植(qzone 全家桶/群相册/装扮/闪照/收藏)
- 工具件: 解包器/启动器/便携制作器/doctor

GitHub 关联已全量指向 DandanLLab/SnowCatQQ
2026-11-12 06:27:36 +08:00

105 lines
2.6 KiB
TypeScript

// 外部模块 shim,提供最小的可运行值和类型,避免类型包依赖外部环境
// node:* 模块移除 mock,使用系统自带类型
// (ws/express/winston) now provided by real type deps (@types/ws, @types/express, winston)
declare module 'ffmpeg-static' {
const _ffmpeg_static_default: any;
export default _ffmpeg_static_default;
}
declare module 'fluent-ffmpeg' {
const _fluent_ffmpeg_default: any;
export default _fluent_ffmpeg_default;
}
declare module 'sharp' {
const _sharp_default: any;
export default _sharp_default;
}
declare module 'uuid' {
export function v4 (...args: any[]): string;
}
declare module 'axios' {
const _axios_default: any;
export default _axios_default;
}
declare module 'body-parser' {
const _body_parser_default: any;
export default _body_parser_default;
}
declare module 'cors' {
const _cors_default: any;
export default _cors_default;
}
declare module 'file-type' {
export function fileTypeFromFile (path: string): Promise<any>;
}
declare module 'image-size' {
const _image_size_default: any;
export default _image_size_default;
}
declare module 'jimp' {
const _jimp_default: any;
export default _jimp_default;
}
declare module 'qrcode' {
const _qrcode_default: any;
export default _qrcode_default;
}
declare module 'yaml' {
export const parse: (...args: any[]) => any;
export const stringify: (...args: any[]) => any;
}
declare module 'snowcat-protobuf' {
export class NapProtoMsg<T = any> {
constructor (schema: any);
decode (buffer: any): T;
encode (value: any): Uint8Array;
}
export function ProtoField (...args: any[]): any;
export type NapProtoEncodeStructType<_T> = any;
export type NapProtoDecodeStructType<_T> = any;
export type ScalarProtoFieldType<_T> = any;
export type MessageProtoFieldType<_T> = any;
export const ScalarType: {
STRING: any;
INT64: any;
INT32: any;
UINT32: any;
UINT64: any;
BYTES: any;
BOOL: any;
[key: string]: any;
};
}
declare module 'inversify' {
export class Container {
bind: (...args: any[]) => any;
get: <T = any>(id: any) => T;
}
export function injectable (...args: any[]): any;
export function inject (...args: any[]): any;
export interface ServiceIdentifier<_T = any> { }
const _inversify_default: any;
export default _inversify_default;
}
declare module 'ip' {
export function toBuffer (ip: any, buffer?: Buffer, offset?: number): Buffer;
export function toString (buffer: any, offset?: number, length?: number): string;
const _ip_default: any;
export default _ip_default;
}