import * as Component from './Component'; import * as RpcAble from './RpcAble'; import * as CommandAble from './CommandAble'; import { Event } from './Event'; import { State } from './State'; import { Typer } from 'cqes-type'; export declare type handler = (state: State, event: Event) => Promise; export interface props extends Component.props, RpcAble.props, CommandAble.props { } export declare class Handlers extends Component.Component { protected rpcBuses: RpcAble.Buses; protected queryTypes: RpcAble.Types; protected requestTypes: RpcAble.Types; protected query: (target: Typer, data: any, meta?: any) => RpcAble.EventEmitter; protected request: (target: Typer, data: any, meta?: any) => RpcAble.EventEmitter; protected commandBuses: CommandAble.Buses; protected commandTypes: CommandAble.Types; protected command: (target: string, streamId: string, data: any, meta?: any) => CommandAble.EventEmitter; protected getCommandTyper: (context: string, category: string, order: string) => Typer; constructor(props: props); start(): Promise; stop(): Promise; }