import { refreshExecutionStatus } from './execution-status.js'; import { bindSeedanceModelArkLostCreate, type ModelArkBindResult } from './native-modelark.js'; import type { VideoExecutionPollResult, VideoExecutionReport, VideoProductionMode } from './types.js'; /** * Bind a scene whose create answer was lost to the ModelArk task the operator * names. The poll binds a lost create by itself when exactly one unbound task * sits in its window; this is the exit for the cases it will not decide — * several tasks in the window, a window it could not search, or no intent time * to search by — where today's only answer is `execute-abandon`. * * Nothing is submitted and nothing is re-submitted: the task is read with one * GET, and only a task that exists, is on this job's model and is not already * owned by a job in this output directory is bound. The scene then polls as an * ordinary submitted one, so its clip and its bill are collected as usual. * Without `confirm` it reports the plan — including what ModelArk says about * the task — and changes nothing. */ export declare function bindExecutionTask(projectSlug: string, options: { root?: string; productionMode?: VideoProductionMode; env?: NodeJS.ProcessEnv; /** The ModelArk task id to bind. */ taskId: string; /** The job that holds the lost create; default is the one job being waited for on a bindable route. */ jobId?: string; /** Which scene, when the job holds more than one lost create. */ sceneIndex?: number; /** false/omitted = report the plan and change nothing. */ confirm?: boolean; /** Injectable status poll (tests). Default: the real `refreshExecutionStatus`. */ refreshStatus?: typeof refreshExecutionStatus; /** Injectable transport options (tests): a scripted fetch, a retry policy. */ transportOptions?: Parameters[1]; }): Promise<{ reportPath: string; report: VideoExecutionReport | null; /** Present once the bind happened: the status poll that followed it. */ poll?: VideoExecutionPollResult; /** Set when the bind happened but the status poll after it could not run. The bind stands. */ statusPollError?: string; binding: ModelArkBindResult & { routeId: string; }; }>; //# sourceMappingURL=execution-bind.d.ts.map