react-split-flap
Version:
Split-flap display component for React
22 lines (21 loc) • 700 B
TypeScript
import React, { ReactNode } from 'react';
interface PerformanceContextType {
isReducedMotion: boolean;
isMobile: boolean;
activeAnimations: number;
registerAnimation: () => void;
unregisterAnimation: () => void;
shouldSkipAnimation: boolean;
}
export declare const usePerformance: () => PerformanceContextType;
interface PerformanceProviderProps {
children: ReactNode;
maxConcurrentAnimations?: number;
}
export declare const PerformanceProvider: React.FC<PerformanceProviderProps>;
export declare const useAnimationThrottle: (timing: number) => number;
export declare const usePerformanceMonitor: () => {
fps: number;
isLowPerformance: boolean;
};
export {};