import { n as Format } from "../../format-Dq02z5ZL.js"; import { t as ScalarStrings } from "../../strings-scalar-C_B3azW6.js"; import { CSSProperties, ReactNode } from "react"; //#region src/charts/delta/index.d.ts /** Resolved Delta model — shared by the static entry and the interactive one. */ interface DeltaModel { /** Signed value for display (`+12.4%`, `−3%`, or `—` for non-finite). */ display: string; /** The signed number actually encoded (fraction when `from` is given); `null` if non-finite. */ shown: number | null; /** `pos` | `neg` | `flat` (drives the valence color). */ valence: "pos" | "neg" | "flat"; glyphKey: "up" | "down" | "flat"; /** Direction + magnitude, never valence. */ summary: string; } /** Pure resolution of a Delta's display/valence/summary from its props. */ declare function deltaModel(props: DeltaProps): DeltaModel; interface DeltaProps { /** The change to show. With `from`, the current value (delta is derived). */ value: number; /** Prior value; when given, Delta shows the percent change from it. */ from?: number | undefined; /** Which direction is "good" — flips only the color, never the glyph. */ positive?: "up" | "down" | undefined; /** * Number formatting; defaults to a locale-aware percent. Delta prints the * sign itself and formats the absolute magnitude, so a sign in `format` is * dropped rather than doubled. */ format?: Format | undefined; locale?: string | string[] | undefined; strings?: ScalarStrings | undefined; /** Accessible name override; `false` = decorative (redundant with nearby text). */ summary?: string | false | undefined; title?: string | undefined; className?: string | undefined; style?: CSSProperties | undefined; } declare function Delta(props: DeltaProps): ReactNode; //#endregion export { Delta, DeltaModel, DeltaProps, deltaModel };