import * as React from "react"; import { DataLayer, SDK } from "@gooddata/gooddata-js"; import { AFM, Execution } from "@gooddata/typings"; import { IEvents } from "../interfaces/Events"; import { Requireable } from "../proptypes/Execute"; import { RuntimeError } from "../errors/RuntimeError"; export { Requireable }; export declare type IDataTableFactory = (sdk: SDK, projectId: string) => DataLayer.DataTable; export interface IExecuteProps extends IEvents { afm: AFM.IAfm; resultSpec?: AFM.IResultSpec; projectId: string; children?: any; sdk?: SDK; dataTableFactory?: IDataTableFactory; telemetryComponentName?: string; } export interface IExecuteState { result: Execution.IExecutionResponses; isLoading: boolean; error?: RuntimeError; } export interface IExecuteChildrenProps { result: Execution.IExecutionResponses; error: RuntimeError; isLoading: boolean; } /** * [Execute](http://sdk.gooddata.com/gooddata-ui/docs/execute_component.html) * is a component that does execution based on afm and resultSpec props and passes the result to it's children function */ export declare class Execute extends React.Component { static propTypes: { projectId: import("prop-types").Validator; afm: import("prop-types").Validator; resultSpec: Requireable; children: import("prop-types").Validator; LoadingComponent: Requireable; ErrorComponent: Requireable; telemetryComponentName: Requireable; onError: Requireable; onLoadingChanged: Requireable; onLoadingFinish: Requireable; afterRender: Requireable; pushData: Requireable; }; static defaultProps: Partial; private dataTable; private sdk; constructor(props: IExecuteProps); componentWillMount(): void; componentWillReceiveProps(nextProps: IExecuteProps): void; shouldComponentUpdate(nextProps: IExecuteProps, nextState: IExecuteState): boolean; render(): any; private isPropChanged; private hasPropsChanged; private runExecution; private initDataTable; }