import * as WebP from 'react-native-webp-converter'; /** * ### Easily call useConverter for rapid conversion * @param inputPathOnMount (optional) Path to the input image for immediate conversion on mount * @param configOnMount Configuration settings for WebP conversion * @returns `{ uri, error, isLoading, convert }` * @deprecated * ### Example * ```tsx * import * as WebP from 'react-native-webp-converter'; * import { StyleSheet, Image, ActivityIndicator, Text } from 'react-native'; * * export default function App() { * const image = WebP.useConverter('my-local-image.png'); * * if (image.isLoading) return ; * * if (image.error) return {image.error?.message}; * * return ; * } * ``` * * or * * ```tsx * import * as WebP from 'react-native-webp-converter'; * import { StyleSheet, Image, ActivityIndicator, Text } from 'react-native'; * * export default function App() { * const image = WebP.useConverter(); * * useEffect(()=>{ * image.convert('my-local-image.png') * },[]) * * if (image.isLoading) return ; * * if (image.error) return {image.error?.message}; * * return ; * } * ``` */ export declare function useConverter(inputPathOnMount?: string, configOnMount?: WebP.WebPConfig): { uri: string | null; error: any; isLoading: boolean; convert: (inputPath: string, config?: WebP.WebPConfig) => Promise; }; //# sourceMappingURL=hooks.d.ts.map