import { type Page } from 'playwright-core'; export declare const TRAINING_DIR: string; export declare function readFileBase64(path: string): string; export declare function visionClassify(imageBase64: string, prompt: string): Promise; export declare function analyzeTileCrops(gridScreenshotPath: string, gridRows: number, gridCols: number, objectName: string, actualTileCount: number, _dbg: (msg: string) => void): Promise; export interface CaptchaTrainingExample { instruction: string; objectType?: string; gridSize?: string; gridCount: number; matchedIndices: number[]; tileCount?: number; visionResponse?: string; successCount?: number; timestamp: number; } export declare function loadCaptchaTraining(): CaptchaTrainingExample[]; export declare function saveCaptchaTraining(example: CaptchaTrainingExample): void; export interface CaptchaResult { instruction: string; objectType: string; gridSize: string; tileCount: number; matchedIndices: number[]; result: 'pass' | 'fail' | 'verified' | 'new_challenge'; timestamp: number; source?: string; tileDescriptions?: { idx: number; description: string; selected: boolean; }[]; gridAnalysis?: { result: number[]; rawResponse?: string; }; perTileAnalysis?: { result: number[]; }; directAnalysis?: { result: number[]; }; verifyResults?: { idx: number; kept: boolean; description: string; }[]; mergeInfo?: string; gridImagePath?: string; is3x3Flip?: boolean; errorNotes?: string; } export declare function saveCaptchaResult(r: CaptchaResult): void; export declare function getTrainingHint(objectName: string, gridSize: string, tileCount: number): string; export declare function capthaiSolve(imageBase64: string, instruction: string, gridSize: string): Promise; export declare function saveCapthaiTraining(data: { objectType: string; gridSize: string; capthaiIndices: number[]; visionIndices: number[]; correct: boolean; timestamp: number; }): void; export declare function getCapthaiCorrectionHint(objectName: string, gridSize: string): string; export declare function bezierPoint(t: number, points: [number, number][]): [number, number]; export declare function easeInOut(t: number): number; export declare function humanMove(x: number, y: number, page: Page): Promise; export declare function warmupBehavior(page: Page): Promise; export declare function humanHold(x: number, y: number, duration: number, page: Page): Promise; export declare function humanClick(locator: any, page: Page): Promise; export declare function humanClickAt(x: number, y: number, page: Page): Promise; export declare function findGridTiles(frame: any, provider: string): Promise; //# sourceMappingURL=common.d.ts.map