import type { PickerButton, PickerColumn, PickerOptions } from '@familyjs/core/components'; import type { HookOverlayOptions } from './HookOverlayOptions'; /** * A hook for presenting/dismissing an FmlPicker component * @returns Returns the present and dismiss methods in an array * @deprecated Use the inline fml-picker component instead. */ export declare function useFmlPicker(): UseFmlPickerResult; export type UseFmlPickerResult = [ { /** * Presents the picker * @param columns Array of columns to be displayed in the picker. * @param buttons Optional - Array of buttons to be displayed at the top of the picker. */ (columns: PickerColumn[], buttons?: PickerButton[]): Promise; /** * Presents the picker * @param options The options to pass to the FmlPicker */ (options: PickerOptions & HookOverlayOptions): Promise; }, /** * Dismisses the picker */ () => Promise ];