import type { OperatorFunction } from 'rxjs'; /** * Map to an object composed of the provided properties. Uses lodash's pick function and therefore accepts deep * property paths * @since 1.0.0 * @kind Operator * @param props Properties to pick * @throws When the properties input is not an array * @returns An empty object if the source is not an object or the properties array is empty, * else an object composed of the provided properties, if they exist on the object. * @see https://lodash.com/docs/#pick * @example * import {of} from 'rxjs'; * import {pickProps} from '@aloreljs/rxutils/operators'; * * const obj = { * foo: { * bar: 1, * qux: 2 * }, * baz: 3, * bux: 4 * }; * * of(obj) * .pipe(pickProps(['foo.bar', 'baz'])) * .subscribe(); * // outputs {foo: {bar: 1}, baz: 3} */ export declare function pickProps(props: P[]): OperatorFunction>; /** * Map to an object composed of the provided properties. Uses lodash's pick function and therefore accepts deep * property paths * @kind Operator * @param props Properties to pick * @throws When the properties input is not an array * @returns An empty object if the source is not an object or the properties array is empty, * else an object composed of the provided properties, if they exist on the object. * @see https://lodash.com/docs/#pick * @example * import {of} from 'rxjs'; * import {pickProps} from '@aloreljs/rxutils/operators'; * * const obj = { * foo: { * bar: 1, * qux: 2 * }, * baz: 3, * bux: 4 * }; * * of(obj) * .pipe(pickProps(['foo.bar', 'baz'])) * .subscribe(); * // outputs {foo: {bar: 1}, baz: 3} */ export declare function pickProps(props: PropertyKey[]): OperatorFunction;