import { n as Format } from "../../format-Dq02z5ZL.js"; import { n as MiniBarDatum } from "../../index-CgMum0ZL.js"; import { t as CompositionStrings } from "../../strings-composition-d0S4LmjA.js"; import { CSSProperties, ReactNode } from "react"; //#region src/charts/funnel/index.d.ts type FunnelDatum = MiniBarDatum; /** * Stages + overall conversion. Resolves each stage exactly as the plot does — a * missing or negative stage keeps its slot at zero — so the announced stage * count, endpoints and inversion positions are the ones on screen. Dropping * those stages instead made `[-5, 10]` paint two columns and announce "1 stage, * 10 to 10 — overall 100%", a conversion between a stage and itself. */ declare function funnelSummary(data: readonly FunnelDatum[], fmt: (n: number) => string, pctFmt: (n: number) => string, strings: CompositionStrings): string; interface FunnelProps { /** Ordered stages. */ data: readonly FunnelDatum[]; /** `"rate"` renders each stage as % of the FIRST stage. */ mode?: "absolute" | "rate" | undefined; /** Connector slats between stages (off for the tightest cells). */ connectors?: boolean | undefined; /** `"percent"` (share of the first stage, default) | `"value"` | `"none"` * above each column (deterministic drop-out). */ label?: "none" | "percent" | "value" | undefined; /** Accent one stage — "the leak". */ highlight?: number | string | undefined; width?: number | undefined; height?: number | undefined; color?: string | undefined; format?: Format | undefined; locale?: string | string[] | undefined; strings?: CompositionStrings | 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 Funnel(props: FunnelProps): ReactNode; //#endregion export { Funnel, FunnelDatum, FunnelProps, funnelSummary };