/** * runQualityCheck — public entry point for the SDK's blur + brightness * quality gate. Delegates to the native module * `RNImageStitcherQualityChecker` when registered (iOS today via * `ios/Sources/RNImageStitcher/QualityChecker.swift`, Android in * Phase 3); falls back to a conservative pass-through shim when the * native module is absent so dev / Jest runs don't crash on a missing * NativeModules entry. * * The shim NEVER fails an image — false negatives in production are * worse than missing data. The native path is the only branch that * can return `passed=false`. */ import type { QualityReport, QualityThresholds } from '../types'; /** * Numeric scores produced by the native module. The bridge resolves * with `{ blurScore, brightnessScore }` — issues are computed in JS * so the same threshold logic applies on iOS + Android even if a * platform's native impl evolves independently. */ interface NativeQualityScores { blurScore: number; brightnessScore: number; glareScore: number; } /** * Analyse an image file and return a quality report. * * @param imagePath Filesystem path to the image (with or without * `file://` prefix — the native module strips it). * @param thresholds Cut-offs the report scores against. */ export declare function runQualityCheck(imagePath: string, thresholds: QualityThresholds): Promise; /** * Apply thresholds to native scores → produce the report shape the JS * surface promises. Pure function so it's trivially unit-testable. * * Exported for tests; not part of the SDK's public API. */ export declare function scoreToReport(scores: NativeQualityScores, thresholds: QualityThresholds): QualityReport; export {}; //# sourceMappingURL=runQualityCheck.d.ts.map