import { ReactElement } from 'react'; interface Props { loading?: boolean; indicator?: ReactElement | null; loaderProps?: { /** Description of progressbar and what it is loading */ valueText?: string; }; } declare type AriaLive = 'off' | 'assertive' | 'polite' | undefined; /** * Hook returning Indicator element according to loading argument. * @example const { containerProps, indicatorEl } = useLoading({ loading: true }) */ export declare function useLoading({ loading, indicator, loaderProps }: Props): { containerProps: { 'aria-busy': boolean; 'aria-live': AriaLive; }; indicatorEl: ReactElement ReactElement import("react").Component)> | null) | (new (props: any) => import("react").Component)> | null; }; export {};