import type * as Comlink from 'comlink'; import type { IProjection } from '../../interfaces/index.js'; export type ProxyProjectionParams = { /** * Required in the main thread to spawn a worker (derived projection module path). * Not used in the worker thread. */ workerModulePath: string; messageTypes: string[]; }; export interface IProxyProjection extends IProjection> { } export interface IProxyProjectionType = IProxyProjection> { new (params: ProxyProjectionParams): TProxyProjection; }