import "./dialog.css"; export interface DocinfoEditorCloseValue { /** The project-specific docinfo XML from this editor session. */ docinfo: string; /** The user-level common docinfo XML from this editor session. */ commonDocinfo: string; /** Whether the project should use the user's common docinfo. */ useCommonDocinfo: boolean; } export interface DocinfoEditorProps { /** The current docinfo XML string (the full `` element or empty). */ docinfo: string; /** Called on Save with docinfo settings, or `undefined` on Cancel. */ onClose: (value: DocinfoEditorCloseValue | undefined) => void; /** Show project-level controls for a user's common docinfo. */ showCommonDocinfoControls?: boolean; /** The user's common docinfo XML available to import. */ commonDocinfo?: string; /** Initial state of the "Use my common docinfo/preamble" checkbox. */ initialUseCommonDocinfo?: boolean; } /** * Modal dialog for editing the PreTeXt `` section, with three tabs: * Macros, Image Preamble, and Other Elements. */ declare const DocinfoEditor: ({ docinfo, onClose, showCommonDocinfoControls, commonDocinfo, initialUseCommonDocinfo, }: DocinfoEditorProps) => import("react").JSX.Element; export default DocinfoEditor;