/**
 * Log-rendering helpers for the OR adapter: serialize harness logger `fields`
 * payloads and summarize `error` event causes without ever throwing on
 * unknown shapes. The openrouter-agent-harness logger carries the actual
 * failure context (error message, structured detail, serialized failed
 * event) in its third `fields` argument — dropping it leaves Winston with
 * bare labels like "OpenRouterAgentRun stream errored" and no error at all.
 */
/** JSON-stringify that never throws (circular refs, BigInt, …), truncated. */
export declare function safeStringify(value: unknown, max?: number): string;
/**
 * Render a harness logger `fields` object as a ` {...}` log-line suffix.
 * Empty string when the fields are absent or empty.
 */
export declare function formatLogFields(fields: Record<string, unknown> | undefined): string;
/**
 * Summarize an `error` event's `cause` for logging: the cause's own message
 * (when it adds information beyond the surfaced `primaryMessage`) plus the
 * `statusCode`/`body` that openrouter-agent-harness's HTTP-level SDK errors
 * expose — checked on the cause itself and one `cause` hop deeper, matching
 * the harness's own unwrapping. Empty string when nothing useful is present.
 */
export declare function describeErrorCause(cause: unknown, primaryMessage?: string): string;
//# sourceMappingURL=logFields.d.ts.map