/** * "Časová osa rizika" — basic (public) variant. * * Extracts a chronologically sorted list of lifecycle events from the * existing DD report payload. No new backend calls; all data comes from * a single DdReport (ARES VR + ISIR). * * Basic events (this file): * - company.registered_on → vznik firmy * - company.dissolved_on → zánik firmy * - statutory_body[].since → jmenování statutáře * - insolvency.started_on → zahájení insolvence * - statutory.personal_insolvency → osobní bankrot statutáře * - statutory.prior_bankrupt_companies → předchozí krachy * - vat.unreliable_since → ADIS unreliable since * - retrieved_at → "today" anchor * * Rich variant (@czagents/ddplus) adds: * - ISIR insolvency lifecycle (each filing, status transitions, hearing dates) * - VAT reliability flip history (proxy via existing flag) * - Address change history (ARES historie) * - Cross-linked entity events (same statutory member, other companies) * - AI-generated narrative summary (Gemini Flash-Lite) */ import type { DdReport } from '../types.js'; export type EventSeverity = 'info' | 'warn' | 'alert'; export interface TimelineEvent { /** ISO date or YYYY-MM. We sort string-ascending which works for both. */ date: string; /** Display date (Czech locale). */ dateLabel: string; severity: EventSeverity; title: string; detail?: string; /** Source label shown small. */ source: string; } export interface TimelineResult { events: TimelineEvent[]; /** Basic risk score 0-100 derived from timeline event severities. * alert=3pts, warn=1pt, capped at 100. Narrative and deep scoring * available in rich variant (@czagents/ddplus). */ riskScore: number; } export declare function buildTimeline(r: DdReport): TimelineResult; //# sourceMappingURL=risk-timeline.d.ts.map