import * as _center from './_center'; import { EventNoticer, Notification, Event } from '../event'; import * as server from '../_server'; import * as service from './service'; import * as node from './node'; /** * @class FastMessageTransferCenterDelegate */ export declare class FastMessageTransferCenterDelegate { private m_host; private m_impl; constructor(host: FastMessageTransferCenter); get host(): FastMessageTransferCenter; exec(id: string, args?: any[], method?: string): Promise; /** * @func auth() auth client, return client user info */ auth(fmtService: service.FMTService): Promise | Dict | null; /** * @func authFnode() auth fnode */ authFnode(fnodeRemoteService: node.FNodeRemoteService): boolean; /** * @func getCertificate() get current center certificate */ getCertificate(): string; triggerTo(id: string, event: string, data: any, sender: string): Promise; callTo(id: string, method: string, data: any, timeout: number, sender: string): Promise; sendTo(id: string, method: string, data: any, sender: string): Promise; } /** * @class FastMessageTransferCenter */ export declare class FastMessageTransferCenter extends Notification { private m_impl; private m_delegate; readonly onAddNode: EventNoticer>; readonly onDeleteNode: EventNoticer>; readonly onLogin: EventNoticer>; readonly onLogout: EventNoticer>; get id(): string; get publishURL(): import("../path").URL | null; get routeTable(): Map; constructor(server: server.Server, fnodes?: string[], publish?: string); client(id: string): service.FMTServerClient; hasOnline(id: string): Promise; user(id: string): Promise; trigger(event: string, data: any): number; publish(event: string, data: any): void; }