import React from 'react'; import type * as monacoTypes from 'monaco-editor'; interface SqlEditorProps { className?: string; maxHeight?: number | string; fontSize?: number; size?: 'small' | 'middle' | 'large'; theme?: 'light' | 'dark'; value?: string; placeholder?: string; enableAutocomplete?: boolean; readOnly?: boolean; disabled?: boolean; onChange?: (value: string) => void; onEnter?: (value: string) => void; onBlur?: (value: string) => void; onFocus?: (value: string) => void; editorDidMount?: (editor: monacoTypes.editor.IStandaloneCodeEditor) => void; /** Whether to show the format button. Default: false */ enableFormat?: boolean; /** Custom format button renderer */ renderFormatButton?: (handleFormat: () => void) => React.ReactNode; } export interface SqlEditorHandle { format: () => void; } declare const SqlEditor: React.ForwardRefExoticComponent>; export { default as SqlPreview } from './preview'; export default SqlEditor;