stanza-extend
Version:
Modern XMPP in the browser, with a JSON API
18 lines (17 loc) • 495 B
TypeScript
import { Agent } from '../';
import * as JXT from '../jxt';
import { XRD } from '../protocol/xrd';
declare module '../' {
interface Agent {
discoverBindings(server: string): Promise<{
[key: string]: string[];
}>;
}
}
export declare function getHostMeta(registry: JXT.Registry, opts: string | {
host?: string;
json?: boolean;
ssl?: boolean;
xrd?: boolean;
}): Promise<XRD>;
export default function (client: Agent, stanzas: JXT.Registry): void;