/// import { DSLQuery } from '@lingxiteam/dsl'; import { type DataSourceItemProps } from '../../../utils/message'; export interface TableOptions { DSLCore?: DSLQuery; /** * 能后退 * @param undo * @returns */ onEnableUndo: (undo: boolean) => void; /** * 可以恢复 * @param redo * @returns */ onEnableRedo: (redo: boolean) => void; isMobile: boolean; onPropsChange: (dataSource: DataSourceItemProps[], setAttr: (core: DSLQuery) => void) => void; didConfig: boolean; } export { type DataSourceItemProps, }; declare const useTable: (options: TableOptions) => { dataSource: DataSourceItemProps[]; removeNode: (record: DataSourceItemProps) => void; filterData: DataSourceItemProps[]; expendKeys: import("react").Key[]; setExpandedKeys: import("react").Dispatch>; undo: () => void; redo: () => void; editNode: (record: DataSourceItemProps, newRecord: DataSourceItemProps, options?: { recordHistory?: boolean; propsLabel?: string; }) => void; clearTitle: () => void; onChangedHandle: (record: DataSourceItemProps, fieldName: string, value: any, compileCode?: string, options?: { deleFunctors?: boolean | undefined; storeHistory: boolean; propsLabel?: string | undefined; }) => void; clearContent: () => void; isLoopComponent: (compName: string) => boolean; submit: () => Promise; errors: Record; replaceRowKey: (itemKey: string, row: DataSourceItemProps) => void; updateRowKey: (value: string, itemKey: string, row: DataSourceItemProps) => void; loopContents: string[]; updateContent: (item: DataSourceItemProps, name: string, v: any) => void; }; export default useTable;