import { type IExecutionResult } from "@gooddata/sdk-backend-spi";
import { type IExecutionResultLimitBreak, type IResultWarning, type ObjRef } from "@gooddata/sdk-model";
import { type GoodDataSdkError } from "@gooddata/sdk-ui";
import { type IExecutionResultEnvelope } from "../store/executionResults/types.js";
import { type IDashboardCommand } from "./base.js";
/**
 * Triggers an event.
 *
 * @beta
 */
export interface IUpsertExecutionResult extends IDashboardCommand {
    readonly type: "GDC.DASH/CMD.EXECUTION_RESULT.UPSERT";
    readonly payload: IExecutionResultEnvelope;
}
/**
 * Creates an {@link IUpsertExecutionResult} command that makes the relevant execution result indicate it is loading.
 *
 * @beta
 */
export declare function setExecutionResultLoading(id: ObjRef | string, correlationId?: string): IUpsertExecutionResult;
/**
 * Creates an {@link IUpsertExecutionResult} command that makes the relevant execution result indicate an error and stop loading.
 *
 * @beta
 */
export declare function setExecutionResultError(id: ObjRef | string, error: GoodDataSdkError, correlationId?: string): IUpsertExecutionResult;
/**
 * Creates an {@link IUpsertExecutionResult} command that makes the relevant execution result set new result data and stop loading.
 *
 * @beta
 */
export declare function setExecutionResultData(id: ObjRef | string, executionResult: IExecutionResult, executionWarnings: IResultWarning[] | undefined, limitBreaks: IExecutionResultLimitBreak[] | undefined, correlationId?: string): IUpsertExecutionResult;
//# sourceMappingURL=executionResults.d.ts.map