import type { EditorView } from '@codemirror/view'; import type { DSLNodeType } from '@lingxiteam/dsl'; import type React from 'react'; import type { ParamterData } from './useParameter'; import { OpenDataSourcePanelParams } from '../../interface'; declare function useInsert(opts: { editorRef: React.MutableRefObject; fieldName: string; valueKey?: string; getComponentRawCode: OpenDataSourcePanelParams['getComponentRawCode']; }): { insertText: (t: string) => void; onInsertNode: (t: DSLNodeType) => void; onInsertParameter: (t: Omit) => void; getValueArr: () => string[]; getValue: () => string; getFunValue: () => string; onInsertFunctors: (t: string) => void; getParams: () => Omit[]; }; export { useInsert };