export interface ITerminalCompilerWorkerRecovery { /** Atomically claim and fence the failed Worker generation. */ claim(): boolean; /** Close and clear that Worker generation. */ reset(): Promise; /** Publish the terminal error after the old Worker is no longer reachable. */ fail(error: unknown): void; } /** * Replace a compiler Worker after its Go runtime started but boot never became * usable. Returns false for ordinary compile, transport, and plugin failures. */ export declare function recoverTerminalCompilerWorker(error: unknown, recovery: ITerminalCompilerWorkerRecovery): Promise; /** Recognize both local errors and their plain tgrid/JSON transport shape. */ export declare function requiresCompilerWorkerReplacement(error: unknown): boolean;