import React from 'react'; import { TableProps } from 'antd'; import { StorageSchema } from 'oak-domain/lib/types/Storage'; import { OakAbsAttrDef, onActionFnDef, OakExtraActionProps, ListButtonProps, ED, OakAbsAttrJudgeDef } from '../../types/AbstractComponent'; import { RowWithActions } from '../../types/Page'; type Props = { title?: string | React.ReactNode; extraContent?: React.ReactNode; hideDefaultButtons?: boolean; buttonGroup?: ListButtonProps[]; onReload?: () => void; entity: T; extraActions?: OakExtraActionProps[] | ((row: RowWithActions) => OakExtraActionProps[]); onAction?: onActionFnDef; disabledOp?: boolean; attributes: OakAbsAttrDef[]; data: RowWithActions[]; loading?: boolean; tablePagination?: TableProps>['pagination']; rowSelection?: TableProps>['rowSelection']; disableSerialNumber?: boolean; size?: 'large' | 'middle' | 'small'; scroll?: TableProps>['scroll']; locale?: TableProps>['locale']; opWidth?: number; }; export type TableAttributeType = { attribute: OakAbsAttrJudgeDef; show: boolean; disabled?: boolean; disableCheckbox?: boolean; }; export declare const TableContext: React.Context<{ tableAttributes: TableAttributeType[] | undefined; entity: keyof ED | undefined; schema: StorageSchema | undefined; setTableAttributes: ((attributes: TableAttributeType[]) => void) | undefined; setSchema: ((schema: any) => void) | undefined; onReset: (() => void) | undefined; }>; declare const ProList: (props: Props) => React.JSX.Element; export default ProList;