/** * Log entry structure for storage */ export interface LogEntry { id: string; timestamp: number; level: 'DEBUG' | 'INFO' | 'ERROR'; message: string; data?: any; } /** * AuthenticationStatus enum values matching the native SDK * This represents all possible authentication status cases from Bureau SDK */ export type AuthenticationStatus = 'networkAndOperatorMismatch' | 'authFailure' | 'networkNotSupported' | 'operatorNotSupported' | 'operatorAndNetworkNotSupported' | 'awaitingProviderAck' | 'authValidationError' | 'duplicateCorrelationId' | 'integrationFailure' | 'authStateExpired' | 'unauthorized' | 'countryNotSupported' | 'rateLimitExceeded' | 'internalServerError' | 'networkUnavailable' | 'wifiDetectedAndNoDataNetwork' | 'completed' | 'timeout' | 'unknown'; /** * Authentication result containing the full AuthenticationStatus enum and all properties * This is a structured object returned from the native SDK, matching the SDK's AuthenticationStatus */ export interface AuthenticationResult { /** * Authentication status enum case name from SDK * This matches the AuthenticationStatus enum from iOS/Android SDKs */ readonly status: AuthenticationStatus; /** * Human-readable message from SDK (associated value from enum) */ readonly message: string; /** * Total latency in milliseconds (from start to finish) */ totalLatency?: number; /** * SDK initialization latency in milliseconds */ initLatency?: number; /** * Authentication call latency in milliseconds */ authLatency?: number; } /** * Enables or disables debug logging * * @param enabled - Whether to enable debug logging */ export declare function setDebugEnabled(enabled: boolean): void; /** * Fetches native SDK logs from the native modules (iOS/Android) * Merges them with React Native logs and returns combined list * @returns Promise resolving to array of log entries (most recent first) */ export declare function fetchNativeLogs(): Promise; /** * Retrieves all stored log entries, including native logs * Fetches native logs and merges with React Native logs * @returns Promise resolving to array of log entries (most recent first) */ export declare function getLogs(): Promise; /** * Retrieves all stored log entries synchronously (React Native logs only) * For backward compatibility - use getLogs() for native logs * @returns Array of log entries (most recent first) */ export declare function getLogsSync(): LogEntry[]; /** * Retrieves log entries filtered by level, including native logs * @param level - Log level to filter by * @returns Promise resolving to array of log entries matching the level (most recent first) */ export declare function getLogsByLevel(level: 'DEBUG' | 'INFO' | 'ERROR'): Promise; /** * Retrieves log entries filtered by level synchronously (React Native logs only) * For backward compatibility - use getLogsByLevel() for native logs * @param level - Log level to filter by * @returns Array of log entries matching the level (most recent first) */ export declare function getLogsByLevelSync(level: 'DEBUG' | 'INFO' | 'ERROR'): LogEntry[]; /** * Clears all stored log entries */ export declare function clearLogs(): void; /** * Gets the current debug enabled state * @returns True if debug logging is enabled, false otherwise */ export declare function isDebugEnabled(): boolean; /** * Authenticates a user using Bureau's One-Tap Login * * @param clientId - Bureau client ID * @param sessionId - Unique session/correlation ID * @param msisdn - Mobile number with country code * @param env - Environment: 'Production' or 'Sandbox' (default: 'Production') * @param timeOutInMs - Timeout in milliseconds (default: 15000) * @param allowedCountryCodes - Optional array of allowed country codes (e.g., ["91", "1"]). Defaults to ["91"] if not provided * @param pspCallbacks - Optional PSP callback keys for the Initiate request (iOS BureauSMV 1.2.1+) * @returns Promise resolving to AuthenticationResult with status enum and message from SDK */ export declare function authenticate(clientId: String, sessionId: String, msisdn: String, env?: String, timeOutInMs?: number, allowedCountryCodes?: string[], pspCallbacks?: string[]): Promise; //# sourceMappingURL=index.d.ts.map