export interface IAddOrRemoveItemsFromArrayCommonOptions {
    resultInNewArray?: boolean;
    addIfAlreadyPresent?: boolean;
}
export default function addItemAndGetResultingArray<Item = unknown>(arr: Item[], itemToAdd: Item, { resultInNewArray, addIfAlreadyPresent, }?: IAddOrRemoveItemsFromArrayCommonOptions): Item[];
