import { ComponentProps, JSXElementConstructor } from 'react';
import { BorderProps, BorderTopProps, BorderRightProps, BorderBottomProps, BorderLeftProps, BorderColorProps, BorderWidthProps, BorderRadiusProps } from 'styled-system';
import { ButtonProps } from '../Button';
import { BoxProps } from '../Box';
import { Props as CheckboxProps } from '../Checkbox';
export declare type TableColumnHeaderProps = {
    padding?: string;
    textAlign?: string;
} & BorderProps & BorderTopProps & BorderRightProps & BorderBottomProps & BorderLeftProps & BorderColorProps & BorderWidthProps & BorderRadiusProps;
export declare type TableColumnProps = {
    width?: string;
    height?: string;
    padding?: string;
    lineHeight?: string;
    textAlign?: string;
} & BorderProps & BorderTopProps & BorderRightProps & BorderBottomProps & BorderLeftProps & BorderColorProps & BorderWidthProps & BorderRadiusProps;
export interface TableColumnDefinition<T extends keyof JSX.IntrinsicElements | JSXElementConstructor<any> = any> {
    Header?: JSX.Element | string;
    accessor: string;
    footer?: (index: number) => JSX.Element | null | undefined;
    editor?: T;
    editorProps?: ComponentProps<T>;
    getCustomHeaderProperties?: () => TableColumnHeaderProps;
    getCustomCellProperties?: ((rowIndex: number) => TableColumnProps | null | undefined) | null;
    width?: string;
    id?: string;
}
export interface TableColumnEnhanced<T extends keyof JSX.IntrinsicElements | JSXElementConstructor<any> = any> extends TableColumnDefinition<T> {
    getHeaderProps: any;
    getSortByToggleProps?: any;
    isSorted?: boolean;
    isSortedDesc?: boolean;
    render: (name: string) => any;
}
export interface TableRowProps {
    paginate?: boolean;
    borderBottom?: string;
}
export interface FetchDataParams {
    start: number;
}
export interface TableProps extends BoxProps {
    columns: {
        Header: string;
        columns: TableColumnDefinition[];
    }[];
    data?: any;
    fetchData?: (parameters: FetchDataParams) => any;
    resetOn?: any;
    title?: any;
    empty?: {
        icon?: any;
        copy?: any;
    };
    batchActions?: TableBatchActionType[];
    rowActions?: TableRowActionType[];
    updateData?: any;
    subRow?: (rowData: any, rowIndex: number) => void;
    defaultSort?: {
        accessor: string;
        desc?: boolean;
    };
    sortable?: boolean;
    selectable?: boolean;
    pageStart?: number;
    pageSize?: number;
    pageSizes?: number[];
    canSkipPage?: boolean;
    isLoading?: boolean;
    refresh?: () => void;
    onRefresh?: () => void;
    onSelect?: (selectedData: any) => void;
    lastUpdate?: string;
    noHeader?: boolean;
    onRowClick?: (rowData: any, rowIndex: number) => void;
    getCustomHeaderDefaultColumnProperties?: () => TableColumnHeaderProps;
    getDefaultCellProperties?: () => TableColumnProps;
    getCustomRowProperties?: (index: number) => TableRowProps;
    rowsIndexesCheckboxesDisabled?: number[];
    rowsIndexesCheckboxesHidden?: number[];
    paginationLabel?: string;
    selectionRowCellStyle?: TableColumnProps;
    setPageSize?: (value: number) => void;
    maxWidth?: boolean;
}
export interface TableBatchActionType {
    icon?: any;
    label?: string;
    buttonProps?: ButtonProps;
    needsSelection?: boolean;
    isRefresh?: boolean;
    condition?: boolean;
    click?: (selectedData: any, selectedIndices: string[]) => void;
    showWhenLoading?: boolean;
}
export interface TableBatchActionsProps extends BoxProps {
    batchActions: TableBatchActionType[];
    showBatchActions: boolean;
    totalSelectedRows: number;
    selectedData: any;
    selectedRowIndices: string[];
    refresh?: () => void;
    lastUpdate?: string;
    isLoading?: boolean;
}
export interface TableEditableCellProps {
    cell: any;
    data: any;
    updateData: any;
    setSkipTableReset: any;
}
export interface TablePaginationProps {
    canPreviousPage: boolean;
    canNextPage: boolean;
    nextPage: any;
    previousPage: any;
    setPageSize?: any;
    totalRows?: number;
    pageIndex: number;
    pageSize: number;
    pageSizes?: number[];
    pageCount?: number;
    gotoPage?: any;
    label?: string;
}
export interface TableRowActionsProps {
    hooks: any;
    selectable?: boolean;
    setShowBatchActions: any;
    rowActions?: TableRowActionType[];
    subRow?: (rowData: any, rowIndex: number) => void;
    setSkipTableReset: any;
    rowsIndexesCheckboxesDisabled?: number[];
    rowsIndexesCheckboxesHidden?: number[];
}
export interface TableCheckboxProps extends CheckboxProps {
    onChange: any;
    setShowBatchActions: any;
    indeterminate: boolean;
}
export interface TableRowActionType {
    id: string;
    action: (rowData: any, rowIndex: number) => void;
    Content: any;
    onlyShowOnHover?: boolean;
    ContentProps?: any;
    ContentChildren?: ((rowData: any) => string) | string;
    disabled?: (rowData: any, rowIndex: number) => boolean;
    disabledTooltip?: (rowData: any, rowIndex: number) => string;
}
export interface TableRowCell {
    column: TableColumnEnhanced;
    getCellProps: () => any;
    render: (name: string) => any;
}
export interface ToggleAllRowsSelectedProps {
    checked: boolean;
    indeterminate: boolean;
    onChange: (e: any) => void;
    style: React.StyleHTMLAttributes<any>;
    title: string;
}
//# sourceMappingURL=TableTypes.d.ts.map