Public declaration syntax from forge-ts/packages/forge-media/src/video.ts Original source SHA-256: f0302437dff6d685767c7c0dcc1e0a515f511f5b504274bd88c16f4907d36f47 Function bodies and constant values are omitted. This is not the complete implementation. Source line 15 export const VideoFormat /* type inferred in source */; Source line 21 export type VideoFormat = (typeof VideoFormat)[keyof typeof VideoFormat]; Source line 29 export function videoMimeType(format: VideoFormat): string; Source line 39 export interface VideoOptions { /** Video width in pixels. */ readonly width?: number; /** Video height in pixels. */ readonly height?: number; /** Duration of the video in seconds. */ readonly durationSeconds?: number; /** Output format. Defaults to MP4. */ readonly format?: VideoFormat; } Source line 53 export interface VideoResult { /** The raw video data as a Uint8Array. */ readonly data: Uint8Array; /** The MIME type of the generated video. */ readonly mimeType: string; /** Duration of the generated video in seconds. */ readonly durationSeconds: number; /** The width of the generated video in pixels. */ readonly width: number; /** The height of the generated video in pixels. */ readonly height: number; } Source line 83 export interface VideoProvider { /** Returns the model identifier. */ modelId(): string; /** Returns the provider name. */ providerName(): string; /** * Generates a video from a text prompt. * * @param prompt - The text description of the desired video. * @param options - Optional generation parameters. * @returns The generated video result. * @throws {ForgeMediaError} If generation fails. */ generateVideo(prompt: string, options?: VideoOptions): Promise; } Source line 117 export async function generateVideo( provider: VideoProvider, prompt: string, options?: VideoOptions ): Promise;