coze-plugin-utils
Version:
Comprehensive utility library for Coze plugins with multimedia processing, browser automation, cloud storage integration, and AI-powered video/audio generation capabilities
24 lines (23 loc) • 712 B
TypeScript
interface ConvertOptions {
code: string;
duration: number;
width?: number;
height?: number;
deviceScaleFactor?: number;
sample_ratio?: number;
}
interface ScreenshotOptions {
code: string;
width?: number;
height?: number;
deviceScaleFactor?: number;
delay?: number;
}
export declare function htmlToVideo({ code, duration, width, height, deviceScaleFactor, sample_ratio, }: ConvertOptions): Promise<string>;
/**
* 截取HTML页面的屏幕截图
* @param options 截图选项
* @returns 返回图片的临时文件路径
*/
export declare function htmlToScreenshot({ code, width, height, deviceScaleFactor, delay, }: ScreenshotOptions): Promise<string>;
export {};