import { Context, Schema, Service } from "koishi"; declare module 'koishi' { interface Context { wbi: Wbi; } } declare class Wbi extends Service { wbiConfig: Wbi.Config; mixinKeyEncTab: number[]; constructor(ctx: Context, config: Wbi.Config); getMixinKey: (orig: any) => string; encWbi(params: any, img_key: any, sub_key: any): string; getWbiKeys(): Promise<{ img_key: any; sub_key: any; }>; getWbi(params: any): Promise; encrypt(text: string, secretKey?: string): string; decrypt(text: string, secretKey?: string): string; } declare namespace Wbi { interface Config { key: string; } const Config: Schema; } export default Wbi;