import { CSSProperties } from "react";
//#region src/types.d.ts
/**
 * A preset defines enter (appear) and leave (disappear) animation config.
 * Structurally compatible with @vitus-labs/kinetic's Preset type.
 *
 * Style-based props use inline CSSProperties objects.
 * Class-based props use CSS class name strings (for Tailwind, CSS modules, etc).
 */
type Preset = {
  /** Inline styles for enter start state. */
  enterStyle?: CSSProperties;
  /** Inline styles for enter end state. */
  enterToStyle?: CSSProperties;
  /** CSS transition string for enter. */
  enterTransition?: string;
  /** Inline styles for leave start state. */
  leaveStyle?: CSSProperties;
  /** Inline styles for leave end state. */
  leaveToStyle?: CSSProperties;
  /** CSS transition string for leave. */
  leaveTransition?: string;
  /** CSS class applied during entire enter phase. */
  enter?: string;
  /** CSS class for enter start state. */
  enterFrom?: string;
  /** CSS class for enter end state. */
  enterTo?: string;
  /** CSS class applied during entire leave phase. */
  leave?: string;
  /** CSS class for leave start state. */
  leaveFrom?: string;
  /** CSS class for leave end state. */
  leaveTo?: string;
};
type Direction = 'up' | 'down' | 'left' | 'right';
type FadeOptions = {
  /** Direction of movement during fade. Omit for pure opacity fade. */
  direction?: Direction;
  /** Translation distance in px. Default: 16. */
  distance?: number;
  /** Enter duration in ms. Default: 300. */
  duration?: number;
  /** Leave duration in ms. Default: 200. */
  leaveDuration?: number;
  /** Enter easing. Default: 'ease-out'. */
  easing?: string;
  /** Leave easing. Default: 'ease-in'. */
  leaveEasing?: string;
};
type SlideOptions = {
  /** Direction of movement. Default: 'up'. */
  direction?: Direction;
  /** Translation distance in px. Default: 16. */
  distance?: number;
  /** Enter duration in ms. Default: 300. */
  duration?: number;
  /** Leave duration in ms. Default: 200. */
  leaveDuration?: number;
  /** Enter easing. Default: 'ease-out'. */
  easing?: string;
  /** Leave easing. Default: 'ease-in'. */
  leaveEasing?: string;
};
type ScaleOptions = {
  /** Starting scale factor. Default: 0.9. */
  from?: number;
  /** Enter duration in ms. Default: 300. */
  duration?: number;
  /** Leave duration in ms. Default: 200. */
  leaveDuration?: number;
  /** Enter easing. Default: 'ease-out'. */
  easing?: string;
  /** Leave easing. Default: 'ease-in'. */
  leaveEasing?: string;
};
type RotateOptions = {
  /** Rotation angle in degrees. Default: 15. */
  degrees?: number;
  /** Enter duration in ms. Default: 300. */
  duration?: number;
  /** Leave duration in ms. Default: 200. */
  leaveDuration?: number;
  /** Enter easing. Default: 'ease-out'. */
  easing?: string;
  /** Leave easing. Default: 'ease-in'. */
  leaveEasing?: string;
};
type BlurOptions = {
  /** Blur amount in px. Default: 8. */
  amount?: number;
  /** Optional scale factor (0-1). Omit for pure blur. */
  scale?: number;
  /** Enter duration in ms. Default: 300. */
  duration?: number;
  /** Leave duration in ms. Default: 200. */
  leaveDuration?: number;
  /** Enter easing. Default: 'ease-out'. */
  easing?: string;
  /** Leave easing. Default: 'ease-in'. */
  leaveEasing?: string;
};
//#endregion
//#region src/factories.d.ts
/**
 * Create a custom fade preset.
 *
 * @example
 * // Pure opacity fade with custom duration
 * createFade({ duration: 500 })
 *
 * @example
 * // Fade with directional movement
 * createFade({ direction: 'up', distance: 24, duration: 400 })
 */
