import * as React from "react";
import { TableProps as MuiTableProps } from "@material-ui/core/Table";
import { ButtonProps } from "./Button";
interface BaseColumn {
    label: React.ReactNode;
    noPadding?: boolean;
}
interface SortableColumn<T> extends BaseColumn {
    value: T;
    static?: false;
}
interface StaticColumn extends BaseColumn {
    static: true;
    value?: undefined;
}
declare type OrderBy = "asc" | "desc";
export interface TableSortHeadProps<T> {
    /** Array of column configurations, or falsy values to exclude that column */
    readonly columns: Array<SortableColumn<T> | StaticColumn | void | false>;
    /** What the table is actively sorting by */
    readonly orderType: T;
    /** Which direction the table is sorting */
    readonly orderBy: OrderBy;
    /** A title to display above the column labels */
    readonly title?: TableHeaderProps["title"];
    /** Pagination to display the right of the title, shouldn't be used with actions */
    readonly pagination?: TableHeaderProps["pagination"];
    /** Buttons to display to the right of the title, shouldn't be used with pagination */
    readonly actions?: TableHeaderProps["actions"];
    /** Callback for when a sort header is clicked */
    readonly onChangeSort: (orderType: T, orderBy: OrderBy) => void;
}
export declare const TableSortHead: <T extends React.ReactText>(props: TableSortHeadProps<T>) => JSX.Element;
/**
 * Hook for Table.SortHead, provides you orderType, orderBy, and a change handler.
 */
export declare const useTableSort: <T extends React.ReactText>(defaultOrderType: T, defaultOrderBy?: OrderBy) => [T, OrderBy, (orderType?: T | undefined, orderBy?: "asc" | "desc" | undefined) => void];
export interface TableSimplePaginationProps {
    /** What page you're on, starting at 1 */
    readonly page: number;
    /** How many items are in the table total */
    readonly count: number;
    /** How many rows each page displays */
    readonly rowsPerPage: number;
    /** Callback for when left, right, or specific page button is clicked */
    readonly onChangePage: (page: number) => void;
}
/**
 * Simplified take on table pagination, just page numbers and buttons.
 */
export declare const TableSimplePagination: React.FC<TableSimplePaginationProps>;
export interface TableHeaderProps {
    /** A title to display */
    readonly title?: React.ReactNode;
    /** Pagination to display the right of the title, shouldn't be used with actions */
    readonly pagination?: TableSimplePaginationProps;
    /** Buttons to display to the right of the title, shouldn't be used with pagination */
    readonly actions?: Partial<ButtonProps>[];
}
/**
 * Component that encapsulates all of the pieces that sit on the top of a table.
 */
export declare const TableHeader: React.FC<TableHeaderProps>;
export interface TableProps extends MuiTableProps {
    inline?: boolean;
}
/**
 * Wrapper around Material UI's Table component that fixes scroll behavior.
 * Conveniently exports all of Table's components in one import, so for example
 * `<TableCell />` becomes `<Table.Cell />` etc.
 *
 * Provides `<Table.SortHead />`, a convenient way to create sortable
 * tables. Pair that with the `useTableSort` hook to get convenient.
 *
 * Also provides `<Table.Title />`, a component that styles the title aboce
 * tables.
 *
 * See original component's Material UI documentation here: https://material-ui.com/components/tables/
 */
export declare const Table: {
    ({ className, inline, ...rest }: TableProps): JSX.Element;
    Body: React.ComponentType<import("@material-ui/core").TableBodyProps>;
    Cell: React.ComponentType<import("@material-ui/core").TableCellProps>;
    Footer: React.ComponentType<import("@material-ui/core").TableFooterProps>;
    Head: React.ComponentType<import("@material-ui/core").TableHeadProps>;
    Row: React.ComponentType<import("@material-ui/core").TableRowProps>;
    Pagination: import("@material-ui/core/OverridableComponent").OverridableComponent<import("@material-ui/core").TablePaginationTypeMap<{}, React.ComponentType<Pick<import("@material-ui/core").TableCellProps, "title" | "color" | "translate" | "padding" | "hidden" | "size" | "style" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "innerRef" | "ref" | "align" | "colSpan" | "headers" | "rowSpan" | "scope" | "abbr" | "valign" | "sortDirection" | "variant">>>>;
    SimplePagination: React.FC<TableSimplePaginationProps>;
    SortLabel: import("@material-ui/core").ExtendButtonBase<import("@material-ui/core").TableSortLabelTypeMap<{}, "span">>;
    SortHead: <T extends React.ReactText>(props: TableSortHeadProps<T>) => JSX.Element;
    Header: React.FC<TableHeaderProps>;
};
export {};
