import { ReactElement } from 'react'; import { CardSeries, CartesianCardProps } from '../../cards/cartesian-card'; import { NumericKey, TextKey } from '../../cards/keys'; type SharedProps> = Omit, 'x' | 'series' | 'headlineSeries' | 'pillSeries' | 'aggregate' | 'target' | 'forecast' | 'xType' | 'formatX' | 'compare' | 'decimate'>; export interface YieldCurveCardProps> extends SharedProps { /** Text field naming each maturity, shortest first, such as "3M", "2Y" or "10Y". */ maturity: TextKey; /** Field holding today's yield at that maturity, in percent: 4.21 is 4.21%. */ yield: Key; /** Names today's curve. Defaults to "Today". */ label?: string; /** Earlier curves to compare, such as a month or a year ago. Drawn dashed. */ versus?: readonly CardSeries[]; /** * The two maturities whose gap is the headline, short then long. Defaults to 2Y and 10Y when * the curve has both, otherwise its shortest and longest. A negative spread is an inversion. */ spread?: readonly [string, string]; } /** The gap between two maturities of one curve, long minus short, in percentage points. */ export declare function curveSpread(data: readonly Row[], maturity: string, key: string, spread?: readonly [string, string]): { short: string; long: string; value: number | null; } | null; /** * Yield against maturity: today's curve over earlier ones, with every stretch where longer * money yields less (an inversion) shaded. The headline is the spread between two maturities, * 2Y to 10Y by default; hover reads each maturity's yield. */ export declare function YieldCurveCard>({ maturity, yield: yieldKey, label, versus, spread, data, ranges, headline, formatValue, ...props }: YieldCurveCardProps): ReactElement; export {};