/** * Patches a few stream convenience methods to the prototype of objects: * * String.stream() `Stream` Creates a stream over all characters. * * Array.stream() `Stream` Creates a stream over all items. * * Set.stream() `Stream` Creates a stream over all items. * * Map.stream() `Stream` Creates a stream over all key-value pairs. * * Object.stream() `Stream<{key: string, value: T}>` Creates a stream over all key-value pairs. * * Object.keys() `Stream` Creates a stream over all keys. * * Object.values() `Stream` Creates a stream over all values. * * ```javascript * require("elbe").monkeyPatch(); * * "foo".stream() // => Stream["f", "o", "o"] * * [1,2,3].stream() // => Stream[1, 2, 3] * * {foo: 42, bar: 99}.keys() // => Stream["foo", "bar"] * ``` * * @param inplace Iff `true`, uses {@link InplaceStreamFactory} or {@link TypesafeStreamFactory} otherwise. * @param force Iff `true`, always add the methods to the prototype. Otherwise, does nothing if the methods exist already. */ export declare function monkeyPatch(inplace?: boolean, force?: boolean): void;