import React, { ReactElement } from 'react'; import { CacheOptions } from '../../types.js'; /** * Next.js video components and hooks for the asset caching module */ /** * Hook to use a cached video * @param src Video source URL * @param options Caching options * @returns Video URL and loading state */ declare function useBaseCachedVideo(src: string, options?: CacheOptions): { videoUrl: string | null; isLoading: boolean; error: Error | null; }; /** * Cached Video component */ declare function BaseCachedVideo({ src, cacheOptions, ...props }: React.VideoHTMLAttributes & { src: string; cacheOptions?: CacheOptions; }): ReactElement; export { BaseCachedVideo, useBaseCachedVideo };