export interface ServiceDispatcher { dispatch(context: C, method: string, data: D | undefined): Promise; getSupportedService(): string; getSupportedMethods(): string[]; } export declare class Dispatcher { private services; constructor(); register(dispatcher: ServiceDispatcher): boolean; unregister(serviceName: string): boolean; dispatch(ctx: C, service: string, method: string, data: D | undefined): Promise; }