UNPKG

@neabyte/touchid

Version:

Native macOS Touch ID authentication with device identification, TTL caching, and TypeScript support. Features hardware UUID, device serial, and biometric type detection.

10 lines (9 loc) 731 B
import type { Result } from '../types/index.js'; export declare const isNotEmpty: (value: string) => boolean; export declare const createSuccessResult: <T>(data: T) => Result<T>; export declare const createErrorResult: <T>(error: string) => Result<T>; export declare const delay: (ms: number) => Promise<void>; export declare const retryWithBackoff: <T>(operation: () => Promise<T>, maxRetries?: number, baseDelay?: number) => Promise<T>; export declare const safeAsync: <T>(operation: () => Promise<T>, fallback: T) => Promise<T>; export declare const isValidTimeout: (timeout: number, min?: number, max?: number) => boolean; export declare const createContextError: (message: string, context?: Record<string, unknown>) => Error;