UNPKG

535 BTypeScriptView Raw
1export = worker;
2/** @typedef {import("./index").WorkerResult} WorkerResult */
3/** @typedef {import("./index").FilenameFn} FilenameFn */
4/**
5 * @template T
6 * @param {import("./index").InternalWorkerOptions<T>} options
7 * @returns {Promise<WorkerResult>}
8 */
9declare function worker<T>(
10 options: import("./index").InternalWorkerOptions<T>
11): Promise<WorkerResult>;
12declare namespace worker {
13 export { WorkerResult, FilenameFn };
14}
15type WorkerResult = import("./index").WorkerResult;
16type FilenameFn = import("./index").FilenameFn;