import type { VideoExecutionPayload, VideoExecutionPollResult, VideoExecutionCancelResult } from './types.js'; type FetchLike = typeof fetch; export declare function submitMagnificRestNative(payload: VideoExecutionPayload, options?: { env?: NodeJS.ProcessEnv; fetchImpl?: FetchLike; externalJobId?: string; }): Promise<{ externalJobId: string; rawResult: unknown; }>; export declare function pollMagnificRestNative(input: { outputDir: string; externalJobId: string; workspaceRoot: string; }, options?: { env?: NodeJS.ProcessEnv; fetchImpl?: FetchLike; }): Promise; export declare function cancelMagnificRestNative(input: { outputDir: string; externalJobId: string; workspaceRoot: string; }): Promise; export declare const MAGNIFIC_VIDEO_UPSCALE_PATH = "/v1/ai/video-upscaler-precision"; /** Submit a hosted video URL for Magnific upscale; returns the task id. */ export declare function submitMagnificUpscale(videoUrl: string, params: Record, opts?: { env?: NodeJS.ProcessEnv; fetchImpl?: FetchLike; }): Promise; /** Poll a Magnific upscale task to completion and return the output video URL. */ export declare function awaitMagnificUpscale(taskId: string, opts?: { env?: NodeJS.ProcessEnv; fetchImpl?: FetchLike; intervalMs?: number; maxAttempts?: number; sleep?: (ms: number) => Promise; }): Promise; export declare const MAGNIFIC_IMAGE_UPSCALE_PATH = "/v1/ai/image-upscaler-precision-v2"; /** Submit an image (base64 or HTTPS URL) for Magnific upscale; returns the task id. */ export declare function submitMagnificImageUpscale(image: string, params: Record, opts?: { env?: NodeJS.ProcessEnv; fetchImpl?: FetchLike; }): Promise; /** Poll a Magnific image task to completion and return the output image URL. */ export declare function awaitMagnificImage(taskId: string, opts?: { env?: NodeJS.ProcessEnv; fetchImpl?: FetchLike; intervalMs?: number; maxAttempts?: number; sleep?: (ms: number) => Promise; }): Promise; /** Download an upscaled output URL to disk (atomic tmp+rename). Returns dest. */ export declare function downloadMagnificFile(url: string, dest: string, opts?: { fetchImpl?: FetchLike; }): Promise; export {}; //# sourceMappingURL=native-magnific.d.ts.map