/** * Checks if a value is not null. * * @param value - The value to check. * @returns True if the value is not null, otherwise false. */ export declare function isNotNull(value: T | null): value is T; /** * Checks if a value is not null, undefined, or void. * * @param value - The value to check. * @returns True if the value is not null, undefined, or void, otherwise false. */ export declare function isSome(value: T | null | undefined | void): value is NonNullable; /** * Checks if a value is null, undefined, or void. * * @param value - The value to check. * @returns True if the value is null, undefined, or void, otherwise false. */ export declare function isNone(value: T | null | undefined | void): value is null | undefined | void; /** * Checks if a string is numeric. * * @param value - The string to check. * @returns True if the string is numeric, otherwise false. */ export declare function isNumeric(value: string): boolean; /** * Generates a SHA-1 hash of the given text. * * @param text - The text to hash. * @returns The SHA-1 hash of the text. */ export declare const hash: (text: string) => string; /** * Executes an array of functions and returns the first result that satisfies the predicate. * * @param functions - The array of functions to execute. * @param predicate - The predicate to test the results. Defaults to checking if the result is not null. * @returns The first result that satisfies the predicate, or undefined if no result satisfies the predicate. */ export declare function firstFrom(functions: Array<() => T | Promise>, predicate?: (result: T) => boolean): Promise; /** * Lazily executes an array of functions and yields their results. * * @param functions - The array of functions to execute. * @returns A generator yielding the results of the functions. */ export declare function lazyExecutor(functions: Array<() => T>): Generator; /** * Runs an async task for each item with a bounded concurrency. * * Without a cap, `Promise.all(items.map(fn))` schedules every task at once. * For I/O-heavy tasks like reading file contents this can hold the bytes of * every file resident in memory simultaneously, which on large workspaces * exhausts the V8 external-memory budget (see issue #1167). * * @param items - the items to process * @param limit - the maximum number of tasks running concurrently * @param fn - the async task to run per item */ export declare function mapWithConcurrency(items: readonly T[], limit: number, fn: (item: T) => Promise): Promise; //# sourceMappingURL=core.d.ts.map