import { AsyncExecService } from "./AsyncExecService"; import { InMemoryStorage } from "./InMemoryStorage"; import { Logger } from "./Logger"; import { ConsoleLogger } from "./ConsoleLogger"; import { GuidGenerator } from "./GuidGenerator"; import { UnreachableError } from "./UnreachableError"; import { BufferingEventEmitter } from "./BufferingEventEmitter"; import { timeLimitedPromise, TimeoutError } from './TimeLimitedPromise'; /** * Extract a random sample from an array of items using reservoir sampling */ export declare function randomSample(inputArray: any[], sampleSize: number): any[]; /** * Convenience for checking the number of arguments to a function */ export declare function checkArguments(argumentsArray: IArguments, expectedCount: number): void; export declare function consoleLogger(): ConsoleLogger; /** * Factory method for instances of the in-memory DOM storage API implementation */ export declare function newInMemoryStorage(): InMemoryStorage; export declare function asyncExecService(): AsyncExecService; /** * Return the DOM storage object wrapped in an obfuscating decorator */ export declare function obfuscateStorage(storage: Storage): Storage; /** * Shuffle an array in place * * http://jsfromhell.com/array/shuffle [v1.0] */ export declare function shuffleArray(inputArray: any[]): any[]; export { Logger, AsyncExecService, GuidGenerator as generateGuid, UnreachableError, BufferingEventEmitter, timeLimitedPromise, TimeoutError };