import { SyntheticEvent } from 'react'; export declare const useImage: (src: string | undefined, onLoad?: ((e: SyntheticEvent) => void) | undefined, onError?: ((e: string | SyntheticEvent) => void) | undefined) => { imageVisible: boolean; bindToImage: { hidden: boolean; onLoad(e: SyntheticEvent): void; onError(e: string | SyntheticEvent): void; src: string | undefined; }; };