import { Awaitable } from 'koishi'; export interface PicSourceInfo { tags?: string[]; weight?: number; name: string; description?: string; isDefault?: boolean; } export interface PicResult { url: string; description?: string; } export type PicNext = (url?: string) => Awaitable; export interface PicMiddleware extends PicMiddlewareInfo { use(url: string, next: PicNext): Awaitable; } export interface PicMiddlewareInfo { name?: string; prepend?: boolean; }