import { Observable } from "observable-fns"; import { Thread as ThreadType, WorkerEvent } from "../types/master"; export declare type Thread = ThreadType; /** Thread utility functions. Use them to manage or inspect a `spawn()`-ed thread. */ export declare const Thread: { /** Return an observable that can be used to subscribe to all errors happening in the thread. */ errors(thread: ThreadT): Observable; /** Return an observable that can be used to subscribe to internal events happening in the thread. Useful for debugging. */ events(thread: ThreadT_1): Observable; /** Terminate a thread. Remember to terminate every thread when you are done using it. */ terminate(thread: ThreadT_2): Promise; };