import type { IEventDetail } from '@breadstone/mosaik-elements';
/**
 * Represents the event detail for image loaded events.
 *
 * @public
 */
export interface IImageLoadedEventDetail extends IEventDetail {
}
/**
 * Event fired when an image is loaded.
 *
 * @public
 */
export type ImageLoadedEvent = CustomEvent<IImageLoadedEventDetail>;
/**
 * Represents the event detail for image failed events.
 *
 * @public
 */
export interface IImageFailedEventDetail extends IEventDetail {
    /**
     * The error that occurred.
     */
    readonly error?: Error;
}
/**
 * Event fired when an image fails to load.
 *
 * @public
 */
export type ImageFailedEvent = CustomEvent<IImageFailedEventDetail>;
declare global {
    interface HTMLElementEventMap {
        imageLoaded: ImageLoadedEvent;
        imageFailed: ImageFailedEvent;
    }
}
//# sourceMappingURL=ImageEvents.d.ts.map