import { Context, Service } from 'koishi'; import { ActiveLinkScheduler } from './scheduler'; import { TaskManager } from './task-manager'; import { ChatExecutor } from './chat-executor'; import { ActiveLinkTaskType, CancelEvent, TaskCondition, ActiveLinkTask } from '../types'; declare module 'koishi' { interface Context { activelink?: ActiveLinkService; } } export declare class ActiveLinkService extends Service { config: any; scheduler: ActiveLinkScheduler; taskManager: TaskManager; chatExecutor: ChatExecutor; constructor(ctx: Context, config: any); start(): Promise; stop(): Promise; addTask(userId: string, channelId: string, content: string, triggerTime: Date | number, options?: { type?: ActiveLinkTaskType; tags?: string[]; cancelOn?: CancelEvent[]; condition?: TaskCondition; guildId?: string; metadata?: Record; platform?: string; }): Promise; cancelTask(taskId: number): Promise; executeTask(task: ActiveLinkTask): Promise; sendProactiveMessage(userId: string, channelId: string, content: string, options?: { guildId?: string; isDirect?: boolean; }): Promise; } export * from './scheduler'; export * from './task-manager'; export * from './chat-executor'; //# sourceMappingURL=index.d.ts.map