export declare type TaskRequest = {
    provider: string;
    app_key: string;
    asset_id: number;
    properties?: object;
};
export declare type TaskResult = {
    state: 'running' | 'succeeded' | 'failed';
    fail_reason?: string;
    payload?: any;
};
declare 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<TaskResult>;
export {};
//# sourceMappingURL=postTaskAndWaitResult.d.ts.map