import { StrophePlugin } from "./strophe-plugin"; import type { StropheConnection, StropheHandler } from "./types"; export declare class StrophePingPlugin extends StrophePlugin { constructor(); static build(): StrophePingPlugin; init(conn: StropheConnection): void; /** * Function: ping * * Parameters: * (String) to - The JID you want to ping * (Function) success - Callback function on success * (Function) error - Callback function on error * (Integer) timeout - Timeout in milliseconds * @param jid * @param success * @param error * @param timeout */ ping(jid: string, success: Function, error: Function, timeout: number): void; /** * Function: pong * * Parameters: * (Object) ping - The ping stanza from the server * @param ping */ pong(ping: Element): void; /** * Function: addPingHandler * Parameters: * (Function) handler - Ping handler * Returns: * A reference to the handler that can be used to remove it. * @param handler */ addPingHandler(handler: (stanza: Element) => boolean): StropheHandler; } //# sourceMappingURL=strophe.ping.d.ts.map