import { ChartSeries } from '../types'; import { NormalizedData } from './normalize'; /** * Whether a change of rows can morph by x value rather than cross-fade: both frames are time or * number data in ascending order, they keep the same series, and they share at least two x values * to anchor the glide. A period switch such as 30 → 90 days qualifies; categories do not. */ export declare function canMorphByKey(from: NormalizedData, to: NormalizedData, series: readonly ChartSeries[]): boolean; /** * One frame of a keyed morph: every row from both frames, in x order. Rows in both ease from * their old values to their new ones; rows added after the old last row grow out of its value, * so arriving data draws the line forward; other one-sided rows keep their own values, and the * gliding domain carries them in or out past the plot edge. */ export declare function keyedFrame(from: NormalizedData, to: NormalizedData, progress: number): NormalizedData; /** Ease for something moving across the plot: slow out, quick through, soft landing. */ export declare function morphEase(progress: number): number; /** A domain between two others, at the same eased progress as the data. */ export declare function mixDomain(from: readonly [number, number], to: readonly [number, number], progress: number): readonly [number, number];