import type { VideoExecutionCancelResult, VideoExecutionPayload, VideoExecutionPollResult } from './types.js'; interface FetchLikeResponse { ok: boolean; status: number; text(): Promise; json(): Promise; arrayBuffer(): Promise; } type FetchLike = (input: string, init?: { method?: string; headers?: Record; body?: string | Uint8Array; }) => Promise; export declare function submitRunwayUseApiNative(payload: VideoExecutionPayload, options?: { env?: NodeJS.ProcessEnv; fetchImpl?: FetchLike; /** * Stable job id to resume into. When provided, existing per-scene state at * `.vclaw-jobs/.json` is loaded and already-submitted scenes * are skipped (never re-submitted). Omit for a fresh submission. */ externalJobId?: string; }): Promise<{ externalJobId: string; rawResult: unknown; }>; export declare function pollRunwayUseApiNative(input: { outputDir: string; externalJobId: string; workspaceRoot: string; }, options?: { env?: NodeJS.ProcessEnv; fetchImpl?: FetchLike; }): Promise; /** * Stop WAITING for scenes the provider has left in flight. This is not a cancel: * there is no provider-side cancel here, so the remote job keeps running and * keeps billing, and the text says so. It exists because this poll ends only on a * provider-reported state, so a wedged scene would otherwise be polled forever. * The whole job is abandoned (a poll reports `failed` as soon as one scene has, * so a sibling that finished later would never be ingested), but only scenes * still `submitted` change: a completed scene keeps its clip and an earlier * failure keeps its own reason. No network call is made. It cannot be undone: * nothing re-polls a failed scene. */ export declare function abandonRunwayUseApiNativeJob(input: { outputDir: string; externalJobId: string; dryRun?: boolean; }): Promise<{ abandonedScenes: number[]; untouchedScenes: Array<{ sceneIndex: number; status: string; }>; }>; export declare function cancelRunwayUseApiNative(input: { outputDir: string; externalJobId: string; workspaceRoot: string; }): Promise; export {}; //# sourceMappingURL=native-runway.d.ts.map