import { UnknownProperties, Intergalactic } from 'intergalactic/core'; import { BoxProps } from 'intergalactic/flex-box'; /** @deprecated */ export interface ICounterProps extends CounterProps, UnknownProperties {} export type CounterProps = BoxProps & { /** Counter theme or custom color */ theme?: 'warning' | 'danger' | 'info' | string; /** Counter size * @default m */ size?: 'm' | 'l' | 'xl'; }; declare const Counter: Intergalactic.Component<'div', CounterProps>; /** @deprecated */ export interface IAnimatedNumberBaseProps extends AnimatedNumberBaseProps, UnknownProperties {} export type AnimatedNumberBaseProps = { /** Animates number change, receives value between 0 and 1 and returns value in range from 0 to 1, e.g. for linear easing pass (t) => t */ easing?: (t: number) => number; /** Stringify number, receives a fraction value */ formatValue?: (value: number) => string; /** * Duration time in ms * @default 200 * */ duration?: number; /** * Delay before animation in ms * @default 0 * */ delay?: number; /** * The value from which to start the animation * @default 0 * */ initValue?: number; /** The value by which to end the animation */ value: number; }; export declare const AnimatedNumber: Intergalactic.Component<'div', AnimatedNumberBaseProps>; export default Counter;