import { FC, PropsWithChildren } from 'react'; /** backend only supports png and webp as conversion formats */ export type OptimizedImageFormat = "png" | "webp"; export type OptimizedImageOptions = { width?: number; format?: OptimizedImageFormat; }; export type GetOptimizedImageUrl = (url?: string, options?: OptimizedImageOptions) => string | undefined; interface ImageOptimizationContextProps { /** the base url of the image optimizer */ imageOptimizationUrl?: string; /** a custom function to return an optimized image url */ getOptimizedImageUrl?: GetOptimizedImageUrl; } export declare const useGetOptimizedImageUrl: GetOptimizedImageUrl; export interface ImageOptimizationProviderProps extends PropsWithChildren, ImageOptimizationContextProps { } export declare const ImageOptimizationProvider: FC; export {};