type Return = { isLoading: boolean; hasError: boolean; errorMessage?: string | null; startLoading: () => void; stopLoading: () => void; triggerError: (errorMessage: string) => void; }; declare const useLoadingMachine: () => Return; export default useLoadingMachine;