import type { ansiColors, logLevelValues } from "#lib/config"; type LogLevelValue = (typeof logLevelValues)[keyof typeof logLevelValues]; type LogLevel = keyof typeof logLevelValues; type LoggerConfig = { directory?: string; level?: LogLevel; disableFile?: boolean; rotate?: boolean; maxFiles?: number | null; fileNameFormat?: string; subDirectory?: string | null; console?: boolean; consoleColor?: boolean; dateFormat?: string; timezone?: string; silent?: boolean; pattern?: string; levelColor?: Partial>; customPattern?: string; customColors?: Record; prettyPrint?: boolean; }; type PatternContext = { level: LogLevel; data: unknown; config: Required; }; interface PatternTokens { timestamp?: string; prettyTimestamp?: string; levelName?: string; level?: string; fileName?: string; line?: string; column?: string; data?: string; id?: string; tag?: string; context?: string; } export type { LogLevel, LogLevelValue, LoggerConfig, PatternContext, PatternTokens, };