import { Logger } from './Logger.js'; import { StyleBuilder } from './styling/index.js'; import { ThemeVariant, BannerType, StyleOptions } from './types/index.js'; /** * Enhanced Logger with advanced styling capabilities * * @example * ```typescript * import { StyledLogger } from '@mks2508/better-logger/styling'; * * const logger = new StyledLogger(); * logger.setTheme('neon'); * logger.logAnimated('🌟 Animated message!'); * logger.logWithSVG('Custom SVG Logo', svgContent); * ``` */ export declare class StyledLogger extends Logger { /** * Log with SVG background image * * @param message - The message to log * @param svgContent - SVG content as string (optional) * @param options - Styling options * * @example * ```typescript * logger.logWithSVG('My App', '...', { * width: 400, * height: 80, * padding: '40px 200px' * }); * ``` */ logWithSVG(message: string, svgContent?: string, options?: StyleOptions): void; /** * Log with animated background gradient * * @param message - The message to log * @param duration - Animation duration in seconds * * @example * ```typescript * logger.logAnimated('🚀 Loading...', 2); * ``` */ logAnimated(message: string, duration?: number): void; /** * Display banner with specified type * * @param bannerType - Type of banner to display * * @example * ```typescript * logger.showBanner('animated'); * ``` */ showBanner(bannerType?: BannerType): void; /** * Set banner type for initialization display * * @param bannerType - Type of banner to display * * @example * ```typescript * logger.setBannerType('svg'); * ``` */ setBannerType(bannerType: BannerType): void; /** * Sets the logger theme with visual banner * * @param theme - Theme variant to apply * * @example * ```typescript * logger.setTheme('cyberpunk'); // Shows themed banner * ``` */ setTheme(theme: ThemeVariant): void; } declare const styledLogger: StyledLogger; /** * Utility functions for creating custom styles * * @example * ```typescript * import { createStyle, StyleBuilder } from '@mks2508/better-logger/styling'; * * const myStyle = createStyle() * .bg('linear-gradient(45deg, #ff6b6b, #feca57)') * .color('white') * .padding('10px') * .build(); * * console.log('%cCustom Message', myStyle); * ``` */ export declare const createStyle: () => StyleBuilder; /** * Pre-built style presets * * @example * ```typescript * import { stylePresets } from '@mks2508/better-logger/styling'; * * console.log('%cSuccess!', stylePresets.success); * console.log('%cError!', stylePresets.error); * ``` */ export declare const stylePresets: { success: string; error: string; warning: string; info: string; accent: string; }; /** * Available themes for the logger * * @example * ```typescript * import { themes } from '@mks2508/better-logger/styling'; * * console.log('Available themes:', Object.keys(themes)); * ``` */ export declare const themes: string[]; /** * Available banner types * * @example * ```typescript * import { bannerTypes } from '@mks2508/better-logger/styling'; * * console.log('Available banners:', bannerTypes); * ``` */ export declare const bannerTypes: string[]; /** * Display initialization banner * * @param bannerType - Type of banner to display * * @example * ```typescript * import { showInitBanner } from '@mks2508/better-logger/styling'; * * showInitBanner('animated'); * ``` */ export declare const showInitBanner: (bannerType?: BannerType) => void; /** * Export individual styled logging methods */ export declare const debug: (...args: any[]) => void; export declare const info: (...args: any[]) => void; export declare const warn: (...args: any[]) => void; export declare const error: (...args: any[]) => void; export declare const success: (...args: any[]) => void; export declare const critical: (...args: any[]) => void; export declare const trace: (...args: any[]) => void; export declare const table: (data: any, columns?: string[]) => void; export declare const group: (label: string, collapsed?: boolean) => void; export declare const groupEnd: () => void; export declare const time: (label: string) => void; export declare const timeEnd: (label: string) => number; export declare const setGlobalPrefix: (prefix: string) => void; export declare const scope: (prefix: string) => import('./ScopedLogger.js').ScopedLogger; export declare const setVerbosity: (level: any) => void; export declare const setTheme: (theme: ThemeVariant) => void; export declare const setBannerType: (bannerType: BannerType) => void; export declare const showBanner: (bannerType?: BannerType) => void; export declare const logWithSVG: (message: string, svgContent?: string, options?: StyleOptions) => void; export declare const logAnimated: (message: string, duration?: number) => void; export default styledLogger; export { StyleBuilder, StylePresets, THEME_PRESETS, THEME_BANNERS, BANNER_VARIANTS } from './styling/index.js'; export type { ThemeVariant, BannerType, StyleOptions } from './types/index.js'; //# sourceMappingURL=styling-module.d.ts.map