/** * GIF generation system for browser-use TypeScript * * This module provides comprehensive GIF creation capabilities including: * - Creates animated GIFs from agent execution history * - Overlays task descriptions and goals on screenshots * - Support for Unicode text rendering (Chinese, Arabic, etc.) * - Font fallback system for cross-platform compatibility * - Configurable duration, font sizes, logos */ export interface GIFGenerationConfig { output_path?: string; duration?: number; show_goals?: boolean; show_task?: boolean; show_logo?: boolean; font_size?: number; title_font_size?: number; goal_font_size?: number; margin?: number; line_spacing?: number; text_color?: [number, number, number, number]; text_box_color?: [number, number, number, number]; } /** * Placeholder for 4px screenshot (about:blank pages) */ export declare const PLACEHOLDER_4PX_SCREENSHOT = "iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAD0lEQVQIHWPY//8/AzMDGwAhgwP/PpKjDAAAAABJRU5ErkJggg=="; /** * History item interface (placeholder for actual types) */ export interface HistoryItem { state: { get_screenshot(): string | null; url: string; }; model_output: { current_state: { next_goal: string; evaluation_previous_goal: string; memory: string; }; } | null; } /** * Agent history list interface */ export interface AgentHistoryList { history: HistoryItem[]; screenshots(return_none_if_not_screenshot?: boolean): (string | null)[]; } /** * Handle decoding unicode escape sequences for GIF overlay text * (needed for non-ASCII languages like Chinese or Arabic) */ export declare function decodeUnicodeEscapesToUTF8(text: string): string; /** * Check if a URL is a new tab page that should be skipped */ export declare function isNewTabPage(url: string): boolean; /** * Create a GIF from the agent's history with overlaid task and goal text */ export declare function createHistoryGIF(task: string, history: AgentHistoryList, config?: Partial): Promise; //# sourceMappingURL=gif.d.ts.map