import { F as FileParse } from './types-DHqH0XIE.js';
/**
* tinypool worker entry. Receives a chunk of files, reads and parses each, and
* returns the FileParse table. Each worker owns its own web-tree-sitter instance
* (initialized lazily inside parseSource/grammars). Results are plain data, so
* they serialize cleanly back to the main thread.
*
* The `--grammars
` override is passed in the payload (env vars don't cross
* into worker threads in a controlled way) and applied per worker before parsing.
*/
interface ParseTask {
rel: string;
abs: string;
lang: string;
}
interface ParsePayload {
tasks: ParseTask[];
grammarsDir?: string;
}
declare function run(payload: ParsePayload): Promise;
export { type ParsePayload, type ParseTask, run as default };