import type { Keys } from "@thi.ng/api"; import type { Reducer } from "./api.js"; /** * Reducer. Combination of {@link push} and {@link pluck}, which looks up given * `key` in each input and collects these values into an array. * * @remarks * Also see {@link pushCopy}, {@link pushSort}. * * @example * ```ts tangle:../export/push-keys.ts * import { pushKeys } from "@thi.ng/transducers"; * * const data = [{id: "a", val: 1}, {id: "b", val: 2}, {id: "c", val: 3}]; * * console.log(pushKeys("id", data)); * // ["a", "b", "c"] * * console.log(pushKeys("val", data)); * // [1, 2, 3] * ``` */ export declare function pushKeys>(key: K): Reducer; export declare function pushKeys>(key: K, src: Iterable): T[K][]; //# sourceMappingURL=push-keys.d.ts.map