import type { ReactElement, HTMLAttributes, Ref } from "react";
import type SlAnimatedImageElement from "@shoelace-style/shoelace/dist/components/animated-image/animated-image.js";
import { SlLoadEvent, SlErrorEvent } from "../events";
export type { SlAnimatedImageElement };
export type SlAnimatedImageLoadEvent = SlLoadEvent;
export type SlAnimatedImageErrorEvent = SlErrorEvent;
export interface SlAnimatedImageProps
extends HTMLAttributes {
ref?: Ref;
/**
* The path to the image to load.
*/
src?: string;
/**
* A description of the image used by assistive devices.
*/
alt?: string;
/**
* Plays the animation. When this attribute is remove, the animation will pause.
*/
play?: boolean;
/**
* Emitted when the image loads successfully.
*/
onSlLoad?: (event: SlAnimatedImageLoadEvent) => void;
/**
* Emitted when the image loads successfully.
*/
onSlLoadCapture?: (event: SlAnimatedImageLoadEvent) => void;
/**
* Emitted when the image fails to load.
*/
onSlError?: (event: SlAnimatedImageErrorEvent) => void;
/**
* Emitted when the image fails to load.
*/
onSlErrorCapture?: (event: SlAnimatedImageErrorEvent) => void;
}
/**
* A component for displaying animated GIFs and WEBPs that play and pause on interaction.
*/
export default function SlAnimatedImage(
props: SlAnimatedImageProps,
): ReactElement;