UNPKG

@vlad8096/stanza

Version:

Modern XMPP in the browser, with a JSON API

15 lines (14 loc) 616 B
/** * Portions of this file are derived from prior work. * * See NOTICE.md for full license text. * * Derived from: * - uuid, Copyright (c) 2010-2016 Robert Kieffer and other contributors */ /// <reference types="node" /> export declare function timeoutPromise<T>(target: Promise<T>, delay: number, rejectValue?: () => any): Promise<T>; export declare function sleep(time: number): Promise<void>; export declare function octetCompare(str1: string | Buffer, str2: string | Buffer): number; export declare function uuid(): string; export declare function reviveData(key: string, value: any): any;