import { Page } from 'playwright'; export interface RankedSelector { selector: string; count: number; samples: string[]; confidence: number; } export declare class SelectorRanker { private page; constructor(page: Page); rankSelectors(candidates: string[], sampleSize?: number): Promise; private calculateConfidence; testSelector(selector: string): Promise<{ valid: boolean; count: number; sample?: string; error?: string; }>; findAlternatives(failedSelector: string, limit?: number): Promise; private extractSelectorParts; }