/** * storytellingjs - Logger * * Logging infrastructure for story generation. */ import type { StorytellingConfig } from './types.js'; export type LogLevel = 'debug' | 'info' | 'warn' | 'error'; export interface LogEntry { level: LogLevel; message: string; timestamp: string; data?: Record; } /** * Logger for storytelling operations. */ export declare class Logger { private config; private sessionDir?; private entries; constructor(config: StorytellingConfig, sessionDir?: string); debug(message: string, data?: Record): void; info(message: string, data?: Record): void; warn(message: string, data?: Record): void; error(message: string, data?: Record): void; private log; private printToConsole; /** * Get all log entries. */ getEntries(): LogEntry[]; /** * Clear log entries. */ clear(): void; } /** * Create a simple console logger for CLI use. */ export declare function createConsoleLogger(debug?: boolean): Logger; //# sourceMappingURL=logger.d.ts.map