import { type EasingFunction, type EasingFunctionFactory } from "react-native-reanimated"; import { type SpringParams } from "./core/spring"; export type MorphEase = EasingFunction | EasingFunctionFactory | SpringParams; /** torph's default curve — a strong ease-out, so motion starts the moment the value changes. */ export declare const DEFAULT_EASING: EasingFunctionFactory; export declare const DEFAULT_DURATION = 400; export type Motion = { type: "timing"; duration: number; easing: EasingFunction | EasingFunctionFactory; } | { type: "spring"; duration: number; spring: Required; }; export declare function resolveMotion(ease: MorphEase | undefined, duration: number): Motion; /** * Movement, scale and container size. Reduced motion is handled one level up (the * component swaps to a crossfade), so the system setting must not also zero these. */ export declare function move(target: number, motion: Motion): number; /** Opacity runs linear over a share of the morph, as in torph. */ export declare function fade(target: number, motion: Motion, share: number, delayShare?: number): number; export declare const FADE: { readonly enter: 0.5; readonly enterDelay: 0.25; readonly exit: 0.25; readonly revive: 0.25; readonly numberEnter: 0.25; readonly numberExit: 0.45; readonly groupEnter: 0.35; readonly groupExit: 0.45; }; /** How far below its rest a glyph shrinks on the way in or out. Never from zero. */ export declare const GLYPH_SCALE = 0.95; /** Deeper than a glyph's 0.95, so a replaced run reads as receding, not settling. */ export declare const GROUP_SCALE = 0.8; /** Long enough for every exit fade to finish, after which exiting glyphs unmount. */ export declare function exitLifetime(motion: Motion): number;