import { Session } from 'koishi'; export type PromiseLikeDisposable = () => PromiseLike | void; export interface PostHandler { prefix: string; postfix: string; censor?: boolean; variables: Record; handler: (session: Session, data: string) => Promise; } export interface HandlerResult { displayContent: string; content: string; variables: Record; }