import { segment as se } from 'icqq' import { RedisClientType } from 'redis' import { Client, plugin as p } from './core/index.js' import chalk, { type ChalkInstance } from 'chalk' import Ren from './utils/renderer/Renderer.js' /** * */ type LogType = string | Error | unknown /** * */ type LoggerType = { trace(...arg: LogType[]): any debug(...arg: LogType[]): any info(...arg: LogType[]): any warn(...arg: LogType[]): any error(...arg: LogType[]): any fatal(...arg: LogType[]): any mark(...arg: LogType[]): any } /** * @deprecated 不推荐使用 */ type ChalkInstanceType = { /** * @deprecated 不推荐使用 */ red: ChalkInstance.red /** * @deprecated 不推荐使用 */ green: ChalkInstance.green /** * @deprecated 不推荐使用 */ blue: ChalkInstance.blue /** * @deprecated 不推荐使用 */ yellow: ChalkInstance.yellow /** * @deprecated 不推荐使用 */ magenta: ChalkInstance.magenta /** * @deprecated 不推荐使用 */ cyan: ChalkInstance.cyan } declare global { /** * import { Redis } from 'yunzai/core' * @deprecated 不推荐使用,未来将废弃 */ var redis: RedisClientType /** * import { Bot } from 'yunzai/core' * @deprecated 不推荐使用,未来将废弃 */ var Bot: typeof Client.prototype /** * import { Segment } from 'yunzai/core' * @deprecated 不推荐使用,未来将废弃 */ var segment: typeof se /** * import { Plugin } from 'yunzai/core' * @deprecated 不推荐使用,未来将废弃 */ var plugin: typeof p /** * 统一化的打印对象 * 构造颜色请使用 logger.chalk */ var logger: LoggerType & ChalkInstanceType & { chalk: ChalkInstance } /** * * @deprecated 不推荐使用,未来将废弃 */ var Renderer: typeof Ren }