import { UseRiveParameters, UseRiveOptions, RiveState } from '../types'; /** * Custom Hook for loading a Rive file. * * Waits until the load event has fired before returning it. * We can then listen for changes to this animation in other hooks to detect * when it has loaded. * * @param riveParams - Object containing parameters accepted by the Rive object * in the rive-js runtime, with the exception of Canvas as that is attached * via the ref callback `setCanvasRef`. * * @param opts - Optional list of options that are specific for this hook. * @returns {RiveAnimationState} */ export default function useRive(riveParams?: UseRiveParameters, opts?: Partial): RiveState;