--- // @ts-ignore import { getImage } from '../dist/index.js'; import type { ImageAttributes, ImageMetadata, TransformOptions, OutputFormat } from '../dist/types'; export interface LocalImageProps extends Omit, Omit { src: ImageMetadata | Promise<{ default: ImageMetadata }>; } export interface RemoteImageProps extends TransformOptions, ImageAttributes { src: string; format: OutputFormat; width: number; height: number; } export type Props = LocalImageProps | RemoteImageProps; const { loading = "lazy", decoding = "async", ...props } = Astro.props as Props; const attrs = await getImage(props); ---