import type { SizeVector } from '../commons/types'; export type FetchImageResolutionResult = { isFetching: boolean; resolution: SizeVector | undefined; error: Error | undefined; }; export type Source = { uri: string; headers?: Record; }; /** * @description Gets the resolution of a bundle or network image. * @param source Object containing an url pointing to a network image and optional headers or a * require statement pointing to a bundle image asset. * @returns An object containing the following values: * - A boolean flag indicating whether the hook is fetching or not. * - Resolution of the image. * - An Error in case the image resolution fetching has failed. * @see https://glazzes.github.io/react-native-zoom-toolkit/utilities/useimageresolution.html */ export default function (source: Source | number): FetchImageResolutionResult; //# sourceMappingURL=useImageResolution.d.ts.map