/** * humanizeLLMError — turn a raw provider/SDK error into a plain-language * sentence a NON-developer can act on. * * agentfootprint targets vibe-coding / non-developer builders. A raw * "[browser-anthropic] Failed to fetch" or "401 Unauthorized" means * nothing to them. This maps the common failure shapes to a friendly, * actionable message. The raw error is preserved on `.cause` (and via * `wrapLLMError`) so developers can still dig in. * * Pure + dependency-light: string/shape matching only. Extend the cases * as new provider failure modes surface — keep each message short and * tell the user what to DO. */ /** Map a thrown provider/SDK error to a friendly, actionable sentence. */ export declare function humanizeLLMError(err: unknown): string; /** * Wrap a raw provider error in a fresh Error whose `.message` is the * humanized sentence, preserving the original on `.cause` for developers * (and "Copy for LLM"). Re-throw this from the LLM call site so the * friendly message flows through onError → onRunFailed → the monitor. */ export declare function wrapLLMError(err: unknown): Error;