nostr-nsec-seedphrase
Version:
A comprehensive TypeScript library for Nostr key management with BIP39 seed phrases, supporting both ESM and CommonJS. Implements NIP-01, NIP-06, NIP-19, and NIP-26 with key generation, event signing, bech32 encoding/decoding, and secure cryptographic ope
17 lines (16 loc) • 675 B
TypeScript
/**
* @module Logger
* @category Utils
* @description Enhanced logging utility with support for both browser and Node environments.
* Provides consistent logging across the application with proper type safety.
*/
interface LoggerInterface {
error(obj: string | Record<string, unknown>, msg?: string): void;
warn(obj: string | Record<string, unknown>, msg?: string): void;
info(obj: string | Record<string, unknown>, msg?: string): void;
debug(obj: string | Record<string, unknown>, msg?: string): void;
log(obj: string | Record<string, unknown>, msg?: string): void;
}
declare const logger: LoggerInterface;
export { logger };
export default logger;