import type { ResolvedProvider } from './types.js'; /** * Build an error message that an LLM can act on without a human in the loop. * * The shape is: * ". ." * * The first sentence describes what happened so a human reading the transcript * understands. The second sentence tells the LLM what to do — typically "tell * the user to verify X" — so the model doesn't fall back to vague apologies or * pointless retries. */ export declare function classifyHttpError(res: Response, body: string, provider: ResolvedProvider): string; /** Wrap a non-HTTP error (timeout, network, parse) with a hint for the LLM. */ export declare function describeNetworkError(error: unknown, provider: ResolvedProvider): string; export declare function safeText(response: Response): Promise; //# sourceMappingURL=errors.d.ts.map