import { type ReactNode } from "react"; import { type ConfigEditorLanguage } from "./configEditorLanguage.js"; import { type IUiConfigEditorContextMenuProps, type IUiConfigEditorLabels } from "./types.js"; interface IConfigEditorToolbarProps { languages: ConfigEditorLanguage[]; displayLanguage: ConfigEditorLanguage; /** Called when the user picks a language on this toolbar (as opposed to a remote prop change). */ onSelectLanguage: (next: ConfigEditorLanguage) => void; labels: IUiConfigEditorLabels | undefined; /** `undefined` when there is nothing to re-format, which disables the action. */ canAutoFormat: boolean; onAutoFormat: () => void; renderContextMenu?: (props: IUiConfigEditorContextMenuProps) => ReactNode; readOnly: boolean; disabled: boolean; /** Scoped to the editor instance so several editors' radio groups do not merge. */ languageGroupName: string; contextMenuButtonId: string; } /** * The editor's fixed-height toolbar: the language radio group (only when more than one language is * offered), the Auto-format action, and the optional context-menu button with its popover. */ export declare function ConfigEditorToolbar({ languages, displayLanguage, onSelectLanguage, labels, canAutoFormat, onAutoFormat, renderContextMenu, readOnly, disabled, languageGroupName, contextMenuButtonId, }: IConfigEditorToolbarProps): import("react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=ConfigEditorToolbar.d.ts.map