import type { ProxyResponse } from './types.js'; /** * Extract a human-readable error message from a Tokenite-style envelope. * * The dashboard returns `{ error: { code, message, status?, details? } }` * for structured errors and (rarely) `{ error: "literal message" }` from * legacy paths. This helper unifies both shapes and falls back to a * caller-supplied default when the body is missing or malformed. */ export declare const extractErrorMessage: (body: unknown, fallback: string) => string; export declare const toProxyResponse: (body: unknown) => ProxyResponse; //# sourceMappingURL=error.d.ts.map