import { r as SummaryStrings } from "./summary-D8UEQXYr.js"; import { n as Format } from "./format-Dq02z5ZL.js"; import { CSSProperties, ReactNode } from "react"; //#region src/core/strings-timeline.d.ts type TimelineStrings = Pick; //#endregion //#region src/charts/event-timeline/index.d.ts type EventKind = "neutral" | "positive" | "negative" | "accent"; interface EventTimelineDatum { start: number | Date; /** Present = span; absent = point event. */ end?: number | Date | undefined; label?: string | undefined; kind?: EventKind | undefined; } interface NormalizedItem { start: number; end?: number | undefined; label?: string | undefined; kind: EventKind; } /** Normalizes to ms epoch; zero-duration spans demote to points (dev warn); * reversed spans are a dev error and dropped. */ declare function normalizeItems(data: readonly EventTimelineDatum[]): NormalizedItem[]; /** "4h 30m" / "45m" / "30s" — coarse two-unit duration for announcements. */ declare function formatDuration(msSpan: number): string; /** Merged coverage never double-counts. */ declare function eventTimelineSummary(spans: number, events: number, coverage: number, pctFmt: (n: number) => string, strings: TimelineStrings): string; interface EventTimelineProps { data: readonly EventTimelineDatum[]; /** The window (shared name, time-typed). Fixing it across rows is the * small-multiples contract. Defaults to the data extent. */ domain?: readonly [number | Date, number | Date] | undefined; /** Current-moment tick — authored, never implicit. */ now?: number | Date | undefined; /** `"spans"` = centered in-span labels with deterministic drop-out. */ label?: "none" | "spans" | undefined; width?: number | undefined; height?: number | undefined; format?: Format | undefined; locale?: string | string[] | undefined; strings?: TimelineStrings | undefined; /** Minimum in-chart label size, in viewBox units. Geometry sizes labels from * the mark and floors them at 7; this raises that floor and moves the * reserved gutter with it. A label the box cannot seat at the raised floor * drops rather than shrinking back under it. */ labelSize?: number | undefined; title?: string | undefined; summary?: string | false | undefined; id?: string | undefined; className?: string | undefined; style?: CSSProperties | undefined; children?: ReactNode | undefined; } /** Window = explicit domain or the items' extent. */ declare function timelineDomain(items: readonly NormalizedItem[], domain?: readonly [number | Date, number | Date] | undefined): readonly [number, number]; declare function EventTimeline(props: EventTimelineProps): ReactNode; //#endregion export { eventTimelineSummary as a, timelineDomain as c, EventTimelineProps as i, TimelineStrings as l, EventTimeline as n, formatDuration as o, EventTimelineDatum as r, normalizeItems as s, EventKind as t };