export declare function conform(t?: T | T[]): T[]; export declare function concurrentFilter(array: T[], callback: (currentValue: T) => Promise): Promise; export declare function filter(array: T[], callback: (currentValue: T, currentIndex: number, array: readonly T[]) => Promise): Promise; export declare function filter(array: readonly T[], callback: (currentValue: T, currentIndex: number, array: readonly T[]) => Promise): Promise; export declare function map(array: T[], callback: (currentValue: T, currentIndex: number, array: readonly T[]) => Promise): Promise; export declare function map(array: T[], callback: (currentValue: T, currentIndex: number, array: readonly T[]) => Promise): Promise; export declare function map(array: readonly T[], callback: (currentValue: T, currentIndex: number, array: readonly T[]) => Promise): Promise; export declare function map(array: readonly T[], callback: (currentValue: T, currentIndex: number, array: readonly T[]) => Promise): Promise; export declare function reduce(array: T[], callback: (accumulator: T, currentValue: T, currentIndex: number, array: readonly T[]) => Promise): Promise; export declare function reduce(array: T[], callback: (accumulator: T, currentValue: T, currentIndex: number, array: readonly T[]) => Promise, initialValue: T): Promise; export declare function reduce(array: T[], callback: (accumulator: R, currentValue: T, currentIndex: number, array: readonly T[]) => Promise): Promise; export declare function reduce(array: T[], callback: (accumulator: U, currentValue: T, currentIndex: number, array: readonly T[]) => Promise, initialValue: U): Promise; export declare function reduce(array: readonly T[], callback: (accumulator: T, currentValue: T, currentIndex: number, array: readonly T[]) => Promise): Promise; export declare function reduce(array: readonly T[], callback: (accumulator: T, currentValue: T, currentIndex: number, array: readonly T[]) => Promise, initialValue: T): Promise; export declare function reduce(array: readonly T[], callback: (accumulator: R, currentValue: T, currentIndex: number, array: readonly T[]) => Promise): Promise; export declare function reduce(array: readonly T[], callback: (accumulator: U, currentValue: T, currentIndex: number, array: readonly T[]) => Promise, initialValue: U): Promise; /** * Splice an array. * * This function will return a new array with the standard splice behavior * applied. Unlike the standard array splice, the array of removed items is not * returned. */ export declare function splice(array: readonly T[], start: number, deleteCount?: number, ...items: T[]): T[]; /** * Move an item in an array by index. * * This function will return a new array with the item in the `fromIndex` * position moved to the `toIndex` position. If `fromIndex` or `toIndex` are * out of bounds, the array items remain unmoved. */ export declare function move(array: readonly T[], fromIndex: number, toIndex: number): T[]; /** * Replace an item in an array by index. * * This function will return a new array with the item in the `index` position * replaced with `item`. If `index` is out of bounds, the item is not replaced. */ export declare function replace(array: readonly T[], index: number, item: T): T[];