/** * 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 */ import { Buffer } from './platform'; export declare function timeoutPromise(target: Promise, delay: number, rejectValue?: () => any): Promise; export declare function promiseAny(promises: Array>): Promise; export declare function shuffle(array: T[]): T[]; export declare function sleep(time: number): Promise; export declare function octetCompare(str1: string | Buffer, str2: string | Buffer): number; export declare function uuid(): string; export declare function reviveData(key: string, value: unknown): unknown;