export declare const createFade: ({ direction, distance, duration, leaveDuration, easing, leaveEasing }?: FadeOptions) => Preset;
/**
 * Create a custom slide preset with configurable direction and distance.
 *
 * @example
 * createSlide({ direction: 'left', distance: 32, duration: 250 })
 */
export declare const createSlide: ({ direction, distance, duration, leaveDuration, easing, leaveEasing }?: SlideOptions) => Preset;
/**
 * Create a custom scale preset.
 *
 * @example
 * createScale({ from: 0.8, duration: 400 })
 *
 * @example
 * // Use spring easing for bounce effect
 * createScale({ from: 0.5, easing: 'cubic-bezier(0.34, 1.56, 0.64, 1)' })
 */
export declare const createScale: ({ from, duration, leaveDuration, easing, leaveEasing }?: ScaleOptions) => Preset;
/**
 * Create a custom rotation preset.
 *
 * @example
 * createRotate({ degrees: 30, duration: 400 })
 *
 * @example
 * // Negative degrees for counter-clockwise
 * createRotate({ degrees: -90 })
 */
export declare const createRotate: ({ degrees, duration, leaveDuration, easing, leaveEasing }?: RotateOptions) => Preset;
/**
 * Create a custom blur preset.
 *
 * @example
 * createBlur({ amount: 12, duration: 400 })
 *
 * @example
 * // Blur with scale
 * createBlur({ amount: 8, scale: 0.95 })
 */
