import { ViewUpdate } from "@codemirror/view"; interface UseJsEditorProps { autoFocus?: boolean; /** * 延迟触发间隔(毫秒),与 onDebouncedChange 搭配使用。 * 默认 300ms。 */ debouncedDelayMs?: number; lineWrapping?: boolean; onChange?: (value: string, viewUpdate: ViewUpdate) => void; onDebouncedChange?: (value: string, viewUpdate: ViewUpdate) => void; onEndChange?: (value: string) => void; onFormat?: (formattedCode: string) => void; /** * Whether to capture Tab key inside the editor. * - true: Tab is handled by the editor (indent / completion) * - false: Tab moves focus to the next focusable element */ captureTabKey?: boolean; placeholder?: string; readonly?: boolean; value?: string; } export declare function useJsEditor(props: UseJsEditorProps): { containerRef: import("react").RefObject; }; export {};