import type { ModalOptions } from '@familyjs/core/components'; import type { ReactComponentOrElement } from '../models/ReactComponentOrElement'; import type { HookOverlayOptions } from './HookOverlayOptions'; /** * A hook for presenting/dismissing an FmlModal component * @param component The component that the modal will show. Can be a React Component, a functional component, or a JSX Element * @param componentProps The props that will be passed to the component, if required * @returns Returns the present and dismiss methods in an array */ export declare function useFmlModal(component: ReactComponentOrElement, componentProps?: any): UseFmlModalResult; export type UseFmlModalResult = [ (options?: Omit & HookOverlayOptions) => void, /** * Dismisses the modal */ (data?: any, role?: string) => void ];