import { AnimationFileName } from '@zeniai/client-epic-state';
/** JSON from the animation API / cache; `useAnimation` yields this or `null` while loading or when disabled. */
export type AnimationJsonData = object | null;
/**
 * Hook to fetch and cache animation JSON data.
 * @param animationFileName - The animation file to fetch
 * @param enabled - If false, skips fetching (useful for conditional animations).
 *                  Defaults to true for backward compatibility.
 * @returns [jsonData, loading, error]
 */
export declare const useAnimation: (animationFileName: AnimationFileName, enabled?: boolean) => [AnimationJsonData, boolean, Error | null];
