import * as rpc from "./mod.js"; export interface Handler { respondRPC(r: rpc.Responder, c: rpc.Call): void; } export declare function HandlerFunc(fn: (r: rpc.Responder, c: rpc.Call) => void): Handler; export declare function NotFoundHandler(): Handler; export declare class RespondMux { handlers: { [index: string]: Handler; }; constructor(); respondRPC(r: rpc.Responder, c: rpc.Call): Promise; handler(c: rpc.Call): Handler; remove(selector: string): Handler | null; match(selector: string): Handler | null; handle(selector: string, handler: Handler): void; }