/** * @license * Copyright Datorama. All Rights Reserved. * * Use of this source code is governed by an Apache License 2.0 license that can be * found in the LICENSE file at https://github.com/datorama/client-core/blob/master/LICENSE */ import { Observable } from 'rxjs'; /** * Run a function inside web worker * * ```ts * http.get('url').pipe( * mapWorker((response) => { * // do some stuff * return result; * }).subcribe(console.log); * ) * * ``` * @param fn - the function to execute inside the worker */ export declare const workerMap: (fn: Function) => (source: Observable) => Observable;