export interface BrowserOptions {
  proxy?: string;
  headless?: boolean;
  timeout?: number;
  blockResources?: boolean;
  enableNetworkLogging?: boolean;
}

// Keep the old name for backward compatibility
export type FastBrowserOptions = BrowserOptions;

export interface ScrapingResult<T = unknown> {
  data: T;
  url: string;
  success: boolean;
  error?: string;
}

export interface NetworkEvent {
  url: string;
  method: string;
  status?: number;
  type: 'request' | 'response' | 'failed';
  timestamp: number;
  requestData?: string;
  responseData?: string;
  headers?: Record<string, string>;
}

export type NetworkEventHandler = (event: NetworkEvent) => void;
