/** * Worker thread implementation for Tamagui extraction * Used by both piscina (async) and synckit (sync for babel) */ import type { BabelFileResult } from '@babel/core'; import type { ExtractedResponse } from './extractor/extractToClassNames'; import type { TamaguiOptions } from './types'; export interface ExtractToClassNamesTask { type: 'extractToClassNames'; source: string; sourcePath: string; options: TamaguiOptions; shouldPrintDebug: boolean | 'verbose'; } export interface ExtractToNativeTask { type: 'extractToNative'; sourceFileName: string; sourceCode: string; options: TamaguiOptions; } export interface ClearCacheTask { type: 'clearCache'; } export type WorkerTask = ExtractToClassNamesTask | ExtractToNativeTask | ClearCacheTask; export type WorkerResult = { success: true; data: ExtractedResponse | null; } | { success: true; data: BabelFileResult; } | { success: false; error: string; stack?: string; }; /** * Main worker function that handles both extraction types * This is called by piscina for async usage */ export declare function runTask(task: WorkerTask): Promise; /** * For synckit compatibility - exports the runTask as default * Synckit will call this function synchronously using worker threads */ export default runTask; //# sourceMappingURL=worker.d.ts.map