import { TimelineConfig, TimelineEvent } from './types';
export type { TimelineConfig, TimelineEvent } from './types';
export declare class Timeline {
    readonly el: HTMLDivElement;
    private readonly timelineId;
    private readonly orientation;
    private readonly showTimestamps;
    private readonly dateFormat;
    private readonly onEventClick;
    private readonly groupByDate;
    private events;
    private eventHandlers;
    constructor(config: TimelineConfig);
    /** Replace all events and re-render */
    update(events: TimelineEvent[]): void;
    /** Append a single event and re-render */
    addEvent(event: TimelineEvent): void;
    /** Clean up DOM and event listeners */
    destroy(): void;
    private render;
    private renderVertical;
    private renderFlatVertical;
    private renderGroupedVertical;
    private createVerticalEvent;
    private renderHorizontal;
    private createHorizontalEvent;
    private createEventContent;
    private buildRootClassName;
    private cleanupHandlers;
}
//# sourceMappingURL=index.d.ts.map