export type AutoStraightenResult = { degrees: number; confidence: number; }; /** * Estimates the horizon tilt by accumulating gradient orientations. * * `grays` is a row-major 8-bit luminance buffer of size `width * height`. * * Convention: Positive degrees means clockwise rotation to *correct* the image. */ export declare function estimateStraightenDegreesFromLuminance(grays: Uint8Array, width: number, height: number): AutoStraightenResult; export declare function extractLuminance(rgba: Uint8ClampedArray, width: number, height: number): Uint8Array; export declare function downscaleLuminanceNearest(src: Uint8Array, srcWidth: number, srcHeight: number, maxSize: number): { grays: Uint8Array; width: number; height: number; }; //# sourceMappingURL=auto-straighten.d.ts.map