UNPKG

react-use-anywhere

Version:

Use React hooks anywhere in your codebase - in services, utilities, and business logic. Router-agnostic, hook-agnostic, and works with any React hooks (auth, navigation, state, custom hooks, etc.).

36 lines (35 loc) 870 B
/** * Internal logger configuration */ interface LoggerConfig { enabled: boolean; } /** * Configure logging for react-use-anywhere * Call this at the start of your application to enable/disable logs * * @example * ```typescript * import { configureLogging } from 'react-use-anywhere'; * * // Enable logging (useful for debugging) * configureLogging({ enabled: true }); * * // Disable logging (default, recommended for production) * configureLogging({ enabled: false }); * ``` */ export declare function configureLogging(config: Partial<LoggerConfig>): void; /** * Get current logger configuration */ export declare function getLoggerConfig(): LoggerConfig; /** * Internal logging utilities */ export declare const logger: { log(...args: unknown[]): void; warn(...args: unknown[]): void; error(...args: unknown[]): void; }; export {};