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-depth-wedge.d.ts type DepthWedgeStrings = Pick; //#endregion //#region src/charts/depth-wedge/geometry.d.ts interface Level { level: number; amount: number; } interface DepthStep { level: number; cum: number; x: number; dist: number; } interface DepthWedgeResult { demandPath: string; supplyPath: string; midX: number; /** Wedge baseline — the deterministic plot floor, flush with the box bottom. */ yBase: number; spread: number; ratio: number; /** Lead side for the summary: 1 = demand, -1 = supply, 0 = balanced. */ lead: -1 | 0 | 1; demandTotal: number; supplyTotal: number; /** Cumulative steps per side (for the interactive lookup). */ demandSteps: DepthStep[]; supplySteps: DepthStep[]; } //#endregion //#region src/charts/depth-wedge/index.d.ts interface DepthWedgeDatum { demand: readonly Level[]; supply: readonly Level[]; } interface DepthWedgeProps { data: DepthWedgeDatum; /** ± level distance from mid to include; the wedge shape depends on it. */ levels?: number | undefined; /** The gap is the headline number. */ label?: "spread" | "none" | undefined; /** Plot cumulative shares per side instead of absolute amounts. */ normalize?: boolean | undefined; width?: number | undefined; height?: number | undefined; format?: Format | undefined; locale?: string | string[] | undefined; strings?: DepthWedgeStrings | 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; } /** Shared summary — the lead side, its ratio, and the spread (range-scoped). */ declare function depthWedgeSummary(geo: DepthWedgeResult, strings: DepthWedgeStrings, fmt: (n: number) => string): string; declare function DepthWedge(props: DepthWedgeProps): ReactNode; //#endregion export { depthWedgeSummary as i, DepthWedgeDatum as n, DepthWedgeProps as r, DepthWedge as t };