import { c as Value, r as SummaryStrings } from "./summary-D8UEQXYr.js"; import { n as Format } from "./format-Dq02z5ZL.js"; import { CSSProperties, ReactNode } from "react"; //#region src/core/strings-cycle.d.ts type CycleStrings = Pick; //#endregion //#region src/charts/cycle-plot/geometry.d.ts interface Slot { x0: number; x1: number; n: number; center: { x: number; y: number; value: number; }; line: { d: string; } | null; /** last − first within the slot (raw), 2-dp; 0 when n ≤ 1. */ drift: number; } interface CycleGeometry { slots: Slot[]; spine: { d: string; }; /** Slot index of the highest / lowest center. */ peakSlot: number; dipSlot: number; /** Cycles = the longest slot's point count (ragged final cycle allowed). */ cycles: number; /** Per-slot cycle counts (short slots announce "across 5 weeks"). */ slotCounts: number[]; /** Per-slot centers (raw values) — for interactive announcements. */ centers: number[]; /** Per-slot raw values in time order — for cycle stepping. */ values: number[][]; degenerate: boolean; /** Resolved value domain `[min,max]` — the annotation-host y-frame. */ domain: readonly [number, number]; /** Vertical inset (viewBox units) the value scale is padded by. */ pad: number; /** Top edge of the plot box. */ y0: number; /** Bottom edge of the plot box — the floor the seat stands on. */ y1: number; } //#endregion //#region src/charts/cycle-plot/index.d.ts declare function cycleSummary(geo: CycleGeometry, opts: { slots?: readonly string[] | undefined; cycleUnit: string; }, fmt: (v: number) => string, strings: CycleStrings): string; interface CyclePlotProps { /** A flat series, reshaped row-major into `period` slots. */ data: readonly Value[]; /** Slots per cycle (4–12) — e.g. 7 for weekdays. Required. */ period: number; /** Slot names for summaries, e.g. ["Sun", "Mon", …]. */ slots?: readonly string[] | undefined; /** Center statistic — median for skewed slot distributions. */ center?: "mean" | "median" | undefined; /** Within-slot micro-trend line (default true); false = spine + ticks only. */ trend?: boolean | undefined; /** `false` drops the spine (within-slot drift only — rare). */ spine?: boolean | undefined; /** Cycle noun for the summary, e.g. "weeks" (default "cycles"). */ cycleUnit?: string | undefined; domain?: readonly [number, number] | undefined; format?: Format | undefined; locale?: string | string[] | undefined; width?: number | undefined; height?: number | undefined; color?: string | undefined; strings?: CycleStrings | undefined; title?: string | undefined; summary?: string | false | undefined; id?: string | undefined; className?: string | undefined; style?: CSSProperties | undefined; children?: ReactNode | undefined; } declare function CyclePlot(props: CyclePlotProps): ReactNode; //#endregion export { CycleStrings as i, CyclePlotProps as n, cycleSummary as r, CyclePlot as t };