UNPKG

filepond

Version:

FilePond, where files go to stretch their bits.

16 lines (15 loc) • 574 B
import type { ReducedMotionPreference } from '../../types/index.js'; export interface MotionStateObserver { destroy: () => void; getState: () => MotionState; shouldReduceMotion: (preference: ReducedMotionPreference) => boolean; } export interface MotionState { prefersReducedMotion: boolean | undefined; reduceMotion: boolean; } export declare function createMotionStateObserver(): { readonly current: MotionState; destroy(): void; }; export declare function shouldReduceMotion(state: MotionState, preference?: ReducedMotionPreference): boolean;