UNPKG

@fnlb-project/stanza

Version:

Modern XMPP in the browser, with a JSON API

23 lines (22 loc) 677 B
import { Agent } from '../'; import { StreamFeatures } from '../protocol'; declare module '../' { interface Agent { features: { handlers: { [key: string]: FeatureHandler; }; negotiated: { [key: string]: boolean; }; order: Array<{ name: string; priority: number; }>; }; registerFeature(name: string, priority: number, handler: FeatureHandler): void; } } type FeatureHandler = (data: StreamFeatures, done: (cmd?: string, msg?: string) => void) => void; export default function (client: Agent): void; export {};