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-forecast.d.ts type ForecastStrings = Pick; //#endregion //#region src/charts/forecast-cone/geometry.d.ts interface ForecastInput { mid: readonly number[]; p80: readonly (readonly [number, number])[]; p50?: readonly (readonly [number, number])[] | undefined; } interface ConePoint { x: number; y: number; /** 1-based period across the whole axis. */ period: number; kind: "history" | "forecast"; value: number; /** Forecast-region interval (p80). */ lo: number | null; hi: number | null; } interface ForecastConeGeometry { history: { d: string; }; boundary: { x: number; y: number; }; /** Per-period positions across history + forecast — overlays + nearest-x. */ points: ConePoint[]; mid: { d: string; }; /** Closed area paths, faintest (80) first. */ bands: { p: 50 | 80; d: string; }[]; target: { y: number; } | null; landing: { x: number; y: number; value: number; }; /** Median forecast at the horizon + the p80 interval there (summary). */ horizon: { mid: number; lo: number; hi: number; }; /** History's last actual (summary "from N today"). */ now: number | null; /** false ⇒ the input cone fails to widen (input-honesty failure). */ widening: boolean; labelX: number; labelY: number; totalWidth: number; /** Resolved value domain `[min,max]` — the annotation-host y-frame. */ domain: readonly [number, number]; } //#endregion //#region src/charts/forecast-cone/index.d.ts declare function forecastSummary(geo: ForecastConeGeometry, fmt: (n: number) => string, opts: { unit: string; at: number; target?: number | undefined; }, strings: ForecastStrings): string; interface ForecastConeProps { /** Historical actuals. */ data: readonly number[]; /** The forecast: median + p80 (required) and optional p50 band, `[lo,hi]` pairs. */ forecast: ForecastInput; /** The landing reference the cone must clear. */ target?: number | undefined; /** Period noun for the summary (default "week"). */ unit?: string | undefined; /** `"landing"` states the median endpoint in a right gutter. */ label?: "landing" | "none" | undefined; domain?: readonly [number, number] | undefined; width?: number | undefined; height?: number | undefined; color?: string | undefined; format?: Format | undefined; locale?: string | string[] | undefined; strings?: ForecastStrings | 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; } declare function ForecastCone(props: ForecastConeProps): ReactNode; //#endregion export { ForecastStrings as i, ForecastConeProps as n, forecastSummary as r, ForecastCone as t };