/** * Converts raw DB Element records (role, meaning, notes JSON) into Playwright-idiomatic locator strings. * Priority: data-testid → aria-label/placeholder (inputs) → role+name (buttons/links) → heading → text → id */ export interface PlaywrightLocator { key: string; expression: string; elementType: string; confidence: 'high' | 'medium' | 'low'; source: 'testid' | 'label' | 'placeholder' | 'role-name' | 'heading' | 'text' | 'id'; description: string; } /** Convert a single DB Element record to a Playwright locator. Returns null if insufficient data. */ export declare function elementToPlaywrightLocator(element: { role?: string | null; meaning?: string | null; text?: string | null; notes?: unknown; selector?: string | null; }): PlaywrightLocator | null; /** * Convert an array of DB Element records to deduplicated Playwright locators. * Deduplicates by key — higher confidence wins. */ export declare function elementsToPlaywrightLocators(elements: Array<{ role?: string | null; meaning?: string | null; text?: string | null; notes?: unknown; selector?: string | null; isInteractive?: boolean | null; }>): PlaywrightLocator[]; /** * Format locators as a block for injection into LLM script generation prompts. * Returns empty string if no locators. */ export declare function formatLocatorsForPrompt(locators: PlaywrightLocator[]): string;