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-ohlc.d.ts type OhlcStrings = Pick; //#endregion //#region src/charts/ohlc/geometry.d.ts interface OhlcInput { open: number; high: number; low: number; close: number; } //#endregion //#region src/charts/ohlc/index.d.ts type OhlcDatum = OhlcInput; /** * Reads the run. Give it the periods that PAINT (`ohlcWindow`), never the raw * `data`: past `maxPeriods` the chart draws the recent tail, and summarising the * whole array announced a count, a change and a range covering candles nobody * can see — 30 periods of data read out as "30 periods … range 99 to 131" over * a picture of the last 20. */ declare function ohlcSummary(periods: readonly OhlcDatum[], fmt: (n: number) => string, pctFmt: (n: number) => string, strings: OhlcStrings): string; interface OhlcProps { data: readonly OhlcDatum[]; /** `"candle"` (default) | `"bars"` (open tick left, close tick right). * */ mode?: "candle" | "bars" | undefined; /** Renders the most recent N with a dev warning past it (never averaged). */ maxPeriods?: number | undefined; /** `"last"` = last close in a right gutter. */ label?: "last" | "none" | undefined; domain?: readonly [number, number] | undefined; width?: number | undefined; height?: number | undefined; format?: Format | undefined; locale?: string | string[] | undefined; strings?: OhlcStrings | 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 Ohlc(props: OhlcProps): ReactNode; //#endregion export { OhlcStrings as a, ohlcSummary as i, OhlcDatum as n, OhlcProps as r, Ohlc as t };