import type { ToastOptions } from '@familyjs/core/components'; import type { HookOverlayOptions } from './HookOverlayOptions'; /** * A hook for presenting/dismissing an FmlToast component * @returns Returns the present and dismiss methods in an array */ export declare function useFmlToast(): UseFmlToastResult; export type UseFmlToastResult = [ { /** * Presents the toast * @param message Message to be shown in the toast. * @param duration Optional - How many milliseconds to wait before hiding the toast. By default, it will show until dismissToast() is called. */ (message: string, duration?: number): Promise; /** * Presents the Toast * @param options The options to pass to the FmlToast. */ (options: ToastOptions & HookOverlayOptions): Promise; }, /** * Dismisses the toast */ () => Promise ];