import { Context, h, Session } from 'koishi'; type Owner = { name: string; matches: (session: Session) => boolean | Promise; }; /** 渲染图优先,只发图片;图片缺失时才退回等价文字。 */ export declare function present(image: h.Fragment | null | undefined, text: h.Fragment): h.Fragment; /** Plugins register their active input grammar; overlapping messages are never executed. */ export declare function registerDirectInput(ctx: Context, name: string, matches: Owner['matches']): void; export declare function directInputConflict(ctx: Context, session: Session): Promise; /** 等待下一句回复。提问本身已经写明了可回复的内容与「取消」,这里不再追加说明。 */ export declare function promptInput(session: Session): Promise; export {};