export declare const createBlur: ({ amount, scale, duration, leaveDuration, easing, leaveEasing }?: BlurOptions) => Preset;
//#endregion
//#region src/presets.d.ts
/** Pure opacity fade. */
export declare const fade: Preset;
/** Fade in while sliding upward (starts 16px below). */
export declare const fadeUp: Preset;
/** Fade in while sliding downward (starts 16px above). */
export declare const fadeDown: Preset;
/** Fade in while sliding left (starts 16px to the right). */
export declare const fadeLeft: Preset;
/** Fade in while sliding right (starts 16px to the left). */
export declare const fadeRight: Preset;
/** Fade + slide up, dramatic distance (48px). */
export declare const fadeUpBig: Preset;
/** Fade + slide down, dramatic distance (48px). */
export declare const fadeDownBig: Preset;
/** Fade + slide left, dramatic distance (48px). */
export declare const fadeLeftBig: Preset;
/** Fade + slide right, dramatic distance (48px). */
export declare const fadeRightBig: Preset;
/** Fade in with subtle scale (from 95%). */
export declare const fadeScale: Preset;
/** Slide up with fade (16px). */
export declare const slideUp: Preset;
/** Slide down with fade (16px). */
export declare const slideDown: Preset;
/** Slide left with fade (16px). */
export declare const slideLeft: Preset;
/** Slide right with fade (16px). */
export declare const slideRight: Preset;
/** Slide up with fade, dramatic (48px). */
export declare const slideUpBig: Preset;
/** Slide down with fade, dramatic (48px). */
export declare const slideDownBig: Preset;
/** Slide left with fade, dramatic (48px). */
export declare const slideLeftBig: Preset;
/** Slide right with fade, dramatic (48px). */
export declare const slideRightBig: Preset;
/** Scale up from 90% with fade. */
export declare const scaleIn: Preset;
/** Scale down from 110% with fade (an entrance despite the name). */
export declare const scaleOut: Preset;
/** Dramatic scale from 50% with fade. */
export declare const scaleUp: Preset;
/** Dramatic scale from 150% with fade. */
export declare const scaleDown: Preset;
/** Scale from 90% + slide up (16px). */
export declare const scaleInUp: Preset;
/** Scale from 90% + slide down (16px). */
export declare const scaleInDown: Preset;
/** Scale from 90% + slide left (16px). */
export declare const scaleInLeft: Preset;
/** Scale from 90% + slide right (16px). */
export declare const scaleInRight: Preset;
/** Zoom from nothing (scale 0) to full size. */
export declare const zoomIn: Preset;
/** Zoom from 2x size down to normal (an entrance despite the name). */
export declare const zoomOut: Preset;
/** Zoom in from below (scale 0.5 + translateY 48px). */
export declare const zoomInUp: Preset;
/** Zoom in from above (scale 0.5 + translateY -48px). */
export declare const zoomInDown: Preset;
/** Zoom in from right (scale 0.5 + translateX 48px). */
export declare const zoomInLeft: Preset;
/** Zoom in from left (scale 0.5 + translateX -48px). */
export declare const zoomInRight: Preset;
/** Flip around X axis (top-to-bottom rotation). */
export declare const flipX: Preset;
/** Flip around Y axis (left-to-right rotation). */
export declare const flipY: Preset;
/** Reverse flip around X axis. */
export declare const flipXReverse: Preset;
/** Reverse flip around Y axis. */
export declare const flipYReverse: Preset;
/** Rotate in from -15deg with fade. */
export declare const rotateIn: Preset;
/** Rotate in from +15deg with fade. */
export declare const rotateInReverse: Preset;
/** Rotate in from -5deg + slide up (16px). */
export declare const rotateInUp: Preset;
/** Rotate in from +5deg + slide down (16px). */
export declare const rotateInDown: Preset;
/** Full 180deg clockwise spin with fade. */
export declare const spinIn: Preset;
/** Full 180deg counter-clockwise spin with fade. */
export declare const spinInReverse: Preset;
/** Bouncy scale entrance from 50%. */
export declare const bounceIn: Preset;
/** Bouncy slide up from 40px below. */
export declare const bounceInUp: Preset;
/** Bouncy slide down from 40px above. */
export declare const bounceInDown: Preset;
/** Bouncy slide from 40px right. */
export declare const bounceInLeft: Preset;
/** Bouncy slide from 40px left. */
export declare const bounceInRight: Preset;
/** Spring scale entrance from 80% — gentle overshoot. */
export declare const springIn: Preset;
/** Blur in from 8px with fade. */
export declare const blurIn: Preset;
/** Blur in from 8px + slide up (16px). */
export declare const blurInUp: Preset;
/** Blur in from 8px + slide down (16px). */
export declare const blurInDown: Preset;
/** Blur in from 8px + scale from 95%. */
export declare const blurScale: Preset;
/** Reveal from top edge. */
export declare const clipTop: Preset;
/** Reveal from bottom edge. */
export declare const clipBottom: Preset;
/** Reveal from left edge. */
export declare const clipLeft: Preset;
/** Reveal from right edge. */
export declare const clipRight: Preset;
/** Tilt in from above (3D perspective + rotateX). */
export declare const perspectiveUp: Preset;
/** Tilt in from below (3D perspective + rotateX). */
export declare const perspectiveDown: Preset;
/** Tilt in from left (3D perspective + rotateY). */
export declare const perspectiveLeft: Preset;
/** Tilt in from right (3D perspective + rotateY). */
export declare const perspectiveRight: Preset;
/** Expand horizontally from scaleX(0) with fade. */
export declare const expandX: Preset;
/** Expand vertically from scaleY(0) with fade. */
export declare const expandY: Preset;
/** Skew in from -5deg on X axis with fade. */
export declare const skewIn: Preset;
/** Skew in from +5deg on X axis with fade. */
export declare const skewInReverse: Preset;
/** Drop from above (translateY -100%). */
export declare const drop: Preset;
/** Rise from below (translateY 100%). */
export declare const rise: Preset;
/** Fade in from below-right corner (16px diagonal). */
export declare const fadeUpLeft: Preset;
/** Fade in from below-left corner (16px diagonal). */
export declare const fadeUpRight: Preset;
/** Fade in from above-right corner (16px diagonal). */
export declare const fadeDownLeft: Preset;
/** Fade in from above-left corner (16px diagonal). */
export declare const fadeDownRight: Preset;
/** Zoom from 2x while sliding upward. */
export declare const zoomOutUp: Preset;
/** Zoom from 2x while sliding downward. */
export declare const zoomOutDown: Preset;
/** Zoom from 2x while sliding left. */
export declare const zoomOutLeft: Preset;
/** Zoom from 2x while sliding right. */
export declare const zoomOutRight: Preset;
/** Blur in from 8px + slide from right (16px). */
export declare const blurInLeft: Preset;
/** Blur in from 8px + slide from left (16px). */
export declare const blurInRight: Preset;
/** Skew in from -5deg on Y axis with fade. */
export declare const skewInY: Preset;
/** Skew in from +5deg on Y axis with fade. */
export declare const skewInYReverse: Preset;
/** Approach from below at reduced scale. */
export declare const backInUp: Preset;
/** Approach from above at reduced scale. */
export declare const backInDown: Preset;
/** Approach from the right at reduced scale. */
export declare const backInLeft: Preset;
/** Approach from the left at reduced scale. */
export declare const backInRight: Preset;
/** Speed streak entrance from the right. */
export declare const lightSpeedInLeft: Preset;
/** Speed streak entrance from the left. */
export declare const lightSpeedInRight: Preset;
/** Roll in from the left (rotate + translateX). */
export declare const rollInLeft: Preset;
/** Roll in from the right (rotate + translateX). */
export declare const rollInRight: Preset;
/** Reveal with expanding circle from center. */
export declare const clipCircle: Preset;
/** Reveal from center outward (rectangular inset). */
export declare const clipCenter: Preset;
/** Reveal with expanding diamond shape from center. */
export declare const clipDiamond: Preset;
/** Reveal expanding from top-left corner. */
export declare const clipCorner: Preset;
/** Condense from a large blurry cloud into focus. */
export declare const puffIn: Preset;
/** Form from a tiny blurry spark into focus (an entrance despite the name). */
export declare const puffOut: Preset;
/** Swing in from top edge (hinged at top). */
export declare const swingInTop: Preset;
/** Swing in from bottom edge (hinged at bottom). */
export declare const swingInBottom: Preset;
/** Swing in from left edge (hinged at left). */
export declare const swingInLeft: Preset;
/** Swing in from right edge (hinged at right). */
export declare const swingInRight: Preset;
/** Reveal through a horizontal slit (rotateY + scaleX). */
export declare const slitHorizontal: Preset;
/** Reveal through a vertical slit (rotateX + scaleY). */
export declare const slitVertical: Preset;
/** Swirl in clockwise — 1.5 rotations + scale from 0. */
export declare const swirlIn: Preset;
/** Swirl in counter-clockwise. */
export declare const swirlInReverse: Preset;
/** Flip along the diagonal axis (top-left to bottom-right). */
export declare const flipDiagonal: Preset;
/** Flip along the anti-diagonal (top-right to bottom-left). */
export declare const flipDiagonalReverse: Preset;
/** Tilt in from below with upward movement. */
export declare const tiltInUp: Preset;
/** Tilt in from above with downward movement. */
export declare const tiltInDown: Preset;
/** Tilt in from the right with leftward movement. */
export declare const tiltInLeft: Preset;
/** Tilt in from the left with rightward movement. */
export declare const tiltInRight: Preset;
/** Fly in from below the viewport. */
export declare const flyInUp: Preset;
/** Fly in from above the viewport. */
export declare const flyInDown: Preset;
/** Fly in from the right of the viewport. */
export declare const flyInLeft: Preset;
/** Fly in from the left of the viewport. */
export declare const flyInRight: Preset;
/** Pop in with snappy spring overshoot from tiny. */
export declare const popIn: Preset;
/** Squish horizontally — starts wide and narrow, snaps to normal. */
export declare const squishX: Preset;
/** Squish vertically — starts tall and thin, snaps to normal. */
export declare const squishY: Preset;
/** Elastic rubber-band scale entrance with heavy overshoot. */
export declare const rubberIn: Preset;
/** Spin in while scaling from nothing — dramatic entrance. */
export declare const scaleRotateIn: Preset;
/** Newspaper spin — dramatic zoom from 0 with double rotation. */
export declare const newspaperIn: Preset;
/** Gentle float up with subtle scale and premium easing. */
export declare const floatUp: Preset;
/** Gentle float down with subtle scale and premium easing. */
export declare const floatDown: Preset;
/** Gentle float from right with subtle scale. */
export declare const floatLeft: Preset;
/** Gentle float from left with subtle scale. */
export declare const floatRight: Preset;
/** Push in from the left with slight scale. */
export declare const pushInLeft: Preset;
/** Push in from the right with slight scale. */
export declare const pushInRight: Preset;
export declare const presets: {
  readonly fade: Preset;
  readonly fadeUp: Preset;
  readonly fadeDown: Preset;
  readonly fadeLeft: Preset;
  readonly fadeRight: Preset;
  readonly fadeUpBig: Preset;
  readonly fadeDownBig: Preset;
  readonly fadeLeftBig: Preset;
  readonly fadeRightBig: Preset;
  readonly fadeScale: Preset;
  readonly fadeUpLeft: Preset;
  readonly fadeUpRight: Preset;
  readonly fadeDownLeft: Preset;
  readonly fadeDownRight: Preset;
  readonly slideUp: Preset;
  readonly slideDown: Preset;
  readonly slideLeft: Preset;
  readonly slideRight: Preset;
  readonly slideUpBig: Preset;
  readonly slideDownBig: Preset;
  readonly slideLeftBig: Preset;
  readonly slideRightBig: Preset;
  readonly scaleIn: Preset;
  readonly scaleOut: Preset;
  readonly scaleUp: Preset;
  readonly scaleDown: Preset;
  readonly scaleInUp: Preset;
  readonly scaleInDown: Preset;
  readonly scaleInLeft: Preset;
  readonly scaleInRight: Preset;
  readonly zoomIn: Preset;
  readonly zoomOut: Preset;
  readonly zoomInUp: Preset;
  readonly zoomInDown: Preset;
  readonly zoomInLeft: Preset;
  readonly zoomInRight: Preset;
  readonly zoomOutUp: Preset;
  readonly zoomOutDown: Preset;
  readonly zoomOutLeft: Preset;
  readonly zoomOutRight: Preset;
  readonly flipX: Preset;
  readonly flipY: Preset;
  readonly flipXReverse: Preset;
  readonly flipYReverse: Preset;
  readonly flipDiagonal: Preset;
  readonly flipDiagonalReverse: Preset;
  readonly rotateIn: Preset;
  readonly rotateInReverse: Preset;
  readonly rotateInUp: Preset;
  readonly rotateInDown: Preset;
  readonly spinIn: Preset;
  readonly spinInReverse: Preset;
  readonly scaleRotateIn: Preset;
  readonly newspaperIn: Preset;
  readonly bounceIn: Preset;
  readonly bounceInUp: Preset;
  readonly bounceInDown: Preset;
  readonly bounceInLeft: Preset;
  readonly bounceInRight: Preset;
  readonly springIn: Preset;
  readonly popIn: Preset;
  readonly rubberIn: Preset;
  readonly squishX: Preset;
  readonly squishY: Preset;
  readonly blurIn: Preset;
  readonly blurInUp: Preset;
  readonly blurInDown: Preset;
  readonly blurInLeft: Preset;
  readonly blurInRight: Preset;
  readonly blurScale: Preset;
  readonly puffIn: Preset;
  readonly puffOut: Preset;
  readonly clipTop: Preset;
  readonly clipBottom: Preset;
  readonly clipLeft: Preset;
  readonly clipRight: Preset;
  readonly clipCircle: Preset;
  readonly clipCenter: Preset;
  readonly clipDiamond: Preset;
  readonly clipCorner: Preset;
  readonly perspectiveUp: Preset;
  readonly perspectiveDown: Preset;
  readonly perspectiveLeft: Preset;
  readonly perspectiveRight: Preset;
  readonly tiltInUp: Preset;
  readonly tiltInDown: Preset;
  readonly tiltInLeft: Preset;
  readonly tiltInRight: Preset;
  readonly expandX: Preset;
  readonly expandY: Preset;
  readonly skewIn: Preset;
  readonly skewInReverse: Preset;
  readonly skewInY: Preset;
  readonly skewInYReverse: Preset;
  readonly drop: Preset;
  readonly rise: Preset;
  readonly backInUp: Preset;
  readonly backInDown: Preset;
  readonly backInLeft: Preset;
  readonly backInRight: Preset;
  readonly lightSpeedInLeft: Preset;
  readonly lightSpeedInRight: Preset;
  readonly rollInLeft: Preset;
  readonly rollInRight: Preset;
  readonly swingInTop: Preset;
  readonly swingInBottom: Preset;
  readonly swingInLeft: Preset;
  readonly swingInRight: Preset;
  readonly slitHorizontal: Preset;
  readonly slitVertical: Preset;
  readonly swirlIn: Preset;
  readonly swirlInReverse: Preset;
  readonly flyInUp: Preset;
  readonly flyInDown: Preset;
  readonly flyInLeft: Preset;
  readonly flyInRight: Preset;
  readonly floatUp: Preset;
  readonly floatDown: Preset;
  readonly floatLeft: Preset;
  readonly floatRight: Preset;
  readonly pushInLeft: Preset;
  readonly pushInRight: Preset;
};
//#endregion
//#region src/utils.d.ts
/**
 * Merge multiple presets into one. Later presets override earlier ones.
 * - Style objects: shallow merged (later keys win)
 * - Transitions: last preset's transition wins
 * - Class names: space-concatenated
 *
 * Note: If two presets modify the same CSS `transform` property, the last
 * one wins (CSS transform is a single string). Use factories for combined
 * effects (e.g., createFade + direction + scale).
 *
 * @example
 * const fadeSlide = compose(fade, slideUp)
 * // Merges: { opacity: 0 } + { opacity: 0, transform: 'translateY(16px)' }
 * // Result: { opacity: 0, transform: 'translateY(16px)' }
 */
