import type { Api, FetchImpl, Model } from "@oh-my-pi/pi-catalog/types"; import { type ApiKey } from "../auth-retry.js"; import * as AIError from "../error/index.js"; import type { VideoContent, VideoGenerationRequest, VideoJob } from "./types.js"; export interface VideoOptions { apiKey: ApiKey; fetch?: FetchImpl; signal?: AbortSignal; } /** Non-2xx response from an OpenRouter video endpoint. */ export declare class VideoApiError extends AIError.ProviderHttpError { readonly name = "VideoApiError"; } /** Submit an asynchronous OpenRouter video generation job. */ export declare function submitOpenRouterVideo(model: Model, request: VideoGenerationRequest, options: VideoOptions): Promise; /** Poll an asynchronous OpenRouter video generation job. */ export declare function pollOpenRouterVideo(model: Model, jobId: string, options: VideoOptions): Promise; /** Stream generated video bytes from OpenRouter without buffering them in memory. */ export declare function downloadOpenRouterVideo(model: Model, jobId: string, options: VideoOptions): Promise;