/** * Easing functions and the motion scale. * * Durations are tokens rather than magic numbers so motion stays consistent * across the ecosystem and can be scaled or disabled wholesale. * * @module utils/easing */ export type EasingFn = (t: number) => number; export declare const EASINGS: Record; /** * The motion scale, in milliseconds. * * `instant` is for state that must not appear to move (a hover swap during rapid * pointer travel); `cinematic` is for narrative camera flights. Anything longer * than `deliberate` needs a reason. */ export declare const DURATIONS: { readonly instant: 0; readonly quick: 150; readonly normal: 350; readonly deliberate: 800; readonly cinematic: 1500; }; export type DurationToken = keyof typeof DURATIONS; export declare function resolveDuration(value: number | string | undefined, fallback?: number): number; /** * Map `chart.animations.speed` onto a multiplier applied to every duration, so * one option speeds up or slows down the whole map coherently. */ export declare function speedFactor(speed: string | number | undefined): number; export declare function resolveEase(ease: string | EasingFn | undefined, fallback?: string): EasingFn; //# sourceMappingURL=easing.d.ts.map