import { IEnumerable } from '../types'; /** * Provides a set of static methods for IEnumerable. */ export declare class Enumerable { /** * Creates a new Enumerable from the input Iterable. * @example * ```typescript * const numbers = [1, 2, 3, 4]; * const enumerable = Enumerable.from(numbers); * ``` * @param src The Iterable to create an Enumerable from. * @returns A new Enumerable. */ static from(src: Iterable): IEnumerable; /** * Creates a new Enumerable from the input object. * @example * ```typescript * const obj = { * foo: 1, * bar: 'b' * }; * const enumerable = Enumerable.from(obj); * ``` * @param src The object to create an Enumerable from. * @returns A new Enumerable. */ static fromObject(src: TSource): IEnumerable<[keyof TSource, TSource[keyof TSource]]>; /** * Creates an empty Enumerable. * @example * ```typescript * const empty = Enumerable.empty(); * ``` * @returns A new empty Enumerable. */ static empty(): IEnumerable; /** * Generates a sequence of integral numbers within a specified range. * @param start The value of the first integer in the sequence. * @param count The number of sequential integers to generate. * @returns An IEnumerable that contains a range of sequential integral numbers. */ static range(start: number, count: number): IEnumerable; /** * Generates a sequence that contains one repeated value. * @typeparam TResult The type of the value to be repeated in the result sequence. * @param element The value to be repeated. * @param count The number of times to repeat the value in the generated sequence. * @returns An IEnumerable that contains a repeated value. */ static repeat(element: TResult, count: number): IEnumerable; /** * Determines if the passed in object is an Enumerable. * @param obj The item to test if it is an Enumerable or not. * @returns True if the obj is an Enumerable. False if not. */ static isEnumerable(obj: unknown): obj is IEnumerable; } //# sourceMappingURL=Enumerable.d.ts.map