import type { MulmoScriptServerLog } from "./types"; /** Route captured GraphAI errors into the host logger. Set once by * `createMulmoScriptServerOps`; the GraphAILogger sink is global, so the * last-configured host logger wins (one ops instance per process). */ export declare function setMulmoErrorCaptureLogger(log: MulmoScriptServerLog | null): void; /** * Re-enable GraphAI's error level (everything else stays silenced) and * route it into the host logger + the per-operation capture store. * Call after every `setGraphAILogger(false)` — that helper disables all * levels including error. Idempotent. */ export declare function enableGraphAIErrorCapture(): void; /** Render mulmocast's structured error `cause` as "field=value" pairs. */ export declare function describeMulmoCause(err: unknown): string | null; /** * Compose the enriched message for a failed mulmocast operation: * mulmocast's own message, then its structured cause, then the * captured underlying provider error(s). Deduped — GraphAI retries * log the same error more than once. */ export declare function composeMulmoErrorMessage(err: unknown, captured: readonly string[]): string; /** * Run a mulmocast operation, capturing GraphAI error logs emitted while * it executes. On failure, rethrows with the captured provider error(s) * appended to the message (original error kept as `cause`). Uses * AsyncLocalStorage so concurrent operations don't cross-attribute. */ export declare function withMulmoErrorCapture(operation: () => Promise): Promise; //# sourceMappingURL=mulmoErrorCapture.d.ts.map