react-ecosistema-unp 1.8.0-pre.11 → 1.8.0-pre.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Servicio para gestionar la generación del fingerprint del navegador.
3
+ * El fingerprint se usa para vincular tokens a dispositivos específicos.
4
+ */
5
+ declare class FingerprintService {
6
+ private fpPromise;
7
+ private fingerprint;
8
+ /**
9
+ * Inicializa el agente de FingerprintJS y genera el fingerprint.
10
+ * @returns El identificador único del dispositivo (visitorId)
11
+ */
12
+ initialize(): Promise<string>;
13
+ /**
14
+ * Obtiene el fingerprint previamente generado.
15
+ * Si no existe, lo genera automáticamente.
16
+ * @returns El fingerprint del dispositivo
17
+ */
18
+ getFingerprint(): Promise<string>;
19
+ /**
20
+ * Obtiene el fingerprint de forma síncrona si ya fue generado.
21
+ * Útil cuando ya se ha llamado a initialize() previamente.
22
+ * @returns El fingerprint o null si no ha sido generado
23
+ */
24
+ getFingerprintSync(): string | null;
25
+ }
26
+ declare const _default: FingerprintService;
27
+ export default _default;