UNPKG

react-native-urovo-scanner

Version:

React Native package for Urovo Scanner SDK integration - Official SDK implementation

26 lines (25 loc) 1.43 kB
/** * Utilidades para la aplicación Urovo Scanner */ import { ExtendedScanResult, ExportConfig } from './types'; export declare const generateScanId: () => string; export declare const formatTimestamp: (timestamp: string) => string; export declare const createFormattedTimestamp: () => string; export declare const isValidCode: (code: string) => boolean; export declare const detectCodeType: (value: string) => 'url' | 'email' | 'phone' | 'text' | 'number'; export declare const formatCodeForDisplay: (value: string, maxLength?: number) => string; export declare const exportResults: (results: ExtendedScanResult[], config: ExportConfig) => string; export declare const filterResults: (results: ExtendedScanResult[], query: string, type?: string) => ExtendedScanResult[]; export declare const getScanStats: (results: ExtendedScanResult[]) => { totalScans: number; scansByType: Record<string, number>; mostScannedType: string; uniqueTypes: number; }; export declare const isUrovoDevice: () => boolean; export declare const formatScanDuration: (startTime: number, endTime: number) => string; export declare const generateTestQR: (text: string) => string; export declare const validateBarcode: (code: string) => boolean; export declare const cleanScannedCode: (code: string) => string; export declare const isUrl: (text: string) => boolean; export declare const generateExportFileName: (format: string) => string;