import type { AlertButton, AlertOptions } from '@familyjs/core/components'; import type { HookOverlayOptions } from './HookOverlayOptions'; /** * A hook for presenting/dismissing an FmlAlert component * @returns Returns the present and dismiss methods in an array */ export declare function useFmlAlert(): UseFmlAlertResult; export type UseFmlAlertResult = [ { /** * Presents the alert * @param message The main message to be displayed in the alert * @param buttons Optional - Array of buttons to be added to the alert */ (message: string, buttons?: AlertButton[]): Promise; /** * Presents the alert * @param options The options to pass to the FmlAlert */ (options: AlertOptions & HookOverlayOptions): Promise; }, /** * Dismisses the alert */ () => Promise ];