export function successRequest({ onSuccess, file }: { onSuccess: any; file: any; }): void; export function errorRequest({ onError }: { onError: any; }): void;