import type { ProTableProps } from './index'; import type { DensitySize } from './components/ToolBar/DensityIcon'; import type { ActionType } from './typing'; import type { TableColumnType } from 'antd'; import type { ProFormInstance } from 'ls-pro-form'; export declare type ColumnsState = { show?: boolean; fixed?: 'right' | 'left' | undefined; order?: number; width?: number; disable?: boolean | { checkbox: boolean; icon: boolean; }; }; export declare type UseContainerProps = { columnsStateMap?: Record; onColumnsStateChange?: (map: Record) => void; cellSelectable?: boolean; size?: DensitySize; defaultSize?: DensitySize; onSizeChange?: (size: DensitySize) => void; columns?: TableColumnType[]; columnsState?: ProTableProps['columnsState']; }; declare function useContainer(props?: UseContainerProps): { action: ActionType | undefined; setAction: (newAction?: ActionType | undefined) => void; sortKeyColumns: string[]; setSortKeyColumns: (keys: string[]) => void; propsRef: import("react").MutableRefObject | undefined>; columnsMap: Record; keyWords: string | undefined; setKeyWords: (k: string | undefined) => void; setTableSize: (updater: DensitySize | ((origin: DensitySize) => DensitySize), ignoreDestroy?: boolean | undefined) => void; tableSize: DensitySize; cellCopy: boolean; setCellCopy: import("react").Dispatch>; prefixName: any; setPrefixName: (name: any) => void; setEditorTableForm: (form: ProFormInstance) => void; editableForm: ProFormInstance | undefined; setColumnsMap: (updater: Record | ((origin: Record) => Record), ignoreDestroy?: boolean | undefined) => void; columns: TableColumnType[] | undefined; columnsState: import("./typing").ColumnsStateType | undefined; clearLayout: () => void; saveLayout: (layoutJson: any) => void; defaultColumnKeyMap: any; mapList: any[]; setMapList: import("react").Dispatch>; currentIndex: number; setCurrentIndex: import("react").Dispatch>; getUsers: () => Promise; shareLayout: (userIds: any, layoutJson: any) => Promise; }; declare const Container: import("unstated-next").Container<{ action: ActionType | undefined; setAction: (newAction?: ActionType | undefined) => void; sortKeyColumns: string[]; setSortKeyColumns: (keys: string[]) => void; propsRef: import("react").MutableRefObject | undefined>; columnsMap: Record; keyWords: string | undefined; setKeyWords: (k: string | undefined) => void; setTableSize: (updater: DensitySize | ((origin: DensitySize) => DensitySize), ignoreDestroy?: boolean | undefined) => void; tableSize: DensitySize; cellCopy: boolean; setCellCopy: import("react").Dispatch>; prefixName: any; setPrefixName: (name: any) => void; setEditorTableForm: (form: ProFormInstance) => void; editableForm: ProFormInstance | undefined; setColumnsMap: (updater: Record | ((origin: Record) => Record), ignoreDestroy?: boolean | undefined) => void; columns: TableColumnType[] | undefined; columnsState: import("./typing").ColumnsStateType | undefined; clearLayout: () => void; saveLayout: (layoutJson: any) => void; defaultColumnKeyMap: any; mapList: any[]; setMapList: import("react").Dispatch>; currentIndex: number; setCurrentIndex: import("react").Dispatch>; getUsers: () => Promise; shareLayout: (userIds: any, layoutJson: any) => Promise; }, UseContainerProps>; export declare type ContainerType = typeof useContainer; export { useContainer }; export default Container;