import type { ParamValues } from "airplane/api"; import type { ExecuteError } from "../components/query"; export type ExecuteTaskSuccess> = { output: TOutput; runID: string; }; export type ExecuteTaskError> = { output?: TOutput; error: ExecuteError; runID?: string; }; export type ExecuteTaskResult> = ExecuteTaskSuccess | ExecuteTaskError; export { ParamValues }; export type DefaultParams = Record; export type DefaultOutput = any; export declare const executeTask: >(slug: string, executeType: "query" | "mutation", params?: TParams | undefined, runID?: string, allowCachedMaxAge?: number) => Promise>; /** Execute the task but don't want for the run to complete. */ export declare const executeTaskBackground: >(slug: string, executeType: "query" | "mutation", params?: TParams | undefined, allowCachedMaxAge?: number) => Promise>; export declare function isExecuteTaskError(value: ExecuteTaskResult): value is ExecuteTaskError;