/** * Run LLM Synthesis in Child Process * * This module spawns a child process to run LLM synthesis, completely isolating * it from the main thread's event loop. This bypasses Promise corruption issues * that occur after browse timeouts. * * Uses spawnSync for synchronous execution when async is broken. */ interface SynthesisInput { provider: 'anthropic' | 'openai'; sources: Array<{ url: string; title: string; excerpt: string; authorityScore: number; }>; outputSchema: Record; scope: string; } interface SynthesisOutput { success: boolean; data?: Record; confidence?: number; error?: string; } /** * Run LLM synthesis SYNCHRONOUSLY in a child process. * This does NOT use async/await at all - it's completely synchronous. * Safe to call even when the main thread's Promise system is broken. */ export declare function runLLMSynthesisSync(input: SynthesisInput, timeoutMs?: number): SynthesisOutput; export declare function runLLMSynthesisInFork(input: SynthesisInput, timeoutMs?: number): Promise; export {}; //# sourceMappingURL=run-llm-synthesis-fork.d.ts.map