export type ImageLoadStatus = "loading" | "loaded" | "error";
/**
* Tracks an `
` element's load lifecycle for a given `src`. Resets back to
* `"loading"` when `src` changes — derived during render rather than via
* `useEffect` (per React's "you might not need an effect" pattern).
*
* Wire `onLoad` and `onError` on the `
`; pass `status` to whatever needs
* to react to the load lifecycle (e.g. `Tile.Preview status="loading"`).
*
* Accepts `undefined` defensively so callers don't need to coerce optional
* `imagePath` / `thumbnailUrl` values to a string before passing them in.
*/
export declare function useImageLoadStatus(src?: string): {
status: ImageLoadStatus;
onLoad: () => void;
onError: () => void;
};
//# sourceMappingURL=useImageLoadStatus.d.ts.map