import { IKnowledge } from 'types';

interface IMsg {
  body: {
    [key: string]: any;
  };
}

export interface ICommand {
  type: string;
  data: IMsg;
}

export interface IService {
  send: (command: ICommand) => void;
  on: (type: ICommand['type'], callback: (msg: ICommand['data'], ctx: any) => void) => void;
}
