import { ReactElement } from 'react'; import { ImageProps } from 'next/image'; import { CacheOptions } from '../../types.mjs'; /** * Next.js image components and hooks for the asset caching module */ /** * Hook to use a cached image * @param src Image source URL * @param options Caching options * @returns Image URL and loading state */ declare function useBaseCachedImage(src: string, options?: CacheOptions): { imageUrl: string | null; isLoading: boolean; error: Error | null; }; /** * Cached Image component for Next.js */ declare function BaseCachedImage({ src, alt, cacheOptions, ...props }: Omit & { src: string; alt: string; cacheOptions?: CacheOptions; }): ReactElement; export { BaseCachedImage, useBaseCachedImage };