/** * QA360 Crawler Pack Generator * * Crawls a website and generates a complete pack.yml in v2 format */ import type { CrawlOptions, CrawlResult, CrawlPresetConfig } from '../crawler/index.js'; /** * Crawler Pack Generator Options */ export interface CrawlerPackGeneratorOptions { /** Base URL to crawl */ baseUrl: string; /** Output pack file path */ output?: string; /** Crawl options */ crawl?: Partial; /** Pack name */ packName?: string; /** Include accessibility tests */ includeA11y?: boolean; /** Include performance tests */ includePerf?: boolean; /** Include security tests */ includeSecurity?: boolean; /** Custom journey names */ journeyNames?: Record; /** Phase 1: Preset for platform-specific crawling */ preset?: CrawlPresetConfig; /** Phase 1: Authentication configuration */ auth?: { email?: string; password?: string; url?: string; }; /** Phase 1: Scenario to focus on */ scenario?: 'login' | 'browse' | 'search' | 'checkout' | 'dashboard' | 'profile'; } /** * Generate pack.yml from crawled website (Phase 1: Enhanced with preset and auth support) */ export declare function generatePackFromCrawl(options: CrawlerPackGeneratorOptions): Promise<{ success: boolean; packPath?: string; result?: CrawlResult; error?: string; }>; /** * Quick crawl - generates pack without detailed analysis */ export declare function quickCrawl(baseUrl: string, outputPath?: string): Promise<{ success: boolean; packPath?: string; error?: string; }>;