import type { RouteErrorPayload } from '../error-handling/route-error-hub.js'; export type ErrorLogKind = 'http-request' | 'http-response' | 'timeout' | 'provider' | 'tool' | 'pipeline' | 'server' | 'cli' | 'compat' | 'other'; export interface ErrorLogEntry { kind: ErrorLogKind; timestamp: number; requestId?: string; endpoint?: string; providerKey?: string; providerType?: string; routeName?: string; model?: string; code: string; message: string; scope?: string; source?: string; toolName?: string; toolCallId?: string; toolPhase?: string; timeoutMs?: number; details?: Record; } export declare function mapRouteErrorToLogEntry(payload: RouteErrorPayload, extras?: { kind?: ErrorLogKind; toolName?: string; toolCallId?: string; toolPhase?: string; timeoutMs?: number; }): ErrorLogEntry; export declare function appendErrorLogEntry(entry: ErrorLogEntry): Promise; export declare const ERROR_LOG_PATH: string; export declare function readErrorLogEntries(limit?: number): Promise;