import type { WidgetPanel, WidgetPanelTheme } from "./widget-containers.js"; import type { JSX } from 'preact'; /** Text-editor widget panel configuration. */ export type TextEditorPanelProps = { /** Stable panel id used by parent containers. */ id: string; /** Visible heading text for the panel. */ title: string; /** Controlled editor text. If supplied, callers own the current value. */ value?: string; /** Uncontrolled initial editor text used when `value` is not supplied. */ defaultValue?: string; /** Called when user edits the current document text. */ onValueChange?: (nextValue: string) => void; /** Monaco language mode used by the document model. */ language?: 'json' | 'plaintext'; /** JSON schema used to drive diagnostics and completion in JSON mode. */ jsonSchema?: Record; /** If true, prevent editing while still showing Monaco viewer chrome. */ readOnly?: boolean; /** Optional placeholder shown while the document is empty. */ placeholder?: string; /** Optional class name applied to the outer panel content wrapper. */ className?: string; /** Optional theme override applied to this panel subtree. */ theme?: WidgetPanelTheme; /** Monaco theme id used when the effective panel theme resolves to light mode. */ lightMonacoTheme?: string; /** Monaco theme id used when the effective panel theme resolves to dark mode. */ darkMonacoTheme?: string; }; /** * A widget panel that lazily loads Monaco and edits one text document. */ export declare class TextEditorPanel implements WidgetPanel { id: string; title: string; theme?: WidgetPanelTheme; content: JSX.Element; constructor(props: TextEditorPanelProps); } //# sourceMappingURL=text-editor-panel.d.ts.map