/**
 * Finds the top k elements in a slice of the data array, using a priority accessor.
 *
 * @param {T[]} data
 * @param {number} k
 * @param {(datum: T) => number} priorityAccessor
 * @param {number} [start] Default: 0
 * @param {number} [end] Exclusive. Default: data.length
 * @template T
 * @returns {T[]}
 */
export function topK<T>(data: T[], k: number, priorityAccessor?: (datum: T) => number, start?: number, end?: number): T[];
//# sourceMappingURL=topK.d.ts.map