import type { AirtopSessionConfigV1 } from '../../wrapper/AirtopSessions'; export type BatchOperateConfig = { maxConcurrentSessions?: number; maxWindowsPerSession?: number; sessionConfig?: AirtopSessionConfigV1; onError?: (error: BatchOperationError) => Promise; }; export type BatchOperationUrl = { url: string; context?: Record; }; export type BatchOperationInput = { windowId: string; sessionId: string; liveViewUrl: string; operationUrl: BatchOperationUrl; }; export type BatchOperationResponse = { shouldHaltBatch?: boolean; additionalUrls?: BatchOperationUrl[]; data?: T; }; export type BatchOperationError = { error: Error | string; operationUrls: BatchOperationUrl[]; sessionId?: string; windowId?: string; liveViewUrl?: string; };