import { Matrix } from "../matrix/bit-matrix.js"; import type { EccLevel, MaskId } from "../types/index.js"; /** * Evaluates all 8 masks and applies the one with the lowest penalty. * Implements the deterministic tie-break (lowest ID). */ export declare function selectAndApplyBestMask(matrix: Matrix, ecc: EccLevel): { mask: MaskId; penalties: number[]; }; export declare function applyMask(matrix: Matrix, maskId: MaskId): void; export declare function writeFormatInformation(matrix: Matrix, ecc: EccLevel, maskId: MaskId): void;