type HandleFetchProps = { fetcher: Promise; onSuccess?: (data: T) => void; onError: (error: Error) => void; }; export declare const handleFetch: ({ fetcher, onSuccess, onError, }: HandleFetchProps) => Promise; export {};