import { Spawn } from "./types";
/**
 * Spawns a workers pool from worker defined in a separate file,
 * returns a function that handles messaging and returns responses as promises.
 *
 * Use when you want to separate worker definition from spawning a thread pool.
 *
 * @param fileName Path to a worker definition file created with `work` function
 * @param config Configuration options
 * @returns Async function that communicates with worker threads
 */
declare const spawn: Spawn;
export { spawn };
export default spawn;
