import { type CSSProperties, type ReactNode } from 'react'; import type { MapFormat } from '../editor/formats'; /** * Split "Save" button: the main button saves in the active format directly; the * caret (shown only when more than one format is registered) opens a dropdown to * save as any other format. Picking a format from the list makes it the new * active format, so subsequent main-button saves default to it. * * The main button mirrors the built-in save {@link ToolbarAction} (icon, title, * dirty badge, disabled, style, onClick) so plugin overrides of the save action * still drive it. */ export declare function SaveSplitButton({ icon, title, badge, style, disabled, onSave, formats, activeFormatId, onPick, }: { icon?: ReactNode; title?: string; badge?: ReactNode; style?: CSSProperties; disabled?: boolean; onSave?: () => void; formats: MapFormat[]; activeFormatId: string; onPick: (format: MapFormat) => void; }): import("react").JSX.Element;