/** * activity-timeline.tsx * * — global activity feed grouped by correlation_id. * * Events that share a correlation_id are folded into a single "operation" * group (e.g. "Juan · Pedido creado · 4 cambios"). Events without a * correlation_id appear as standalone entries. * * Filters: by model, actor, action, and date range. All client-side. * * Transport-agnostic: events arrive via props; column metadata is resolved * per-model via the `resolveColumns(model)` injected function. No fetch. */ import * as React from 'react'; import type { ColumnDefinition } from './types'; import type { ActivityEvent } from './activity-diff'; export interface ActivityTimelineProps { /** * All activity events to display. The component groups, sorts, and filters * them client-side — order does not matter. */ events: ActivityEvent[]; /** * Injectable column metadata resolver. Called once per unique model name * encountered in the event list. Returns the column definitions for that * model, or undefined/empty when the host has no metadata for it. * * The host typically implements this as a cache lookup against its * MetadataService / metadata-cache store. */ resolveColumns?: (model: string) => ColumnDefinition[] | undefined; /** IANA timezone for datetime cells. */ timeZone?: string; /** ISO 4217 currency for money cells. */ currency?: string; /** BCP-47 locale. Defaults to 'es'. */ locale?: string; /** Class applied to the root element. */ className?: string; /** * When true, the filter bar is hidden. Useful when the host already * provides external filter controls and wants to feed pre-filtered events. */ hideFilters?: boolean; } /** * Global activity feed. Groups correlated events, renders a vertical timeline * with filter controls (model, actor, action, date range). * * The `resolveColumns` function is injected by the host. It maps a model name * to its `ColumnDefinition[]` (e.g. from the host's metadata-cache store). * When omitted or when it returns nothing, field keys are shown raw. */ export declare const ActivityTimeline: React.FC; //# sourceMappingURL=activity-timeline.d.ts.map