declare const ErrorMessage: { readonly WINDOW_IS_NOT_DEFINED: "Window is not defined"; readonly URL_IS_NOT_DEFINED: "Url is not defined"; readonly TIMEOUT: "Timeout"; readonly ABORTED: "Aborted"; }; type Options = { timeout?: number; signal?: AbortSignal; retries?: number; crossOrigin?: string; staleTime?: number; }; type UseImageSizeOptions = Options & { enabled?: boolean; keepPreviousData?: boolean; }; type Dimensions = { width: number; height: number; }; type UseImageSizeResult = [ Dimensions | null, { loading: boolean; error: string | null; refetch: () => void; isPreviousData: boolean; } ]; declare const clearCache: () => void; declare const clearCacheEntry: (url: string) => void; declare const getImageSize: (url: string, options?: Options) => Promise; declare const useImageSize: (url: string, options?: UseImageSizeOptions) => UseImageSizeResult; export { type Dimensions, ErrorMessage as Error, type Options, type UseImageSizeOptions, type UseImageSizeResult, clearCache, clearCacheEntry, getImageSize, useImageSize };