import type { ReactNode } from 'react'; import { type IntlShape } from 'react-intl'; import type { EditorActionsMenuConfig, EditorDownloadConfig } from './EditorActionsMenu.js'; import { type EditorDownloadProps } from './slots.js'; /** * Builds the Download item configuration from the consumer's `Download` slot props. * @param intl - The intl instance used for the label. * @param download - Props of the `Download` slot, if the slot is present. * @param defaultFileNameStem - File name used when the consumer's name yields no usable name. * @param defaultExtension - Extension used when the consumer's name carries none. * @internal */ export declare function createDownloadConfig(intl: IntlShape, download: EditorDownloadProps | undefined, defaultFileNameStem: string, defaultExtension: string): EditorDownloadConfig | undefined; /** * Builds the default actions menu configuration of an editor: a Copy item, * an optional Download item, and custom items in their own group. * Returns `undefined` when the actions menu isn't enabled. * @param slot - The `ActionsMenu` slot found in the editor's children, if any. * @param defaultExtension - Extension used for downloads when the file name carries none. * @internal */ export declare function useEditorActionsMenuConfig(slot: { children: ReactNode; } | undefined, defaultExtension: string): EditorActionsMenuConfig | undefined; //# sourceMappingURL=use-editor-actions-menu-config.d.ts.map