/** @jsx jsx */
import { TableHTMLAttributes, ComponentType } from 'react';
import { ITrProps } from './Table';
export interface IApolloTableProps extends TableHTMLAttributes {
/**
* Query that will be passed to Apollo's Query component.
*/
query: any;
/**
* Field in GraphQL's response that contains the data connection.
*/
dataField: string;
/**
* Component that will render each row. It will receive two props: index and value.
*/
Tr: ComponentType>;
/**
* Variables passed to Apollo's Query component.
*/
variables?: {
[key: string]: any;
};
/**
* Optional component to display while data is loading.
*/
Loading?: ComponentType;
/**
* Optional component to display if the data is empty.
*/
Empty?: ComponentType;
/**
* Optional component to render the header. It will be placed inside a element.
*/
Header?: ComponentType;
/**
* Should the table rows have zebra striping
*/
striped?: boolean;
pagination?: boolean;
itemsPerPage?: number;
}
export declare function ApolloTable(props: IApolloTableProps): JSX.Element;