
// 테스트 결과를 위한 공통 타입 정의

export interface TestResult {
  success: boolean;
  error: string | null;
}

export interface TestDebugInfo {
  originalUrl: string;
  proxyUrl: string;
  usingProxy: boolean;
  proxyType: string;
  keyLength: number;
  browserInfo: string;
  timestamp: string;
  backupProxySuccess: boolean;
  lastErrorDetails: string;
}

export interface TestResults {
  url: string;
  proxyUrl: string;
  usingProxy: boolean;
  proxyType: string;
  client: boolean;
  restApi: boolean;
  auth: boolean;
  database: boolean;
  errors: string[];
  debugInfo: TestDebugInfo;
}

export interface ConnectionTestResult {
  url: string;
  proxyUrl: string;
  usingProxy: boolean;
  proxyType: string;
  client: boolean;
  restApi: boolean;
  auth: boolean;
  database: boolean;
  errors: string[];
  debugInfo: TestDebugInfo;
}

export interface LoginTestResult {
  success: boolean;
  data?: any;
  error?: any;
}
