export interface AutomationTerminalEvent { type: string; error?: string; details?: string; errorCode?: string; provider?: string; } export declare function automationRunTerminalError(events: readonly AutomationTerminalEvent[]): { message: string; errorCode?: string; } | null;