import { ErrorInput } from '../inputs'; import { ErrorUnion, OkUnion } from '../outputs'; /** * Finishes the file generation * @param {Object} params * @param {string} [params.generationId] - The identifier of the generation process * @param {ErrorInput} [params.error] - If set, means that file generation has failed * and should be terminated * @param {Object} state * @returns {OkUnion | ErrorUnion} */ export declare type FinishFileGenerationMethod = (params: FinishFileGenerationParams, state?: Record) => Promise; export interface FinishFileGenerationParams { /** The identifier of the generation process */ generationId?: string; /** If set, means that file generation has failed and should be terminated */ error?: ErrorInput; }