/** * SDK-wide constants — single source of truth for limits, defaults and * backend-defined magic values. */ /** Backend session TTL in milliseconds (30 minutes). */ export declare const SESSION_TTL_MS: number; /** Warn the user this many ms before session expires. */ export declare const SESSION_WARN_BEFORE_MS: number; /** Default request timeout in milliseconds. */ export declare const DEFAULT_TIMEOUT_MS = 30000; /** Number of automatic retries on transient network errors. */ export declare const MAX_RETRIES = 2; /** Delay between retries in milliseconds. */ export declare const RETRY_DELAY_MS = 1000; /** Maximum document image size the backend accepts (5 MB). */ export declare const MAX_DOCUMENT_BYTES: number; /** Maximum video size the backend accepts (50 MB). */ export declare const MAX_VIDEO_BYTES: number; /** Maximum snapshot / autoshot size (2 MB). */ export declare const MAX_SNAPSHOT_BYTES: number; /** Accepted MIME types for document images. */ export declare const ACCEPTED_IMAGE_TYPES: readonly ["image/jpeg", "image/png", "image/webp"]; /** JPEG quality used when encoding captured frames (0–1). */ export declare const CAPTURE_JPEG_QUALITY = 0.92; /** Backend-accepted challenge actions (UPPERCASE). Kept for backward compatibility. */ export declare const CHALLENGE_ACTIONS: readonly ["BLINK", "TURN_LEFT", "TURN_RIGHT", "TURN_HEAD", "OPEN_MOUTH"]; /** * Default action tags sent to the backend. The widget no longer runs a * discrete multi-step challenge (turn left, then right, then open mouth as * separate gated steps) — it's a single passive scan window where the user * is asked to blink and turn their head naturally, both within the same * window. Both tags are sent so the admin dashboard's "Challenge Actions" * label reflects what the user was actually asked to do; the backend does * not yet score these individually (see LivenessSerializer.get_liveness_ * challenges' docstring) — they're descriptive, not a discrete step gate. */ export declare const DEFAULT_CHALLENGE_ACTIONS: readonly ["BLINK", "TURN_HEAD"]; /** Time limit for the natural-motion scan window, in seconds. */ export declare const LIVENESS_TIME_LIMIT_SECONDS = 12; /** Ideal resolution for the front-facing liveness camera. */ export declare const CAMERA_IDEAL_WIDTH = 640; export declare const CAMERA_IDEAL_HEIGHT = 480; /** * Ideal resolution for rear-facing document capture camera. Matches the * document-photo compression target (see compressImage calls in * DocumentCapture.ts) — requesting less here would cap captured photos * below what compression is allowed to keep, which is what let camera * captures come out under-resolution for face-comparison cropping even * after the compression target itself was raised. `ideal` (not `exact`) * constraints degrade gracefully on hardware that can't hit this. */ export declare const DOC_CAMERA_IDEAL_WIDTH = 2000; export declare const DOC_CAMERA_IDEAL_HEIGHT = 1500; /** * Video bitrate used by MediaRecorder for liveness recordings — raised from * an earlier 250k baseline for sharper frames for SmartComply's face * extractor (see VideoRecorder.ts, the only consumer of this constant). */ export declare const RECORDING_BITS_PER_SECOND = 800000; /** Max milliseconds to wait for an initial face detection before proceeding. */ export declare const FACE_DETECT_TIMEOUT_MS = 10000; /** Polling interval for the face-present check (ms). */ export declare const FACE_DETECT_POLL_MS = 100; /** How long (ms) the success overlay is shown before the flow advances. */ export declare const RESULT_OVERLAY_DURATION_MS = 2800; /** localStorage key used to persist the browser fingerprint ID. */ export declare const FINGERPRINT_STORAGE_KEY = "_adhere_fid"; /** z-index for the SDK overlay — high enough to sit above any app content. */ export declare const OVERLAY_Z_INDEX = 99999; //# sourceMappingURL=constants.d.ts.map