import { PureComponent } from 'react'; import { GridSortType, IGridOnChangeConfig, IGridScrollDelta, IGridInnerFixedType } from './types'; import { IGridInnerColumn, IGridProps } from './Grid'; import Store from './Store'; export interface IGridHeaderProps { size: IGridProps['size']; prefix: string; columns: Array>; sortType: GridSortType; defaultSortType?: GridSortType; sortBy?: string; onChange: (config: IGridOnChangeConfig) => void; store: Store; fixed?: IGridInnerFixedType; fixedColumnsHeadRowsHeight: Array; scroll: IGridScrollDelta; } interface IHeaderCell { key: string | number; className: string; children?: React.ReactNode; colSpan?: number; rowSpan?: number; } interface IGridHeaderState { rows: Array>; } declare class Header extends PureComponent, IGridHeaderState> { constructor(props: IGridHeaderProps); unsubscribe: any; getSortInfo: (column: IGridInnerColumn, props: IGridHeaderProps) => { sortBy: string; sortType: GridSortType; sortTooltip: string; }; getChildrenAndEvents: (column: IGridInnerColumn, props: IGridHeaderProps) => { children: JSX.Element; onClick: () => void; } | { children: import("react").ReactNode; onClick?: undefined; }; getHeaderRows: (passProps?: IGridHeaderProps, columns?: Array>, currentRow?: number, rows?: Array>) => IHeaderCell[][]; subscribe: () => void; componentDidMount(): void; componentWillReceiveProps(nextProps: IGridHeaderProps): void; componentWillUnmount(): void; renderThead(): JSX.Element; render(): JSX.Element; } export default Header;