import type { LoadingOptions, SpinnerTypes } from '@familyjs/core/components'; import type { HookOverlayOptions } from './HookOverlayOptions'; /** * A hook for presenting/dismissing an FmlLoading component * @returns Returns the present and dismiss methods in an array */ export declare function useFmlLoading(): UseFmlLoadingResult; export type UseFmlLoadingResult = [ { /** * Presents the loading indicator * @param message Optional - Text content to display in the loading indicator, defaults to blank string * @param duration Optional - Number of milliseconds to wait before dismissing the loading indicator * @param spinner Optional - The name of the spinner to display, defaults to "lines" */ (message?: string, duration?: number, spinner?: SpinnerTypes): Promise; /** * Presents the loading indicator * @param options The options to pass to the FmlLoading */ (options: LoadingOptions & HookOverlayOptions): Promise; }, /** * Dismisses the loading indicator */ () => Promise ];