/** * Shared document-type rules used by both the ID-type selection screen * (SmartComplyFlow) and the capture component (DocumentCapture) — kept in * one place so the two can't silently diverge on which documents need a * back-side photo. */ /** * Whether a document's back side should be captured: * true — required, the flow forces a back-capture step * false — never offered * "optional" — offered, but the user can skip it and proceed on front alone */ export type BackSideMode = boolean | "optional"; /** Documents where the backend OCR pipeline needs (or can use) the reverse side. */ export declare function requiresBackSide(documentType: string): BackSideMode; /** * Scale ratio for fitting an image within maxWidth x maxHeight, never * upscaling. Shared by DocumentCapture's canvas sizing and compressImage so * both agree on the same clamp-at-1 behavior. */ export declare function computeScaleRatio(srcWidth: number, srcHeight: number, maxWidth: number, maxHeight: number): number; //# sourceMappingURL=documentRules.d.ts.map