export declare const compose: (...items: Preset[]) => Preset;
/**
 * Override enter/leave durations of a preset.
 *
 * @example
 * withDuration(fade, 500)         // 500ms enter, 500ms leave
 * withDuration(fade, 500, 200)    // 500ms enter, 200ms leave
 */
export declare const withDuration: (preset: Preset, enterMs: number, leaveMs?: number) => Preset;
/**
 * Override enter/leave easing of a preset.
 *
 * @example
 * withEasing(fadeUp, 'cubic-bezier(0.34, 1.56, 0.64, 1)')
 * withEasing(fadeUp, 'ease-out', 'ease-in')
 */
export declare const withEasing: (preset: Preset, enterEasing: string, leaveEasing?: string) => Preset;
/**
 * Add a delay to the enter/leave transitions.
 *
 * @example
 * withDelay(fadeUp, 100)         // 100ms delay on both
 * withDelay(fadeUp, 100, 0)      // 100ms on enter, none on leave
 */
export declare const withDelay: (preset: Preset, enterDelayMs: number, leaveDelayMs?: number) => Preset;
/**
 * Swap the motion direction of a preset while keeping its visible end state.
 *
 * The element now enters from the side the original leaves to, and leaves
 * towards the side the original enters from. `enterToStyle` / `leaveStyle`
 * (the visible state) are unchanged, so the element is always fully shown
 * after entering. Transitions and the enter/leave classes are swapped.
 *
 * Note: the built-in presets are symmetric (they leave back to the state they
 * enter from), so for them only transitions/classes swap. The direction swap
 * matters for asymmetric presets, e.g. one that enters from below and leaves
 * upward:
 *
 * @example
 * const up = { enterStyle: { transform: 'translateY(16px)' }, enterToStyle: { transform: 'none' },
 *              leaveStyle: { transform: 'none' }, leaveToStyle: { transform: 'translateY(-16px)' } }
 * reverse(up)
 * // enters from above (-16px), leaves downward (+16px), visible state unchanged
 */
export declare const reverse: (preset: Preset) => Preset;
//#endregion
export type { BlurOptions, Direction, FadeOptions, Preset, RotateOptions, ScaleOptions, SlideOptions };