export type TaskRequest = { provider: string; app_key: string; asset_id: number; properties?: object; }; export type TaskResult = { state: 'running' | 'succeeded' | 'failed'; fail_reason?: string; payload?: any; }; type TaskRequestOptions = { /** * defaults to 60 */ maxAttempts?: number; /** * delay before the next attempt in ms * defaults to 1000ms */ retryDelay?: number; /** * When set to true, the function will throw an error when * the task fails or times out */ throwOnError?: boolean; }; export declare const postTaskAndWaitResult: (task: TaskRequest, options?: TaskRequestOptions) => Promise; export {}; //# sourceMappingURL=postTaskAndWaitResult.d.ts.map