koishi-plugin-adapter-matrix
Version:
Matrix Adapter for koishi
18 lines (17 loc) • 516 B
TypeScript
import { Adapter, Context } from '@satorijs/satori';
import { Context as KoaContext } from 'koa';
import { MatrixBot } from './bot';
declare module 'koa' {
interface Context {
bots: MatrixBot[];
}
}
export declare class HttpAdapter extends Adapter.Server<MatrixBot> {
private txnId;
hook(callback: (ctx: KoaContext) => void): (ctx: KoaContext) => void;
constructor(ctx: Context);
start(bot: MatrixBot): Promise<void>;
private transactions;
private users;
private rooms;
}