import { ReactElement } from 'react'; import { NumericKey, TextKey } from '../../cards/keys'; import { ObservationsCardProps, ObservationScene } from '../../cards/observations-card'; export interface EarningsCardProps> extends Omit, 'color' | 'aggregate' | 'legend' | 'legendSwatch'> { /** Text field naming each reporting period, such as "Q1 '26". Input order sets position. */ period: TextKey; /** The consensus estimate, drawn as a ring. */ estimate: Key; /** The reported result, drawn as a dot colored by beat or miss. Null for a period still to come. */ actual: NumericKey; } /** How far a result came in above (positive) or below its estimate, as a fraction of it. */ export declare function surprise(estimate: number | null, actual: number | null): number | null; export declare function earningsLayout(data: readonly Row[], period: string, estimate: string, actual: string, width: number, height: number, money: (value: number) => string, axis: (value: number) => string, percent: (value: number) => string): ObservationScene; /** * Earnings against expectations: each period's consensus estimate as a ring and the reported * result as a dot, green for a beat and red for a miss, with the surprise above. The headline is * the latest result and the chip its surprise. */ export declare function EarningsCard>({ period, estimate, actual, data, ranges, delta, locale, valueFormat, formatValue, ...props }: EarningsCardProps): ReactElement;