{
  "version": 3,
  "sources": ["../src/index.ts"],
  "sourcesContent": ["/**\n * Main entry point for @wordpress/worker-threads.\n *\n * This module provides utilities for type-safe Web Worker communication\n * using an RPC (Remote Procedure Call) pattern. It allows you to call\n * methods on a worker as if they were local async functions.\n *\n * @example\n * Main thread usage:\n * ```typescript\n * import { wrap, terminate } from '@wordpress/worker-threads';\n * import type { WorkerAPI } from './worker';\n *\n * const worker = new Worker(new URL('./worker.js', import.meta.url));\n * const api = wrap<WorkerAPI>(worker);\n *\n * const result = await api.processData(data);\n *\n * terminate(api);\n * ```\n *\n * Worker thread usage:\n * ```typescript\n * import { expose } from '@wordpress/worker-threads';\n *\n * const api = {\n *   async processData(data: ArrayBuffer): Promise<ArrayBuffer> {\n *     // ... processing\n *     return result;\n *   }\n * };\n *\n * expose(api);\n * export type WorkerAPI = typeof api;\n * ```\n */\n\n/**\n * Wraps a Worker to provide a type-safe RPC interface.\n */\nexport { wrap } from './main-thread';\n\n/**\n * Terminates a wrapped worker and cleans up resources.\n */\nexport { terminate } from './main-thread';\n\n/**\n * Exposes an object's methods to be called from the main thread.\n * This should be called in the worker script.\n */\nexport { expose } from './worker-thread';\n\n/**\n * Type that converts all methods to async versions.\n */\nexport type { Remote } from './types';\n"],
  "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAwCA,yBAAqB;AAKrB,IAAAA,sBAA0B;AAM1B,2BAAuB;",
  "names": ["import_main_thread"]
}
