import { L } from 'ts-toolbelt'; export declare function init(array: T[]): T[]; export declare function last(array: T): L.Last; export declare function removeItem(item: T, array: T[]): T[]; export declare function removeIndex(index: number, array: T[]): T[]; export declare function replaceLastItem(array: never[], item: unknown): never[]; export declare function replaceLastItem(array: Ts, item: T): L.Append, T>;