/**
 * Given an array of items sorted by `comparator`, insert an item into its sort index and constrain the size to
 * `maxSize` by removing the last item
 * @param items
 * @param add
 * @param maxSize
 * @param comparator
 */
export declare function sortedInsert<T>(items: T[], add: T, maxSize: number, comparator: (a: T, b: T) => number): T | null;
