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.

12 lines (11 loc) 709 B
import type { TouchIDEventType, TouchIDEventHandler, TouchIDEventData, TouchIDEventEmitter } from '../types/touchid.js'; export declare class TouchIDEventEmitterImpl implements TouchIDEventEmitter { private listeners; on<T extends TouchIDEventType>(event: T, handler: TouchIDEventHandler<T>): void; off<T extends TouchIDEventType>(event: T, handler: TouchIDEventHandler<T>): void; once<T extends TouchIDEventType>(event: T, handler: TouchIDEventHandler<T>): void; removeAllListeners(event?: TouchIDEventType): void; emit<T extends TouchIDEventType>(event: T, data: TouchIDEventData[T]): void; listenerCount(event: TouchIDEventType): number; eventNames(): TouchIDEventType[]; }