/** * Gets optimized poster URL using OptixFlow CDN API. * Generates responsive image URLs with format optimization (AVIF, WebP, JPEG). * Uses the same OptixFlow infrastructure as @page-speed/img. */ export type PosterImageFormat = "avif" | "webp" | "jpeg" | "png"; export interface GetOptimizedPosterOptions { /** Original poster URL */ url: string; /** OptixFlow API key (required for optimization) */ apiKey?: string; /** Target width in pixels (default: 1280) */ width?: number; /** Target height in pixels (default: 720) */ height?: number; /** Compression quality 1-100 (default: 75) */ quality?: number; /** Output format (default: "jpeg") */ format?: PosterImageFormat; /** How the image should fit the target dimensions (default: "cover") */ objectFit?: "cover" | "contain" | "fill"; /** Enable debug logging */ debug?: boolean; } /** * Builds an OptixFlow CDN URL for optimized poster images. * Returns original URL if no API key is provided. */ export declare function getOptimizedPosterUrl(options: GetOptimizedPosterOptions): string;