import type { Artboard, CanvasRenderer, File, FileAsset, LinearAnimationInstance, RiveCanvas } from '@rive-app/canvas-advanced'; import React from 'react'; import type { EffectsProp, SequenceProps } from 'remotion'; import type { RemotionRiveCanvasAlignment, RemotionRiveCanvasFit } from './map-enums.js'; type assetLoadCallback = (asset: FileAsset, bytes: Uint8Array) => boolean; type onLoadCallback = (file: File) => void; type RiveSequenceInheritedProps = Pick; type RemotionRiveCanvasOwnProps = { readonly src: string; readonly fit?: RemotionRiveCanvasFit; readonly alignment?: RemotionRiveCanvasAlignment; readonly artboard?: string | number; readonly animation?: string | number; readonly onLoad?: onLoadCallback | null; readonly enableRiveAssetCdn?: boolean; readonly assetLoader?: assetLoadCallback; readonly className?: string; readonly style?: React.CSSProperties; readonly effects?: EffectsProp; }; export type RemotionRiveCanvasProps = RemotionRiveCanvasOwnProps & RiveSequenceInheritedProps; export type RiveCanvasRef = { getAnimationInstance: () => LinearAnimationInstance | null; getArtboard: () => Artboard | null; getRenderer: () => CanvasRenderer | null; getCanvas: () => RiveCanvas | null; }; export declare const RemotionRiveCanvas: React.ForwardRefExoticComponent>; export {};