import { SnackbarProps } from '../components'; import React from 'react'; type ArgsType = T extends (...args: infer U) => unknown ? U : never; type ThenArg = T extends PromiseLike ? U : T; type AsyncApiCallReturnType = ThenArg>; interface Options { successMessage?: string; clearResultOnSuccess?: boolean; retryButton?: boolean; } export declare const useAsyncApiCall: (func: T, setResponseResult?: boolean, options?: Options) => { ErrorSnackbar: React.FC void; }>; clearError: () => void; clearResult: () => void; error: string; inProgress: boolean; makeCall: (...args: ArgsType) => Promise>>; result: ThenArg>; }; export {};