import { InternalStore } from '../fileStores'; import { Logger } from '../logger'; import { IRpcAdapter } from './adapters'; import { ApiNamespace, Router, RpcContext } from './routes'; export declare class RpcServer { readonly internal: InternalStore; readonly context: RpcContext; readonly adapters: IRpcAdapter[]; private _isRunning; private _startPromise; private logger; private authTokenBuffer; constructor(context: RpcContext, internal: InternalStore, logger?: Logger); get isRunning(): boolean; /** Creates a new router from this RpcServer with the attached routes filtered by namespaces */ getRouter(namespaces: ApiNamespace[]): Router; /** Starts the RPC server and tells any attached adapters to starts serving requests to the routing layer */ start(): Promise; /** Stops the RPC server and tells any attached adapters to stop serving requests to the routing layer */ stop(): Promise; /** Adds an adapter to the RPC server and starts it if the server has already been started */ mount(adapter: IRpcAdapter): Promise; /** Authenticate the RPC request */ authenticate(requestAuthToken: string | undefined | null): boolean; private generateAuth; private loadAuth; } //# sourceMappingURL=server.d.ts.map