import { type MediaKind } from "openclaw/plugin-sdk/media-mime"; import type { OpenClawPluginApi } from "openclaw/plugin-sdk/plugin-entry"; import type { createProviderOperationDeadline, postMultipartRequest } from "openclaw/plugin-sdk/provider-http"; import type { VideoGenerationProvider, VideoGenerationRequest } from "openclaw/plugin-sdk/video-generation"; declare const OPENAI_VIDEO_SIZES: readonly ["720x1280", "1280x720", "1024x1792", "1792x1024"]; export type OpenAIVideoRequestPolicy = { allowPrivateNetwork: boolean; dispatcherPolicy?: Parameters[0]["dispatcherPolicy"]; }; export type OpenAIVideoStatus = "queued" | "in_progress" | "completed" | "failed"; export type OpenAIReferenceAsset = { kind: Extract; file: File; }; export type OpenAIVideoResponse = { id?: string; model?: string; status?: OpenAIVideoStatus; prompt?: string | null; seconds?: string; size?: string; error?: string | { code?: string; message?: string; } | null; }; export interface SecretRefObject { source: string; provider: string; id: string; } export interface VideoPluginConfig { baseUrl?: string; apiKey?: string | SecretRefObject; allowPrivateNetwork?: boolean; defaultModel?: string; models?: string[]; } export declare function resolvePluginApiKey(rawKey: string | SecretRefObject | undefined): string | undefined; export declare function resolveVideoConfig(cfg: VideoGenerationRequest["cfg"] | undefined, apiPluginConfig?: Record): VideoPluginConfig | undefined; export declare function resolveConfiguredOpenAIBaseUrl(cfg: VideoGenerationRequest["cfg"], pluginCfg?: VideoPluginConfig): string; export declare function readOpenAIVideoFailureMessage(payload: OpenAIVideoResponse): string | undefined; export declare function resolveDurationSeconds(durationSeconds: number | undefined): "4" | "8" | "12" | undefined; export declare function resolveSize(params: { size?: string; aspectRatio?: string; resolution?: string; }): (typeof OPENAI_VIDEO_SIZES)[number] | undefined; export declare function resolveReferenceAsset(req: VideoGenerationRequest): OpenAIReferenceAsset | null; export declare function fetchOpenAIVideoDownload(params: { url: string; init: RequestInit; deadline: ReturnType; fetchFn: typeof fetch; } & OpenAIVideoRequestPolicy): Promise; export declare function buildOpenAIVideoGenerationProvider({ isProviderApiKeyConfigured, getPluginConfig, }: { isProviderApiKeyConfigured: OpenClawPluginApi["runtime"]["modelAuth"]["isProviderApiKeyConfigured"]; getPluginConfig?: () => Record | undefined; }): VideoGenerationProvider; export {};