import type { Stream } from '../uri'; /** * Map each item of a {@link Stream} to a key and count how mony map to * each key. * * @export * @template A The type of the item. * @param {(x: A) => string} f The key from value function. * @return {(input: Stream) => Record} A function that will * take a {@link Stream} and returns the counts of its mapped values. * * @__PURE__ */ export declare function countBy(f: (x: A) => string): (input: Stream) => Record;