import { ReactElement } from 'react'; import { NumericKey, TextKey } from './keys'; import { ObservationsCardProps, ObservationScene } from './observations-card'; export interface CohortRetentionCardProps> extends Omit, 'aggregate' | 'legend' | 'legendSwatch'> { /** Text field naming each cohort, such as its signup month. Input order sets the rows. */ cohort: TextKey; /** * One field per period since the cohort started, each the share still active from 0 to 1. * Null or missing is a period the cohort has not reached yet, which leaves the cell out. */ periods: readonly Key[]; /** Column headings for the periods. Defaults to 0, 1, 2… */ periodLabels?: readonly string[]; /** Field holding each cohort's starting size: shown beside its name and used to weight the average. */ size?: NumericKey; /** Add an average row under the cohorts. Defaults to true. */ average?: boolean; /** The period whose average retention is the headline. Defaults to the second period. */ headlinePeriod?: NoInfer; } export declare function cohortRetentionLayout(data: readonly Row[], cohort: string, periods: readonly string[], labels: readonly string[] | undefined, size: string | undefined, average: boolean, headlinePeriod: string | undefined, color: string | undefined, width: number, height: number): ObservationScene; /** * Retention by cohort: one row per signup group, one column per period since it started, each * cell the share still active. Later cohorts have fewer periods, so the grid steps down like a * staircase; an average row closes it. Hover lights the cell's cohort and period. */ export declare function CohortRetentionCard>({ cohort, periods, periodLabels, size, average, headlinePeriod, color, valueFormat, ...props }: CohortRetentionCardProps): ReactElement;