;
/**
* Zero-copy wraps ArrayBuffer-like objects into Buffer
* This supports ArrayBuffer, TypedArrays and the NodeJS Buffer
*/
declare function bufferWrap(array: BufferSource, offset?: number, length?: number): Buffer;
/**
* Checks if data is an ArrayBuffer-like object
* This includes ArrayBuffer, TypedArrays and the NodeJS Buffer
*/
declare function isBufferSource(data: unknown): data is BufferSource;
declare function debounce(f: (...params: P) => any, timeout?: number): (...param: P) => void;
declare function isPromise(v: any): v is Promise;
declare function isPromiseLike(v: any): v is PromiseLike;
/**
* Is generator object
* Use this to check for generators
*/
declare function isGenerator(v: any): v is Generator;
/**
* Is async generator object
* Use this to check for async generators
*/
declare function isAsyncGenerator(v: any): v is AsyncGenerator;
/**
* Encodes whole numbers (inc of 0) to lexicographic buffers
*/
declare function lexiPackBuffer(n: number): Buffer;
/**
* Decodes lexicographic buffers to whole numbers (inc of 0)
*/
declare function lexiUnpackBuffer(b: Buffer): number;
/**
* Used to yield to the event loop to allow other micro tasks to process
*/
declare function yieldMicro(): Promise;
/**
* Increases the total number of registered event handlers before a node warning is emitted.
* In most cases this is not needed but in the case where you have one event emitter for multiple handlers you'll need
* to increase the limit.
* @param target - The specific `EventTarget` or `EventEmitter` to increase the warning for.
* @param limit - The limit before the warning is emitted, defaults to 100000.
*/
declare function setMaxListeners(target: EventTarget | NodeJS.EventEmitter, limit?: number): void;
declare function importFS(fs?: FileSystem): Promise;
/**
* Races a promise against a context. If the context is aborted, then the promise
* rejects with the reason. Otherwise, the original value is returned upon
* resolving.
* @param prom The promise to resolve
* @param ctx The ctx with which to race the promise against
* @returns A promise which resolves to the prom value or errors if ctx aborts
*/
declare function raceSignal(prom: Promise, abortSignal: AbortSignal): Promise;
export { AsyncFunction, GeneratorFunction, AsyncGeneratorFunction, getDefaultNodePath, never, mkdirExists, dirEmpty, pathIncludes, sleep, sleepCancellable, isObject, isEmptyObject, filterEmptyObject, filterObject, mergeObjects, getUnixtime, poll, promisify, promise, signalPromise, timerStart, timerStop, arraySet, arrayUnset, arrayZip, arrayZipWithPadding, asyncIterableArray, bufferSplit, debounce, isPromise, isPromiseLike, isGenerator, isAsyncGenerator, lexiPackBuffer, lexiUnpackBuffer, bufferWrap, isBufferSource, yieldMicro, setMaxListeners, importFS, raceSignal, };