/** * Fallback for `defineWorkerModule` that behaves identically but runs in the main * thread, for when the execution environment doesn't support web workers or they * are disallowed due to e.g. CSP security restrictions. */ export function defineMainThreadModule(options: any): { (...args: any[]): Promise; _getInitResult(): Promise; };