type PushUpdateOptions<T> = {
    array: T[];
    item: T;
    maxLength: number;
    replace: boolean;
};
export declare function pushUpdate<T>({ array, item, maxLength, replace }: PushUpdateOptions<T>): T | null | undefined;
export {};
